[go: up one dir, main page]

CN115442266A - Gateway performance testing method, device, storage medium and electronic device - Google Patents

Gateway performance testing method, device, storage medium and electronic device Download PDF

Info

Publication number
CN115442266A
CN115442266A CN202211058765.1A CN202211058765A CN115442266A CN 115442266 A CN115442266 A CN 115442266A CN 202211058765 A CN202211058765 A CN 202211058765A CN 115442266 A CN115442266 A CN 115442266A
Authority
CN
China
Prior art keywords
gateway
sub
control
simulated
internet
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
CN202211058765.1A
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.)
Unisound Intelligent Technology Co Ltd
Original Assignee
Unisound Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Unisound Intelligent Technology Co Ltd filed Critical Unisound Intelligent Technology Co Ltd
Priority to CN202211058765.1A priority Critical patent/CN115442266A/en
Publication of CN115442266A publication Critical patent/CN115442266A/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/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种网关性能测试方法、装置、存储介质及电子装置。其中,该网关性能测试方法包括:通过目标协议,模拟子设备连接网关,通过网关上报模拟子设备功能,其中,网关接入物联网平台;物联网平台通过模拟面板发送控制指令至网关,并通过网关发送控制指令至模拟子设备;通过目标协议从网关处获取模拟子设备属性状态,并记录上报控制耗时。本发明实施例中,可以通过协议来模拟子设备通过协议连接网关,模拟控制面板发送控制指令,模拟子设备接收控制指令来进行校验,高效稳定,最终通过统计各项耗时、各并发控制下网关控制子设备情况、长时间稳定性测试等来综合评估智能家居网关性能,进而解决了现有技术中,无法准确的进行网关测试的技术问题。

Figure 202211058765

The invention discloses a gateway performance testing method, device, storage medium and electronic device. Wherein, the gateway performance testing method includes: connecting the simulated sub-device to the gateway through the target protocol, and reporting the function of the simulated sub-device through the gateway, wherein the gateway is connected to the Internet of Things platform; the Internet of Things platform sends control commands to the gateway through the simulation panel, and passes The gateway sends control commands to the simulated sub-device; obtains the attribute status of the simulated sub-device from the gateway through the target protocol, and records and reports the control time-consuming. In the embodiment of the present invention, the sub-device can be simulated through the protocol to connect to the gateway through the protocol, the simulated control panel sends control commands, and the simulated sub-device receives the control commands for verification, which is efficient and stable, and finally through the statistics of time-consuming and concurrent control The performance of the smart home gateway is comprehensively evaluated by lowering the condition of the gateway to control the sub-equipment, long-term stability test, etc., and then solves the technical problem that the gateway test cannot be accurately performed in the prior art.

Figure 202211058765

Description

网关性能测试方法、装置、存储介质及电子装置Gateway performance testing method, device, storage medium and electronic device

技术领域technical field

本发明涉及计算机领域,具体而言,涉及一种网关性能测试方法、装置、存储介质及电子装置。The invention relates to the field of computers, in particular to a gateway performance testing method, device, storage medium and electronic device.

背景技术Background technique

目前验证智能家居网关,均采用从IOT平台或控制面板上发起控制操作,查看真实子设备是否按预期执行操作来进行校验,无法进行并发操作、耗时统计、稳定性测试等。At present, the smart home gateway is verified by initiating control operations from the IOT platform or the control panel to check whether the real sub-device performs operations as expected. Concurrent operations, time-consuming statistics, and stability tests cannot be performed.

针对上述的问题,目前尚未提出有效的解决方案。For the above problems, no effective solution has been proposed yet.

发明内容Contents of the invention

本发明实施例提供了一种网关性能测试方法、装置、存储介质及电子装置,以至少解决现有技术中,无法准确的进行网关测试的技术问题。Embodiments of the present invention provide a gateway performance testing method, device, storage medium and electronic device, so as to at least solve the technical problem in the prior art that gateway testing cannot be performed accurately.

