A method and system for testing an internet of things gateway device

The IoT gateway device testing system utilizes the network connection between the testing equipment and the platform to generate and transmit test commands, solving the problem of time-consuming and labor-intensive manual setup of the testing environment in existing technologies, and achieving efficient testing of the gateway device's communication protocol conversion capabilities.

CN119299344BActive Publication Date: 2026-01-20GUANGDONG POWER GRID CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411331082.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-24
Publication Date
2026-01-20
Estimated Expiration
2044-09-24

AI Technical Summary

Technical Problem

Existing technologies for testing IoT gateway devices mainly rely on manually setting up the test environment, resulting in long testing times and high costs in terms of manpower and resources.

Method used

The IoT gateway device testing system utilizes the network connection between the testing equipment, the gateway device under test, and the IoT platform to generate and transmit test commands, perform downlink and uplink data tests, and generate test reports to evaluate the communication protocol conversion capabilities of the gateway device.

Benefits of technology

The testing environment has been standardized, the operation process has been simplified, manual intervention and testing time have been reduced, and the communication protocol conversion capabilities of gateway devices in different scenarios have been fully verified.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119299344B_ABST
    Figure CN119299344B_ABST
Patent Text Reader

Abstract

The application discloses a kind of Internet of Things gateway device test method and system, method is suitable for the test equipment of Internet of Things gateway device test system, system includes: the preset Internet of Things platform and gateway device to be measured;Method includes: obtaining the communication test request and state monitoring report of gateway device to be measured;According to the first test instruction of communication test request;According to the first test instruction and Internet of Things platform, data downlink test operation is carried out to gateway device to be measured, and first test result is obtained;According to the second test instruction of communication test request;According to the second test instruction and state monitoring report, data uplink test operation is carried out to gateway device to be measured, and second test result is obtained through Internet of Things platform;According to the first test instruction, the second test instruction, the first test result and the second test result are judged, and the test report of gateway device to be measured is generated. By implementing the application, the operation process is simplified, and the standardization of test environment is realized.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of Internet of Things communication, and in particular to an Internet of Things gateway device testing method and system. BACKGROUND

[0002] The Internet of Things is a new generation of information technology with high integration and comprehensive application, and has important significance for a new round of industrial transformation and social green, intelligent and sustainable development. With the wide application of Internet of Things technology, the power grid field has also begun to promote Internet of Things technology to improve the intelligent level of device monitoring and management. However, a large number of existing monitoring devices have low hardware configuration and do not have enough processing power to support standard Internet of Things protocols such as MQTT, so protocol conversion through an Internet of Things smart gateway is needed to realize the connection of these devices and the Internet of Things platform. At present, the method for testing Internet of Things gateway devices mainly relies on manual construction of a test environment, which makes the testing of Internet of Things gateway devices time-consuming and labor-intensive. SUMMARY

[0003] The embodiments of the present application provide an Internet of Things gateway device testing method and system, which can effectively solve the problem that the prior art method for testing Internet of Things gateway devices mainly relies on manual construction of a test environment, making the testing of Internet of Things gateway devices time-consuming and labor-intensive.

[0004] An embodiment of the present application provides an Internet of Things gateway device testing method, which is suitable for a testing device of an Internet of Things gateway device testing system, the Internet of Things gateway device testing system comprising: a preset Internet of Things platform and a gateway device to be tested; the gateway device to be tested, the testing device and the Internet of Things platform are in network connection with each other in pairs;

[0005] The Internet of Things gateway device testing method comprises:

[0006] obtaining a communication test request and a state monitoring report of the gateway device to be tested;

[0007] generating a first test instruction for device data downlink testing according to the communication test request;

[0008] transmitting the first test instruction to the gateway device to be tested through the Internet of Things platform to perform a data downlink test operation on the gateway device to be tested, and obtaining a first test result for indicating the data downlink test of the gateway device to be tested;

[0009] generating a second test instruction for device data uplink testing according to the communication test request;

