CN114328110A - Monitoring method, system and storage medium for gateway of Internet of things - Google Patents

Monitoring method, system and storage medium for gateway of Internet of things Download PDF

Info

Publication number
CN114328110A
CN114328110A CN202111638182.1A CN202111638182A CN114328110A CN 114328110 A CN114328110 A CN 114328110A CN 202111638182 A CN202111638182 A CN 202111638182A CN 114328110 A CN114328110 A CN 114328110A
Authority
CN
China
Prior art keywords
internet
things
gateway
simulation
test result
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
CN202111638182.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.)
Tianyi IoT Technology Co Ltd
Original Assignee
Tianyi IoT 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 Tianyi IoT Technology Co Ltd filed Critical Tianyi IoT Technology Co Ltd
Priority to CN202111638182.1A priority Critical patent/CN114328110A/en
Publication of CN114328110A publication Critical patent/CN114328110A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a monitoring method, a monitoring system and a storage medium of an Internet of things gateway, and relates to the technical field of the Internet of things gateway, wherein the method comprises the following steps: if the Internet of things gateway receives an attachment request sent by the simulation terminal, an access IP is sent to the simulation terminal so that the simulation terminal can log in; the simulation server calls a preset interface to log in the gateway of the Internet of things and performs message subscription; the simulation terminal registers according to a registration instruction sent by the gateway of the Internet of things; the simulation terminal sends uplink test data to the simulation server through the gateway of the Internet of things to obtain an uplink test result; if the uplink test result is successful, the simulation server sends downlink test data to the simulation terminal through the gateway of the Internet of things to obtain a target test result; and the monitoring tool monitors the gateway of the Internet of things according to the target test result and the historical test result. The embodiment of the application can improve the troubleshooting efficiency of the Internet of things gateway and can monitor the Internet of things gateway in real time.

Description

