CN116248567A - Intelligent device testing method and device, electronic device and testing system - Google Patents

Intelligent device testing method and device, electronic device and testing system Download PDF

Info

Publication number
CN116248567A
CN116248567A CN202310172033.3A CN202310172033A CN116248567A CN 116248567 A CN116248567 A CN 116248567A CN 202310172033 A CN202310172033 A CN 202310172033A CN 116248567 A CN116248567 A CN 116248567A
Authority
CN
China
Prior art keywords
message information
simulation
equipment
intelligent
instruction
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.)
Pending
Application number
CN202310172033.3A
Other languages
Chinese (zh)
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.)
Lumi United Technology Co Ltd
Original Assignee
Lumi United 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 Lumi United Technology Co Ltd filed Critical Lumi United Technology Co Ltd
Priority to CN202310172033.3A priority Critical patent/CN116248567A/en
Publication of CN116248567A publication Critical patent/CN116248567A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The embodiment of the specification obtains a simulation instruction of a terminal device, and sends message information to the intelligent device according to the simulation instruction in a message sending mode of the simulation terminal device, so that a test result of the intelligent device is determined according to response information generated when the intelligent device responds to the message information. That is, in the embodiment of the specification, the simulation terminal equipment interacts with the intelligent equipment, the response information in the interaction process of the intelligent equipment is recorded, and whether the coping logic of the intelligent equipment accords with the expectation is detected according to the response information, so that the purpose of testing the intelligent equipment is achieved. In addition, the real terminal equipment does not need to be set, so that the test cost is effectively saved.

Description