[0010] According to the second test instruction and the state monitoring report, a data uplink test operation is performed on the gateway device to be tested, and a second test result for indicating the data downlink test of the gateway device to be tested is obtained through the Internet of Things platform;

[0011] According to the first test instruction, the second test instruction, the first test result and the second test result, a test report of the gateway device to be tested is generated.

[0012] Further, the data downlink test comprises:

[0013] The first test instruction is sent to the gateway device to be tested through the Internet of Things platform, so that the gateway device to be tested responds according to the first test instruction, generates a first instruction response result, and transmits the first instruction response result to the test device;

[0014] According to the first instruction response result and the first test instruction, it is judged whether the gateway device to be tested correctly responds to the first test instruction, and a first test result for indicating the data downlink test of the gateway device to be tested is obtained.

[0015] Further, the data uplink test comprises:

[0016] The state monitoring report is encoded through a preset first communication protocol to obtain a state monitoring data packet;

[0017] The second test instruction and the state monitoring data packet are sent to the gateway device to be tested, so that the gateway device to be tested responds to the state monitoring data packet according to the second test instruction and a preset second communication protocol, generates a second response result, and transmits the second response result to the test device through the Internet of Things platform;

[0018] According to the second response result, the second test instruction and the state monitoring report, it is judged whether the gateway device to be tested correctly responds to the second test instruction, and a second test result for indicating the data downlink test of the gateway device to be tested is obtained.

[0019] Further, the first communication protocol comprises a traditional communication protocol; and the second communication protocol comprises an Internet of Things communication protocol.

[0020] Further, the test device is a sub-device of the gateway device to be tested.

[0021] As an improvement of the above-mentioned scheme, another embodiment of the present application correspondingly provides an Internet of Things gateway device test system, comprising: a test device, a preset Internet of Things platform and a gateway device to be tested;

[0022] The test device, the gateway device to be tested and the Internet of Things platform are in network connection with each other in pairs;

[0023] The test device is configured to acquire a communication test request and a state monitoring report of the gateway device to be tested, generate a first test instruction for device data downlink test according to the communication test request, transmit the first test instruction to the gateway device to be tested through the Internet of Things platform, perform a data downlink test operation on the gateway device to be tested to obtain a first test result for representing the data downlink test of the gateway device to be tested, generate a second test instruction for device data uplink test according to the communication test request, perform a data uplink test operation on the gateway device to be tested according to the second test instruction and the state monitoring report, and obtain a second test result for representing the data downlink test of the gateway device to be tested through the Internet of Things platform, and judge according to the first test instruction, the second test instruction, the first test result and the second test result to generate a test report of the gateway device to be tested.

[0024] The Internet of Things platform is configured to receive the first test instruction of the test device and transmit the first test instruction to the gateway device to be tested, receive a second response result of the gateway device to be tested and transmit the second response result to the test device.

[0025] The gateway device to be tested is configured to respond according to the first test instruction, generate a first instruction response result and transmit the first instruction response result to the test device, and respond to the state monitoring data packet according to the second test instruction and a preset second communication protocol, generate a second response result and transmit the second response result to the test device through the Internet of Things platform.

[0026] Further, the gateway device to be tested is configured to respond according to the first test instruction to generate a first instruction response result.

[0027] The responding according to the first test instruction to generate a first instruction response result comprises:

[0028] The first test instruction is parsed through a preset second communication protocol to obtain an instruction parsing result.

[0029] The instruction parsing result is encoded and converted through a preset first communication protocol to generate a first instruction response result.

[0030] Further, the test device comprises:

[0031] A connector module is configured to connect the test device and the gateway device to be tested in network.

[0032] An Internet of Things platform interface module is configured to connect the test device to the Internet of Things platform.

[0033] A first communication protocol simulation module is configured to simulate a first communication protocol to encode the state monitoring report into a state monitoring data packet through the first communication protocol.

[0034] Further, the first communication protocol includes a traditional communication protocol, and the second communication protocol includes an Internet of Things communication protocol.