Monitoring method, system and storage medium for gateway of Internet of things
Technical Field
The invention relates to the technical field of internet of things gateways, in particular to a monitoring method and system of an internet of things gateway and a storage medium.
Background
With the development of the internet of things technology, the internet of things terminal is increased explosively, and the internet of things gateway is used as an access management platform of the internet of things terminal, so that the monitoring of the internet of things gateway and the timely troubleshooting of the internet of things gateway are particularly important. In the prior art, troubleshooting of the internet of things gateway requires coordination of multiple parts such as a private network of the internet of things, a terminal of the internet of things and the like, so that troubleshooting time is long, troubleshooting efficiency is low, and real-time monitoring of the internet of things gateway cannot be realized.
Disclosure of Invention
The embodiment of the invention provides a monitoring method, a monitoring system and a storage medium of an Internet of things gateway, and aims to solve the problems that the troubleshooting efficiency of the Internet of things gateway is low and the real-time monitoring cannot be realized.
In a first aspect, an embodiment of the present invention provides a monitoring method for an internet of things gateway, including:
if the Internet of things gateway receives an attachment request sent by a simulation terminal, an access IP is sent to the simulation terminal so that the simulation terminal can log in according to the access IP;
the simulation server calls a preset interface of the Internet of things gateway to log in the Internet of things gateway, and performs message subscription on the Internet of things gateway;
the gateway of the Internet of things sends a registration instruction to the simulation terminal so that the simulation terminal can register according to the registration instruction;
the simulation terminal sends uplink test data to the simulation server through the gateway of the Internet of things to obtain an uplink test result;
if the uplink test result is successful, the simulation server sends downlink test data to the simulation terminal through the gateway of the internet of things to obtain a target test result;
and the simulation terminal reports the target test result to a monitoring tool so that the monitoring tool monitors the gateway of the Internet of things according to the target test result and the historical test result.
In a second aspect, an embodiment of the present invention further provides a monitoring system for an internet of things gateway, where the monitoring system includes: a receiving unit and a first sending unit configured in the gateway of the internet of things, a calling unit and a third sending unit configured in the simulation server, a second sending unit configured in the simulation terminal and a reporting unit configured in the monitoring tool, wherein:
the receiving unit is used for sending an access IP to the simulation terminal if the Internet of things gateway receives an attachment request sent by the simulation terminal, so that the simulation terminal can log in according to the access IP;
the calling unit is used for calling a preset interface of the Internet of things gateway by the simulation server to log in the Internet of things gateway and subscribing information on the Internet of things gateway;
the first sending unit is used for sending a registration instruction to the simulation terminal by the gateway of the internet of things so that the simulation terminal can register according to the registration instruction;
the second sending unit is used for sending uplink test data to the simulation server by the simulation terminal through the internet of things gateway to obtain an uplink test result;
the third sending unit is configured to send downlink test data to the simulation terminal through the internet of things gateway to obtain a target test result if the uplink test result is successful;
the reporting unit is used for reporting the target test result to a monitoring tool by the simulation terminal so that the monitoring tool monitors the gateway of the internet of things according to the target test result and the historical test result.
In a third aspect, an embodiment of the present invention further provides a monitoring system for an internet of things gateway, which includes the internet of things gateway, a simulation terminal, and a simulation server, where the internet of things gateway, the simulation terminal, and the simulation server all include a memory and a processor, where the memory stores a computer program, and the processors of the internet of things gateway, the simulation terminal, and the simulation server implement the above method together when executing the respective computer program.
In a fourth aspect, the present invention also provides a computer-readable storage medium, which stores a computer program, and the computer program can implement the above method when executed by multiple processors.
The embodiment of the invention provides a monitoring method and system for an Internet of things gateway and a storage medium. Wherein the method comprises the following steps: if the Internet of things gateway receives an attachment request sent by a simulation terminal, an access IP is sent to the simulation terminal so that the simulation terminal can log in according to the access IP; the simulation server calls a preset interface of the Internet of things gateway to log in the Internet of things gateway, and performs message subscription on the Internet of things gateway; the gateway of the Internet of things sends a registration instruction to the simulation terminal so that the simulation terminal can register according to the registration instruction; the simulation terminal sends uplink test data to the simulation server through the gateway of the Internet of things to obtain an uplink test result; if the uplink test result is successful, the simulation server sends downlink test data to the simulation terminal through the gateway of the internet of things to obtain a target test result; and the simulation terminal reports the target test result to a monitoring tool so that the monitoring tool monitors the gateway of the Internet of things according to the target test result and the historical test result. In the technical scheme of the embodiment of the invention, the simulation server and the simulation terminal are adopted to carry out uplink and downlink tests on the gateway of the Internet of things to obtain a target test result, so that the troubleshooting time can be shortened, and the troubleshooting efficiency of the gateway of the Internet of things is improved; the monitoring tool monitors the gateway of the Internet of things according to the target test result and the historical test result, and can realize real-time monitoring of the gateway of the Internet of things.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a timing diagram of a monitoring system of an internet of things gateway according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a monitoring method for an internet of things gateway according to an embodiment of the present invention;
fig. 3 is a schematic block diagram of a monitoring system of an internet of things gateway according to an embodiment of the present invention; and
fig. 4 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Referring to fig. 1, fig. 1 is a timing diagram of a monitoring system of an internet of things gateway according to an embodiment of the present invention. The monitoring system of the internet of things gateway comprises the internet of things gateway 10, a simulation terminal 20 and a simulation server 30. In the embodiment of the present invention, both the simulation terminal 20 and the simulation server 30 communicate with the internet of things gateway 10, so that the simulation terminal 20 sends uplink test data to the simulation server 30, or the simulation server 30 sends downlink test data to the simulation terminal 20, thereby obtaining a target test result, and the monitoring tool may communicate with the internet of things gateway 10, the simulation terminal 20, and the simulation server 30, thereby obtaining the target test result, thereby monitoring the internet of things gateway 10.
Fig. 2 is a schematic flow chart of a monitoring method for an internet of things gateway provided in the embodiment of the present invention. As shown in fig. 2, the method comprises the following steps S100-S150.
S100, if the gateway of the Internet of things receives an attachment request sent by a simulation terminal, an access IP is sent to the simulation terminal, so that the simulation terminal can log in according to the access IP.
In the embodiment of the invention, an attachment request is sent to an Internet of things gateway by a simulation terminal, the Internet of things gateway receives the attachment request and sends an access IP to the simulation terminal, and the simulation terminal receives the access IP and logs in the Internet of things gateway according to the access IP. Understandably, if the simulation terminal receives the login confirmation instruction sent by the internet of things gateway, the login is successful, and if the login is unsuccessful, the simulation terminal sends an attachment removal request to the internet of things gateway. It should be noted that, in the embodiment of the present invention, the hardware carriers of the simulation terminal and the simulation server are probes, and the probes are driven by the relevant code programs to simulate the real terminal and the real server to send the relevant test instructions and test data to the internet of things gateway, so as to test the availability of the internet of things gateway, thereby shortening troubleshooting time and improving troubleshooting efficiency of the internet of things gateway. Understandably, if the probe dialing test fails, the retest is performed for a preset number of times.
S110, the simulation server calls a preset interface of the Internet of things gateway to log in the Internet of things gateway, and message subscription is carried out on the Internet of things gateway.
In the embodiment of the invention, after the simulation terminal logs in the gateway of the internet of things according to the access IP, the simulation server calls the preset interface of the gateway of the internet of things to log in the gateway of the internet of things and performs message subscription on the gateway of the internet of things. Specifically, the simulation server calls a login interface of the internet of things gateway to log in the internet of things gateway; if the simulation server receives a login success instruction sent by the internet of things gateway, the simulation server calls a subscription interface of the internet of things gateway according to the login success instruction and performs message subscription on the internet of things gateway, understandably, if the simulation server fails to log in the internet of things gateway or fails to perform message subscription on the internet of things gateway, the simulation terminal is triggered to send an attachment removal request to the internet of things gateway, and the failure reason is reported to a monitoring tool for recording. It should be noted that, in the embodiment of the present invention, the failure of the simulation server to log in the internet of things gateway specifically is that the log-in is not responded within a preset time or a response error code is received after the log-in is responded; the message subscription failure on the gateway of the internet of things is specifically that the subscription does not respond within a preset time or a response error code is received after the subscription responds.
And S120, the gateway of the Internet of things sends a registration instruction to the simulation terminal so that the simulation terminal can register according to the registration instruction.
In the embodiment of the invention, after the simulation server subscribes the message on the gateway of the internet of things, the gateway of the internet of things sends a registration instruction to the simulation terminal, the simulation terminal receives the registration instruction and registers on the gateway of the internet of things according to the registration instruction, and the registration is understandably mainly to register information such as the name and the identification mark of the simulation terminal. It should be noted that, in the embodiment of the present invention, if the registration of the simulation terminal on the internet of things gateway fails, specifically, if the registration fails within a preset time or a response error code is received after the registration response is received, the simulation terminal is also triggered to send an detach request to the internet of things gateway, and a failure reason is reported to the monitoring tool for recording.
S130, the simulation terminal sends uplink test data to the simulation server through the Internet of things gateway to obtain an uplink test result.
In the embodiment of the invention, after the simulation terminal successfully registers on the gateway of the internet of things, the simulation terminal sends uplink test data to the simulation server through the gateway of the internet of things to obtain an uplink test result. Specifically, the simulation terminal calls an uplink data sending interface of the internet of things gateway to send uplink test data to the internet of things gateway; and the simulation server calls a callback interface of the gateway of the Internet of things to acquire the uplink test data so as to obtain an uplink test result. More specifically, the simulation server calls a callback interface of the internet of things gateway to acquire the uplink test data, wherein the callback interface is realized by a callback function; and detecting whether the data ID carried in the uplink test data is consistent with a preset ID or not to obtain an uplink test result. Understandably, if the data ID carried in the uplink test data is consistent with the preset ID, the uplink test result is a test success, otherwise, the uplink test result is a test failure. It should be noted that, in the embodiment of the present invention, when the uplink test fails, the simulation terminal is also triggered to send a detach request to the internet of things gateway, and a failure reason is reported to the monitoring tool for recording; and the simulation server calls a historical query interface of the Internet of things gateway before the downlink test is carried out so as to verify the function of the Internet of things gateway for querying historical data. Understandably, if the historical interface is invoked unsuccessfully, specifically, if the query is not responded within the preset time or a response error code is received after the query is responded, the simulation terminal is also triggered to send an attachment removal request to the internet of things gateway, and the failure reason is reported to a monitoring tool for recording.
And S140, if the uplink test result is successful, the simulation server sends downlink test data to the simulation terminal through the Internet of things gateway to obtain a target test result.
In the embodiment of the invention, if the uplink test result is successful, the simulation server sends downlink test data to the simulation terminal through the gateway of the internet of things to obtain a target test result. Specifically, the simulation server calls a downlink data sending interface of the internet of things gateway to send downlink test data to the internet of things gateway; and the simulation terminal acquires the downlink test data through an operator core network to obtain a downlink test result, and takes the downlink test result as a target test result. Understandably, if the simulation terminal can obtain the downlink test data, the downlink test result is successful, otherwise, the test is failed. In practical application, if the target test result is successful, it is indicated that the end-to-end test of the internet of things gateway passes, the internet of things gateway has no fault, and the simulation terminal calls a logout interface of the internet of things gateway to logout the simulation terminal; and whether the internet of things gateway logs out the simulation terminal or not is successful, the simulation terminal is triggered to send a detachment request to the internet of things gateway, and the state is set to be a detachment state. Understandably, if the downlink test result is a test failure, the simulation terminal is also triggered to send an attachment removal request to the internet of things gateway, and the failure reason is reported to a monitoring tool for recording.
S150, the simulation terminal reports the target test result to a monitoring tool so that the monitoring tool monitors the gateway of the Internet of things according to the target test result and the historical test result.
In the embodiment of the invention, after the simulation server sends downlink test data to the simulation terminal through the internet of things gateway to obtain a target test result, the simulation terminal reports the target test result to the monitoring tool, so that the monitoring tool monitors the internet of things gateway according to the target test result and a historical test result. Specifically, the simulation terminal reports the target test result to a monitoring tool, so that the monitoring tool calculates a test success rate according to the monitoring result and a historical test result, and sends or removes alarm prompts of different levels according to the test success rate to monitor the gateway of the internet of things. In practical application, if the success rate in a preset test time is respectively lower than 40%, 75% and 85%, a serious alarm, a general alarm and a slight alarm prompt are sent out; and if the success rate in the preset test time is respectively higher than 70%, 85% and 97%, removing a serious alarm, a general alarm and a slight alarm. It should be noted that, in the embodiment of the present invention, an unreachable alarm mechanism and a unreachable alarm release mechanism are further provided, specifically, if all 3 consecutive tests fail, the unreachable alarm is triggered, and if all 3 consecutive tests succeed, the unreachable alarm mechanism is released. In the embodiment of the invention, the gateway of the Internet of things can be monitored in real time through the monitoring tool.
Fig. 3 is a schematic block diagram of a monitoring system 70 of an internet of things gateway according to an embodiment of the present invention. As shown in fig. 3, the monitoring method of the internet of things gateway corresponds to the above monitoring method applied to the internet of things gateway 10, the simulation terminal 20, and the simulation server 30. The monitoring system 70 of the internet of things gateway includes a unit for executing the monitoring method of the internet of things gateway. Specifically, referring to fig. 3, the monitoring system 70 of the internet of things gateway includes a receiving unit 101 and a first sending unit 102 configured in the internet of things gateway 10, a calling unit 301 and a third sending unit 302 configured in the simulation server 30, a second sending unit 201 configured in the simulation terminal 20, and a reporting unit 202.
The receiving unit 101 is configured to send an access IP to the simulation terminal if the internet of things gateway receives an attach request sent by the simulation terminal, so that the simulation terminal logs in according to the access IP; the calling unit 301 is configured to call, by the simulation server, a preset interface of the internet of things gateway to log in the internet of things gateway, and perform message subscription on the internet of things gateway; the first sending unit 102 is configured to send a registration instruction to the simulation terminal by the internet of things gateway, so that the simulation terminal performs registration according to the registration instruction; the second sending unit 201 is configured to send, by the simulation terminal, uplink test data to the simulation server through the internet of things gateway to obtain an uplink test result; the third sending unit 302 is configured to, if the uplink test result is a successful test, send downlink test data to the simulation terminal through the internet of things gateway by the simulation server to obtain a target test result; the reporting unit 202 is configured to report the target test result to a monitoring tool by the simulation terminal, so that the monitoring tool monitors the internet of things gateway according to the target test result and the historical test result.
In some embodiments, such as this embodiment, the calling unit 301 includes a first calling subunit 3011 and a second calling subunit 3012.
The first calling subunit 3011 is configured to call, by the emulation server, a login interface of the internet of things gateway to log in the internet of things gateway; the second calling subunit 3012 is configured to, if the simulation server receives a login success instruction sent by the internet of things gateway, call a subscription interface of the internet of things gateway according to the login success instruction, and perform message subscription on the internet of things gateway.
In some embodiments, for example, in this embodiment, the second sending unit 201 includes a first sending subunit 2011, a first obtaining unit 2012, and a detecting unit 2013.
The first sending subunit 2011 is configured to invoke, by the simulation terminal, an uplink data sending interface of the internet of things gateway to send uplink test data to the internet of things gateway; the first obtaining unit 2012 is configured to invoke, by the simulation server, a callback interface of the internet of things gateway to obtain the uplink test data; the detecting unit 2013 is configured to detect whether a data ID carried in the uplink test data is consistent with a preset ID to obtain an uplink test result.
In some embodiments, for example, in this embodiment, the third sending unit 302 includes a second sending subunit 3021 and a second obtaining unit 3022.
The second sending subunit 3021 is configured to invoke, by the simulation server, a downlink data sending interface of the internet of things gateway to send downlink test data to the internet of things gateway; the second obtaining unit 3022 is configured to obtain, by the simulation terminal, a downlink test result by obtaining the downlink test data through an operator core network, and use the downlink test result as a target test result.
In some embodiments, for example, in the present embodiment, the reporting unit 202 includes a reporting subunit 2011.
The calculation unit 2011 is configured to report the target test result to a monitoring tool by the simulation terminal, so that the monitoring tool calculates a test success rate according to the monitoring result and a historical test result, and sends or removes alarm prompts at different levels according to the test success rate to monitor the internet of things gateway.
In some embodiments, for example, in the embodiment, the monitoring system 70 of the internet of things gateway of the present embodiment adds a logout unit 203 and a fourth sending unit 204 configured in the simulation terminal 20 on the basis of the above embodiments.
The logout unit 203 is configured to, if the target test result is a successful test, call a logout interface of the internet of things gateway by the simulation terminal to logout the simulation terminal; the fourth sending unit 204 is configured to send a detach request to the internet of things gateway by the simulation terminal, and set a state to a detach state.
The monitoring system of the internet of things gateway can be implemented in the form of a computer program which can run on a computer device as shown in fig. 4.
Referring to fig. 4, fig. 4 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 900 may be the internet of things gateway, the simulation terminal, and the simulation server.
Referring to fig. 4, the computer device 900 includes a processor 902, memory and interface 907 connected by a system bus 901, wherein the memory may include a non-volatile storage medium 903 and an internal memory 904.
The non-volatile storage medium 903 may store an operating system 9031 and a computer program 9032. The computer program 9032, when executed, may cause the processor 902 to perform a method of monitoring an internet of things gateway.
The processor 902 is used to provide computing and control capabilities to support the operation of the overall computer device 900.
The internal memory 904 provides an environment for the operation of the computer program 9032 in the nonvolatile storage medium 903.
The interface 905 is used for communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 4 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation of the computer device 900 to which the present application is applied, and that a particular computer device 900 may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
The processors 902 of the internet of things gateway, the simulation terminal and the simulation server are configured to run a computer program 9032 stored in a respective memory, so as to implement the following steps: if the Internet of things gateway receives an attachment request sent by a simulation terminal, an access IP is sent to the simulation terminal so that the simulation terminal can log in according to the access IP; the simulation server calls a preset interface of the Internet of things gateway to log in the Internet of things gateway, and performs message subscription on the Internet of things gateway; the gateway of the Internet of things sends a registration instruction to the simulation terminal so that the simulation terminal can register according to the registration instruction; the simulation terminal sends uplink test data to the simulation server through the gateway of the Internet of things to obtain an uplink test result; if the uplink test result is successful, the simulation server sends downlink test data to the simulation terminal through the gateway of the internet of things to obtain a target test result; and the simulation terminal reports the target test result to a monitoring tool so that the monitoring tool monitors the gateway of the Internet of things according to the target test result and the historical test result.
In some embodiments, for example, in this embodiment, when the processor 902 implements that the simulation server calls a preset interface of the internet of things gateway to log in the internet of things gateway and performs a message subscription step on the internet of things gateway, the following steps are specifically implemented: the simulation server calls a login interface of the Internet of things gateway to log in the Internet of things gateway; and if the simulation server receives a login success instruction sent by the Internet of things gateway, calling a subscription interface of the Internet of things gateway according to the login success instruction, and subscribing information on the Internet of things gateway.
In some embodiments, for example, in this embodiment, when the processor 902 implements the step of sending the uplink test data to the simulation server by the simulation terminal through the internet of things gateway to obtain the uplink test result, the following steps are specifically implemented: the simulation terminal calls an uplink data sending interface of the Internet of things gateway to send uplink test data to the Internet of things gateway; the simulation server calls a callback interface of the gateway of the Internet of things to acquire the uplink test data; and detecting whether the data ID carried in the uplink test data is consistent with a preset ID or not to obtain an uplink test result.
In some embodiments, for example, in this embodiment, when the processor 902 implements the step of sending downlink test data to the simulation terminal by the simulation server through the internet of things gateway to obtain the target test result, the following steps are specifically implemented: the simulation server calls a downlink data sending interface of the Internet of things gateway to send downlink test data to the Internet of things gateway; and the simulation terminal acquires the downlink test data through an operator core network to obtain a downlink test result, and takes the downlink test result as a target test result.
In some embodiments, for example, in this embodiment, after the step that the processor 902 sends the downlink test data to the simulation terminal through the internet of things gateway to obtain the target test result if the uplink test result is successful is implemented, the implementation further includes the following steps: if the target test result is successful, the simulation terminal calls a logout interface of the gateway of the Internet of things to logout the simulation terminal; and the simulation terminal sends a detachment request to the Internet of things gateway and sets the state as a detachment state.
In some embodiments, for example, in this embodiment, when the processor 902 implements the step of reporting the target test result to the monitoring tool by the simulation terminal, so that the monitoring tool performs a monitoring step on the gateway of the internet of things according to the target test result and the historical test result, the following steps are specifically implemented: and the simulation terminal reports the target test result to a monitoring tool so that the monitoring tool calculates a test success rate according to the monitoring result and a historical test result, and sends out or removes alarm prompts of different levels according to the test success rate to monitor the gateway of the Internet of things.
It should be understood that in the embodiment of the present Application, the Processor 902 may be a Central Processing Unit (CPU), and the Processor 902 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program may be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program. The computer program, when executed by a processor, causes the processor to perform any of the embodiments of the monitoring method for an internet of things gateway described above.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, while the invention has been described with respect to the above-described embodiments, it will be understood that the invention is not limited thereto but may be embodied with various modifications and changes.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A monitoring method for an Internet of things gateway is characterized by comprising the following steps:
if the Internet of things gateway receives an attachment request sent by a simulation terminal, an access IP is sent to the simulation terminal so that the simulation terminal can log in according to the access IP;
the simulation server calls a preset interface of the Internet of things gateway to log in the Internet of things gateway, and performs message subscription on the Internet of things gateway;
the gateway of the Internet of things sends a registration instruction to the simulation terminal so that the simulation terminal can register according to the registration instruction;
the simulation terminal sends uplink test data to the simulation server through the gateway of the Internet of things to obtain an uplink test result;
if the uplink test result is successful, the simulation server sends downlink test data to the simulation terminal through the gateway of the internet of things to obtain a target test result;
and the simulation terminal reports the target test result to a monitoring tool so that the monitoring tool monitors the gateway of the Internet of things according to the target test result and the historical test result.
2. The monitoring method of the internet of things gateway according to claim 1, wherein the step of the simulation server calling a preset interface of the internet of things gateway to log in the internet of things gateway and subscribing a message on the internet of things gateway comprises the steps of:
the simulation server calls a login interface of the Internet of things gateway to log in the Internet of things gateway;
and if the simulation server receives a login success instruction sent by the Internet of things gateway, calling a subscription interface of the Internet of things gateway according to the login success instruction, and subscribing information on the Internet of things gateway.
3. The monitoring method of the gateway of the internet of things of claim 1, wherein the step of sending uplink test data to the simulation server by the simulation terminal through the gateway of the internet of things to obtain an uplink test result comprises the following steps:
the simulation terminal calls an uplink data sending interface of the Internet of things gateway to send uplink test data to the Internet of things gateway;
and the simulation server calls a callback interface of the gateway of the Internet of things to acquire the uplink test data so as to obtain an uplink test result.
4. The monitoring method of the gateway of the internet of things of claim 3, wherein the step of calling the callback interface of the gateway of the internet of things by the simulation server to obtain the uplink test data so as to obtain the uplink test result comprises the following steps:
the simulation server calls a callback interface of the gateway of the Internet of things to acquire the uplink test data;
and detecting whether the data ID carried in the uplink test data is consistent with a preset ID or not to obtain an uplink test result.
5. The monitoring method of the gateway of the internet of things of claim 1, wherein the step of sending downlink test data to the simulation terminal by the simulation server through the gateway of the internet of things to obtain a target test result comprises the following steps:
the simulation server calls a downlink data sending interface of the Internet of things gateway to send downlink test data to the Internet of things gateway;
and the simulation terminal acquires the downlink test data through an operator core network to obtain a downlink test result, and takes the downlink test result as a target test result.
6. The method for monitoring an internet of things gateway according to claim 1, wherein if the uplink test result is successful, after the simulation server sends downlink test data to the simulation terminal through the internet of things gateway to obtain a target test result, the method further comprises:
if the target test result is successful, the simulation terminal calls a logout interface of the gateway of the Internet of things to logout the simulation terminal;
and the simulation terminal sends a detachment request to the Internet of things gateway and sets the state as a detachment state.
7. The monitoring method of the gateway of the internet of things of claim 1, wherein the step of reporting the target test result to a monitoring tool by the simulation terminal so that the monitoring tool monitors the gateway of the internet of things according to the target test result and a historical test result comprises the steps of:
and the simulation terminal reports the target test result to a monitoring tool so that the monitoring tool calculates a test success rate according to the monitoring result and a historical test result, and sends out or removes alarm prompts of different levels according to the test success rate to monitor the gateway of the Internet of things.
8. A monitoring system of an Internet of things gateway is characterized by comprising: a receiving unit and a first sending unit configured in the gateway of the internet of things, a calling unit and a third sending unit configured in the simulation server, a second sending unit and a reporting unit configured in the simulation terminal, wherein:
the receiving unit is used for sending an access IP to the simulation terminal if the Internet of things gateway receives an attachment request sent by the simulation terminal, so that the simulation terminal can log in according to the access IP;
the calling unit is used for calling a preset interface of the Internet of things gateway by the simulation server to log in the Internet of things gateway and subscribing information on the Internet of things gateway;
the first sending unit is used for sending a registration instruction to the simulation terminal by the gateway of the internet of things so that the simulation terminal can register according to the registration instruction;
the second sending unit is used for sending uplink test data to the simulation server by the simulation terminal through the internet of things gateway to obtain an uplink test result;
the third sending unit is configured to send downlink test data to the simulation terminal through the internet of things gateway to obtain a target test result if the uplink test result is successful;
the reporting unit is used for reporting the target test result to a monitoring tool by the simulation terminal so that the monitoring tool monitors the gateway of the internet of things according to the target test result and the historical test result.
9. A monitoring system of an Internet of things gateway is characterized by comprising the Internet of things gateway, a simulation terminal and a simulation server, wherein the Internet of things gateway, the simulation terminal and the simulation server all comprise a memory and a processor, computer programs are stored on the memory, and the processors of the Internet of things gateway, the simulation terminal and the simulation server jointly realize the method as claimed in any one of claims 1 to 7 when executing the respective computer programs.
10. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a plurality of processors, implements the method according to any one of claims 1-7.
CN202111638182.1A 2021-12-29 2021-12-29 Monitoring method, system and storage medium for gateway of Internet of things Pending CN114328110A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111638182.1A CN114328110A (en) 2021-12-29 2021-12-29 Monitoring method, system and storage medium for gateway of Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111638182.1A CN114328110A (en) 2021-12-29 2021-12-29 Monitoring method, system and storage medium for gateway of Internet of things