根据本发明实施例的一个方面,提供了一种网关性能测试方法,包括:通过目标协议,模拟子设备连接网关,通过所述网关上报模拟子设备功能,其中,所述网关接入物联网平台;所述物联网平台通过模拟面板发送控制指令至所述网关,并通过所述网关发送所述控制指令至所述模拟子设备;通过所述目标协议从所述网关处获取模拟子设备属性状态,并记录上报控制耗时。According to an aspect of an embodiment of the present invention, a gateway performance testing method is provided, including: connecting the simulated sub-device to the gateway through the target protocol, and reporting the function of the simulated sub-device through the gateway, wherein the gateway is connected to the Internet of Things platform ; The IoT platform sends control instructions to the gateway through the simulation panel, and sends the control instructions to the simulated sub-device through the gateway; obtains the attribute status of the simulated sub-device from the gateway through the target protocol , and record the time-consuming reporting control.

可选的,通过所述目标协议从所述网关处获取模拟子设备属性状态,并记录上报控制耗时,包括:在所述模拟子设备接收所述控制指令并校验所述控制指令与预期一致的情况下,记录上报控制耗时。Optionally, obtaining the attribute status of the simulated sub-device from the gateway through the target protocol, and recording and reporting the time-consuming control, including: receiving the control instruction at the simulated sub-device and verifying that the control instruction is consistent with the expected In the case of consistency, it is time-consuming to record and report to control.

可选的,所述物联网平台通过模拟面板发送控制指令至所述网关,并通过所述网关发送所述控制指令至所述模拟子设备,包括:单位时间内所述物联网平台通过模拟面板发送多个控制指令至所述网关;或单位时间内所述物联网平台通过模拟面板持续发送开关或温度变化操控命令至所述网关;在预设时间内所述物联网平台通过模拟面板持续发送控制指令至所述网关。Optionally, the IoT platform sends the control command to the gateway through the analog panel, and sends the control command to the analog sub-device through the gateway, including: the IoT platform transmits the control command through the analog panel per unit time. Send multiple control commands to the gateway; or the IoT platform continues to send switch or temperature change control commands to the gateway through the analog panel within a unit time; the IoT platform continues to send through the analog panel within a preset time control commands to the gateway.

可选的,所述方法还包括:所述物联网平台根据所述控制耗时生成测试报告。Optionally, the method further includes: the Internet of Things platform generates a test report according to the time-consuming control.

在本发明实施例中,通过目标协议,模拟子设备连接网关,通过网关上报模拟子设备功能,其中,网关接入物联网平台;物联网平台通过模拟面板发送控制指令至网关,并通过网关发送控制指令至模拟子设备;通过目标协议从网关处获取模拟子设备属性状态,并记录上报控制耗时。本发明实施例中,可以通过协议来模拟子设备通过协议连接网关,模拟控制面板发送控制指令,模拟子设备接收控制指令来进行校验,高效稳定,最终通过统计各项耗时、各并发控制下网关控制子设备情况、长时间稳定性测试等来综合评估智能家居网关性能,进而解决了现有技术中,无法准确的进行网关测试的技术问题。In the embodiment of the present invention, the simulated sub-device is connected to the gateway through the target protocol, and the function of the simulated sub-device is reported through the gateway, wherein the gateway is connected to the Internet of Things platform; the Internet of Things platform sends control instructions to the gateway through the analog panel, and sends the control command through the gateway. Control instructions to the simulated sub-device; obtain the attribute status of the simulated sub-device from the gateway through the target protocol, and record and report the control time. In the embodiment of the present invention, the sub-device can be simulated through the protocol to connect to the gateway through the protocol, the simulated control panel sends control commands, and the simulated sub-device receives the control commands for verification, which is efficient and stable, and finally through the statistics of time-consuming and concurrent control The sub-device conditions of the lower gateway control, long-term stability tests, etc. are used to comprehensively evaluate the performance of the smart home gateway, thereby solving the technical problem that the gateway test cannot be accurately performed in the prior art.

附图说明Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:

图1是根据本发明实施例的一种可选的网关性能测试方法的移动终端的硬件结构框图;Fig. 1 is a hardware structural block diagram of a mobile terminal according to an optional gateway performance testing method according to an embodiment of the present invention;