Intelligent device testing method and device, electronic device and testing system
Technical Field
The application relates to the technical field of computers, in particular to a testing method and device of intelligent equipment, electronic equipment and a testing system.
Background
The intelligent device is widely applied to the work and life of people, and in order to ensure that the intelligent device can be normally used, the intelligent device needs to be tested before leaving a factory. For example, the gateway is a central part of the whole internet of things platform, and can communicate a local intelligent network with the internet to realize automatic control of intelligent equipment in the internet of things platform. The gateway influences the running state of the whole Internet of things platform, and testing before the gateway leaves the factory is very important.
How to test the intelligent device effectively is a technical problem to be solved by the person skilled in the art.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, an electronic device, and a system for testing an intelligent device, which can effectively test the intelligent device.
In order to achieve the technical objective, the embodiment of the present specification provides the following technical solutions:
in a first aspect, the present application provides a method for testing an intelligent device, including:
acquiring a simulation instruction of terminal equipment;
and simulating a message sending mode of the terminal equipment to send message information to the intelligent equipment according to the simulation instruction, so as to determine a test result of the intelligent equipment according to response information generated when the intelligent equipment responds to the message information.
In a second aspect, the present application provides a method for testing an intelligent device, including:
generating a simulation instruction of the terminal equipment;
and sending the simulation instruction to a device simulation end, so that the device simulation end simulates a message sending mode of the terminal device to send message information to the intelligent device according to the simulation instruction.
In a third aspect, the present application provides a testing apparatus for an intelligent device, including:
the acquisition module is used for acquiring the simulation instruction of the terminal equipment;
and the simulation module is used for simulating a message sending mode of the terminal equipment to send message information to the intelligent equipment according to the simulation instruction so as to determine a test result of the intelligent equipment according to response information generated when the intelligent equipment responds to the message information.
Optionally, in the testing apparatus for an intelligent device, the simulation instruction of the terminal device includes a simulation instruction of the first message information; the first message information is information which is actively reported and sent by the terminal equipment;
the simulation module comprises:
the first simulation unit is used for simulating the mode of sending the first message information by the terminal equipment and sending the first message information to the intelligent equipment.
Optionally, in the testing apparatus for an intelligent device, the simulation instruction of the terminal device includes a simulation instruction of the second message information; the second message information is information fed back by the terminal equipment according to a control instruction;
the simulation module comprises:
And the second simulation unit is used for simulating the mode of sending the second message information by the terminal equipment and sending the second message information to the intelligent equipment.
Optionally, in the foregoing testing apparatus for an intelligent device, the second simulation unit is configured to simulate a manner that the terminal device sends the second message information, and specifically is configured to:
simulating the mode of the terminal equipment for sending the second message information, and sending the second message information to the intelligent equipment within a set time length after the control instruction is acquired; the set time length is the waiting time length of the second message information of the intelligent equipment.
Optionally, in the foregoing testing apparatus for an intelligent device, the second simulation unit is configured to simulate a manner that the terminal device sends the second message information, and specifically is configured to:
simulating the mode of sending the second message information by the terminal equipment, and sending the second message information to the intelligent equipment after the set time length after the control instruction is acquired, or prohibiting the feedback of the second message information to the intelligent equipment; the set time length is the waiting time length of the second message information of the intelligent equipment.
Optionally, in the testing device for an intelligent device described above, the testing device further includes:
the message sending module is used for simulating a mode of sending first message information by the terminal equipment, sending the first message information to the intelligent equipment, and enabling the intelligent equipment to output the control instruction according to the first message information; the first message information is information which is actively reported and sent by the terminal equipment.
In a fourth aspect, the present application provides a testing apparatus for an intelligent device, including:
the generation module is used for generating a simulation instruction of the terminal equipment;
and the sending module is used for sending the simulation instruction to the equipment simulation end so that the equipment simulation end can simulate the message sending mode of the terminal equipment to send message information to the intelligent equipment according to the simulation instruction.
Optionally, in the testing apparatus for an intelligent device, the simulation instruction of the terminal device includes a simulation instruction of the second message information; the second message information is information fed back by the terminal equipment according to a control instruction;
a generation module, comprising:
the first generation unit is used for generating a simulation instruction of the first message information according to a communication protocol between the first generation unit and the equipment simulation end.
Optionally, in the testing apparatus for an intelligent device, the simulation instruction of the terminal device includes a simulation instruction of the second message information; the second message information is information fed back by the terminal equipment according to a control instruction;
a generation module, comprising:
the second generation unit generates a simulation instruction of the second message information according to a communication protocol between the second generation unit and the equipment simulation end and the control instruction;
the simulation instruction of the second message information comprises the second message information fed back according to the control instruction within the set time length after the control instruction is acquired, the second message information fed back after the set time length after the control instruction is acquired, or the second message information is forbidden to be fed back to the intelligent equipment.
In a fifth aspect, the present application provides a test system comprising: a server side and an equipment simulation side;
the server side is used for generating a simulation instruction of the terminal equipment; the simulation instruction is sent to a device simulation end;
the equipment simulation end is used for acquiring a simulation instruction of the terminal equipment; and simulating a message sending mode of the terminal equipment to send message information to the intelligent equipment according to the simulation instruction, so as to determine a test result of the intelligent equipment according to response information generated when the intelligent equipment responds to the message information.
In a sixth aspect, the present application provides an electronic device comprising a memory storing a computer program and a processor implementing the steps of any one of the methods described above when the computer program is executed by the processor.
In a seventh aspect, the present application provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of any of the preceding claims.
In an eighth aspect, embodiments of the present application provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The computer instructions are read from a computer-readable storage medium by a processor of a computer device, and executed by the processor, cause the computer device to perform the method of any of the above.
The embodiment of the specification provides a testing method, a testing device, an electronic device and a testing system of intelligent equipment, wherein the embodiment of the specification obtains a simulation instruction of terminal equipment, and a message sending mode of the simulation terminal equipment sends message information to the intelligent equipment according to the simulation instruction so as to be convenient for determining a testing result of the intelligent equipment according to response information generated when the intelligent equipment responds to the message information. That is, in the embodiment of the specification, the simulation terminal equipment interacts with the intelligent equipment, the response information in the interaction process of the intelligent equipment is recorded, and whether the coping logic of the intelligent equipment accords with the expectation is detected according to the response information, so that the purpose of testing the intelligent equipment is achieved. In addition, the real terminal equipment does not need to be set, so that the test cost is effectively saved.
Drawings
FIG. 1 is an application environment diagram of a method of network access of a target device in one embodiment;
FIG. 2 is a block diagram of the hardware architecture of a gateway in one embodiment;
FIG. 3 is a flow chart of a method of testing a smart device in one embodiment;
FIG. 4 is a signaling diagram of a method of testing a smart device in one embodiment;
FIG. 5 is a schematic diagram of processing logic of the smart device in one embodiment;
FIG. 6 is a signaling diagram of a testing method of a smart device according to another embodiment;
FIG. 7 is a block diagram of a testing apparatus of the smart device in one embodiment;
fig. 8 is a schematic structural diagram of an electronic device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
Exemplary implementation Environment
Referring to fig. 1, fig. 1 is a schematic diagram of an implementation environment to which the present invention may relate. The implementation environment is an internet of things platform, which includes a server 100, an equipment simulation 300, an intelligent device (not shown in fig. 1), a cloud server 400, and a router 500.
The smart device refers to a device under test, wherein the smart device may be a gateway. As shown in fig. 1, if the intelligent device under test is a gateway 200, then a device simulation end 300 may be deployed in the gateway 200.
The server side 100 may be any device having communication and storage functions, such as: desktop computers, notebook computers, tablet computers, smart phones, or other intelligent communication devices that may implement network connections are not limited herein.
The device simulation end 300 may also be any device with communication and storage functions, such as: desktop computers, notebook computers, tablet computers, smart phones, USB dongles, or other intelligent communication devices that may implement network connections are not limited herein. The device simulation end 300 is used to simulate any device capable of interacting with the gateway 200, such as a smart phone, a smart light, a smart printer, a smart fax machine, a smart camera, a smart air conditioner, a smart television, a smart refrigerator, or a human body sensor configured with a communication module (e.g., ZIGBEE module, WIFI module, bluetooth communication module, etc.), a door and window sensor, a temperature and humidity sensor, a water sensor, a natural gas alarm, a smoke alarm, a wall switch, a wall socket, a wireless switch, a wireless wall-mounted switch, a magic cube controller, a curtain motor, etc.
The network connection is established between the server side 100 and the device simulation side 300, and in one embodiment, the network connection is established between the server side 100 and the device simulation side 300 through a wired connection, 2G/3G/4G/5G, wi-Fi, or the like. Through the network connection, the server side 100 interacts with the device simulation side 300, so that a user can control the device simulation side 300 to simulate corresponding devices by means of the server side 100.
The device simulation end 300 establishes a network connection with the gateway 200. In one embodiment, a network connection is established between the device simulation end 300 and the gateway 200 through 2G/3G/4G/5G, wi-Fi and the like. Through the network connection, the device simulation end 300 interacts with the gateway 200, and detects whether the gateway 200 is normal or not by querying response information generated by the gateway 200 in the interaction process.
The device simulation end 300 communicates with the gateway 200 through a communication module configured by itself. In one embodiment, the device simulation end 300 accesses the gateway 200 through a local area network, so as to be deployed on the gateway 200. The process of the device simulation end 300 accessing the gateway 200 through the local area network includes that the gateway 200 first establishes a local area network, and the device simulation end 300 accesses the local area network established by the gateway 200 by connecting the gateway 200. The local area network comprises: zigBee or bluetooth. Accordingly, the device simulation end 300 has a communication module (e.g., ZIGBEE module, wi-Fi module, bluetooth communication module, etc.) built therein, so as to have a function of implementing communication with the gateway 200 and the server end 100.
The gateway 200 may be connected to the router 500, and connected to a network through the router 500, where the router 500 may access the cloud server 400 through a wired or wireless communication connection manner. For example, the gateway 200 stores the acquired information in the cloud server 400.
Alternatively, as shown in fig. 1, the device simulation end 300, the router 500 and the gateway 200 are in the same lan, and a path established in the lan may be referred to as a lan path. When the device simulation end 300, the router 500 and the gateway 200 are in the same lan, the device simulation end 300 may interact with the gateway 200 through a lan path.
Fig. 2 is a block diagram of the hardware architecture of a gateway suitable for use in the implementation environment shown in fig. 1, according to an exemplary embodiment.
It should be noted that this gateway is only an example adapted to the present invention and should not be construed as providing any limitation to the scope of use of the present invention. Nor should the gateway be construed as necessarily relying on or necessarily having one or more of the components of the exemplary gateway 200 shown in fig. 2.
The hardware structure of the gateway 200 may vary greatly depending on the configuration or performance, as shown in fig. 2, the gateway 200 includes: a power supply 210, an interface 230, at least one memory 250, and at least one central processing unit (CPU, central Processing Units) 270.
Wherein the power supply 210 is configured to provide an operating voltage for each hardware device on the gateway 200.
The interface 230 includes at least one wired or wireless network interface 231, at least one serial-to-parallel interface 233, at least one input-output interface 235, and at least one USB interface 237, etc., for communicating with external devices.
The memory 250 may be a read-only memory, a random access memory, a magnetic disk, an optical disk, or the like as a carrier for storing resources, where the resources stored include an operating system 251, an application 253, data 255, or the like, and the storage manner may be transient storage or permanent storage. The operating system 251 is used for managing and controlling various hardware devices and application programs 253 on the gateway 200, so as to implement calculation and processing of the mass data 255 by the central processor 270, which may be Windows server, mac OS XTM, unixTM, linuxTM, freeBSDTM, freeRTOS, etc. The application 253 is a computer program that performs at least one specific task based on the operating system 251, and may include at least one module (not shown in fig. 2), each of which may respectively include a series of computer readable instructions for the gateway 200. The data 255 may be photographs, pictures, etc. stored on disk.
The central processor 270 may include one or more of the above processors and is configured to communicate with the memory 250 via a bus for computing and processing the mass data 255 in the memory 250.
As described in detail above, the gateway 200 to which the present invention is applied will perform the device linkage control method by the cpu 270 reading a series of computer readable instructions stored in the memory 250.
Furthermore, the present invention may also be implemented in hardware circuitry or in combination with software instructions, and thus, the implementation of the present invention is not limited to any specific hardware circuitry, software, or combination of hardware and software.
Exemplary method
An exemplary embodiment of the present disclosure provides a method for testing an intelligent device, and an example in which the method is applied to a device simulation end in an exemplary embodiment environment is described. Referring to fig. 3, the testing method of the smart device may include the steps of:
s301: and obtaining a simulation instruction of the terminal equipment.
A terminal device refers to one or more devices that are capable of interacting with an intelligent device when the intelligent device is running. For example, the terminal device may be a smart phone, a smart light, a smart printer, a smart air conditioner, a smart television, a smart refrigerator, etc., which is not limited in this embodiment.
The intelligent device refers to a device to be tested, and may specifically be a gateway or other intelligent devices, which is not limited in this embodiment. In this embodiment, the main purpose of testing the intelligent device is to test whether the intelligent device can interact with the terminal device normally. Therefore, the device simulation end can be set to simulate the interaction mode of the terminal device, and the test result of the intelligent device is determined by detecting various response information generated by the intelligent device and the device simulation end in the interaction process.
If the intelligent device is a gateway, the type of the terminal device which needs to be simulated by the device simulation end can be determined according to the running environment of the gateway. For example, if the gateway is operated in a home environment, the gateway can control the equipment simulation end to simulate home equipment such as intelligent lamps, intelligent air conditioners, intelligent televisions, intelligent refrigerators and the like; if the gateway runs in an office environment, the gateway can control the equipment simulation end to simulate office equipment such as an intelligent printer, an intelligent fax machine, an intelligent camera and the like. If the intelligent device is not a gateway, a person skilled in the art may determine the type of the terminal device that needs to be simulated by the device simulation end according to the actual operation situation of the intelligent device, and the embodiment is not limited. For example, if the intelligent device is an intelligent lamp, and the intelligent lamp is determined to interact with the smart phone, the gateway and the smart watch according to the actual running condition of the intelligent lamp, then the device simulation end can be controlled to simulate home devices such as the smart phone, the gateway and the smart watch.
The simulation instructions of the terminal device may be obtained from a server side in the environment of the exemplary embodiment. Specifically, the server side can generate a simulation instruction of the terminal device, and then send the simulation instruction of the terminal device to the device simulation side.
The simulation instruction of the terminal equipment comprises the type of the terminal equipment to be simulated by the equipment simulation end, message information to be sent and the like. The terminal equipment type is used for indicating the type of the terminal equipment which needs to be simulated by the equipment simulation end, such as an intelligent air conditioner with a certain brand type, an intelligent fan with a certain brand type and the like; when the message information is used for indicating the information content which needs to be sent to the tested intelligent equipment when the equipment simulation end simulates the terminal equipment, for example, if the intelligent equipment is a gateway and the equipment simulation end needs to simulate an intelligent air conditioner with a certain brand model, the message information can comprise network searching information, network access information, indoor temperature reporting information and the like.
The server side stores automation tools. The automation tool may be visual upper computer software, or may be a scripting language such as Python, shell, etc. running on the server side, which is not limited in this embodiment. The server side can generate and push a simulation instruction of the terminal equipment to the equipment simulation side based on the automation tool, and correspondingly process information returned by the equipment simulation side after receiving the simulation instruction of the terminal equipment. Based on the automation tool, the staff can set the type of the terminal equipment to be simulated, the message sending content and other information, and the server side automatically generates a simulation instruction of the terminal equipment according to the setting of the staff; the intelligent equipment to be tested and the running environment of the intelligent equipment can be set by the staff, and the server side automatically generates the simulation instruction of the terminal equipment according to the setting of the staff.
Furthermore, a set communication protocol is arranged between the server side and the equipment simulation side, and the communication protocol records a software communication protocol of interaction between the server side and the equipment simulation side. For different terminal devices to be simulated, the same protocol format is set in the embodiment, and for distinguishing the types of the different terminal devices to be simulated, different protocol contents can be set for the different types of the terminal devices. The server side generates a simulation instruction of the terminal equipment according to the communication protocol and the setting of the staff, and after the equipment simulation side receives the simulation instruction of the terminal equipment based on the protocol, the equipment simulation side can analyze specific terminal equipment and send specific message content, and meanwhile development and maintenance staff can quickly and accurately know the data format.
In this step, the simulation instruction of the terminal device is obtained.
S302: and according to the simulation instruction, the message sending mode of the simulation terminal equipment sends message information to the intelligent equipment so as to determine the test result of the intelligent equipment according to response information generated when the intelligent equipment responds to the message information.
After the simulation instruction of the terminal equipment is obtained, the message information can be transmitted in a simulated message transmission mode of the terminal equipment. In the embodiment of the application, specific firmware for simulating various terminal devices is burnt at the device simulation end. The equipment simulation end can identify the simulation instruction of the terminal equipment conforming to the communication protocol, and further determine the type of the terminal equipment to be simulated, the message information and other contents to be sent. Based on specific firmware burnt by the equipment simulation end, the equipment simulation end can simulate the type of terminal equipment and send specific message information in a message sending mode of the type of terminal equipment.
The device simulation end simulates the type of terminal device, and when transmitting specific message information in the message transmission mode of the type of terminal device, the device simulation end can encapsulate the message information content to be transmitted according to the communication protocol used by the type of terminal device, and then transmit the encapsulated message according to the message transmission mode of the type of terminal device.
After the intelligent device acquires the message information, processing logic related to the message information is executed inside the intelligent device, and response information is generated. The response information is information that records processing logic of the smart device, and in an alternative embodiment, log information of the smart device may be used as the response information. The test result of the intelligent device can be determined by detecting the response information generated when the intelligent device responds to the message information.
This process of detecting the response information may be referred to by those skilled in the art as a detection process in the prior art, for example, by a worker checking whether the response information meets expectations, and determining a test result of the smart device based on the check result. And the staff can set the response result meeting the expectations in advance and compare whether the response information generated when the intelligent equipment responds to the message information meets the response result. If the response information generated when the intelligent device responds to the message information accords with the response result, the response logic of the intelligent device accords with the expectation, and the intelligent device passes the test; if the response information generated when the intelligent device responds to the message information does not accord with the response result, the response logic of the intelligent device does not accord with the expectation, and the intelligent device fails the test.
In one specific example, as shown in fig. 4, the test device is a gateway.
The server side generates a simulation instruction of the terminal equipment according to a communication protocol set between the server side and the equipment simulation side and the setting of staff, and sends the simulation instruction of the terminal equipment to the equipment simulation side.
After receiving the simulation instruction of the terminal equipment, the equipment simulation end feeds back response information to the server end, and the response information indicates that the instruction is received. Alternatively, as shown in fig. 4, acknowledgement characters (Acknowledge character, ACK) may be selected as the response information fed back to the server side. At the equipment simulation end, analyzing the simulation instruction of the terminal equipment, determining the type of the terminal equipment and the message information to be simulated, generating the message information to be simulated according to the communication protocol of the type of the terminal equipment, simulating the message transmission mode of the type of the terminal equipment, and transmitting the message. In addition, before analyzing the simulation instruction of the terminal equipment, the integrity of the simulation instruction of the terminal equipment can be checked, and after the simulation instruction of the terminal equipment is confirmed to be correct, the analysis can be performed.
After receiving the message sent by the equipment simulation end, the gateway can also feed back response information to the equipment simulation end, so that the instruction is received.
For example, if the processing logic after the gateway receives the temperature message needs to be tested to be normal, the server side can send an instruction for simulating the temperature sensor device to report the temperature according to a communication protocol set between the server side and the device simulation side, the device simulation side firstly checks the integrity of data after receiving the instruction, and analyzes the instruction after confirming that the data is complete, and the analysis result is that the temperature sensor device needs to be simulated to report a piece of temperature report information. Then, the equipment simulation end simulates the temperature sensor to report a temperature message so as to achieve the purpose of testing whether the intelligent gateway acts normally after receiving the temperature sensor message.
In a specific example, as shown in fig. 5, in the case where the intelligent device is a gateway, processing logic of the gateway after receiving a message sent by the device simulation end is as follows:
after receiving the message sent by the equipment simulation end, the gateway analyzes the message sent by the equipment simulation end and determines the type of the message sent by the equipment simulation end. The main purpose of determining the type of the message sent by the equipment simulation end is to determine whether the message sent by the equipment simulation end is an automatic triggering type message.
The message of the automatic triggering type is a message containing control content, for example, the message content comprises information such as ' opening curtain ', ' closing air conditioner ', ' and the like; the non-automatic triggering type message is a message which does not contain control content, for example, the message content comprises' current indoor temperature is 22 ℃, and the like.
If the message sent by the equipment simulation end is not the message of the automatic triggering type, reporting the message to a cloud server for storing and recording; if the message sent by the equipment simulation end is determined to be an automatic triggering type message, the gateway is required to execute the automatic content contained in the message besides reporting the message to the cloud server for storing the record.
The staff can locally call the work logs from the cloud server and/or the gateway, and the test result of the gateway is determined by checking the work logs.
According to the intelligent device testing method, the simulation instruction of the terminal device is obtained, the message information is sent to the intelligent device according to the simulation instruction in a message sending mode of the terminal device, and therefore testing results of the intelligent device are determined according to response information generated when the intelligent device responds to the message information. That is, in the embodiment of the specification, the simulation terminal equipment interacts with the intelligent equipment, the response information in the interaction process of the intelligent equipment is recorded, and whether the coping logic of the intelligent equipment accords with the expectation is detected according to the response information, so that the purpose of testing the intelligent equipment is achieved. In addition, the real terminal equipment does not need to be set, so that the test cost is effectively saved.
In an exemplary embodiment of the present specification, the simulation instruction of the terminal device includes a simulation instruction of the first message information; the first message information is information actively reported and sent by the terminal equipment; the step of the above embodiment simulates a message sending manner of the terminal device to send message information to the intelligent device, and specifically includes the following steps:
and simulating a mode of sending the first message information by the terminal equipment, and sending the first message information to the intelligent equipment.
In the embodiment of the application, the simulation instruction of the terminal device includes a simulation instruction of the first message information. The simulation instruction of the first message information comprises the type of the terminal equipment to be simulated and the message content actively reported by the terminal equipment.
The first message information refers to information that the terminal device actively reports to send, that is, the first message information is information that the terminal device actively sends to the intelligent device, and is not information that is fed back to the intelligent device according to an instruction from the intelligent device. For example, if the intelligent device is a gateway, the terminal device is a temperature sensor device, and a certain temperature sensor device is set to report an indoor temperature to the gateway every 15 minutes, then the message information sent by the temperature sensor device when reporting the indoor temperature to the gateway according to the setting is the first message information.
When the message sending mode of the terminal equipment is simulated to send the message information to the intelligent equipment, the method can simulate the mode of the terminal equipment to send the first message information and send the first message information to the intelligent equipment. By simulating the terminal equipment to send the first message information, whether the processing logic of the intelligent equipment accords with the expectations when the intelligent equipment receives the information which is actively reported and sent by the terminal equipment can be detected.
In an exemplary embodiment of the present disclosure, the simulation instruction of the first message information is generated at the server side. That is, the server side generates a simulation instruction of the first message information according to a communication protocol with the equipment simulation side.
Specifically, the server side may generate a simulation instruction of the first message information according to the setting of the staff and a communication protocol set between the server side and the device simulation side, and send the simulation instruction of the first message information to the device simulation side. The equipment simulation end determines the type of the terminal equipment to be simulated and the message content to be transmitted by analyzing the simulation instruction of the first message information, and transmits the message by simulating the message transmission mode of the terminal equipment of the type.
In an exemplary embodiment of the present specification, the simulation instruction of the terminal device includes a simulation instruction of the second message information; the second message information is information fed back by the terminal equipment according to the control instruction; the step of the above embodiment simulates a message sending manner of the terminal device to send message information to the intelligent device, and specifically includes the following steps:
and simulating a mode of sending the second message information by the terminal equipment, and sending the second message information to the intelligent equipment.
In the embodiment of the present application, the simulation instruction of the terminal device includes a simulation instruction of the second message information. The simulation instruction of the second message information comprises the type of the terminal equipment to be simulated and the message content fed back by the terminal equipment according to the control instruction.
The second message information refers to information fed back by the terminal device according to the control instruction, that is, the second message information is not information actively sent to the intelligent device by the terminal device, but information fed back to the intelligent device according to an instruction from the intelligent device. If the intelligent device is a gateway, the terminal device is a temperature sensor device, and the user sends a query instruction of temperature to the temperature sensor through the gateway, and the temperature sensor feeds back indoor temperature information reported when the query instruction to the gateway is second message information.
When the message sending mode of the terminal equipment is simulated to send the message information to the intelligent equipment, the embodiment can simulate the mode of the terminal equipment to send the second message information and send the second message information to the intelligent equipment. By simulating the terminal equipment to send the second message information, whether the processing logic accords with the expectation or not can be detected when the intelligent equipment receives the information fed back by the terminal equipment according to the control instruction.
In an exemplary embodiment of the present disclosure, the step of the above embodiment simulates a manner that the terminal device sends the second message information, and sends the second message information to the intelligent device, and specifically includes the following steps:
simulating a mode of sending second message information by the terminal equipment, and sending the second message information to the intelligent equipment within a set time length after the control instruction is acquired; the set duration is the waiting duration of the second message information of the intelligent device.
In the interaction process of the intelligent device and the terminal device, if the intelligent device sends control information to the terminal device and needs to obtain content fed back by the terminal device, a certain waiting time is set, the intelligent device obtains the content fed back by the terminal device within the waiting time, obtains the content fed back by the terminal device after the waiting time is exceeded, or the intelligent device never obtains the content fed back by the terminal device, and the intelligent device executes different processing logics. For example, if the intelligent device acquires the content fed back by the terminal device within the waiting duration, the intelligent device may execute corresponding control logic according to the content fed back; if the intelligent device does not acquire the content fed back by the terminal device, the control information may be sent again or the control information may be fed back to the user, such as information of failure in sending.
If the intelligent device is a gateway, the terminal device is a temperature sensor device, and the user sends a temperature query instruction to the temperature sensor device through the gateway, the gateway waits for indoor temperature information fed back by the temperature sensor within a set waiting time under normal conditions, that is, waits for second message information. If the temperature sensor equipment successfully feeds back the second message information within the waiting time, the gateway can feed back the indoor temperature information to the user; if the temperature sensor device does not successfully feed back the second message information within the waiting time, the gateway can send a temperature query instruction to the temperature sensor device again, or feed back temperature query failure information to the user.
Based on this, in the embodiment of the present application, when testing whether the processing logic when the intelligent device receives the second message information accords with the expectation, it may be tested whether the processing logic when the intelligent device acquires the second message information within the waiting duration accords with the expectation.
Specifically, the intelligent device can be controlled to send a control instruction to the device simulation end, and after the device simulation end obtains the control instruction, the device simulation end simulates the mode that the terminal device sends the second message information and sends the second message information to the intelligent device within a set duration. The set duration is a waiting duration corresponding to a control instruction of the intelligent device. By detecting the response information of the intelligent device in the process, the purpose of testing whether the processing logic of the intelligent device acquires the second message information within the waiting time accords with the expectations can be achieved.
In an exemplary embodiment of the present disclosure, the step of the above embodiment simulates a manner that the terminal device sends the second message information, and sends the second message information to the intelligent device, and specifically includes the following steps:
simulating a mode of sending the second message information by the terminal equipment, and sending the second message information to the intelligent equipment after a set time length after the control instruction is acquired, or prohibiting feedback of the second message information to the intelligent equipment; the set duration is the waiting duration of the second message information of the intelligent device.
In the embodiment of the application, when testing whether the processing logic of the intelligent device when receiving the second message information accords with the expectation, whether the processing logic of the intelligent device when acquiring the second message information after waiting for the duration accords with the expectation or not and whether the processing logic of the intelligent device when not acquiring the second message information accords with the expectation or not can be tested.
Specifically, the intelligent device can be controlled to send a control instruction to the device simulation end, and the device simulation end simulates the mode that the terminal device sends the second message information after acquiring the control instruction, and sends the second message information to the intelligent device after the time length is set. The set duration is a waiting duration corresponding to a control instruction of the intelligent device. By detecting the response information of the intelligent device in the process, the purpose of testing whether the processing logic of the intelligent device acquires the second message information after waiting for the duration meets the expectations can be achieved.
If the intelligent device is a gateway, the terminal device is a temperature sensor device, and whether the processing logic of the gateway after the set time length obtains the second message information accords with the expectation needs to be tested, the gateway can be utilized to send a temperature query instruction to the device simulation end, the device simulation end sends the second message information to the intelligent device after the set time length, and based on response information of the gateway, whether the processing logic of the gateway after the waiting time length obtains the second message information accords with the expectation can be detected.
The intelligent equipment can be controlled to send a control instruction to the equipment simulation end, and the equipment simulation end does not send second message information to the intelligent equipment after acquiring the control instruction. By detecting the response information of the intelligent device in the process, the purpose of testing whether the processing logic of the intelligent device accords with the expectations when the second message information is not acquired can be achieved.
If the intelligent device is a gateway, the terminal device is a temperature sensor device, and it is required to test whether processing logic of the gateway when the second message information is not acquired meets expectations, the gateway may be used to send a temperature query instruction to the device simulation end, the device simulation end does not send the second message information to the intelligent device, and based on response information of the gateway in the process, it may be detected whether processing logic of the gateway when the second message information is acquired after waiting time meets expectations.
In an exemplary embodiment of the present disclosure, the simulation instruction of the second message information is generated at the server side. That is, the server generates a simulation instruction of the second message information according to the communication protocol and the control instruction between the server and the equipment simulation end, wherein the simulation instruction of the second message information comprises the second message information fed back according to the control instruction within a set time length after the control instruction is acquired, the second message information fed back after the set time length after the control instruction is acquired, or the second message information is forbidden to be fed back to the intelligent equipment.
The intelligent device can send a control instruction to the device simulation end, the device simulation end sends the control instruction to the server end, and after the server end obtains the control instruction, the server end determines whether to feed back second message information according to the control instruction within a set time length after obtaining the control instruction, or feed back the second message information after obtaining the set time length after obtaining the control instruction, or forbid to feed back the second message information to the intelligent device according to the test requirement.
If the processing logic when the intelligent device acquires the second message information within the waiting time is tested, the server side needs to feed back the second message information according to the control instruction within the set time after the control instruction is acquired, and the server side sends the generated second message information to the device simulation side so that the device simulation side can simulate sending the message information.
If the processing logic of the intelligent device when the second message information is acquired after the waiting time is tested, the second message information needs to be fed back according to the control instruction after the set time after the control instruction is acquired, and the server side sends the generated second message information to the device simulation side so that the device simulation side simulates to send the message information.
And if the processing logic of the intelligent device is tested when the second message information is not acquired, the second message information is forbidden to be fed back to the intelligent device, the server side can not generate the second message information, or the server side can generate the second message information, but the device simulation side is forbidden to simulate sending the second message information.
In one specific example, as shown in fig. 6, the test device is a gateway.
The gateway sends a control instruction to the equipment simulation end. Illustratively, the control instruction is a turn-on instruction.
After the equipment simulation end acquires the control instruction, response information can be fed back to the gateway. As shown in fig. 6, the ACK may be selected as the response information fed back to the gateway by the device emulation side. Then, the device simulation end can analyze the control instruction message, package the control instruction message according to a communication protocol between the device simulation end and the server end, and send the packaged instruction message to the server end.
After the server side obtains the instruction message, the instruction message is analyzed. As shown in fig. 6, if the current test content is processing logic when the test intelligent device acquires the second message information within the waiting time, then the second message information needs to be fed back according to the control instruction within a set time after the control instruction is acquired. The server side generates a simulation instruction of the second message information, and the message information content of the second message information in the simulation instruction of the second message information can be determined according to the test requirement, for example, the control instruction is a lamp-on instruction, so that the message information content of the second message information can be a state report after the lamp is turned on. The server side can send the simulation instruction of the second message information to the equipment simulation side.
The equipment simulation end analyzes the simulation instruction of the second message information based on the communication protocol between the server end and the equipment simulation end, determines the terminal equipment to be simulated and the message content to be transmitted, encapsulates the message content to be transmitted according to the communication protocol of the terminal equipment to be simulated, and achieves the purpose of simulating the real terminal equipment to transmit the message.
After the gateway acquires the second message information, the gateway can feed back response information to the equipment simulation end.
In an exemplary embodiment of the present disclosure, before the step of simulating the sending manner of the message by the terminal device to send the message information to the intelligent device in the above embodiment, the method specifically further includes the following steps:
simulating a mode of sending the first message information by the terminal equipment, and sending the first message information to the intelligent equipment so that the intelligent equipment outputs a control instruction according to the first message information; the first message information is information which is actively reported and sent by the terminal equipment.
Specifically, in the embodiment of the present application, when detecting whether processing logic of the intelligent device when receiving information sent by the terminal device in an active report accords with an expectation, a mode of sending first message information by the terminal device may be simulated, and the first message information may be sent to the intelligent device, so that the intelligent device may output a control instruction according to the first message information.
Based on the control instruction, a mode of sending second message information by the terminal equipment can be simulated, the second message information is sent to the intelligent equipment, and whether processing logic meets expectations or not when the intelligent equipment receives information fed back by the terminal equipment according to the control instruction is further detected.
By the arrangement, whether the processing logic of the intelligent device when the intelligent device receives the information which is actively reported and sent by the terminal device accords with the expectation or not and whether the processing logic of the intelligent device when the intelligent device receives the information which is actively reported and sent by the terminal device accords with the expectation or not can be detected simultaneously, and the detection efficiency is effectively improved.
In the above embodiment, if the response information of the intelligent device is detected to determine that the control logic of the intelligent device meets the expectations, the intelligent device is indicated to pass the test, and if the response information of the intelligent device is detected to determine that the control logic of the intelligent device does not meet the expectations, the intelligent device is indicated to fail the test.
Accordingly, an exemplary embodiment of the present disclosure provides a method for testing an intelligent device, and the method is described by taking a server side in an exemplary embodiment environment as an example. The testing method of the intelligent device can comprise the following steps:
generating a simulation instruction of the terminal equipment;
and sending the simulation instruction to the equipment simulation end so that the equipment simulation end can send message information to the intelligent equipment according to the simulation instruction in a message sending mode of the simulation terminal equipment.
In an exemplary embodiment of the present specification, the steps of the above embodiment generate a simulation instruction of a terminal device, and specifically include the following steps:
and generating a simulation instruction of the first message information according to a communication protocol between the simulation instruction and the equipment simulation end.
In an exemplary embodiment of the present specification, the steps of the above embodiment generate a simulation instruction of a terminal device, and specifically include the following steps:
Generating a simulation instruction of second message information according to a communication protocol and a control instruction between the simulation terminal and the equipment simulation terminal;
the simulation instruction of the second message information comprises the second message information fed back according to the control instruction within the set time length after the control instruction is acquired, the second message information fed back after the set time length after the control instruction is acquired, or the second message information is forbidden to be fed back to the intelligent equipment.
For specific limitations of this method, reference may be made to the above limitation of the testing method of the smart device, and no further description is given here.
Exemplary apparatus
The embodiment of the present disclosure further provides a testing device for an intelligent device, as shown in fig. 7, including:
the acquisition module is used for acquiring the simulation instruction of the terminal equipment;
the simulation module is used for simulating the message sending mode of the terminal equipment to send message information to the intelligent equipment according to the simulation instruction so as to determine the test result of the intelligent equipment according to response information generated when the intelligent equipment responds to the message information.
In an exemplary embodiment of the present disclosure, the simulation instruction of the terminal device of the above embodiment includes a simulation instruction of the first message information; the first message information is information actively reported and sent by the terminal equipment;
The simulation module of the above embodiment includes:
the first simulation unit is used for simulating the mode of sending the first message information by the terminal equipment and sending the first message information to the intelligent equipment.
In an exemplary embodiment of the present disclosure, the simulation instruction of the terminal device of the above embodiment includes a simulation instruction of the second message information; the second message information is information fed back by the terminal equipment according to the control instruction;
the simulation module of the above embodiment includes:
the second simulation unit is used for simulating a mode of sending second message information by the terminal equipment and sending the second message information to the intelligent equipment.
In an exemplary embodiment of the present disclosure, the second simulation unit simulates a manner of sending the second message information by the terminal device, and is specifically configured to:
simulating a mode of sending second message information by the terminal equipment, and sending the second message information to the intelligent equipment within a set time length after the control instruction is acquired; the set duration is the waiting duration of the second message information of the intelligent device.
In an exemplary embodiment of the present disclosure, the second simulation unit simulates a manner of sending the second message information by the terminal device, and is specifically configured to:
Simulating a mode of sending the second message information by the terminal equipment, and sending the second message information to the intelligent equipment after a set time length after the control instruction is acquired, or prohibiting feedback of the second message information to the intelligent equipment; the set duration is the waiting duration of the second message information of the intelligent device.
In an exemplary embodiment of the present specification, the test apparatus of the smart device of the target device further includes a transmitting module;
the message sending module is used for simulating a mode of sending the first message information by the terminal equipment, and sending the first message information to the intelligent equipment so that the intelligent equipment outputs a control instruction according to the first message information; the first message information is information which is actively reported and sent by the terminal equipment.
The embodiment of the specification also provides a testing device of the intelligent device of the target device, which comprises:
the generation module is used for generating a simulation instruction of the terminal equipment;
and the sending module is used for sending the simulation instruction to the equipment simulation end so that the equipment simulation end can send the message information to the intelligent equipment according to the simulation instruction in a message sending mode of the simulation terminal equipment.
In one exemplary embodiment of the present specification, the generating module includes:
The first generation unit is used for generating a simulation instruction of the first message information according to a communication protocol between the first generation unit and the equipment simulation end.
In one exemplary embodiment of the present specification, the generating module includes:
the second generating unit is used for generating a simulation instruction of second message information according to a communication protocol and a control instruction between the second generating unit and the equipment simulation end;
the simulation instruction of the second message information comprises the second message information fed back according to the control instruction within the set time length after the control instruction is acquired, the second message information fed back after the set time length after the control instruction is acquired, or the second message information is forbidden to be fed back to the intelligent equipment.
Exemplary System
The embodiment of the specification also provides a test system, which comprises: a server side and an equipment simulation side;
the server side is used for generating a simulation instruction of the terminal equipment; sending a simulation instruction to a device simulation end;
the equipment simulation end is used for acquiring a simulation instruction of the terminal equipment; and according to the simulation instruction, the message sending mode of the simulation terminal equipment sends message information to the intelligent equipment so as to determine the test result of the intelligent equipment according to response information generated when the intelligent equipment responds to the message information.
Exemplary electronic device
In one embodiment, an electronic device is provided, which may be a gateway or a cloud server, and an internal structure thereof may be as shown in fig. 8. The electronic device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic device includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the electronic device is used for storing data such as a positioning algorithm or a navigation algorithm. The network interface of the electronic device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method of testing a smart device.
It will be appreciated by those skilled in the art that the structure shown in fig. 8 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the electronic device to which the present application is applied, and that a particular electronic device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, an electronic device, which may be a gateway or a cloud server, is provided, and includes a memory and a processor, where the memory stores a computer program, and the processor executes the computer program to implement the steps of the testing method of the smart device shown in the embodiments of the foregoing exemplary method section.
Exemplary computer program product and computer readable storage Medium
In one embodiment, a computer program product or computer program is provided that includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of the testing method of the intelligent device in the above method embodiments.
The computer program product may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the device or as a stand-alone software package.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the steps of the testing method of the smart device shown in the above exemplary method portions.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present specification, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the present description, which is within the scope of the present description. Accordingly, the protection scope of the patent should be determined by the appended claims.