Publications (1)

Publication Number Publication Date
CN114328110A true CN114328110A (en) 2022-04-12

Family

ID=81017136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111638182.1A Pending CN114328110A (en) 2021-12-29 2021-12-29 Monitoring method, system and storage medium for gateway of Internet of things

Country Status (1)

Country Link
CN (1) CN114328110A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115426297A (en) * 2022-08-09 2022-12-02 杭州涂鸦信息技术有限公司 Function test method and device of sub-equipment, computer equipment and storage medium
CN115442266A (en) * 2022-08-31 2022-12-06 云知声智能科技股份有限公司 Gateway performance testing method and device, storage medium and electronic device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115426297A (en) * 2022-08-09 2022-12-02 杭州涂鸦信息技术有限公司 Function test method and device of sub-equipment, computer equipment and storage medium
CN115426297B (en) * 2022-08-09 2023-12-12 杭州涂鸦信息技术有限公司 Function test method and device of sub-equipment, computer equipment and storage medium
CN115442266A (en) * 2022-08-31 2022-12-06 云知声智能科技股份有限公司 Gateway performance testing method and device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
US20220201534A1 (en) Method and device for determining terminal behavior analysis
TWI229796B (en) Method and system to implement a system event log for system manageability
US7743274B2 (en) Administering correlated error logs in a computer system
US5805785A (en) Method for monitoring and recovery of subsystems in a distributed/clustered system
CN114328110A (en) Monitoring method, system and storage medium for gateway of Internet of things
US7281040B1 (en) Diagnostic/remote monitoring by email
US5594861A (en) Method and apparatus for handling processing errors in telecommunications exchanges
CN110719199B (en) Network automatic testing and fault positioning method and device
US7788520B2 (en) Administering a system dump on a redundant node controller in a computer system
JP2007502467A5 (en)
US7979744B2 (en) Fault model and rule based fault management apparatus in home network and method thereof
US6836881B2 (en) Remote tracing of data processing nodes in an asynchronous messaging network
CN110673993A (en) Fault injection method, platform and system
CN110312245A (en) A kind of business monitoring method and device of transnational roaming terminal
CN115276844B (en) Communication module testing method and device, storage medium and electronic equipment
CN115037653B (en) Service flow monitoring method, device, electronic equipment and storage medium
US20210334153A1 (en) Remote error detection method adapted for a remote computer device to detect errors that occur in a service computer device
US20070171896A1 (en) Management system and management method for managing a communication apparatus
JP3291930B2 (en) Service processing function monitoring method and device
CN105741172B (en) Transaction message generation method and device, and transaction equipment component monitoring method and system
CN114826962A (en) Link fault detection method, device, equipment and machine readable storage medium
CN112068935A (en) Method, device and equipment for monitoring deployment of kubernets program
CN110365627B (en) Application program synchronization method and device, computing equipment and storage medium
KR20170127876A (en) System and method for dealing with troubles through fault analysis of log
CN117234862A (en) Method, system, terminal and medium for alarming health condition of server memory

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