[0035] Further, the test device is a sub-device of the gateway device to be tested.

[0036] By implementing the present application, at least the following beneficial effects are achieved:

[0037] The present application provides an Internet of Things gateway device testing method and system, which is applicable to a test device of an Internet of Things gateway device testing system. The Internet of Things gateway device testing system includes a preset Internet of Things platform and a gateway device to be tested. The gateway device to be tested, the test device, and the Internet of Things platform are connected in pairs. The Internet of Things gateway device testing method includes the following steps: obtaining a communication test request and a state monitoring report of the gateway device to be tested; generating a first test instruction for device data downlink testing according to the communication test request; transmitting the first test instruction to the gateway device to be tested through the Internet of Things platform to perform a data downlink testing operation on the gateway device to be tested, and obtaining a first test result for indicating the data downlink testing of the gateway device to be tested; generating a second test instruction for device data uplink testing according to the communication test request; performing a data uplink testing operation on the gateway device to be tested according to the second test instruction and the state monitoring report, and obtaining a second test result for indicating the data downlink testing of the gateway device to be tested through the Internet of Things platform; and judging according to the first test instruction, the second test instruction, the first test result, and the second test result to generate a test report of the gateway device to be tested. The gateway device to be tested, the test device, and the Internet of Things platform are connected in pairs, the first test instruction and the second test instruction are generated, the standardization of the testing environment is realized, the operation process is simplified, the manual intervention and the testing time are reduced, the use of manpower and material resources is reduced, the data uplink testing and the data downlink testing are realized through the test device, the gateway device to be tested, and the Internet of Things platform, the bidirectional communication protocol conversion capability of the gateway device to be tested is tested, and the communication protocol conversion capability of the gateway device to be tested in different scenarios is fully verified. BRIEF DESCRIPTION OF DRAWINGS

[0038] Figure 1 is a flowchart of an Internet of Things gateway device testing method provided by an embodiment of the present application;

[0039] Figure 2 is a structural schematic diagram of a test system of an Internet of Things gateway device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0040] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of protection of the present application.

[0041] Referring to Figure 1 is a flowchart of a test method of an Internet of Things gateway device provided by an embodiment of the present application, comprising:

[0042] obtaining a communication test request and a state monitoring report of a gateway device to be tested;

[0043] generating a first test instruction for device data downlink test according to the communication test request;

[0044] transmitting the first test instruction to the gateway device to be tested through the Internet of Things platform to perform data downlink test operation on the gateway device to be tested, and obtaining a first test result for indicating the data downlink test of the gateway device to be tested;

[0045] generating a second test instruction for device data uplink test according to the communication test request;

[0046] performing data uplink test operation on the gateway device to be tested according to the second test instruction and the state monitoring report, and obtaining a second test result for indicating the data downlink test of the gateway device to be tested through the Internet of Things platform;

[0047] judging according to the first test instruction, the second test instruction, the first test result and the second test result to generate a test report of the gateway device to be tested.

[0048] Specifically, the state monitoring report includes operating data of the gateway device, such as temperature and flow data, and performance parameters of the gateway device. The gateway device data downlink test is a test from the test device to the gateway device to be tested to the Internet of Things platform, and tests the communication protocol conversion capability of the gateway device to be tested. When the test device receives a communication test request of the gateway device to be tested, the test device generates a first test instruction for the device data downlink test according to the communication test request. Then, according to the first test instruction and the Internet of Things platform, the test device performs a data downlink test operation on the gateway device to be tested, and obtains a first test result for indicating the gateway device data downlink test. Meanwhile, when the test device receives the communication request, the test device generates a second test instruction for the device data uplink test according to the communication test request. Then, according to the second test instruction and the state monitoring report, the test device performs a data uplink test operation on the gateway device to be tested, and obtains a second test result for indicating the gateway device data downlink test through the Internet of Things platform. The gateway device data downlink test indicates a test from the test device to the gateway device to be tested to the Internet of Things platform. Finally, according to the first test instruction, the second test instruction, the first test result, and the second test result, a test report of the gateway device to be tested is generated, and the bidirectional communication protocol conversion capability of the gateway device to be tested is tested.

