技术领域technical field
本申请涉及终端领域,尤其涉及一种虚拟设备的测试方法和装置。The present application relates to the terminal field, and in particular to a virtual device testing method and device.
背景技术Background technique
随着物联网(internet of things,IoT)技术的发展,越来越多的设备厂商希望实现自身产品的IoT智能化,但是IoT智能化需要比较高的技术门槛,要开发手机应用(application,APP),设备上要集成无线保真(wireless fidelity,WiFi)模组,还需要云侧服务功能,大部分设备厂商不具备独立实现IoT智能化的能力和条件,因此催生了IoT生态开放平台的发展。IoT生态开放平台是一种面向设备厂商开放的平台,可以为设备厂商实现自身产品的IoT智能化提供一站式服务,包括产品功能定义、手机App快速开发、设备wifi模组开发和设备集成调测等服务,帮助设备厂商实现产品IoT智能化商用落地。不过,当前IoT生态开放平台在对设备厂商的产品进行功能测试时,需要依赖设备真实的单板,使得测试工作受限于硬件制造,认证测试效率不高,耗时较长。With the development of Internet of Things (IoT) technology, more and more equipment manufacturers hope to realize the IoT intelligence of their products, but IoT intelligence requires a relatively high technical threshold, and it is necessary to develop mobile applications (Application, APP) , to integrate a wireless fidelity (WiFi) module on the device, and cloud-side service functions are also required. Most device manufacturers do not have the ability and conditions to independently realize IoT intelligence, which has given birth to the development of the IoT ecological open platform. The IoT Ecological Open Platform is an open platform for device manufacturers, which can provide one-stop services for device manufacturers to realize the IoT intelligence of their own products, including product function definition, mobile app rapid development, device wifi module development and device integration adjustment. Testing and other services to help equipment manufacturers realize the intelligent commercialization of IoT products. However, the current IoT ecological open platform needs to rely on the real single board of the device when performing functional tests on the products of device manufacturers, which makes the test work limited by hardware manufacturing, and the certification test is not efficient and takes a long time.
为了解决上述问题,一些IoT生态开放平台提供了虚拟设备调测的功能,设备厂商可以在生态开放平台的认证测试流程中,创建一个云侧的虚拟设备,根据所创建的虚拟设备的产品功能定义,将产品的功能配置信息导入到虚拟设备中。设备厂商可以通过App对虚拟设备进行远程模拟控制和设备状态下发更新等功能的模拟测试。In order to solve the above problems, some IoT ecological open platforms provide the function of virtual device commissioning. Device manufacturers can create a virtual device on the cloud side during the certification test process of the ecological open platform. According to the product function definition of the created virtual device, , to import the function configuration information of the product into the virtual device. Device manufacturers can use the App to perform simulated tests on functions such as remote simulated control and device status updates for virtual devices.
但是,这些虚拟调测功能都只覆盖了设备控制和状态下发的基本功能部分,无法调测设备的本地操作部分,比如,无法调测设备的配网注册流程以及设备的本地控制流程,产品的本地功能调测仍然依赖硬件,认证测试效率低。However, these virtual commissioning functions only cover the basic functions of device control and status distribution, and cannot commission the local operation part of the device. Local function commissioning still relies on hardware, and the efficiency of certification testing is low.
发明内容Contents of the invention
本申请实施例提供一种虚拟设备的测试方法和装置,能够解决当前业界的虚拟化认证测试技术中,无法对设备进行本地化相关功能模拟测试的问题。The embodiments of the present application provide a virtual device testing method and device, which can solve the problem that the localization-related function simulation test of the device cannot be performed in the current virtualization authentication testing technology in the industry.
第一方面,本申请实施例提供一种虚拟设备的测试方法,该方法包括:第一终端设备根据待测试的虚拟设备的配网模式设置该第一终端设备的配网模式;该第一终端设备基于该第一终端设备的配网模式接收第二终端设备发送的网关设备的配网信息。In a first aspect, an embodiment of the present application provides a method for testing a virtual device, the method including: the first terminal device sets the network configuration mode of the first terminal device according to the network configuration mode of the virtual device to be tested; the first terminal device The device receives the network configuration information of the gateway device sent by the second terminal device based on the network configuration mode of the first terminal device.
也就是说,第一终端设备(例如,智能音箱)可以模拟虚拟设备(例如,虚拟智能空调)在本地的相关功能,提供虚拟设备的本地调测能力,比如,提供虚拟设备的配网注册流程调测,能够解决当前业界的虚拟化认证测试技术中,无法对设备进行本地化相关功能模拟测试的问题。并且,由于第一终端设备可以模拟虚拟设备在本地的相关功能,无需依赖设备厂商生产的硬件,认证测试效率高。That is to say, the first terminal device (for example, a smart speaker) can simulate the relevant functions of the virtual device (for example, a virtual smart air conditioner) locally, and provide the local commissioning capability of the virtual device, for example, provide the distribution network registration process of the virtual device Commissioning can solve the problem that the current virtualization certification testing technology in the industry cannot perform localization-related functional simulation tests on devices. Moreover, since the first terminal device can simulate the relevant functions of the virtual device locally, it does not need to rely on the hardware produced by the device manufacturer, and the certification test efficiency is high.
在一种可能的实现方式中,该第一终端设备根据该第一终端设备的配网模式设置该第一终端设备的配网模式包括:该第一终端设备将该第一终端设备的配网标识设置为该虚拟设备的配网标识;若该虚拟设备的配网模式为混杂模式,该第一终端设备设置该第一终端设备的配网模式为混杂模式;若该虚拟设备的配网模式为接入点(access point,AP)模式,该第一终端设备设置该第一终端设备的配网模式为AP模式。In a possible implementation manner, the first terminal device setting the first terminal device's network configuration mode according to the first terminal device's network configuration mode includes: the first terminal device setting the first terminal device's network configuration mode to The identification is set to the network distribution identification of the virtual device; if the network distribution mode of the virtual device is a promiscuous mode, the first terminal device sets the network distribution mode of the first terminal device to a promiscuous mode; if the network distribution mode of the virtual device is In an access point (access point, AP) mode, the first terminal device sets the network configuration mode of the first terminal device to the AP mode.
在一种可能的实现方式中,该方法还包括:该第一终端设备基于短距网络接收该第二终端设备(用户侧)发送的第一本地控制指令,该第一本地控制指令用于控制该虚拟设备执行第一操作;该第一终端设备向云服务器转发该第一本地控制指令;或者,该第一终端设备基于短距网络接收该第二终端设备发送的第二本地控制指令,该第二本地控制指令用于控制第三终端设备执行第二操作;该第一终端设备向该第三终端设备转发该第二本地控制指令。In a possible implementation manner, the method further includes: the first terminal device receives a first local control instruction sent by the second terminal device (user side) based on the short-distance network, and the first local control instruction is used to control The virtual device executes the first operation; the first terminal device forwards the first local control instruction to the cloud server; or, the first terminal device receives the second local control instruction sent by the second terminal device based on the short-distance network, the The second local control instruction is used to control the third terminal device to perform the second operation; the first terminal device forwards the second local control instruction to the third terminal device.
现有技术中,用户侧直接向云服务器发送控制指令,无法测试虚拟设备能否基于本地短距网络安全收发控制指令。本申请实施例中,第一终端设备(智能音箱)可以模拟虚拟IoT设备基于本地短距网络安全收发本地控制指令(第一本地控制指令或第二本地控制指令),能够解决当前业界的虚拟化认证测试技术中,无法进行本地化相关功能模拟测试的问题。并且,由于第一终端设备可以模拟虚拟设备在本地的相关功能,无需依赖设备厂商生产的硬件,认证测试效率高。其中,本地控制指令是指手机与智能音箱处于同一网络环境(例如,同时处于家庭WiFi网络下)时,手机向智能音箱发送的控制指令。In the prior art, the user side directly sends control commands to the cloud server, and it is impossible to test whether the virtual device can safely send and receive control commands based on the local short-distance network. In the embodiment of this application, the first terminal device (smart speaker) can simulate a virtual IoT device to safely send and receive local control commands (first local control command or second local control command) based on the local short-distance network, which can solve the virtualization problem in the current industry. In the certification testing technology, it is impossible to carry out the simulation test of localization-related functions. Moreover, since the first terminal device can simulate the relevant functions of the virtual device locally, it does not need to rely on the hardware produced by the device manufacturer, and the certification test efficiency is high. Wherein, the local control instruction refers to the control instruction sent by the mobile phone to the smart speaker when the mobile phone and the smart speaker are in the same network environment (for example, under the home WiFi network at the same time).
在一种可能的实现方式中,该第一终端设备向云服务器转发该第一本地控制指令之后,该方法还包括:该第一终端设备接收该云服务器发送的状态变化通知消息,该状态变化通知消息用于指示该虚拟设备执行该第一本地控制指令之后的状态;该第一终端设备将该状态变化通知消息转发给该第二终端设备。In a possible implementation manner, after the first terminal device forwards the first local control instruction to the cloud server, the method further includes: the first terminal device receives a status change notification message sent by the cloud server, and the status change The notification message is used to indicate the state of the virtual device after executing the first local control instruction; the first terminal device forwards the state change notification message to the second terminal device.
第一终端设备接收该云服务器发送的状态变化通知消息(指示虚拟设备执行第一本地控制指令的状态)后,可以模拟虚拟IoT设备通过本地短距网络向第二终端设备(用户侧)发送状态变化通知消息,完善了虚拟IoT设备的本地化相关功能模拟测试。After the first terminal device receives the status change notification message sent by the cloud server (indicating the status of the virtual device executing the first local control command), it can simulate the virtual IoT device to send the status to the second terminal device (user side) through the local short-distance network The change notification message has improved the localization-related function simulation test of the virtual IoT device.
在一种可能的实现方式中,该方法还包括:若该状态变化通知消息关联该虚拟设备的本地iFTTT(If this then that)规则,该第一终端设备通过该短距网络将联动控制指令转发给相关本地设备,该联动控制指令和该相关本地设备是根据该本地iFTTT规则确定的。In a possible implementation, the method further includes: if the status change notification message is associated with a local iFTTT (If this then that) rule of the virtual device, the first terminal device forwards the linkage control instruction through the short-distance network For the relevant local device, the linkage control instruction and the relevant local device are determined according to the local iFTTT rule.
这样一来,可以通过第一终端设备(例如,智能音箱)模拟调测虚拟IoT设备的状态下发功能,例如,模拟虚拟IoT设备基于本地短距网络发送联动控制指令,在提供虚拟设备的配网注册流程调测的基础上,进一步完善了虚拟IoT设备的本地化相关功能模拟测试。In this way, the first terminal device (for example, a smart speaker) can be used to simulate the commissioning function of the status delivery function of the virtual IoT device. For example, the simulated virtual IoT device sends a linkage control command based on the local short-distance network. On the basis of network registration process commissioning, the simulation test of localization-related functions of virtual IoT devices is further improved.
在一种可能的实现方式中,该短距网络包括WiFi、蓝牙(bluetooth)、ZigBee、设备到设备到设备(device to device,D2D)通信或近距离无线通讯(near fieldcommunication,NFC)中的至少一种。In a possible implementation manner, the short-range network includes at least one of WiFi, Bluetooth (bluetooth), ZigBee, device-to-device (device to device, D2D) communication, or near field communication (near fieldcommunication, NFC). A sort of.
第二方面,本申请实施例提供一种第一终端设备,包括:设置单元,用于根据待测试的虚拟设备的配网模式设置该第一终端设备的配网模式;接收单元,用于基于该第一终端设备的配网模式接收第二终端设备发送的网关设备的配网信息。In the second aspect, the embodiment of the present application provides a first terminal device, including: a setting unit, configured to set the network configuration mode of the first terminal device according to the network configuration mode of the virtual device to be tested; a receiving unit, configured to The network configuration mode of the first terminal device receives the network configuration information of the gateway device sent by the second terminal device.
在一种可能的实现方式中,该设置单元用于:将该第一终端设备的配网标识设置为该虚拟设备的配网标识;若该虚拟设备的配网模式为混杂模式,设置该第一终端设备的配网模式为混杂模式;若该虚拟设备的配网模式为AP模式,设置该第一终端设备的配网模式为AP模式。In a possible implementation manner, the setting unit is configured to: set the network distribution identifier of the first terminal device as the network distribution identifier of the virtual device; if the network distribution mode of the virtual device is a promiscuous mode, set the second The network distribution mode of a terminal device is promiscuous mode; if the network distribution mode of the virtual device is AP mode, set the network distribution mode of the first terminal device to AP mode.
在一种可能的实现方式中,该接收单元还用于:基于短距网络接收该第二终端设备发送的第一本地控制指令,该第一本地控制指令用于控制该虚拟设备执行第一操作;还包括发送单元,用于向云服务器转发该第一本地控制指令;或者,基于短距网络接收该第二终端设备发送的第二本地控制指令,该第二本地控制指令用于控制第三终端设备执行第二操作;该发送单元,用于向该第三终端设备转发该第二本地控制指令。In a possible implementation manner, the receiving unit is further configured to: receive a first local control instruction sent by the second terminal device based on the short-distance network, where the first local control instruction is used to control the virtual device to perform the first operation ; also includes a sending unit, configured to forward the first local control instruction to the cloud server; or, receive the second local control instruction sent by the second terminal device based on the short-distance network, and the second local control instruction is used to control the third The terminal device performs a second operation; the sending unit is configured to forward the second local control instruction to the third terminal device.
在一种可能的实现方式中,该接收单元还用于:接收该云服务器发送的状态变化通知消息,该状态变化通知消息用于指示该虚拟设备执行该第一本地控制指令之后的状态;该发送单元,还用于将该状态变化通知消息转发给该第二终端设备。In a possible implementation manner, the receiving unit is further configured to: receive a state change notification message sent by the cloud server, where the state change notification message is used to indicate the state of the virtual device after executing the first local control instruction; the The sending unit is further configured to forward the state change notification message to the second terminal device.
在一种可能的实现方式中,该发送单元还用于:若该状态变化通知消息关联该虚拟设备的本地iFTTT规则,该第一终端设备通过该短距网络将联动控制指令转发给相关本地设备,该联动控制指令和该相关本地设备是根据该本地iFTTT规则确定的。In a possible implementation manner, the sending unit is further configured to: if the status change notification message is associated with the local iFTTT rule of the virtual device, the first terminal device forwards the linkage control instruction to the relevant local device through the short-distance network , the linkage control instruction and the relevant local device are determined according to the local iFTTT rule.
在一种可能的实现方式中,该短距网络包括无线保真WiFi、蓝牙、ZigBee、设备到设备D2D通信或近距离无线通讯NFC中的至少一种。In a possible implementation manner, the short-range network includes at least one of Wi-Fi, Bluetooth, ZigBee, device-to-device D2D communication, or NFC.
第三方面,本申请实施例提供一种虚拟设备的测试系统,该虚拟设备的测试系统包括:第一终端设备,用于根据待测试的虚拟设备的配网模式设置该第一终端设备的配网模式;第二终端设备,用于向第一终端设备发送网关设备的配网信息;该第一终端设备基于该第一终端设备的配网模式接收第二终端设备发送的网关设备的配网信息。In a third aspect, an embodiment of the present application provides a virtual device test system, the virtual device test system includes: a first terminal device, configured to set the configuration of the first terminal device according to the network configuration mode of the virtual device to be tested; network mode; the second terminal device is used to send the network distribution information of the gateway device to the first terminal device; the first terminal device receives the network distribution of the gateway device sent by the second terminal device based on the network distribution mode of the first terminal device information.
在一种可能的实现方式中,该虚拟设备的测试系统还包括云服务器;该云服务器用于从该第一终端设备接收第一本地控制指令;该云服务器向该第一终端设备发送状态变化通知消息,该状态变化通知消息用于指示该虚拟设备执行该第一本地控制指令之后的状态。In a possible implementation, the virtual device testing system further includes a cloud server; the cloud server is used to receive the first local control instruction from the first terminal device; the cloud server sends the state change to the first terminal device A notification message, where the state change notification message is used to indicate the state of the virtual device after executing the first local control instruction.
第四方面,本申请实施例还提供了一种装置,该装置可以是终端设备或芯片。该装置包括处理器,用于实现上述第一方面提供的任意一种虚拟设备的测试方法。该装置还可以包括存储器,用于存储程序指令和数据,存储器可以是集成在该装置内的存储器,或设置在该装置外的片外存储器。该存储器与该处理器耦合,该处理器可以调用并执行该存储器中存储的程序指令,用于实现上述第一方面提供的任意一种虚拟设备的测试方法。该装置还可以包括通信接口,该通信接口用于该装置与其它设备(例如,第二终端设备或云服务器)进行通信。In a fourth aspect, the embodiment of the present application further provides an apparatus, and the apparatus may be a terminal device or a chip. The apparatus includes a processor, configured to implement any one of the virtual device testing methods provided in the first aspect above. The device may also include a memory for storing program instructions and data, and the memory may be a memory integrated in the device, or an off-chip memory provided outside the device. The memory is coupled with the processor, and the processor can call and execute the program instructions stored in the memory, so as to implement any virtual device testing method provided in the first aspect above. The apparatus may further include a communication interface, which is used for the apparatus to communicate with other devices (for example, a second terminal device or a cloud server).
第五方面,本申请实施例提供一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行上述第一方面提供的虚拟设备的测试方法。In a fifth aspect, the embodiment of the present application provides a computer-readable storage medium, including instructions, which, when run on a computer, cause the computer to execute the virtual device testing method provided in the first aspect above.
第六方面,本申请实施例提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面提供的虚拟设备的测试方法。In a sixth aspect, the embodiment of the present application provides a computer program product containing instructions, which, when run on a computer, causes the computer to execute the virtual device testing method provided in the first aspect above.
第七方面,本申请实施例提供了一种芯片系统,该芯片系统包括处理器,还可以包括存储器,用于实现上述第一方面提供的虚拟设备的测试方法。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。In a seventh aspect, an embodiment of the present application provides a system-on-a-chip, which includes a processor and may further include a memory for implementing the method for testing a virtual device provided in the first aspect. The system-on-a-chip may consist of chips, or may include chips and other discrete devices.
附图说明Description of drawings
图1为本申请实施例提供的一种适用于虚拟设备的测试方法的架构示意图;FIG. 1 is a schematic structural diagram of a test method suitable for virtual devices provided by an embodiment of the present application;
图2为本申请实施例提供的又一种适用于虚拟设备的测试方法的架构示意图;FIG. 2 is a schematic structural diagram of another test method suitable for virtual devices provided by the embodiment of the present application;
图3为本申请实施例提供的一种一种适用于虚拟设备的测试方法的信号交互示意图;FIG. 3 is a schematic diagram of signal interaction of a test method suitable for virtual devices provided by an embodiment of the present application;
图4为本申请实施例提供的一种手机、智能音箱和云服务器之间的信号交互示意图;FIG. 4 is a schematic diagram of signal interaction between a mobile phone, a smart speaker, and a cloud server provided in an embodiment of the present application;
图5为本申请实施例提供的一种手机、生态开放平台、智能音箱和云服务器之间的信号交互示意图;FIG. 5 is a schematic diagram of signal interaction between a mobile phone, an ecological open platform, a smart speaker, and a cloud server provided in an embodiment of the present application;
图6为本申请实施例提供的又一种手机、智能音箱和云服务器之间的信号交互示意图;FIG. 6 is another schematic diagram of signal interaction between a mobile phone, a smart speaker, and a cloud server provided in an embodiment of the present application;
图7为本申请实施例提供的一种第一终端设备的结构示意图;FIG. 7 is a schematic structural diagram of a first terminal device provided in an embodiment of the present application;
图8为本申请实施例提供的又一种第一终端设备的结构示意图。FIG. 8 is a schematic structural diagram of another first terminal device provided in an embodiment of the present application.
具体实施方式Detailed ways
本申请实施例提供一种虚拟设备的测试方法,应用于IoT领域,可以对待测试的虚拟设备进行本地控制、功能控制和状态控制的模拟调测。The embodiment of the present application provides a virtual device testing method, which is applied in the IoT field, and can perform simulated commissioning of local control, function control, and state control of the virtual device to be tested.
如图1所示,为本申请实施例提供的一种适用于虚拟设备的测试方法的架构示意图,包括第一终端设备101(例如,智能音箱)、第二终端设备102(例如,手机)、云服务器103、互联网(Internet)服务器104和网关设备105(例如,路由器)。第一终端设备101和第二终端设备102之间可以通过Internet服务器104进行通信,即可以基于TCP/IP协议进行通信,或者,第一终端设备101和第二终端设备102之间可以通过网关设备105进行通信,即可以基于短距通信协议进行通信。第一终端设备101和云服务器103之间可以通过Internet服务器104进行通信,即可以基于TCP/IP协议进行通信。第二终端设备102和云服务器103之间可以通过Internet服务器104进行通信,即可以基于TCP/IP协议进行通信。As shown in FIG. 1 , it is a schematic diagram of the architecture of a test method applicable to virtual devices provided by the embodiment of the present application, including a first terminal device 101 (for example, a smart speaker), a second terminal device 102 (for example, a mobile phone), A cloud server 103, an Internet (Internet) server 104, and a gateway device 105 (for example, a router). The first terminal device 101 and the second terminal device 102 can communicate through the Internet server 104, that is, the communication can be based on the TCP/IP protocol, or the first terminal device 101 and the second terminal device 102 can be communicated through a gateway device 105 to communicate, that is, to communicate based on the short-distance communication protocol. Communication between the first terminal device 101 and the cloud server 103 can be performed through the Internet server 104, that is, the communication can be performed based on the TCP/IP protocol. The communication between the second terminal device 102 and the cloud server 103 can be performed through the Internet server 104, that is, the communication can be performed based on the TCP/IP protocol.
如图2所示,为本申请实施例提供的又一种适用于虚拟设备的测试方法的架构示意图。其中,第一终端设备上可以预置虚拟设备的模拟程序,打开该虚拟设备的模拟程序后,第一终端设备可以代理虚拟设备执行本地控制流程。其中,本地控制流程可以包括本地配网注册过程和通过本地的短距网络(例如,wifi)收发控制指令的过程。在配网过程中,虚拟设备的模拟程序控制第一终端设备101根据虚拟设备的配网模式设置自身的配网模式,以接收用户通过第二终端设备102上的测试APP(用于测试虚拟设备功能的APP)发送的配网信息。配网完成后,虚拟设备的模拟程序控制第一终端设备101基于短距通信协议接收用户通过第二终端设备102上的测试APP发送的控制指令,而后将该控制指令转发给云服务器103,云服务器103上的虚拟设备运行服务代理虚拟设备对该控制指令进行解析和处理,并向第一终端设备返回虚拟设备的状态变化,第一终端设备可以通过本地的短距网络将虚拟设备的状态变化转发给第二终端设备,第二终端设备的测试APP的控制面板可以显示虚拟设备的状态变化。As shown in FIG. 2 , it is a schematic structural diagram of another test method suitable for virtual devices provided by the embodiment of the present application. Wherein, a simulation program of the virtual device may be preset on the first terminal device, and after opening the simulation program of the virtual device, the first terminal device may execute a local control process on behalf of the virtual device. Wherein, the local control process may include a local distribution network registration process and a process of sending and receiving control instructions through a local short-distance network (for example, wifi). During the network distribution process, the simulation program of the virtual device controls the first terminal device 101 to set its own network distribution mode according to the network distribution mode of the virtual device, so as to receive the test APP (used to test the virtual device) on the second terminal device 102 by the user. The distribution network information sent by the function APP). After the network distribution is completed, the simulation program of the virtual device controls the first terminal device 101 to receive the control command sent by the user through the test APP on the second terminal device 102 based on the short-distance communication protocol, and then forwards the control command to the cloud server 103. The virtual device on the server 103 runs the service proxy virtual device to analyze and process the control instruction, and returns the state change of the virtual device to the first terminal device, and the first terminal device can change the state of the virtual device through the local short-distance network. Forwarding to the second terminal device, the control panel of the test APP of the second terminal device can display the status change of the virtual device.
其中,第一终端设备可以为具有短距通信(例如,wifi)功能的终端设备,例如且不限于家庭路由器/网关、智能电视、智能Pad和智能音箱等。待测试的虚拟设备可以是虚拟IoT设备,例如可以是智能空调、智能冰箱、智能洗衣机、智能扫地机器人或智能电视等等。Wherein, the first terminal device may be a terminal device with a short-distance communication (for example, wifi) function, such as and not limited to a home router/gateway, a smart TV, a smart Pad, and a smart speaker. The virtual device to be tested may be a virtual IoT device, such as a smart air conditioner, a smart refrigerator, a smart washing machine, a smart sweeping robot, or a smart TV.
近年来,随着IoT技术的不断发展,IoT领域的安全要求越来越高,IoT设备本地操作安全相关的流程也变得越来越复杂,现有的认证测试方案已经很难满足未来IoT产品认证测试的实际需要。In recent years, with the continuous development of IoT technology, the security requirements in the IoT field have become higher and higher, and the processes related to the local operation security of IoT devices have become more and more complicated. The existing certification test schemes have been difficult to meet the needs of future IoT products Practical needs for certification testing.
本申请实施例提供一种虚拟设备的测试方法和系统,可以模拟测试端到端(用户端到虚拟IoT设备,即第二终端设备到第一终端设备)的安全控制交互流程,从而支持用户端和虚拟IoT设备进行端到端的认证测试,用户端与虚拟IoT设备之间的逻辑链路可以通过TCP/IP协议或短距通信协议建立。本申请实施例不仅支持当前业界虚拟化认证测试提供的云侧功能模拟(云服务器模拟执行待测试的虚拟IoT设备的远程控制和设备状态下发更新等功能),而且提供本地功能模拟(第一终端设备模拟执行待测试的虚拟IoT设备的本地控制功能),可以完成虚拟IoT设备本地相关功能的认证测试,例如设备配网注册流程和设备本地安全控制等功能的认证测试,解决了当前业界的虚拟化认证测试技术中,无法进行本地化相关功能模拟测试的问题。The embodiment of the present application provides a virtual device testing method and system, which can simulate and test the end-to-end (user end to virtual IoT device, that is, the second terminal device to the first terminal device) security control interaction process, thereby supporting the user end Perform end-to-end certification tests with virtual IoT devices, and the logical link between the client and virtual IoT devices can be established through TCP/IP protocol or short-distance communication protocol. The embodiment of this application not only supports the cloud-side function simulation provided by the current virtualization certification test in the industry (the cloud server simulates and executes functions such as remote control of the virtual IoT device to be tested and sending and updating the device status), but also provides local function simulation (the first The terminal device simulates and executes the local control function of the virtual IoT device to be tested), and can complete the certification test of the local related functions of the virtual IoT device, such as the certification test of the device distribution network registration process and the local security control of the device, which solves the current industry problems. In the virtualization certification testing technology, it is impossible to carry out the simulation test of localization-related functions.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请的描述中,除非另有说明,“至少一个”是指一个或多个,“多个”是指两个或多于两个。另外,为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. Wherein, in the description of the present application, unless otherwise specified, "at least one" refers to one or more, and "multiple" refers to two or more than two. In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect. Those skilled in the art can understand that words such as "first" and "second" do not limit the number and execution order, and words such as "first" and "second" do not necessarily limit the difference.
为了便于理解,以下结合附图对本申请实施例提供的虚拟设备的测试方法进行具体介绍。For ease of understanding, the virtual device testing method provided by the embodiment of the present application will be specifically introduced below in conjunction with the accompanying drawings.
如图3所示,本申请实施例提供一种虚拟设备的测试方法,以虚拟设备为虚拟IoT设备,第一终端设备为智能音箱,第二终端设备为手机为例进行说明,包括:As shown in Figure 3, the embodiment of the present application provides a virtual device testing method, and the virtual device is a virtual IoT device, the first terminal device is a smart speaker, and the second terminal device is a mobile phone for example, including:
301、智能音箱接收手机发送的请求消息,该请求消息用于使智能音箱进入虚拟IoT设备状态。301. The smart speaker receives a request message sent by the mobile phone, and the request message is used to make the smart speaker enter a virtual IoT device state.
智能音箱中可以预置虚拟IoT设备的模拟程序,例如可以预置在智能音箱的ROM上,占用智能音箱的少量ROM资源。该模拟程序默认情况下不启动,不影响智能音箱的正常功能。在手机的测试App(用于测试虚拟IoT设备功能的APP)可以提供一个模拟测试开关,如图4所示,用户(例如,设备厂商的测试人员)打开此开关后,手机向智能音箱发送请求消息,请求智能音箱进入虚拟IoT设备状态。智能音箱接收手机发送的请求消息,启动预置的虚拟IoT设备的模拟程序,启动成功后,向云服务器中的虚拟设备运行服务发送用户帐号信息和虚拟IoT设备的信息,虚拟IoT设备的信息可以包括虚拟IoT设备的媒体访问控制(mediaaccess control,MAC)地址,产品序列号(serial number,SN)和局域网网络协议(internetprotocol,IP)等。虚拟设备运行服务根据用户帐号信息验证用户的身份是否合法,若合法,虚拟设备运行服务向智能音箱的虚拟IoT设备的模拟程序响应连接成功,虚拟IoT设备的模拟程序控制智能音箱向手机的测试App响应切换模拟测试模式成功。其中,用户账号信息是设备厂商在生态平台注册的,用户首次登陆手机的测试APP时,也需要向测试APP输入该用户账号信息,以便测试APP对用户的身份进行验证,验证成功后用户可以通过测试APP测试虚拟IoT设备的相应功能。The simulation program of the virtual IoT device can be preset in the smart speaker, for example, it can be preset on the ROM of the smart speaker, occupying a small amount of ROM resources of the smart speaker. The simulation program is not started by default and does not affect the normal function of the smart speaker. The test app of the mobile phone (app used to test the functions of virtual IoT devices) can provide a simulated test switch, as shown in Figure 4, after the user (for example, a tester of the device manufacturer) turns on this switch, the mobile phone sends a request to the smart speaker message, requesting the smart speaker to enter the virtual IoT device state. The smart speaker receives the request message sent by the mobile phone and starts the simulation program of the preset virtual IoT device. After the startup is successful, it sends the user account information and the information of the virtual IoT device to the virtual device running service in the cloud server. The information of the virtual IoT device can be Including the media access control (media access control, MAC) address, product serial number (serial number, SN) and LAN network protocol (internet protocol, IP) of the virtual IoT device. The virtual device operation service verifies whether the user's identity is legal according to the user account information. If it is legal, the virtual device operation service responds to the simulation program of the virtual IoT device of the smart speaker that the connection is successful, and the simulation program of the virtual IoT device controls the smart speaker to connect to the test App of the mobile phone. The response toggles the simulated test mode successfully. Among them, the user account information is registered by the device manufacturer on the ecological platform. When the user logs in to the test APP of the mobile phone for the first time, he also needs to enter the user account information into the test APP so that the test APP can verify the identity of the user. After the verification is successful, the user can pass The test APP tests the corresponding functions of the virtual IoT device.
本申请实施中,智能音箱进入虚拟IoT设备状态后,虚拟IoT设备的模拟程序可以控制智能音箱执行相应操作,例如收发控制指令或设置配网模式等。In the implementation of this application, after the smart speaker enters the virtual IoT device state, the simulation program of the virtual IoT device can control the smart speaker to perform corresponding operations, such as sending and receiving control commands or setting the distribution network mode.
302、用户登录IoT生态开放平台。302. The user logs in to the IoT ecological open platform.
如图5所示,用户登录IoT生态开放平台后,可以在平台上选择待测试的虚拟IoT设备的类型,待测试的虚拟IoT设备的类型例如可以是智能空调、智能电饭煲、智能窗帘、智能灯具等等。平台将用户选择的虚拟IoT设备关联到云服务器上的虚拟IoT设备运行服务,虚拟IoT设备运行服务可以向智能音箱发送该虚拟IoT设备的配置信息。其中,虚拟IoT设备的配置信息包括设备标识(device ID)和profile配置文件(产品功能定义的信息文件)。智能音箱可以将该虚拟IoT设备的配置信息推送给手机,手机的测试App根据虚拟IoT设备的配置信息显示虚拟IoT设备的图标和控制面板。例如,假设待测试的虚拟IoT设备的类型是智能空调,手机的测试App可以显示智能空调的图标和控制面板,智能空调的控制面板可以包括开关机、温度调节、定时、配网测试等功能按键。As shown in Figure 5, after the user logs in to the IoT ecological open platform, he can select the type of virtual IoT device to be tested on the platform. The type of virtual IoT device to be tested can be, for example, smart air conditioners, smart rice cookers, smart curtains, and smart lamps. and many more. The platform associates the virtual IoT device selected by the user with the virtual IoT device running service on the cloud server, and the virtual IoT device running service can send the configuration information of the virtual IoT device to the smart speaker. Wherein, the configuration information of the virtual IoT device includes a device ID (device ID) and a profile configuration file (an information file defining product functions). The smart speaker can push the configuration information of the virtual IoT device to the mobile phone, and the test app of the mobile phone displays the icon and control panel of the virtual IoT device according to the configuration information of the virtual IoT device. For example, assuming that the type of virtual IoT device to be tested is a smart air conditioner, the test app on the mobile phone can display the icon and control panel of the smart air conditioner, and the control panel of the smart air conditioner can include function buttons such as power on and off, temperature adjustment, timing, and network distribution test .
303、第一终端设备根据待测试的虚拟设备的配网模式设置第一终端设备的配网模式。303. The first terminal device sets the network distribution mode of the first terminal device according to the network distribution mode of the virtual device to be tested.
可以理解的是,设备接入短距网络前需要配网。短距网络包括WiFi、蓝牙、ZigBee、D2D通信或NFC中的至少一种。以短距网络为wifi网络为例,虚拟设备首次接入wifi网络时,需要设置配网模式,再根据配网模型获取路由器的配网信息,以便连接到wifi网络实现上网。It is understandable that network configuration is required before the device is connected to the short-distance network. The short-range network includes at least one of WiFi, Bluetooth, ZigBee, D2D communication or NFC. Taking the short-distance network as a wifi network as an example, when a virtual device connects to a wifi network for the first time, it needs to set the distribution network mode, and then obtain the router's distribution network information according to the distribution network model, so as to connect to the wifi network to achieve Internet access.
如图6所示,用户可以在测试App上启动配网模拟测试(例如,假设待测试的虚拟IoT设备的类型是智能空调,用户可以在智能空调的控制面板上点击启动配网测试按键),手机向智能音箱发送请求消息,请求智能音箱进入配网状态。需要说明的是,配网期间,智能音箱自身的功能可以处于禁用状态,智能音箱自身的wifi连接暂时断开。智能音箱可以从IoT虚拟设备运行服务获取虚拟IoT设备的配网标识和配网模式。配网标识可以是SSID(例如,可以是智能空调的SSID)。配网模式可以包括混杂模式和AP模式等。智能音箱将自身的配网标识设置为虚拟IoT设备的配网标识(例如,将自身的SSID替换为智能空调的SSID),再根据虚拟IoT设备的配网模式设置自身的配网模式,若虚拟设备的配网模式为混杂模式(即广播/组播/ProbRequest模式),智能音箱可以设置自身的配网模式为混杂模式;若虚拟设备的配网模式为AP模式,智能音箱可以设置自身的配网模式为AP模式。As shown in Figure 6, the user can start the distribution network simulation test on the test app (for example, assuming that the type of virtual IoT device to be tested is a smart air conditioner, the user can click the start distribution network test button on the control panel of the smart air conditioner), The mobile phone sends a request message to the smart speaker, requesting the smart speaker to enter the distribution network state. It should be noted that during the network distribution period, the functions of the smart speaker itself can be disabled, and the wifi connection of the smart speaker itself is temporarily disconnected. The smart speaker can obtain the distribution network identification and distribution mode of the virtual IoT device from the IoT virtual device running service. The distribution network identifier may be an SSID (for example, it may be an SSID of a smart air conditioner). The distribution network mode may include promiscuous mode and AP mode, etc. The smart speaker sets its own distribution network identification as the distribution network identification of the virtual IoT device (for example, replaces its own SSID with the SSID of the smart air conditioner), and then sets its own distribution network mode according to the distribution network mode of the virtual IoT device. The distribution network mode of the device is promiscuous mode (that is, broadcast/multicast/ProbRequest mode), and the smart speaker can set its own distribution network mode to promiscuous mode; if the distribution network mode of the virtual device is AP mode, the smart speaker can set its own configuration mode The network mode is AP mode.
304、第一终端设备基于第一终端设备的配网模式接收第二终端设备发送的网关设备的配网信息。304. The first terminal device receives the network configuration information of the gateway device sent by the second terminal device based on the network configuration mode of the first terminal device.
其中,路由器的配网信息可以包括路由器的SSID和密码(Password)。Wherein, the network configuration information of the router may include an SSID and a password (Password) of the router.
智能音箱可以广播虚拟IoT设备的配网标识,以便手机上的测试APP扫描发现待配网的虚拟IoT设备。测试APP可以通过混杂模式或AP模式与虚拟IoT设备进行配网。在混杂模式下,测试APP可以通过UDP广播或者组播方式向空中广播路由器的SSID和Password,虚拟IoT设备抓包得到路由器的SSID和Password。在SoftAP方式下,用户可以在测试APP中手动输入虚拟IoT设备的SSID或者从扫描热点列表中选取虚拟IoT设备的SSID,将路由器的SSID和Password直接传给虚拟IoT设备。其中,路由器的SSID和Password可以是预存在APP中的或者可以是用户手动输入的。The smart speaker can broadcast the distribution network identification of the virtual IoT device, so that the test APP on the mobile phone can scan and find the virtual IoT device to be distributed. The test APP can configure the network with the virtual IoT device through promiscuous mode or AP mode. In promiscuous mode, the test APP can broadcast the SSID and Password of the router to the air through UDP broadcast or multicast, and the virtual IoT device captures packets to obtain the SSID and Password of the router. In the SoftAP mode, the user can manually enter the SSID of the virtual IoT device in the test APP or select the SSID of the virtual IoT device from the scanning hotspot list, and directly pass the SSID and Password of the router to the virtual IoT device. Wherein, the SSID and Password of the router may be pre-stored in the APP or may be manually input by the user.
虚拟IoT设备获取路由器的SSID和Password后,可以通过路由器的SSID和Password连接到路由器(例如,路由器)从而接入wifi网络。路由器可以为虚拟IoT设备分配家庭网络地址(虚拟IP)。智能音箱可以根据虚拟IoT设备的家庭网络地址为虚拟IoT设备传输信息(例如,接收或转发指令)。同时,智能音箱可以切换回正常的功能状态,即可以根据智能音箱自身的网络地址(与虚拟IoT设备的家庭网络地址不同)收发指令以及执行指令(例如,播放音乐)。After the virtual IoT device obtains the SSID and Password of the router, it can connect to the router (for example, a router) through the SSID and Password of the router to access the wifi network. A router can assign a home network address (virtual IP) to a virtual IoT device. The smart speaker can transmit information (for example, receive or forward instructions) for the virtual IoT device according to the home network address of the virtual IoT device. At the same time, the smart speaker can switch back to the normal functional state, that is, it can send and receive instructions and execute instructions (for example, play music) according to the smart speaker's own network address (which is different from the home network address of the virtual IoT device).
若虚拟IoT设备处于wifi配网状态超过预设时长(例如10分钟)仍没有配网成功,智能音箱可以自动关闭虚拟IoT设备模拟程序,向手机反馈虚拟IoT设备的配网测试失败,智能音箱切换回正常的功能状态。进一步的,用户可以从虚拟设备运行服务上导出模拟测试日志来定位失败的原因,以便对虚拟IoT设备的配网功能进行改进。If the virtual IoT device is in the wifi distribution network state for more than the preset time (for example, 10 minutes) and still fails to configure the network successfully, the smart speaker can automatically close the virtual IoT device simulation program, feedback to the mobile phone that the distribution network test of the virtual IoT device fails, and the smart speaker switches Return to normal functional status. Furthermore, the user can export the simulation test log from the virtual device running service to locate the cause of the failure, so as to improve the network configuration function of the virtual IoT device.
另外,BT/Zigbee等通过网关代理上网,需要与网关配对,可以采用协议规定的配网方式,本申请不做赘述。In addition, BT/Zigbee, etc. need to be paired with the gateway to access the Internet through the gateway proxy, and the network distribution method stipulated in the agreement can be adopted, which will not be described in this application.
本申请实施例中,第一终端设备(智能音箱)可以模拟虚拟设备(例如,虚拟智能空调)在本地的相关功能,提供虚拟设备的本地调测能力,比如,提供虚拟设备的配网注册流程调测,能够解决当前业界的虚拟化认证测试技术中,无法对设备进行本地化相关功能模拟测试的问题。并且,由于第一终端设备可以模拟虚拟设备在本地的相关功能,无需依赖设备厂商生产的硬件,认证测试效率高。In the embodiment of this application, the first terminal device (smart speaker) can simulate the local related functions of the virtual device (for example, a virtual smart air conditioner), and provide the local commissioning capability of the virtual device, for example, provide the distribution network registration process of the virtual device Commissioning can solve the problem that the current virtualization certification testing technology in the industry cannot perform localization-related functional simulation tests on devices. Moreover, since the first terminal device can simulate the relevant functions of the virtual device locally, it does not need to rely on the hardware produced by the device manufacturer, and the certification test efficiency is high.
305、第一终端设备接收第二终端设备发送的控制指令。305. The first terminal device receives the control instruction sent by the second terminal device.
虚拟IoT设备完成配网测试后,用户可以通过操作虚拟IoT设备的控制面板,对虚拟IoT设备进行产品功能测试。例如,用户可以通过测试App的控制面板向智能音箱发送控制指令,智能音箱接收控制指令,由虚拟IoT设备的模拟程序根据控制指令的类型决策处理方式。其中,控制指令的类型可以包括本地控制指令和远程控制指令。若手机与智能音箱处于同一网络环境(例如,同时处于家庭WiFi网络下),手机向智能音箱发送本地控制指令。若手机与智能音箱处于不同网络环境(例如,手机离开家庭WiFi网络环境,处于5G网络环境下,智能音箱仍处于家庭WiFi网络环境),手机通过5G网络向智能音箱发送远程控制指令。After the virtual IoT device completes the network distribution test, the user can test the product function of the virtual IoT device by operating the control panel of the virtual IoT device. For example, the user can send control instructions to the smart speaker through the control panel of the test app, the smart speaker receives the control instruction, and the simulation program of the virtual IoT device decides the processing method according to the type of the control instruction. Wherein, the types of control instructions may include local control instructions and remote control instructions. If the mobile phone and the smart speaker are in the same network environment (for example, under the home WiFi network at the same time), the mobile phone sends a local control command to the smart speaker. If the mobile phone and the smart speaker are in different network environments (for example, the mobile phone leaves the home WiFi network environment and is in the 5G network environment, and the smart speaker is still in the home WiFi network environment), the mobile phone sends remote control commands to the smart speaker through the 5G network.
例如,第一终端设备可以基于短距网络接收第二终端设备发送的第一本地控制指令,第一本地控制指令用于控制虚拟IoT设备执行第一操作(例如,假设虚拟IoT设备的类型为智能空调,第一本地控制指令可以是将温度调整到26度);第一终端设备向云服务器转发第一本地控制指令,由云服务器上的虚拟IoT设备运行服务执行该第一本地控制指令。或者,第一终端设备基于短距网络接收第二终端设备发送的第二本地控制指令,第二本地控制指令用于控制第三终端设备执行第二操作(例如,第二本地控制指令用于控制扫地机器人打扫客厅);第一终端设备向第三终端设备转发第二本地控制指令。For example, the first terminal device may receive a first local control instruction sent by the second terminal device based on the short-distance network, and the first local control instruction is used to control the virtual IoT device to perform the first operation (for example, assuming that the type of the virtual IoT device is a smart Air conditioner, the first local control instruction may be to adjust the temperature to 26 degrees); the first terminal device forwards the first local control instruction to the cloud server, and the virtual IoT device running service on the cloud server executes the first local control instruction. Alternatively, the first terminal device receives a second local control instruction sent by the second terminal device based on the short-distance network, and the second local control instruction is used to control the third terminal device to perform the second operation (for example, the second local control instruction is used to control The sweeping robot cleans the living room); the first terminal device forwards the second local control instruction to the third terminal device.
这样一来,第一终端设备(智能音箱)可以模拟虚拟IoT设备在本地的相关功能,比如,模拟虚拟IoT设备基于本地短距网络安全收发控制指令,能够解决当前业界的虚拟化认证测试技术中,无法进行本地化相关功能模拟测试的问题。并且,由于第一终端设备可以模拟虚拟设备在本地的相关功能,无需依赖设备厂商生产的硬件,认证测试效率高。In this way, the first terminal device (smart speaker) can simulate the relevant local functions of the virtual IoT device. For example, the simulated virtual IoT device can send and receive control commands based on the local short-distance network security, which can solve the current virtualization certification testing technology in the industry. , the problem that the simulation test of localization-related functions cannot be carried out. Moreover, since the first terminal device can simulate the relevant functions of the virtual device locally, it does not need to rely on the hardware produced by the device manufacturer, and the certification test efficiency is high.
在另一种可能的设计中,智能音箱可以基于远程网络接收手机发送的远程控制指令,远程控制指令用于控制虚拟IoT设备执行第三操作。第一终端设备可以向云服务器转发该远程控制指令。或者,远程控制指令可以用于控制第三终端设备执行第四操作,第一终端设备向第三终端设备转发远程控制指令。这样,本申请实施例不仅支持虚拟设备的本地模拟调测,还可以支持远程模拟调测,即可以支持全场景的IoT产品功能调测。In another possible design, the smart speaker can receive remote control instructions sent by the mobile phone based on the remote network, and the remote control instructions are used to control the virtual IoT device to perform the third operation. The first terminal device may forward the remote control instruction to the cloud server. Alternatively, the remote control instruction may be used to control the third terminal device to perform the fourth operation, and the first terminal device forwards the remote control instruction to the third terminal device. In this way, the embodiment of the present application not only supports local simulation commissioning of virtual devices, but also supports remote simulation commissioning, that is, it can support IoT product function commissioning in all scenarios.
需要说明的是,云服务器接收第一终端设备发送的控制指令(控制指令可以包括本地控制指令和远程控制指令)后,可以代理虚拟IoT设备执行该控制指令(控制指令可以包括本地控制指令和远程控制指令),并维护虚拟IoT设备的状态信息(状态数据)。It should be noted that after the cloud server receives the control instruction sent by the first terminal device (the control instruction may include a local control instruction and a remote control instruction), it may execute the control instruction on behalf of the virtual IoT device (the control instruction may include a local control instruction and a remote control instruction). control instructions), and maintain the status information (status data) of the virtual IoT device.
示例性的,云服务器可以接收智能音箱转发的第一本地控制指令,云服务器上的虚拟IoT设备运行服务代理虚拟IoT设备执行该第一本地控制指令,云服务器向智能音箱发送状态变化通知消息,该状态变化通知消息用于指示虚拟IoT设备执行第一本地控制指令之后的状态,智能音箱接收云服务器发送的状态变化通知消息,并将该态变化通知消息转发给手机,手机可以在测试App的控制面板上显示虚拟IoT设备的状态变化。例如,假设虚拟IoT设备的类型为智能空调,第一本地控制指令可以用于控制智能空调将温度调整到26度,虚拟IoT设备运行服务代理智能空调执行第一本地控制指令之后,智能空调的状态可以是开启状态,温度为26度。手机可以在测试App的控制面板上显示智能空调为开启状态,温度为26度。Exemplarily, the cloud server may receive the first local control instruction forwarded by the smart speaker, the virtual IoT device running service on the cloud server acts as a proxy for the virtual IoT device to execute the first local control instruction, and the cloud server sends a status change notification message to the smart speaker, The state change notification message is used to indicate the state of the virtual IoT device after executing the first local control command. The smart speaker receives the state change notification message sent by the cloud server and forwards the state change notification message to the mobile phone. The mobile phone can test the status of the App. The status changes of virtual IoT devices are displayed on the control panel. For example, assuming that the type of virtual IoT device is a smart air conditioner, the first local control instruction can be used to control the smart air conditioner to adjust the temperature to 26 degrees. It can be open and the temperature is 26 degrees. The mobile phone can display on the control panel of the test app that the smart air conditioner is turned on and the temperature is 26 degrees.
云服务器上的虚拟IoT设备运行服务还可以维护虚拟IoT设备的定时器机制,即由云服务器上的虚拟设备运行服务模拟虚拟IoT设备的定时器,保存虚拟IoT设备的定时状态信息以及向虚拟IoT设备下发该定时状态信息。例如,假设虚拟IoT设备的类型为智能电饭煲,第一本地控制指令可以用于控制智能电饭煲煮饭30分钟,虚拟IoT设备运行服务接收到第一本地控制指令之后,可以向智能音箱返回智能电饭煲已开启的状态信息。智能音箱将该状态信息转发给手机,手机在测试App的控制面板上显示智能电饭煲已开启。30分钟后,虚拟IoT设备运行服务可以向智能音箱返回智能电饭煲煮饭完成(即已煮饭30分钟)的状态信息,智能音箱将该状态信息转发给手机,手机可以在测试App的控制面板上显示电饭煲的状态为煮饭完成。The virtual IoT device running service on the cloud server can also maintain the timer mechanism of the virtual IoT device, that is, the virtual device running service on the cloud server simulates the timer of the virtual IoT device, saves the timing status information of the virtual IoT device and sends the virtual IoT device The device sends the timing status information. For example, assuming that the type of virtual IoT device is a smart rice cooker, the first local control instruction can be used to control the smart rice cooker to cook rice for 30 minutes. After the virtual IoT device running service receives the first local control instruction, it can return to the smart speaker Open status information. The smart speaker forwards the status information to the mobile phone, and the mobile phone displays that the smart rice cooker is turned on on the control panel of the test App. After 30 minutes, the virtual IoT device running service can return to the smart speaker the status information that the smart rice cooker has finished cooking (that is, the rice has been cooked for 30 minutes), and the smart speaker forwards the status information to the mobile phone. Displays the status of the rice cooker as cooking is complete.
若手机接收到状态变化通知消息,确定虚拟IoT设备的本地控制功能正常。若手机未接收到智能音箱发送的状态变化通知消息,确定虚拟IoT设备的本地控制功能可能发生异常。用户可以从虚拟设备运行服务上导出模拟测试日志分析本地控制功能发生异常的原因,以便对虚拟IoT设备的本地控制功能进行改进。If the mobile phone receives the status change notification message, it is determined that the local control function of the virtual IoT device is normal. If the mobile phone does not receive the status change notification message sent by the smart speaker, it is determined that the local control function of the virtual IoT device may be abnormal. Users can export the simulation test log from the virtual device running service to analyze the cause of the abnormality of the local control function, so as to improve the local control function of the virtual IoT device.
进一步的,上述状态变化通知消息可以关联虚拟IoT设备的本地iFTTT规则,云服务器可以根据本地iFTTT规则确定联动控制指令和相关本地设备。其中,本地iFTTT规则就是根据预设规则,当虚拟IoT设备发生某些事件时,触发另一个设备(例如,本地的第三终端设备)进行某种操作,例如,当用户打开智能空调(即智能空调发生开启事件)时,也开启智能灯。云服务器可以在向智能音箱发送状态变化通知消息的同时,向智能音箱发送联动控制指令并向智能音箱指示执行该联动控制指令的相关本地设备。智能音箱可以通过短距网络(例如,wifi网络)将联动控制指令转发给相关本地设备。例如,将开灯的指令转发给智能灯。Further, the above state change notification message may be associated with the local iFTTT rule of the virtual IoT device, and the cloud server may determine the linkage control instruction and the relevant local device according to the local iFTTT rule. Among them, the local iFTTT rule is to trigger another device (for example, a local third terminal device) to perform certain operations according to preset rules when certain events occur on the virtual IoT device, for example, when the user turns on the smart air conditioner (that is, the smart When the air conditioner is turned on), the smart light is also turned on. The cloud server may send a linkage control instruction to the smart speaker while sending a state change notification message to the smart speaker, and indicate to the smart speaker a relevant local device that executes the linkage control instruction. The smart speaker can forward the linkage control command to the relevant local device through a short-distance network (for example, a wifi network). For example, the command to turn on the light is forwarded to the smart light.
这样一来,可以通过智能音箱模拟调测虚拟IoT设备的状态下发功能,例如,模拟虚拟IoT设备基于本地短距网络安全收发控制指令,以及根据iFTTT规则收发控制指令关联的联动控制指令,能够解决当前业界的虚拟化认证测试技术中,无法进行本地化相关功能模拟测试的问题。并且,由于第一终端设备可以模拟虚拟设备在本地的相关功能,无需依赖设备厂商生产的硬件,认证测试效率高。In this way, the status delivery function of the virtual IoT device can be simulated and commissioned through the smart speaker. For example, the simulated virtual IoT device can safely send and receive control commands based on the local short-distance network, and send and receive the linkage control commands associated with the control commands according to the iFTTT rules. Solve the problem that in the current virtualization certification testing technology in the industry, it is impossible to carry out localization-related functional simulation tests. Moreover, since the first terminal device can simulate the relevant functions of the virtual device locally, it does not need to rely on the hardware produced by the device manufacturer, and the certification test efficiency is high.
306、测试完成后,第一终端是设备退出虚拟IoT设备状态。306. After the test is completed, the first terminal device exits the virtual IoT device state.
用户完成对虚拟设备的功能测试后,通过测试App的控制面板关闭虚拟IoT设备模拟程序。智能音箱关闭虚拟IoT设备的模拟程序,退出虚拟IoT设备状态。云侧的IoT虚拟设备运行服务保存的虚拟设备运行数据在预设时间间隔(例如24小时)后自动清除。若用户在此周期内,再次启动此产品的模拟测试,则可以继续使用云侧保存的虚拟设备运行数据。After the user completes the functional test of the virtual device, close the virtual IoT device simulation program through the control panel of the test App. The smart speaker closes the virtual IoT device simulation program and exits the virtual IoT device state. The virtual device operation data saved by the IoT virtual device operation service on the cloud side is automatically cleared after a preset time interval (for example, 24 hours). If the user starts the simulation test of this product again during this period, he can continue to use the virtual device running data saved on the cloud side.
基于本申请实施例提供的方法,第一终端设备(智能音箱)可以模拟虚拟设备(例如,虚拟智能空调)在本地的相关功能,提供虚拟设备的本地调测能力,比如,提供虚拟设备的配网注册流程调测,能够解决当前业界的虚拟化认证测试技术中,无法对设备进行本地化相关功能模拟测试的问题。并且,由于第一终端设备可以模拟虚拟设备在本地的相关功能,无需依赖设备厂商生产的硬件,认证测试效率高。Based on the method provided in the embodiment of this application, the first terminal device (smart speaker) can simulate the local related functions of the virtual device (for example, a virtual smart air conditioner), and provide the local commissioning capability of the virtual device, for example, provide the virtual device configuration Network registration process commissioning can solve the problem that the current virtualization certification test technology in the industry cannot perform localization-related function simulation tests on devices. Moreover, since the first terminal device can simulate the relevant functions of the virtual device locally, it does not need to rely on the hardware produced by the device manufacturer, and the certification test efficiency is high.
进一步的,第一终端设备(智能音箱)还可以模拟虚拟IoT设备在本地的其他相关功能,比如,模拟虚拟IoT设备基于本地短距网络安全收发控制指令,以完善虚拟IoT设备的本地化相关功能模拟测试。Further, the first terminal device (smart speaker) can also simulate other related local functions of the virtual IoT device, for example, simulate the virtual IoT device to send and receive control commands based on the local short-distance network security, so as to improve the localization related functions of the virtual IoT device mock test.
上述本申请提供的实施例中,主要从第一终端设备的角度对本申请实施例提供的方法进行了介绍。为了实现上述本申请实施例提供的方法中的各功能,第一终端设备可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。In the foregoing embodiments provided in the present application, the method provided in the embodiments of the present application is mainly introduced from the perspective of the first terminal device. In order to realize the functions in the methods provided by the above embodiments of the present application, the first terminal device may include a hardware structure and/or a software module, and realize the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above-mentioned functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.
在采用对应各个功能划分各个功能模块的情况下,图7示出了上述实施例中所涉及的第一终端设备7的一种可能的结构示意图,第一终端设备包括:设置单元701和接收单元702。在本申请实施例中,设置单元701,用于根据待测试的虚拟设备的配网模式设置第一终端设备的配网模式;接收单元702,用于基于第一终端设备的配网模式接收第二终端设备发送的网关设备的配网信息。可选的,第一终端设备还可以包括发送单元703,用于向云服务器转发第一本地控制指令或第二本地控制指令。In the case of dividing each functional module corresponding to each function, Fig. 7 shows a possible structural diagram of the first terminal device 7 involved in the above embodiment, the first terminal device includes: a setting unit 701 and a receiving unit 702. In the embodiment of the present application, the setting unit 701 is used to set the network distribution mode of the first terminal device according to the network distribution mode of the virtual device to be tested; the receiving unit 702 is used to receive the first terminal device based on the network distribution mode of the first terminal device. The network configuration information of the gateway device sent by the terminal device. Optionally, the first terminal device may further include a sending unit 703, configured to forward the first local control instruction or the second local control instruction to the cloud server.
在图3所示的方法实施例中,设置单元701用于支持第一终端设备执行图3中的过程303。接收单元702用于支持第一终端设备执行图3中的过程301、304和305。In the method embodiment shown in FIG. 3 , the setting unit 701 is configured to support the first terminal device to execute the process 303 in FIG. 3 . The receiving unit 702 is configured to support the first terminal device to execute the processes 301, 304 and 305 in FIG. 3 .
在一种可能的设计中,虚拟设备的测试装置可以通过图8中的装置(结构或系统)来实现。In a possible design, the testing device of the virtual device can be realized by the device (structure or system) in FIG. 8 .
图8所示为本申请实施例提供的一种装置的示意图。装置800包括至少一个处理器801,通信总线802,存储器803以及至少一个通信接口804。FIG. 8 is a schematic diagram of a device provided by an embodiment of the present application. The device 800 includes at least one processor 801 , a communication bus 802 , a memory 803 and at least one communication interface 804 .
处理器801可以是中央处理器(central processing unit,CPU),通用处理器,数字信号处理器(digital signal processor,DSP),专用集成电路(application-specificintegrated circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。The processor 801 may be a central processing unit (central processing unit, CPU), a general purpose processor, a digital signal processor (digital signal processor, DSP), an application-specific integrated circuit (application-specific integrated circuit, ASIC), a field programmable gate array ( Field Programmable Gate Array, FPGA) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof.
通信总线802可包括一通路,在上述组件之间传送信息。Communication bus 802 may include a path for communicating information between the components described above.
通信接口804,使用任何收发器一类的装置,用于与其他设备或通信网络通信,如以太网,无线接入网(radio access network,RAN),无线局域网(wireless local areanetworks,WLAN)等。The communication interface 804 uses any device such as a transceiver to communicate with other devices or communication networks, such as Ethernet, radio access network (radio access network, RAN), wireless local area network (wireless local area networks, WLAN) and so on.
存储器803可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electricallyerasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过总线与处理器相连接。存储器也可以和处理器集成在一起。The memory 803 may be a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types that can store information and instructions The dynamic storage device can also be an electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage ( including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be stored by a computer Any other medium, but not limited to. The memory can exist independently and be connected to the processor through the bus. Memory can also be integrated with the processor.
其中,存储器803用于存储执行本申请方案的应用程序代码,并由处理器801来控制执行。处理器801用于执行存储器803中存储的应用程序代码,从而实现本专利方法中的功能。Wherein, the memory 803 is used to store the application program code for executing the solution of the present application, and the execution is controlled by the processor 801 . The processor 801 is used to execute the application program code stored in the memory 803, so as to realize the functions in the patented method.
在具体实现中,作为一种实施例,处理器801可以包括一个或多个CPU,例如图8中的CPU0和CPU1。In a specific implementation, as an embodiment, the processor 801 may include one or more CPUs, for example, CPU0 and CPU1 in FIG. 8 .
在具体实现中,作为一种实施例,装置800可以包括多个处理器,例如图8中的处理器801和处理器807。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In a specific implementation, as an embodiment, apparatus 800 may include multiple processors, for example, processor 801 and processor 807 in FIG. 8 . Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
在具体实现中,作为一种实施例,装置800还可以包括输出设备805和输入设备806。输出设备805和处理器801通信,可以以多种方式来显示信息。例如,输出设备805可以是液晶显示器(liquid crystal display,LCD),发光二级管(light emitting diode,LED)显示设备,阴极射线管(cathode ray tube,CRT)显示设备,或投影仪(projector)等。输入设备806和处理器801通信,可以以多种方式接受用户的输入。例如,输入设备806可以是鼠标、键盘、触摸屏设备或传感设备等。In a specific implementation, as an embodiment, the apparatus 800 may further include an output device 805 and an input device 806 . Output device 805 is in communication with processor 801 and can display information in a variety of ways. For example, the output device 805 may be a liquid crystal display (liquid crystal display, LCD), a light emitting diode (light emitting diode, LED) display device, a cathode ray tube (cathode ray tube, CRT) display device, or a projector (projector) Wait. The input device 806 communicates with the processor 801 and can accept user input in various ways. For example, the input device 806 may be a mouse, a keyboard, a touch screen device, or a sensory device, among others.
在具体实现中,装置800可以是台式机、便携式电脑、网络服务器、掌上电脑(personal digital assistant,PDA)、移动手机、平板电脑、无线终端设备、通信设备、嵌入式设备或有图8中类似结构的设备。本申请实施例不限定装置800的类型。In a specific implementation, the device 800 may be a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device, an embedded device, or a device similar to that shown in FIG. 8 Structural equipment. The embodiment of the present application does not limit the type of the device 800 .
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should be aware that, in the above one or more examples, the functions described in this application may be implemented by hardware, software, firmware or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
以上所述的具体实施方式,对本申请的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本申请的具体实施方式而已,并不用于限定本申请的保护范围,凡在本申请的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本申请的保护范围之内。The specific implementation manners described above have further described the purpose, technical solutions and beneficial effects of the application in detail. It should be understood that the above descriptions are only specific implementation modes of the application and are not intended to limit the scope of the application. Scope of protection: All modifications, equivalent replacements, improvements, etc. made on the basis of the technical solutions of this application shall be included within the scope of protection of this application.
本领域内的技术人员应明白,本申请实施例可提供为方法、系统、或计算机程序产品。因此,本申请实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the embodiment of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请实施例是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910704453.5ACN110601871B (en) | 2019-07-31 | 2019-07-31 | Method and device for testing virtual equipment |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910704453.5ACN110601871B (en) | 2019-07-31 | 2019-07-31 | Method and device for testing virtual equipment |
| Publication Number | Publication Date |
|---|---|
| CN110601871Atrue CN110601871A (en) | 2019-12-20 |
| CN110601871B CN110601871B (en) | 2022-04-05 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910704453.5AExpired - Fee RelatedCN110601871B (en) | 2019-07-31 | 2019-07-31 | Method and device for testing virtual equipment |
| Country | Link |
|---|---|
| CN (1) | CN110601871B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111506502A (en)* | 2020-04-13 | 2020-08-07 | 杭州涂鸦信息技术有限公司 | System and method for testing mobile terminal UI automation distribution network process |
| CN111787101A (en)* | 2020-06-30 | 2020-10-16 | 北京百度网讯科技有限公司 | Speaker control method executed by terminal and control method applied to speaker |
| CN111885679A (en)* | 2020-07-29 | 2020-11-03 | 宁波方太厨具有限公司 | Distribution network testing method and system of Internet of things equipment |
| CN112437463A (en)* | 2020-11-24 | 2021-03-02 | 展讯半导体(成都)有限公司 | Terminal Wi-Fi compatibility automatic test method, device, system, equipment and medium |
| CN112953776A (en)* | 2021-03-01 | 2021-06-11 | 北京小米松果电子有限公司 | Data verification method, device and storage medium |
| CN113434422A (en)* | 2021-06-30 | 2021-09-24 | 青岛海尔科技有限公司 | Virtual device debugging method and device and virtual device debugging system |
| CN113434421A (en)* | 2021-06-30 | 2021-09-24 | 青岛海尔科技有限公司 | Virtual equipment testing method and device |
| CN114125919A (en)* | 2021-11-16 | 2022-03-01 | 上海移远通信技术股份有限公司 | Method and apparatus for testing |
| CN114205847A (en)* | 2021-11-29 | 2022-03-18 | 上海庆科信息技术有限公司 | Method, device, storage medium, equipment and system for testing terminal equipment |
| CN114531344A (en)* | 2020-11-06 | 2022-05-24 | 深圳Tcl新技术有限公司 | Network distribution method, device, terminal and computer storage medium |
| CN114693313A (en)* | 2022-03-21 | 2022-07-01 | 北京环宇博亚科技有限公司 | Identification code-based warehousing equipment detection method and device, electronic equipment and medium |
| CN115361693A (en)* | 2022-08-02 | 2022-11-18 | 展讯半导体(成都)有限公司 | Method, device and electronic device for configuring parameters of simulated bluetooth device |
| CN115734273A (en)* | 2022-11-28 | 2023-03-03 | 哈尔滨工程大学 | Vehicle networking message forwarding test system, method and device based on V2V |
| WO2023142907A1 (en)* | 2022-01-26 | 2023-08-03 | 中兴通讯股份有限公司 | All-optical network service testing method and apparatus, computer device and readable medium |
| CN113572833B (en)* | 2021-07-21 | 2024-05-14 | 北京百度网讯科技有限公司 | A cloud phone maintenance method, device, electronic device and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105991423A (en)* | 2015-02-27 | 2016-10-05 | 北京海尔广科数字技术有限公司 | Gateway and method for calling device through gateway |
| CN106534270A (en)* | 2016-10-21 | 2017-03-22 | 上海庆科信息技术有限公司 | Simulation system for internet of things |
| CN107154859A (en)* | 2016-03-02 | 2017-09-12 | 美的集团股份有限公司 | Intelligent electric appliance distribution method of testing, system and control terminal |
| CN108134711A (en)* | 2017-11-29 | 2018-06-08 | 海尔优家智能科技(北京)有限公司 | Method, analogue simulation appliance system and the storage medium tested terminal APP |
| US20180181456A1 (en)* | 2016-12-26 | 2018-06-28 | Samsung Electronics Co., Ltd. | Internet of things framework and method of operating the same |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105991423A (en)* | 2015-02-27 | 2016-10-05 | 北京海尔广科数字技术有限公司 | Gateway and method for calling device through gateway |
| CN107154859A (en)* | 2016-03-02 | 2017-09-12 | 美的集团股份有限公司 | Intelligent electric appliance distribution method of testing, system and control terminal |
| CN106534270A (en)* | 2016-10-21 | 2017-03-22 | 上海庆科信息技术有限公司 | Simulation system for internet of things |
| US20180181456A1 (en)* | 2016-12-26 | 2018-06-28 | Samsung Electronics Co., Ltd. | Internet of things framework and method of operating the same |
| CN108134711A (en)* | 2017-11-29 | 2018-06-08 | 海尔优家智能科技(北京)有限公司 | Method, analogue simulation appliance system and the storage medium tested terminal APP |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111506502A (en)* | 2020-04-13 | 2020-08-07 | 杭州涂鸦信息技术有限公司 | System and method for testing mobile terminal UI automation distribution network process |
| CN111506502B (en)* | 2020-04-13 | 2023-05-12 | 杭州涂鸦信息技术有限公司 | Mobile terminal UI automatic distribution network flow test system and method |
| CN111787101A (en)* | 2020-06-30 | 2020-10-16 | 北京百度网讯科技有限公司 | Speaker control method executed by terminal and control method applied to speaker |
| CN111885679A (en)* | 2020-07-29 | 2020-11-03 | 宁波方太厨具有限公司 | Distribution network testing method and system of Internet of things equipment |
| CN114531344A (en)* | 2020-11-06 | 2022-05-24 | 深圳Tcl新技术有限公司 | Network distribution method, device, terminal and computer storage medium |
| CN114531344B (en)* | 2020-11-06 | 2023-08-01 | 深圳Tcl新技术有限公司 | Distribution network method, device, terminal and computer storage medium |
| CN112437463A (en)* | 2020-11-24 | 2021-03-02 | 展讯半导体(成都)有限公司 | Terminal Wi-Fi compatibility automatic test method, device, system, equipment and medium |
| CN112953776A (en)* | 2021-03-01 | 2021-06-11 | 北京小米松果电子有限公司 | Data verification method, device and storage medium |
| CN113434422A (en)* | 2021-06-30 | 2021-09-24 | 青岛海尔科技有限公司 | Virtual device debugging method and device and virtual device debugging system |
| CN113434422B (en)* | 2021-06-30 | 2024-01-23 | 青岛海尔科技有限公司 | Virtual device debugging method and device and virtual device debugging system |
| CN113434421B (en)* | 2021-06-30 | 2023-10-24 | 青岛海尔科技有限公司 | Virtual equipment testing method and device |
| CN113434421A (en)* | 2021-06-30 | 2021-09-24 | 青岛海尔科技有限公司 | Virtual equipment testing method and device |
| CN113572833B (en)* | 2021-07-21 | 2024-05-14 | 北京百度网讯科技有限公司 | A cloud phone maintenance method, device, electronic device and storage medium |
| CN114125919A (en)* | 2021-11-16 | 2022-03-01 | 上海移远通信技术股份有限公司 | Method and apparatus for testing |
| CN114205847B (en)* | 2021-11-29 | 2024-01-19 | 上海庆科信息技术有限公司 | Method, device, storage medium, equipment and system for testing terminal equipment |
| CN114205847A (en)* | 2021-11-29 | 2022-03-18 | 上海庆科信息技术有限公司 | Method, device, storage medium, equipment and system for testing terminal equipment |
| WO2023142907A1 (en)* | 2022-01-26 | 2023-08-03 | 中兴通讯股份有限公司 | All-optical network service testing method and apparatus, computer device and readable medium |
| CN114693313B (en)* | 2022-03-21 | 2022-09-20 | 北京环宇博亚科技有限公司 | Identification code-based warehousing equipment detection method and device, electronic equipment and medium |
| CN114693313A (en)* | 2022-03-21 | 2022-07-01 | 北京环宇博亚科技有限公司 | Identification code-based warehousing equipment detection method and device, electronic equipment and medium |
| CN115361693A (en)* | 2022-08-02 | 2022-11-18 | 展讯半导体(成都)有限公司 | Method, device and electronic device for configuring parameters of simulated bluetooth device |
| CN115361693B (en)* | 2022-08-02 | 2025-08-19 | 展讯半导体(成都)有限公司 | Method and device for configuring parameters of simulated Bluetooth equipment and electronic equipment |
| CN115734273A (en)* | 2022-11-28 | 2023-03-03 | 哈尔滨工程大学 | Vehicle networking message forwarding test system, method and device based on V2V |
| Publication number | Publication date |
|---|---|
| CN110601871B (en) | 2022-04-05 |
| Publication | Publication Date | Title |
|---|---|---|
| CN110601871B (en) | Method and device for testing virtual equipment | |
| KR101986922B1 (en) | Connectivity module for internet of things (iot) devices | |
| US10404832B2 (en) | Management of gateway device using virtual gateway device | |
| CN110691014B (en) | Selection of coordinator device for automation environment | |
| US10484512B2 (en) | Management of multi-radio gateway device using virtual gateway device | |
| Chan et al. | OpenNet: A simulator for software-defined wireless local area network | |
| JP2017503370A (en) | Method and apparatus for identifying physical IoT devices | |
| CN105207863B (en) | A method, cloud platform and home gateway for controlling heterogeneous smart home appliances | |
| JP7072661B2 (en) | Handling of parameters provided by release / suspend | |
| JP6622716B2 (en) | Method and apparatus for setting user preferences or device configuration | |
| CN105392181B (en) | Networking method, device and system of intelligent equipment | |
| WO2018010533A1 (en) | Device control system, method and apparatus, and gateway | |
| JP2017528023A (en) | Method and apparatus for incrementally sharing a greater amount of information between user devices | |
| JP2018166323A (en) | Network service configuration method and network management device | |
| CN112601211B (en) | Intelligent household appliance control equipment, mobile terminal and testing method | |
| WO2020034604A1 (en) | Wi-fi signal relay method and system based on smart home device, and computer device | |
| CN105636237A (en) | Network connection method, wireless device and system | |
| KR20160024386A (en) | A configuration connection device | |
| WO2021017208A1 (en) | Device binding method and apparatus, and electronic device | |
| US10489055B2 (en) | Z-wave controller shift in thermostats | |
| CN115356937A (en) | Equipment control method, device, storage medium and electronic device | |
| US11098914B2 (en) | System and method for operating a HVAC system by determining occupied state of a structure via IP address | |
| CN115190512B (en) | Router networking method, device, medium, electronic device and program product | |
| US20240007323A1 (en) | Method and device for multiple control of iot device on basis of c2c account linkage in wireless lan system in smart home environment | |
| WO2023045611A1 (en) | Device control method, apparatus and system, storage medium, and electronic apparatus |
| 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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20220405 | |
| CF01 | Termination of patent right due to non-payment of annual fee |