图2是根据本发明实施例的一种可选的网关性能测试方法的流程图;Fig. 2 is a flow chart of an optional gateway performance testing method according to an embodiment of the present invention;

图3是根据本发明实施例的一种可选的智能家居网关性能压测的示意图。Fig. 3 is a schematic diagram of an optional smart home gateway performance stress test according to an embodiment of the present invention.

具体实施方式detailed description

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is an embodiment of a part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一序列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first" and "second" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.

本申请实施例所提供的网关性能测试方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图1是本发明实施例的一种网关性能测试方法的移动终端的硬件结构框图。如图1所示,移动终端10可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和用于存储数据的存储器104,可选地,上述移动终端还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述移动终端的结构造成限定。例如,移动终端10还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。The gateway performance testing method embodiments provided in the embodiments of the present application can be executed in mobile terminals, computer terminals or similar computing devices. Taking running on a mobile terminal as an example, FIG. 1 is a block diagram of a hardware structure of a mobile terminal in a gateway performance testing method according to an embodiment of the present invention. As shown in FIG. 1, the mobile terminal 10 may include one or more (only one is shown in FIG. 1) processors 102 (the processors 102 may include but not limited to processing devices such as microprocessor MCU or programmable logic device FPGA, etc. ) and a memory 104 for storing data. Optionally, the above-mentioned mobile terminal may also include a transmission device 106 and an input and output device 108 for communication functions. Those skilled in the art can understand that the structure shown in FIG. 1 is only for illustration, and it does not limit the structure of the above mobile terminal. For example, the mobile terminal 10 may also include more or fewer components than those shown in FIG. 1 , or have a different configuration than that shown in FIG. 1 .

存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本发明实施例中的网关性能测试方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the gateway performance testing method in the embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104 by running the computer program. Various functional applications and data processing are to realize the above-mentioned method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory that is remotely located relative to the processor 102, and these remote memories may be connected to the mobile terminal 10 through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

传输设备106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端10的通信供应商提供的无线网络。在一个实例中,传输设备106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输设备106可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。Transmission device 106 is used to receive or transmit data via a network. The specific example of the above-mentioned network may include a wireless network provided by the communication provider of the mobile terminal 10 . In one example, the transmission device 106 includes a network interface controller (NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet. In an example, the transmission device 106 may be a radio frequency (Radio Frequency, RF for short) module, which is used to communicate with the Internet in a wireless manner.

在本实施例中还提供了一种网关性能测试方法,图2是根据本发明实施例的网关性能测试方法的流程图,如图2所示,该网关性能测试方法流程包括如下步骤:In this embodiment, a gateway performance testing method is also provided. FIG. 2 is a flowchart of a gateway performance testing method according to an embodiment of the present invention. As shown in FIG. 2 , the gateway performance testing method flow includes the following steps:

步骤S202,通过目标协议,模拟子设备连接网关,通过所述网关上报模拟子设备功能,其中,所述网关接入物联网平台。Step S202, connect the simulated sub-device to the gateway through the target protocol, and report the function of the simulated sub-device through the gateway, wherein the gateway is connected to the Internet of Things platform.

步骤S204,所述物联网平台通过模拟面板发送控制指令至所述网关,并通过所述网关发送所述控制指令至所述模拟子设备。Step S204, the Internet of Things platform sends a control command to the gateway through the simulation panel, and sends the control command to the simulated sub-device through the gateway.

步骤S206,通过所述目标协议从所述网关处获取模拟子设备属性状态,并记录上报控制耗时。Step S206, obtaining the attribute status of the simulated sub-equipment from the gateway through the target protocol, and recording and reporting the control time consumption.

在本实施例中,上述模拟子设备可以包括一个或多个。上述物联网平台可以包括但不限于智能家居的物联网平台,上述网关为智能家居网关。In this embodiment, the above-mentioned analog sub-devices may include one or more. The aforementioned IoT platform may include but not limited to a smart home IoT platform, and the aforementioned gateway is a smart home gateway.

其中,上述网关性能测试方法的执行主体可以包括但不限于由智能设备、服务器、终端设备等。Wherein, the execution subject of the above-mentioned gateway performance testing method may include, but not limited to, smart devices, servers, terminal devices, and the like.

在本实施例中,模拟面板发送控制指令至网关,涉及多个场景:1)单位时间内发送多个控制指令。2)单位时间内持续发送开关、温度变化等操控命令。3)稳定性,在预设时间内持续发送控制指令。In this embodiment, the simulation panel sends the control instruction to the gateway, involving multiple scenarios: 1) Sending multiple control instructions per unit time. 2) Continuously send control commands such as switches and temperature changes per unit time. 3) Stability, continuously sending control commands within the preset time.