[0049] Preferably, the data downlink test comprises:

[0050] The first test instruction is sent to the gateway device to be tested through the Internet of Things platform, so that the gateway device to be tested responds to the first test instruction, generates a first instruction response result, and transmits the first instruction response result to the test device.

[0051] The first instruction response result and the first test instruction are compared to determine whether the gateway device to be tested correctly responds to the first test instruction, and a first test result for indicating the gateway device data downlink test is obtained.

[0052] Specifically, the gateway device to be tested is configured to respond to the first test instruction to generate a first instruction response result.

[0053] The responding to the first test instruction to generate a first instruction response result comprises:

[0054] The first test instruction is parsed through a preset second communication protocol to obtain an instruction parsing result.

[0055] The instruction parsing result is encoded and converted through a preset first communication protocol to generate a first instruction response result.

[0056] In a preferred embodiment of the present application, the test device sends a first test instruction to the Internet of Things platform, and sends the first test instruction to the gateway device to be tested through the Internet of Things platform. After receiving the first test instruction, the gateway device to be tested parses the first test instruction according to the second communication protocol, extracts instruction type and instruction operation parameters, and then converts the instruction parsing result into a first instruction response result using the first communication protocol. Then, the gateway device to be tested transmits the first instruction response result to the test device. The test device receives the first instruction response result, compares the first instruction response result with the first test instruction, and if the first instruction response result is inconsistent with the instruction content corresponding to the first test instruction, it indicates that the gateway device to be tested fails to execute the first test instruction, and the gateway device to be tested does not correctly respond to the first test instruction. The first test result for indicating the data downlink test of the gateway device to be tested is that the data downlink test of the gateway device to be tested fails. At the same time, if the first instruction response result is inconsistent with the first test instruction, it also indicates that the gateway device to be tested does not correctly forward the first test instruction, and the first test result for indicating the data downlink test of the gateway device to be tested is that the data downlink test of the gateway device to be tested fails.

[0057] Preferably, the data uplink test comprises:

[0058] The state monitoring report is encoded through a preset first communication protocol to obtain a state monitoring data packet.

[0059] The second test instruction and the state monitoring data packet are sent to the gateway device to be tested, so that the gateway device to be tested responds to the state monitoring data packet according to the second test instruction and a preset second communication protocol, generates a second response result, and transmits the second response result to the test device through the Internet of Things platform.

[0060] The second response result, the second test instruction, and the state monitoring report are compared to determine whether the gateway device to be tested correctly responds to the second test instruction, and a second test result for indicating the data downlink test of the gateway device to be tested is obtained.

[0061] In a preferred embodiment of the present application, the test device encodes the state monitoring report into a state monitoring data packet through a preset first communication protocol, and then sends the second test instruction and the state monitoring data packet to the gateway device under test. The gateway device under test responds to the state monitoring data packet according to the second test instruction and a preset second communication protocol, generates a second response result, and transmits the second response result to the test device through the Internet of Things platform. After receiving the second response result of the gateway device under test, the Internet of Things platform sends the second response result to the test device. The test device receives the second response result sent by the Internet of Things platform, compares the second response result, the second test instruction, and the state monitoring report, judges whether the gateway device under test correctly responds to the second test instruction, and obtains a second test result for indicating the data downlink test of the gateway device under test. If the data in the second response result is inconsistent with the state monitoring report, it indicates that the reporting data of the gateway device under test is not executed according to the second test instruction, or the gateway device under test does not correctly forward the second test instruction of the test device, and a first test result for indicating the data downlink test of the gateway device under test is obtained. The data uplink test of the gateway device under test fails.

[0062] Preferably, the first communication protocol includes a traditional communication protocol; and the second communication protocol includes an Internet of Things communication protocol.