Claims (14)

1. The testing method of the intelligent device is characterized by comprising the following steps of:
acquiring a simulation instruction of terminal equipment;
and simulating a message sending mode of the terminal equipment to send message information to the intelligent equipment according to the simulation instruction, so as to determine a test result of the intelligent equipment according to response information generated when the intelligent equipment responds to the message information.
2. The method of claim 1, wherein the simulation instructions of the terminal device include simulation instructions of the first message information; the first message information is information which is actively reported and sent by the terminal equipment;
the simulating the message sending mode of the terminal equipment to send message information to the intelligent equipment comprises the following steps:
and simulating the mode of sending the first message information by the terminal equipment, and sending the first message information to the intelligent equipment.
3. The method of claim 1, wherein the simulation instructions of the terminal device include simulation instructions of the second message information; the second message information is information fed back by the terminal equipment according to a control instruction;
the simulating the message sending mode of the terminal equipment to send message information to the intelligent equipment comprises the following steps:
and simulating the mode of sending the second message information by the terminal equipment, and sending the second message information to the intelligent equipment.
4. A method according to claim 3, wherein said simulating the manner in which the terminal device sends the second message information to the intelligent device comprises:
Simulating the mode of the terminal equipment for sending the second message information, and sending the second message information to the intelligent equipment within a set time length after the control instruction is acquired; the set time length is the waiting time length of the second message information of the intelligent equipment.
5. A method according to claim 3, wherein said simulating the manner in which the terminal device sends the second message information to the intelligent device comprises:
simulating the mode of sending the second message information by the terminal equipment, and sending the second message information to the intelligent equipment after the set time length after the control instruction is acquired, or prohibiting the feedback of the second message information to the intelligent equipment; the set time length is the waiting time length of the second message information of the intelligent equipment.
6. The method of claim 3, wherein before the simulating the messaging mode of the terminal device sends the message information to the intelligent device, further comprises:
simulating a mode of sending first message information by the terminal equipment, and sending the first message information to the intelligent equipment so that the intelligent equipment outputs the control instruction according to the first message information; the first message information is information which is actively reported and sent by the terminal equipment.
7. The testing method of the intelligent device is characterized by comprising the following steps of:
generating a simulation instruction of the terminal equipment;
and sending the simulation instruction to a device simulation end, so that the device simulation end simulates a message sending mode of the terminal device to send message information to the intelligent device according to the simulation instruction.
8. The method of claim 7, wherein the simulation instructions of the terminal device include simulation instructions of the first message information; the first message information is information which is actively reported and sent by the terminal equipment;
the generating the simulation instruction of the terminal equipment comprises the following steps:
and generating a simulation instruction of the first message information according to a communication protocol between the simulation end and the equipment simulation end.
9. The method of claim 7, wherein the simulation instructions of the terminal device include simulation instructions of the second message information; the second message information is information fed back by the terminal equipment according to a control instruction;
the generating the simulation instruction of the terminal equipment comprises the following steps:
generating a simulation instruction of the second message information according to a communication protocol between the simulation end of the equipment and the control instruction;
The simulation instruction of the second message information comprises the second message information fed back according to the control instruction within the set time length after the control instruction is acquired, the second message information fed back after the set time length after the control instruction is acquired, or the second message information is forbidden to be fed back to the intelligent equipment.
10. The utility model provides a testing arrangement of smart machine which characterized in that includes:
the acquisition module is used for acquiring the simulation instruction of the terminal equipment;
and the simulation module is used for simulating a message sending mode of the terminal equipment to send message information to the intelligent equipment according to the simulation instruction so as to determine a test result of the intelligent equipment according to response information generated when the intelligent equipment responds to the message information.
11. The utility model provides a testing arrangement of smart machine which characterized in that includes:
the generation module is used for generating a simulation instruction of the terminal equipment;
and the sending module is used for sending the simulation instruction to the equipment simulation end so that the equipment simulation end can simulate the message sending mode of the terminal equipment to send message information to the intelligent equipment according to the simulation instruction.
12. A test system, comprising: a server side and an equipment simulation side;
The server side is used for generating a simulation instruction of the terminal equipment; the simulation instruction is sent to a device simulation end;
the equipment simulation end is used for acquiring a simulation instruction of the terminal equipment; and simulating a message sending mode of the terminal equipment to send message information to the intelligent equipment according to the simulation instruction, so as to determine a test result of the intelligent equipment according to response information generated when the intelligent equipment responds to the message information.
13. An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 9 when the computer program is executed.
14. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 9.
CN202310172033.3A 2023-02-21 2023-02-21 Intelligent device testing method and device, electronic device and testing system Pending CN116248567A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310172033.3A CN116248567A (en) 2023-02-21 2023-02-21 Intelligent device testing method and device, electronic device and testing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310172033.3A CN116248567A (en) 2023-02-21 2023-02-21 Intelligent device testing method and device, electronic device and testing system