通过本申请提供的实施例,通过目标协议,模拟子设备连接网关,通过网关上报模拟子设备功能,其中,网关接入物联网平台;物联网平台通过模拟面板发送控制指令至网关,并通过网关发送控制指令至模拟子设备;通过目标协议从网关处获取模拟子设备属性状态,并记录上报控制耗时。本发明实施例中,可以通过协议来模拟子设备通过协议连接网关,模拟控制面板发送控制指令,模拟子设备接收控制指令来进行校验,高效稳定,最终通过统计各项耗时、各并发控制下网关控制子设备情况、长时间稳定性测试等来综合评估智能家居网关性能,进而解决了现有技术中,无法准确的进行网关测试的技术问题。Through the embodiment provided by this application, through the target protocol, the simulated sub-device is connected to the gateway, and the function of the simulated sub-device is reported through the gateway, wherein the gateway is connected to the Internet of Things platform; the Internet of Things platform sends control instructions to the gateway through the simulation panel, and through the gateway Send control instructions to the simulated sub-device; obtain the attribute status of the simulated sub-device from the gateway through the target protocol, and record and report the control time. In the embodiment of the present invention, the sub-device can be simulated through the protocol to connect to the gateway through the protocol, the simulated control panel sends control commands, and the simulated sub-device receives the control commands for verification, which is efficient and stable, and finally through the statistics of time-consuming and concurrent control The sub-device conditions of the lower gateway control, long-term stability tests, etc. are used to comprehensively evaluate the performance of the smart home gateway, thereby solving the technical problem that the gateway test cannot be accurately performed in the prior art.

可选的,通过所述目标协议从所述网关处获取模拟子设备属性状态,并记录上报控制耗时,可以包括:在所述模拟子设备接收所述控制指令并校验所述控制指令与预期一致的情况下,记录上报控制耗时。Optionally, obtaining the attribute status of the simulated sub-device from the gateway through the target protocol, and recording and reporting the time-consuming control may include: receiving the control instruction at the simulated sub-device and verifying that the control instruction is consistent with When expectations are consistent, it takes time to record and report to control.

可选的,所述物联网平台通过模拟面板发送控制指令至所述网关,并通过所述网关发送所述控制指令至所述模拟子设备,包括:单位时间内所述物联网平台通过模拟面板发送多个控制指令至所述网关;或单位时间内所述物联网平台通过模拟面板持续发送开关或温度变化操控命令至所述网关;在预设时间内所述物联网平台通过模拟面板持续发送控制指令至所述网关。Optionally, the IoT platform sends the control command to the gateway through the analog panel, and sends the control command to the analog sub-device through the gateway, including: the IoT platform transmits the control command through the analog panel per unit time. Send multiple control commands to the gateway; or the IoT platform continues to send switch or temperature change control commands to the gateway through the analog panel within a unit time; the IoT platform continues to send through the analog panel within a preset time control commands to the gateway.

可选的,所述方法还可以包括:所述物联网平台根据所述控制耗时生成测试报告。Optionally, the method may further include: the Internet of Things platform generating a test report according to the time-consuming control.

作为一种可选的实施例,本申请还提供了一种智能家居网关性能压测方法。如图3所示,智能家居网关性能压测方法的示意图。As an optional embodiment, the present application also provides a method for stress testing the performance of a smart home gateway. As shown in Figure 3, a schematic diagram of a smart home gateway performance stress testing method.