[0063] In a preferred embodiment of the present application, the traditional power communication protocol is IEC 104, and the Internet of Things communication protocol is MQTT.

[0064] Illustratively, the test device is a sub-device of the gateway device under test. By taking the test device as a sub-device, the network environment and data interaction in actual use can be more accurately simulated. This configuration makes the test result more realistic and valuable, because in actual deployment, sub-devices usually communicate with the outside world through a gateway. When the test device is a sub-device, there is no need to build a complex external test environment, because the sub-device can directly access the existing network architecture. This not only simplifies the test steps, but also reduces the probability of errors. By taking the test device as a sub-device, the data forwarding capability of the gateway can be effectively tested. This is particularly important for evaluating the performance of the gateway when handling a large amount of data, especially in high-concurrency scenarios. Gateway devices usually need to support multiple communication protocols to be compatible with different types of sub-devices. By including the test device in the list of sub-devices of the gateway, the compatibility and interoperability of these protocols can be tested and verified.

[0065] By implementing the embodiment, the to-be-tested gateway device is network-connected with the test device and the Internet of Things platform, the first test instruction and the second test instruction are generated, the standardization of the test environment is realized, the operation process is simplified, and manual intervention is reduced; the data uplink test and the data downlink test are realized through the test device, the to-be-tested gateway device and the Internet of Things platform, so that the bidirectional communication protocol conversion capability of the to-be-tested gateway device is tested, and it is ensured that the communication protocol conversion capability of the to-be-tested gateway device in different scenarios can be fully verified.

[0066] Referring to Figure 2 is a structural schematic diagram of an Internet of Things gateway device test system provided by an embodiment of the present application, comprising: a test device, a preset Internet of Things platform and a to-be-tested gateway device;

[0067] The test device, the to-be-tested gateway device and the Internet of Things platform are network-connected in pairs;

[0068] The test device is configured to acquire a communication test request and a state monitoring report of the to-be-tested gateway device, generate a first test instruction for device data downlink test according to the communication test request, transmit the first test instruction to the to-be-tested gateway device through the Internet of Things platform to perform a data downlink test operation on the to-be-tested gateway device, and obtain a first test result for indicating the data downlink test of the to-be-tested gateway device; generate a second test instruction for device data uplink test according to the communication test request; perform a data uplink test operation on the to-be-tested gateway device according to the second test instruction and the state monitoring report, and obtain a second test result for indicating the data downlink test of the to-be-tested gateway device through the Internet of Things platform; and judge according to the first test instruction, the second test instruction, the first test result and the second test result to generate a test report of the to-be-tested gateway device;

[0069] The Internet of Things platform is configured to receive the first test instruction of the test device and transmit the first test instruction to the to-be-tested gateway device, receive a second response result of the to-be-tested gateway device and transmit the second response result to the test device;

[0070] The to-be-tested gateway device is configured to respond according to the first test instruction, generate a first instruction response result and transmit the first instruction response result to the test device, and respond to the state monitoring data packet according to the second test instruction and a preset second communication protocol, generate a second response result and transmit the second response result to the test device through the Internet of Things platform.

[0071] Specifically, the to-be-tested gateway device is configured to respond according to the first test instruction to generate a first instruction response result;

[0072] In response to the first test instruction, a first instruction response result is generated, including:

[0073] The first test instruction is parsed through a preset second communication protocol to obtain an instruction parsing result;

[0074] The instruction parsing result is encoded and converted through a preset first communication protocol to generate the first instruction response result.

[0075] Preferably, the test device comprises:

[0076] A connector module is configured to connect the test device to a network of the gateway device to be tested;

[0077] An Internet of Things platform interface module is configured to connect the test device to the Internet of Things platform;

[0078] A first communication protocol simulation module is configured to simulate a first communication protocol, so that after the state monitoring report is encoded through the preset first communication protocol, a state monitoring data packet is obtained.

[0079] Preferably, the first communication protocol comprises a traditional communication protocol; and the second communication protocol comprises an Internet of Things communication protocol.