Publications (1)

Publication Number Publication Date
CN116248567A true CN116248567A (en) 2023-06-09

Family

ID=86632706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310172033.3A Pending CN116248567A (en) 2023-02-21 2023-02-21 Intelligent device testing method and device, electronic device and testing system

Country Status (1)

Country Link
CN (1) CN116248567A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889600A (en) * 2005-12-10 2007-01-03 华为技术有限公司 Insertion gate testing device, testing system and testing method
US20170008162A1 (en) * 2015-05-26 2017-01-12 Kabushiki Kaisha Toshiba Electronic appliance control method and electronic appliance control device
CN108551415A (en) * 2018-06-20 2018-09-18 深圳市彬讯科技有限公司 Intelligent domestic system, intelligent gateway and its control method
CN109491258A (en) * 2018-11-08 2019-03-19 青岛大学 A kind of regression test system of smart home system
EP3591479A1 (en) * 2018-07-05 2020-01-08 Google LLC Dynamic inclusion and exclusion of smart-home devices
CN111611121A (en) * 2020-04-09 2020-09-01 浙江口碑网络技术有限公司 Hardware simulation test method, device and equipment
CN112286102A (en) * 2020-03-16 2021-01-29 陈力 Smart home permission control method, smart home system and server
CN114200911A (en) * 2021-06-29 2022-03-18 青岛经济技术开发区海尔热水器有限公司 Virtual backplane-based equipment testing method, device, equipment and storage medium
CN114265328A (en) * 2021-12-24 2022-04-01 珠海格力电器股份有限公司 Control method and device of intelligent household equipment
CN114780315A (en) * 2022-04-28 2022-07-22 中国银行股份有限公司 Hardware simulation test method and device
CN115250247A (en) * 2022-07-28 2022-10-28 重庆长安汽车股份有限公司 Discovery protocol testing method, system, electronic device and readable storage medium
CN115442266A (en) * 2022-08-31 2022-12-06 云知声智能科技股份有限公司 Gateway performance testing method and device, storage medium and electronic device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889600A (en) * 2005-12-10 2007-01-03 华为技术有限公司 Insertion gate testing device, testing system and testing method
US20170008162A1 (en) * 2015-05-26 2017-01-12 Kabushiki Kaisha Toshiba Electronic appliance control method and electronic appliance control device
CN108551415A (en) * 2018-06-20 2018-09-18 深圳市彬讯科技有限公司 Intelligent domestic system, intelligent gateway and its control method
EP3591479A1 (en) * 2018-07-05 2020-01-08 Google LLC Dynamic inclusion and exclusion of smart-home devices
CN109491258A (en) * 2018-11-08 2019-03-19 青岛大学 A kind of regression test system of smart home system
CN112286102A (en) * 2020-03-16 2021-01-29 陈力 Smart home permission control method, smart home system and server
CN111611121A (en) * 2020-04-09 2020-09-01 浙江口碑网络技术有限公司 Hardware simulation test method, device and equipment
CN114200911A (en) * 2021-06-29 2022-03-18 青岛经济技术开发区海尔热水器有限公司 Virtual backplane-based equipment testing method, device, equipment and storage medium
CN114265328A (en) * 2021-12-24 2022-04-01 珠海格力电器股份有限公司 Control method and device of intelligent household equipment
CN114780315A (en) * 2022-04-28 2022-07-22 中国银行股份有限公司 Hardware simulation test method and device
CN115250247A (en) * 2022-07-28 2022-10-28 重庆长安汽车股份有限公司 Discovery protocol testing method, system, electronic device and readable storage medium
CN115442266A (en) * 2022-08-31 2022-12-06 云知声智能科技股份有限公司 Gateway performance testing method and device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN107886952B (en) Method, device and system for controlling intelligent household electrical appliance through voice and electronic equipment
CN107870860B (en) Buried point verification system and method
US11594123B2 (en) Method for using a drone to test monitoring system sensors
US9984244B2 (en) Controller, information processing apparatus, and recording medium
CN111327497A (en) Intelligent terminal control method and device, electronic equipment and storage medium
CN111322721A (en) Air conditioner fault detection processing method and system, storage medium and air conditioner
CN108647131B (en) Output system of running log
CN109657475A (en) Code vulnerabilities check method, apparatus, equipment and storage medium
CN113672441A (en) Method and device for testing intelligent equipment
CN110647415B (en) Database detection method, device and equipment and computer readable storage medium
CN111723019A (en) Interface debugging method and system
CN116248567A (en) Intelligent device testing method and device, electronic device and testing system
CN112286821A (en) HTML5 page compatibility testing method, device, equipment and storage medium
CN107733082B (en) Method and system for collecting abnormal information of relay protection equipment device
CN111917692A (en) Fuzzy test method, device, equipment and computer readable storage medium
CN113691669B (en) Android mobile phone APP control vehicle full-process test analysis system and method
CN109038825A (en) Substation equipment monitoring method, device and substation equipment monitor
CN106093643A (en) The method of testing of electronic product stability
CN107360065B (en) Information pushing method and device
CN112581307A (en) Interactive method and system for realizing plug and play of intelligent sensor
CN113055201A (en) Electronic equipment control method and device, computer equipment and storage medium
CN112351090B (en) Log information transmission method and device based on intelligent large screen and storage medium
KR102444754B1 (en) Composite signal detection controller
CN208013937U (en) A kind of intelligent type computer detecting system
Wang et al. Design and Implementation of Intelligent Fire Alarm System Based on IoT

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