如图3所示,在本实施例中,可以包括智能家居网关,n个模拟子设备、模拟控制面板以及报告模块。As shown in FIG. 3 , in this embodiment, a smart home gateway, n simulated sub-devices, a simulated control panel and a reporting module may be included.

在本实施例中,通过指定协议(相当于目标协议),模拟子设备与网关交互。In this embodiment, the simulated sub-device interacts with the gateway by specifying a protocol (equivalent to the target protocol).

1)网关接入IOT平台;1) The gateway accesses the IOT platform;

2)通过指定协议,模拟子设备连接网关,校验网关上报子设备功能;2) Simulate the connection of the sub-device to the gateway through the specified protocol, and verify the function of the sub-device reported by the gateway;

3)模拟面板发送控制指令至网关;3) The analog panel sends control commands to the gateway;

其中,在通过模拟控制面板发送控制指令至网关时,包括但不限于涉及如下多个场景:Among them, when sending control instructions to the gateway through the analog control panel, including but not limited to the following scenarios:

a、单位时间内发送多个控制指令,a. Send multiple control commands per unit time,

b、单位时间内持续发送开关、温度变化等操控命令b. Continuously send control commands such as switches and temperature changes per unit time

c、稳定性,在预设时间内持续发送控制指令c. Stability, continuously sending control commands within the preset time

4)模拟子设备接收控制指令并校验是否与预期一致,并记录控制耗时4) The simulated sub-equipment receives the control command and checks whether it is consistent with the expectation, and records the time-consuming control

模拟子设备上报设备属性,通过对应协议从网关处获取设备属性状态,并记录上报耗时Simulate the sub-device to report the device attributes, obtain the device attribute status from the gateway through the corresponding protocol, and record the time-consuming report

5)汇总测试数据生成测试报告。5) Summarize the test data to generate a test report.

相关技术中,验证智能家居网关的方法,一般需要先将子设备与网关绑定,通过控制面板控制设备,观察子设备是否执行预期控制,最终观察控制面板上设备属性是否正确来完成功能测试,无法统计各项耗时、并发控制设备、长时间稳定性测试等。In related technologies, the method of verifying the smart home gateway generally needs to first bind the sub-device to the gateway, control the device through the control panel, observe whether the sub-device performs the expected control, and finally observe whether the device attributes on the control panel are correct to complete the functional test. It is impossible to count various time-consuming, concurrency control equipment, long-term stability tests, etc.

在本实施例中,可以通过协议来模拟子设备通过协议连接网关,模拟控制面板发送控制指令,模拟子设备接收控制指令来进行校验,高效稳定,最终通过统计各项耗时、各并发控制下网关控制子设备情况、长时间稳定性测试等来综合评估智能家居网关性能。In this embodiment, the sub-device can be simulated through the protocol to connect to the gateway through the protocol, the simulated control panel sends control commands, and the simulated sub-device receives the control commands to perform verification, which is efficient and stable. Finally, through statistics of time-consuming and concurrent control The performance of the smart home gateway is comprehensively evaluated by controlling the condition of the sub-equipment under the gateway and long-term stability test.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is Better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to enable a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present invention.

在本实施例中还提供了一种网关性能测试装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a gateway performance testing device is also provided, which is used to implement the above embodiments and preferred implementation modes, and those that have been explained will not be repeated here. As used below, the term "module" may be a combination of software and/or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.

需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that the above-mentioned modules can be realized by software or hardware. For the latter, it can be realized by the following methods, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned modules can be combined in any combination The forms of are located in different processors.

本发明的实施例还提供了一种存储介质,该存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。An embodiment of the present invention also provides a storage medium, in which a computer program is stored, wherein the computer program is set to execute the steps in any one of the above method embodiments when running.

可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的计算机程序:Optionally, in this embodiment, the above-mentioned storage medium may be configured to store a computer program for performing the following steps:

S1,通过目标协议,模拟子设备连接网关,通过网关上报模拟子设备功能,其中,网关接入物联网平台;S1, connect the simulated sub-device to the gateway through the target protocol, and report the function of the simulated sub-device through the gateway, wherein the gateway is connected to the IoT platform;