[0080] Illustratively, the test device is a sub-device of the gateway device to be tested.

[0081] In a preferred embodiment of the present application, the test device comprises: a connector module for network connection of the test device and the gateway device to be tested, responsible for communication connection of the test device and the gateway device to be tested, and ensuring smooth transmission of data between the two; an Internet of Things platform interface module for connection of the test device and the Internet of Things platform, and registration of the gateway device to be tested and the test device as a child device of the gateway device to be tested; a first communication protocol simulation module for simulating a first communication protocol to enable the state monitoring report to be encoded by the preset first communication protocol to obtain state monitoring data packets, and to simulate a plurality of traditional power communication protocols (such as Modbus, IEC103, IEC104, etc.), to provide data to the gateway device to be tested, and the module also provides management services for displaying state information (such as state historical records of received or transmitted data) of the test device to the outside, responding to related commands (such as actively reporting data) and other services; and a test module for designing and implementing an automated test case set for testing the bidirectional communication protocol conversion capability of the gateway device to be tested. In a preferred embodiment of the present application, the test device accesses the Internet of Things platform through the Internet of Things platform interface module, registers the test device as a child device of the device to be tested, confirms the connection configuration from the Internet of Things platform, configures the gateway device to be tested, confirms that the gateway device to be tested is connected to the Internet of Things platform, connects the test device and the gateway device to be tested using the connector module, confirms that the network connection is successful, and then the test device performs testing to test the bidirectional communication protocol conversion capability of the gateway device to be tested, mainly including two directions of testing:

[0082] Internet of Things platform -> gateway device to be tested -> test device direction:

[0083] The test module calls the Internet of Things platform service, and sends data instructions (such as data total call commands) for the first communication protocol simulation module to the gateway device to be tested from the Internet of Things platform; the test module accesses the management service of the first communication protocol simulation module, obtains the received data information, and verifies whether the gateway device to be tested correctly converts the Internet of Things communication protocol into a traditional power communication protocol and sends it to the first communication protocol simulation module; if the verification fails, an error analysis prompt is given. For example, the test module calls the Internet of Things platform service, sends data instructions DataCmdA to the gateway device to be tested for its sub-device (the first communication protocol simulation module of the test device), and records DataCmdA information; the test module calls the Internet of Things platform service, obtains the result ResultA of the gateway device to be tested executing the data instruction DataCmdA; if the smart gateway fails to execute the data instruction DataCmdA, the failure information is recorded, and the verification is ended; the test module accesses the management service of the first communication protocol simulation module, obtains the data instruction information received by the first communication protocol simulation module, and confirms whether the simulation module correctly receives the DataCmdA instruction; if the simulation module does not receive the DataCmdA instruction, the failure information is recorded, and the verification is ended; the response result ResultB of the first communication protocol simulation module to the DataCmdA instruction is obtained, ResultA and ResultB are compared, and it is confirmed whether the smart gateway correctly forwards.

[0084] Test device -> gateway device to be tested -> Internet of Things platform direction:

[0085] The first communication protocol simulation module of the test device sends data (such as a status report or monitoring data) to the gateway device under test; the test module calls the first communication protocol simulation module service (such as an active data upload command) to send data to the gateway device under test; the test module calls the Internet of Things platform service to obtain the data reception result, and verifies whether the gateway device under test correctly forwards the first communication protocol simulation module report data to the Internet of Things platform; if the verification fails, an error analysis is given. For example, the test module constructs a monitoring data report TestReportA, calls the first communication protocol simulation module (such as an active data upload command), and commands it to send data to the gateway device under test; after receiving the command, the first communication protocol simulation module actively sends TestReportA encoded in the traditional power communication protocol (IEC 104) to the gateway device under test; the gateway device under test receives the data report, parses the data report, encodes the data report in the Internet of Things communication protocol (MQTT), and reports it to the Internet of Things platform as a data report of a sub-device (the first communication protocol simulation module of the test device); the test module calls the Internet of Things platform service to obtain the latest DeviceReportA reported by the gateway device under test sub-device (the first communication protocol simulation module), compares TestReportA and DeviceReportA, and confirms whether the gateway device under test correctly forwards.

[0086] Illustratively, the gateway device under test parses the received data instructions encoded using the Internet of Things communication protocol (MQTT), extracts instruction types, sub-devices (the first communication protocol simulation module of the test device), operation parameters, and other information; according to the instruction parsing result, the received instructions are converted into corresponding instructions for the target sub-device, and are sent to the target sub-device using the traditional power communication protocol (IEC 104); the gateway device under test waits for the target sub-device to respond, and after receiving the response result returned by the sub-device in the traditional power communication protocol (IEC 104), parses the result data, converts the result into the Internet of Things communication protocol (MQTT), and sends it to the Internet of Things platform.

[0087] The application provides a kind of Internet of Things gateway device test system, comprising: test equipment, preset Internet of Things platform and gateway device to be tested;The test equipment, the gateway device to be tested and the Internet of Things platform are pairwise network connection;The test equipment is used to obtain the communication test request of gateway device to be tested and state monitoring report;According to the communication test request, first test instruction for device data downlink test is generated;The first test instruction is transmitted to gateway device to be tested by the Internet of Things platform, to carry out data downlink test operation to gateway device to be tested, and first test result for indicating gateway device to be tested data downlink test is obtained;According to the communication test request, second test instruction for device data uplink test is generated;According to the second test instruction and the state monitoring report, gateway device to be tested is carried out data uplink test operation, and second test result for indicating gateway device to be tested data downlink test is obtained through the Internet of Things platform;According to the first test instruction, the second test instruction, the first test result and the second test result, test report of gateway device to be tested is generated;The Internet of Things platform is used to receive the first test instruction of the test equipment, and the first test instruction is transmitted to the gateway device to be tested;Second response result of the gateway device to be tested is received, and the second response result is transmitted to the test equipment;The gateway device to be tested is used to respond according to the first test instruction, generate first instruction response result, and the first instruction response result is transmitted to the test equipment;According to the second test instruction and preset second communication protocol, the state monitoring data packet is responded, and second response result is generated, and the second response result is transmitted to the test equipment through the Internet of Things platform.Gateway device to be tested and test equipment and Internet of Things platform are pairwise network connection, by generating first test instruction and second test instruction, the standardization of test environment is realized, and the operation process is simplified, manual intervention and test time are reduced, and the use of manpower and material resources is reduced;Through test equipment, gateway device to be tested and Internet of Things platform, data uplink test and data downlink test are realized, so as to test the bidirectional communication protocol conversion capability of gateway device to be tested, ensure that the communication protocol conversion capability of gateway device to be tested in different scenes can be fully verified.

[0088] The above is the preferred embodiment of the application, it should be pointed out that, for those skilled in the art, without departing from the principles of the application, can make a number of improvements and refinements, these improvements and refinements are also considered as the protection scope of the application.

Claims

1. A method of testing an Internet of Things gateway device, the method comprising: A test device for an IoT gateway device testing system, the IoT gateway device testing system comprising: a preset IoT platform and a gateway device under test; the gateway device under test, the test device, and the IoT platform are connected to each other via a network; The testing method for the IoT gateway device includes: Obtain communication test requests and status monitoring reports from the gateway device under test; A first test instruction for device data downlink testing is generated based on the communication test request; The first test instruction is transmitted to the gateway device under test through the IoT platform to perform a downlink data test on the gateway device under test and obtain a first test result representing the downlink data test of the gateway device under test. Based on the communication test request, a second test instruction for device data uplink testing is generated; According to the second test instruction and the status monitoring report, the uplink test operation is performed on the gateway device under test, and the second test result representing the downlink test of the gateway device under test is obtained through the IoT platform. Based on the first test instruction, the second test instruction, the first test result, and the second test result, a test report for the gateway device under test is generated.