S2,物联网平台通过模拟面板发送控制指令至网关,并通过网关发送控制指令至模拟子设备;S2, the IoT platform sends control commands to the gateway through the analog panel, and sends control commands to the analog sub-device through the gateway;

S3,通过目标协议从网关处获取模拟子设备属性状态,并记录上报控制耗时。S3, obtain the attribute status of the simulated sub-device from the gateway through the target protocol, and record and report the control time consumption.

可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。Optionally, in this embodiment, the above-mentioned storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), Various media that can store computer programs, such as removable hard disks, magnetic disks, or optical disks.

本发明的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present invention also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.

可选地,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。Optionally, the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.

可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the above-mentioned processor may be configured to execute the following steps through a computer program:

S1,通过目标协议,模拟子设备连接网关,通过网关上报模拟子设备功能,其中,网关接入物联网平台;S1, connect the simulated sub-device to the gateway through the target protocol, and report the function of the simulated sub-device through the gateway, wherein the gateway is connected to the IoT platform;

S2,物联网平台通过模拟面板发送控制指令至网关,并通过网关发送控制指令至模拟子设备;S2, the IoT platform sends control commands to the gateway through the analog panel, and sends control commands to the analog sub-device through the gateway;

S3,通过目标协议从网关处获取模拟子设备属性状态,并记录上报控制耗时。S3, obtain the attribute status of the simulated sub-device from the gateway through the target protocol, and record and report the control time consumption.

可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。Optionally, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and optional implementation manners, and details are not repeated in this embodiment.

显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned present invention can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices Alternatively, they may be implemented in program code executable by a computing device so that they may be stored in a storage device to be executed by a computing device, and in some cases, in an order different from that shown here The steps shown or described are carried out, or they are separately fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present invention is not limited to any specific combination of hardware and software.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims (4)

1. A method for testing gateway performance is characterized by comprising the following steps:
the method comprises the steps that simulation sub-equipment is connected with a gateway through a target protocol, and the functions of the simulation sub-equipment are reported through the gateway, wherein the gateway is accessed to an Internet of things platform;
the Internet of things platform sends a control instruction to the gateway through a simulation panel, and sends the control instruction to the simulation sub-equipment through the gateway;
and acquiring the attribute state of the simulated sub-equipment from the gateway through the target protocol, and recording the time consumed for reporting control.
2. The method of claim 1, wherein obtaining the simulated sub-device attribute status from the gateway via the target protocol and recording reporting control time consumption comprises:
and recording the time consumed for reporting control under the condition that the simulation sub-equipment receives the control instruction and verifies that the control instruction is consistent with the expectation.
3. The method of claim 1, wherein the internet of things platform sending a control command to the gateway through a simulation panel and sending the control command to the simulation sub-device through the gateway comprises:
the Internet of things platform sends a plurality of control instructions to the gateway through a simulation panel in unit time; or
The Internet of things platform continuously sends a switch or temperature change control command to the gateway through the simulation panel in unit time;
and continuously sending a control command to the gateway by the Internet of things platform through the simulation panel within a preset time.
4. The method of any of claims 1 to 3, further comprising:
and the Internet of things platform generates a test report according to the control consumed time.
CN202211058765.1A 2022-08-31 2022-08-31 Gateway performance testing method, device, storage medium and electronic device Pending CN115442266A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211058765.1A CN115442266A (en) 2022-08-31 2022-08-31 Gateway performance testing method, device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211058765.1A CN115442266A (en) 2022-08-31 2022-08-31 Gateway performance testing method, device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN115442266A true CN115442266A (en) 2022-12-06

Family