2. The method of testing an IoT gateway device of claim 1, wherein, The data downlink test includes: The first test command is sent to the gateway device under test through the IoT platform, so that the gateway device under test responds to the first test command, generates a first command response result, and transmits the first command response result to the test device; Based on the comparison between the first instruction response result and the first test instruction, it is determined whether the gateway device under test correctly responded to the first test instruction, and a first test result is obtained to represent the downlink data test of the gateway device under test.

3. The method of testing an IoT gateway device of claim 1, wherein, The data uplink test includes: The status monitoring report is encoded using a preset first communication protocol to obtain a status monitoring data packet; The second test command and the status monitoring data packet are sent to the gateway device under test, so that the gateway device under test responds to the status monitoring data packet according to the second test command and the preset second communication protocol, generates a second response result, and transmits the second response result to the test device through the IoT platform; By comparing the second response result, the second test command, and the status monitoring report, it is determined whether the gateway device under test has correctly responded to the second test command, and a second test result is obtained to represent the downlink data test of the gateway device under test.

4. The method of testing an IoT gateway device of claim 3, wherein, The first communication protocol includes traditional communication protocols; the second communication protocol includes Internet of Things (IoT) communication protocols.

5. The method of testing an IoT gateway device of claim 1, wherein, The testing device is a sub-device of the gateway device under test.

6. An Internet of Things gateway device testing system, characterized by, include: Test equipment, a pre-set IoT platform, and the gateway device under test; The test equipment, the gateway device under test, and the IoT platform are connected to each other via network. The testing equipment is used to acquire communication test requests and status monitoring reports from the gateway device under test; and to generate a first test instruction for downlink data testing of the device based on the communication test requests. transmit the first test instruction to the gateway device to be tested through the Internet of Things platform to perform a data downlink test operation on the gateway device to be tested, and obtain a first test result representing the data downlink test of the gateway device to be tested; generate a second test instruction for device data uplink test according to the communication test request; perform a data uplink test operation on the gateway device to be tested according to the second test instruction and the state monitoring report, and obtain a second test result representing the data downlink test of the gateway device to be tested through the Internet of Things platform; generate a test report of the gateway device to be tested according to the first test instruction, the second test instruction, the first test result and the second test result; the Internet of Things platform is configured to receive the first test instruction of the test device and transmit the first test instruction to the gateway device to be tested; receive a second response result of the gateway device to be tested and transmit the second response result to the test device; the gateway device to be tested is configured to respond to the first test instruction, generate a first instruction response result, and transmit the first instruction response result to the test device; respond to the state monitoring data packet according to the second test instruction and a preset second communication protocol, generate a second response result, and transmit the second response result to the test device through the Internet of Things platform.

7. A test system for an Internet of Things gateway device as claimed in claim 6, wherein, the gateway device to be tested is configured to respond to the first test instruction, generate a first instruction response result; responding to the first test instruction to generate a first instruction response result, comprising: analyzing the first test instruction through a preset second communication protocol to obtain an instruction analysis result; encoding and converting the instruction analysis result through a preset first communication protocol to generate a first instruction response result.

8. A test system for an Internet of Things gateway device as claimed in claim 6, wherein, the test device comprises: a connector module configured to connect the test device and the gateway device to be tested in a network; an Internet of Things platform interface module configured to connect the test device and the Internet of Things platform; a first communication protocol simulation module configured to simulate a first communication protocol so that the state monitoring report is encoded through the preset first communication protocol to obtain a state monitoring data packet.

9. A test system for an Internet of Things gateway device as claimed in claim 7, wherein, The first communication protocol includes a traditional communication protocol; and the second communication protocol includes an Internet of Things communication protocol.

10. The Internet of Things gateway device testing system of claim 6, wherein, The test device is a sub-device of the gateway device to be tested.

Citation Information

Patent Citations

  • Internet of Things gateway monitoring method and system, and storage medium

    CN114328110A

  • Gateway performance test method and device, storage medium and electronic device

    CN115442266A