ID=84245361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211058765.1A Pending CN115442266A (en) 2022-08-31 2022-08-31 Gateway performance testing method, device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115442266A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116112389A (en) * 2023-02-03 2023-05-12 广东睿住智能科技有限公司 Gateway scene leakage control rate detection device, method and system and electronic equipment
CN116248567A (en) * 2023-02-21 2023-06-09 深圳绿米联创科技有限公司 Testing method, device, electronic equipment and testing system of intelligent equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104053164A (en) * 2013-03-14 2014-09-17 深圳先进技术研究院 Internet of things gateway testing system and method
CN111262759A (en) * 2020-03-17 2020-06-09 中国建设银行股份有限公司 Internet of things platform testing method, device, equipment and storage medium
CN111934908A (en) * 2020-07-06 2020-11-13 上海庆科信息技术有限公司 Internet of things simulation method, device and system and storage medium
CN114328110A (en) * 2021-12-29 2022-04-12 天翼物联科技有限公司 Monitoring method, system and storage medium for Internet of Things gateway
CN114374632A (en) * 2022-01-10 2022-04-19 北京中电兴发科技有限公司 Internet of things data platform multi-protocol test efficiency improvement method
CN114710418A (en) * 2021-12-24 2022-07-05 深圳供电局有限公司 Test system architecture for intercommunication and interconnection of multiple types of terminals

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104053164A (en) * 2013-03-14 2014-09-17 深圳先进技术研究院 Internet of things gateway testing system and method
CN111262759A (en) * 2020-03-17 2020-06-09 中国建设银行股份有限公司 Internet of things platform testing method, device, equipment and storage medium
CN111934908A (en) * 2020-07-06 2020-11-13 上海庆科信息技术有限公司 Internet of things simulation method, device and system and storage medium
CN114710418A (en) * 2021-12-24 2022-07-05 深圳供电局有限公司 Test system architecture for intercommunication and interconnection of multiple types of terminals
CN114328110A (en) * 2021-12-29 2022-04-12 天翼物联科技有限公司 Monitoring method, system and storage medium for Internet of Things gateway
CN114374632A (en) * 2022-01-10 2022-04-19 北京中电兴发科技有限公司 Internet of things data platform multi-protocol test efficiency improvement method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李艳丽;蔡冬玲;: "基于Arduino平台的物联网网关设计", 单片机与嵌入式系统应用, no. 09 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116112389A (en) * 2023-02-03 2023-05-12 广东睿住智能科技有限公司 Gateway scene leakage control rate detection device, method and system and electronic equipment
CN116248567A (en) * 2023-02-21 2023-06-09 深圳绿米联创科技有限公司 Testing method, device, electronic equipment and testing system of intelligent equipment

Similar Documents

Publication Publication Date Title
CN111522264B (en) Control method and device of equipment, storage medium and electronic device
CN109582525B (en) Test code verification method, verification device, equipment and storage medium
US8028188B2 (en) System and method for testing an application installed on a wireless communication device
CN115442266A (en) Gateway performance testing method, device, storage medium and electronic device
CN114374632B (en) Internet of things data platform multi-protocol test efficiency improvement method
CN106021095A (en) A push mechanism-based Android application automated testing method
CN115391219B (en) Test case generation method and device, electronic equipment and storage medium
CN102036275A (en) Simulator and message processing method
CN110659202A (en) Client automatic testing method and device
CN104811979A (en) Pressure testing method and device based on FOTA upgrading
CN112954725B (en) Test method, communication system and NB-IoT device
CN109284227A (en) A kind of automation method for testing pressure and device calculate equipment and storage medium
CN118445202A (en) A testing method and computing device based on fault injection
CN115190057A (en) Automatic testing method and device and electronic equipment
CN114238123A (en) Method, device, equipment and medium for generating stress test script
CN113452556A (en) Product skill configuration method and device, storage medium and electronic device
CN101098259B (en) Automatized test method and system for implementing large data impact
CN116074228B (en) Network card testing method and device, storage medium and electronic equipment
CN108829495A (en) Verification method, device, equipment and the storage medium of multiple database modification affairs
CN105991700A (en) Voice data processing method, cloud server system and terminal equipment
CN112420019B (en) Equipment testing methods and devices
CN115454851A (en) Interface regression testing method, device, storage medium and electronic device
CN116126603A (en) Test configuration method, device, computer equipment and storage medium
US10055516B1 (en) Testing open mobile alliance server payload on an open mobile alliance client simulator
CN111240920B (en) Performance testing method, device, server and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20221206

RJ01 Rejection of invention patent application after publication