CN110635970A - Internet of things equipment online state identification method, online information platform and server - Google Patents

Internet of things equipment online state identification method, online information platform and server Download PDF

Info

Publication number
CN110635970A
CN110635970A CN201910958890.XA CN201910958890A CN110635970A CN 110635970 A CN110635970 A CN 110635970A CN 201910958890 A CN201910958890 A CN 201910958890A CN 110635970 A CN110635970 A CN 110635970A
Authority
CN
China
Prior art keywords
online
client
state
information
server
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
CN201910958890.XA
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.)
ROUTON ELECTRONIC CO Ltd
Wuhan Puli Commercial Machine Co Ltd
Original Assignee
ROUTON ELECTRONIC CO Ltd
Wuhan Puli Commercial Machine 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 ROUTON ELECTRONIC CO Ltd, Wuhan Puli Commercial Machine Co Ltd filed Critical ROUTON ELECTRONIC CO Ltd
Priority to CN201910958890.XA priority Critical patent/CN110635970A/en
Publication of CN110635970A publication Critical patent/CN110635970A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00571Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by interacting with a central unit
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides an Internet of things equipment online state identification method, an online information platform and a server, wherein the method comprises the following steps: receiving state information of each client sent by an EMQ server; analyzing the online state of each client from the state information; the EMQ server is connected with all the clients, receives the client online and offline theme subscription, and sends the state information after detecting the client online and offline state change. The online information platform does not need to establish connection for identifying the online state with each client, and if the program is abnormally finished, the online state of the client can be acquired from the EMQ server after the abnormal recovery, so that the judgment error caused by directly judging the online state of the client is effectively avoided. After the disconnection reconnection is carried out between the online information platform and the client, the logic of the disconnection reconnection is not influenced, and the controllability of the online state monitoring of the client is further ensured.

Description

Internet of things equipment online state identification method, online information platform and server
Technical Field
The invention relates to the field of Internet of things, in particular to an online state identification method of Internet of things equipment, an online information platform and a server.
Background
At present, the era of the internet of things is rising, and numerous internet of things devices are beginning to be popularized. For example, devices such as door locks, attendance devices, and shared bicycles have networking requirements. The door lock is installed in an uncontrollable scenario, and a need arises to determine the online status of the door lock. The existing HTTP connection cannot well satisfy such a situation that the network state is poor and the connection state is judged, so the MQTT protocol is selected to be used.
The current method mainly comprises the steps of judging through an MqttCallback interface in the MQTT connection, providing a connectionLost callback function in the interface, and inquiring whether the connection is disconnected or not through callback.
The existing MQTT server cannot well support the query of the online state of the door lock equipment. For example, when the MQTT server ends due to a program abnormality, the connection between the MQTT server and the client is abnormal, and the current connection state cannot be accurately determined. After disconnection reconnection is carried out between the MQTT server and the client, the logic of disconnection reconnection is influenced by the identification of the online state, and the inquiry of the online state of the door lock equipment cannot be well supported.
Disclosure of Invention
In order to solve the above problems, embodiments of the present invention provide an internet of things device online state identification method, an online information platform, and a server.
In a first aspect, an embodiment of the present invention provides an internet of things device online state identification method, including: receiving state information of each client sent by an EMQ server; analyzing the online state of each client from the state information; the EMQ server is connected with all the clients, receives the client online and offline theme subscription, and sends the state information after detecting the client online and offline state change.
Further, before receiving the state information of each client sent by the EMQ server, the method further includes: and after all the clients are matched by using the wildcards, sending client online and offline topic subscription request information to the EMQ server.
Further, after sending the client online and offline topic subscription request information to the EMQ server, the method further includes: the session reuse mechanism is opened and the state value of the persistent message parameter is set to enabled.
Further, the receiving the state information of each client sent by the EMQ server, specifically receiving an Mqtt Topic sent by the EMQ server, and accordingly analyzing the online state of each client from the state information includes: and extracting an Mqtt Topic from the message authorized callback function, acquiring the corresponding identifier of the online and offline states of the client from the Mqtt Topic, and determining the online state of each client.
In a second aspect, an embodiment of the present invention provides an internet of things device online state identification method, including: if the EMQ server detects that the on-line and off-line states of the client are changed, the EMQ server sends the state information of the client to an on-line information platform, so that the on-line information platform can analyze the on-line state of the client from the state information; the EMQ server is connected with all the clients and receives subscriptions of the online information platform for the online and offline topics of the clients.
Further, before sending the state information of the client to the online information platform, the method further includes: and receiving client on-line and off-line topic subscription request information sent to the EMQ server by the on-line information platform after the wildcard is matched with all the clients.
In a third aspect, an embodiment of the present invention provides an online information platform, including: the receiving module is used for receiving the state information of each client side sent by the EMQ server; the processing module is used for analyzing the online state of each client from the state information; the EMQ server is connected with all the clients, receives the client online and offline theme subscription, and sends the state information after detecting the client online and offline state change.
In a fourth aspect, an embodiment of the present invention provides a server, including: the sending module is used for sending the state information of the client to an online information platform if the change of the online and offline states of the client is detected, so that the online information platform can analyze the online state of the client from the state information; the server is an EMQ server and is connected with all the clients, and the EMQ server receives subscriptions of the online information platform for the online and offline topics of the clients.
In a fifth aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the steps of the method for identifying an online status of an internet of things device according to the first aspect or the second aspect of the present invention.
In a sixth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the internet of things device online status identification method according to the first aspect or the second aspect of the present invention.
According to the method for identifying the online state of the equipment of the Internet of things, the online information platform and the server, the online information platform receives the state information of each client side sent by the EMQ server instead of receiving the state information from each client side, and connection for identifying the online state is not required to be established with each client side. If the program exception of the online information platform is finished, the online state of the client can be acquired from the EMQ server after the exception is recovered, and the judgment error of directly judging the online state of the client is effectively avoided. After the online information platform and the client are disconnected and reconnected, the connection of online state identification is not required to be established with each client, so that the logic of disconnection and reconnection is not influenced, and the controllability of online state monitoring of the client is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a flowchart of an internet of things device online state identification method according to an embodiment of the present invention;
FIG. 2 is a diagram of an online information platform architecture according to an embodiment of the present invention;
fig. 3 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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, but 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.
The embodiment of the invention provides an online state identification method of Internet of things equipment, which is realized based on an MQTT protocol. The method can be applied to the scene of judging the online state of the intelligent door lock in the background technology, and can also be applied to the scene of judging the online state of other internet of things equipment, such as attendance equipment, shared bicycles and the like, and the embodiment of the invention is not particularly limited to this.
Fig. 1 is a flowchart of an internet of things device online state identification method provided in an embodiment of the present invention, and as shown in fig. 1, an embodiment of the present invention provides an internet of things device online state identification method, including:
101, receiving the state information of each client after the client is on line and off line, which is sent by an EMQ server;
102, analyzing the online state of each client from the state information;
the EMQ server is connected with all the clients, receives the client online and offline theme subscription, and sends the state information after the EMQ server detects the client online and offline state change.
In 101, MQTT (message queue telemetry transport) is a messaging protocol based on a publish/subscribe paradigm under the ISO standard. It works on the TCP/IP suite and is a publish/subscribe messaging protocol designed for remote devices with poor hardware performance and in poor network conditions.
EMQ (Erlang/Enterprise/Elastic MQTT Broker) is an open source Internet of things MQTT message server developed based on an Erlang/OTP platform. Erlang/OTP is an excellent Soft-real-time (Soft-real), Low-Latency (Low-Latency), Distributed (Distributed) language platform.
In the embodiment of the invention, the online information platform is used as an execution subject to be implemented. The online information platform is equivalent to an MQTT server and is used for acquiring the online state of the client of the Internet of things.
The EMQ server is connected with each client needing to identify the online state, such as an intelligent door lock. The client and the EMQ server can do no other operation and are only used for online message interaction. The EMQ server is connected with the online information platform, and before online state recognition is executed, the online information platform successfully subscribes a client online and offline theme to the EMQ server.
After the topic is successfully subscribed, once the EMQ server detects that the online state of the client connected with the EMQ server changes, if the online state changes from online to offline, the EMQ server sends state information to the online information platform, wherein the state information contains the state of the client with the changed state.
For 102, the online information platform analyzes the acquired state information, and reads the key fields corresponding to the online and offline states from the acquired state information, so as to analyze the online state of the client. For each client, if the upper and lower line state changes, the EMQ server sends corresponding state information to the online information platform. Thus, the presence information platform can obtain the state information of each client from the EMQ server.
In the method for identifying the online state of the internet of things device, the online information platform receives the state information of each client sent by the EMQ server, instead of receiving the state information from each client, and does not need to establish a connection for identifying the online state with each client. If the program exception of the online information platform is finished, the online state of the client can be acquired from the EMQ server after the exception is recovered, and the judgment error of directly judging the online state of the client is effectively avoided. After the online information platform and the client are disconnected and reconnected, the connection of online state identification is not required to be established with each client, so that the logic of disconnection and reconnection is not influenced, and the controllability of online state monitoring of the client is ensured.
Based on the content of the foregoing embodiment, as an optional embodiment, before receiving the status information of each client sent by the EMQ server, the method further includes: and after all the clients are matched by using the wildcards, sending the client online and offline topic subscription request information to the EMQ server.
The online information platform can directly subscribe to the system topics in the EMQ, and all clients are matched through a wildcard "+" during subscription. For example, the subscription client offline theme is $ SYS/brokers/+/clients/+/+, and all nodes and all clients are matched by wildcards, so that all client devices connected to the EMQ server can be monitored for offline information.
Based on the content of the foregoing embodiment, as an optional embodiment, after sending the client online and offline topic subscription request information to the EMQ server, the method further includes: the session reuse mechanism is opened and the state value of the persistent message parameter is set to enabled.
When a system theme is subscribed, the value of the parameter clear Session of the offline Message is set to 0(false), and the value of the persistent Message parameter related Message is set to 1(true), so that the state value of the persistent Message parameter is set to on. In this case, if the connection between the online information platform and the EMQ server is unexpectedly interrupted, the EMQ server may also store the connection-received message, and may receive the offline message when the online information platform is online again, thereby effectively avoiding omission of the state information.
The clear Session flag is set by the client when connecting, and the online information platform is set by the online information platform as the client for subscription. When the parameter clear Session of the offline message is 0, a Session reuse mechanism is started, and after the network is disconnected and reconnected, the previous Session information is recovered, so that the client and the server need to have a related Session persistence mechanism. And when the clear Session is 1, closing the Session reuse mechanism. Each Connect is a new Session and the Session lasts only as long as the network connection.
In the embodiment of the invention, by starting a session reuse mechanism and setting the state value of the persistent message parameter as enable, offline messages can be set and received and stored, and the condition that missing messages occur when the connection is disconnected is avoided. The accuracy of the online state of the equipment is guaranteed.
Based on the content of the foregoing embodiment, as an optional embodiment, receiving the state information of each client sent by the EMQ server, specifically receiving the Mqtt Topic sent by the EMQ server, and accordingly parsing the online state of each client from the state information includes: and extracting an Mqtt Topic from the message authorized callback function, acquiring the corresponding identifier of the online and offline states of the client from the Mqtt Topic, and determining the online state of each client.
The Mqtt Topic carries identifiers of the online and offline of the client, and the Topic has two state identifiers, namely, a connect state identifier and a disconnect state identifier, so that the online and offline condition of the client is judged specifically. In addition, information such as the IP address of the client is also included. The Mqtt Topic is capable of providing the presence information platform with the presence information for all clients to which the EMQ server is connected.
According to the method for identifying the online state of the Internet of things equipment, the online information platform obtains the online state and the offline state of the client through the Mqtt Topic, and the online state information of all the clients can be obtained quickly.
The embodiment of the invention also provides an online state identification method of the Internet of things equipment, which is realized by taking the EMQ server as an execution main body, and comprises the following steps: if the EMQ server detects that the online and offline state of the client is changed, the EMQ server sends the state information of the client to the online information platform, so that the online information platform can analyze the online state of each client from the state information; the EMQ server is connected with all the clients and receives subscriptions of the online information platform for online and offline topics of the clients.
The EMQ server is connected with each client needing to identify the online state, such as an intelligent door lock. The client and the EMQ server can do no other operation and are only used for online message interaction. The EMQ server is connected with the online information platform, and before online state recognition is executed, the online information platform successfully subscribes a client online and offline theme to the EMQ server.
After the topic is successfully subscribed, once the EMQ server detects that the online state of the client connected with the EMQ server changes, if the online state changes from online to offline, the EMQ server sends state information to the online information platform, wherein the state information contains the state of the client with the changed state.
And the online information platform analyzes the acquired state information, reads the key fields corresponding to the online and offline states from the state information, and accordingly analyzes the online state of the client. For each client, if the upper and lower line state changes, the EMQ server sends corresponding state information to the online information platform. Thus, the presence information platform can obtain the state information of each client from the EMQ server.
In the method for identifying the online state of the internet of things device, if the EMQ server detects that the online and offline state of the client changes, the EMQ server sends the state information of the client to the online information platform, and the non-online information platform receives the state information from each client, so that connection for identifying the online state between the online information platform and each client is not required. If the program exception of the online information platform is finished, the online state of the client can be acquired from the EMQ server after the exception is recovered, and the judgment error of directly judging the online state of the client is effectively avoided. After the online information platform and the client are disconnected and reconnected, the connection of online state identification is not required to be established with each client, so that the logic of disconnection and reconnection is not influenced, and the controllability of online state monitoring of the client is ensured.
Based on the content of the foregoing embodiment, as an optional embodiment, before sending the status information of the client to the online information platform, the method further includes: and receiving client on-line and off-line topic subscription request information sent to the EMQ server by the on-line information platform after the wildcard is matched with all the clients.
The online information platform can directly subscribe to the system topics in the EMQ, and all clients are matched through a wildcard "+" during subscription. For example, the subscription client offline theme is $ SYS/brokers/+/clients/+/+, and all nodes and all clients are matched by wildcards, so that all client devices connected to the EMQ server can be monitored for offline information.
Fig. 2 is a structural diagram of an online information platform according to an embodiment of the present invention, and as shown in fig. 2, the online information platform includes: a receiving module 201 and a processing module 202. The receiving module 201 is configured to receive state information of each client sent by the EMQ server; the processing module 202 is configured to parse the online status of each client from the status information; the EMQ server is connected with all the clients, receives the client online and offline theme subscription, and sends the state information after the EMQ server detects the client online and offline state change.
The EMQ server is connected with each client needing to identify the online state, such as an intelligent door lock. The client and the EMQ server can do no other operation and are only used for online message interaction. The EMQ server is connected with the online information platform, and before online state recognition is executed, the online information platform successfully subscribes a client online and offline theme to the EMQ server.
After successfully subscribing the topic, once the EMQ server detects that the online status of the client connected to the EMQ server changes, and if the online status changes to offline, the EMQ server sends status information to the receiving module 201, where the status information includes the status of the client with changed status.
The processing module 202 analyzes the acquired state information, and reads the key fields corresponding to the online and offline states from the state information, so as to analyze the online state of the client. For each client, if the upper and lower line status changes, the EMQ server sends corresponding status information to the receiving module 201. Thus, the processing module 202 can obtain the state information of each client from the EMQ server.
The embodiment of the online information platform provided in the embodiment of the present invention is for implementing the above method embodiments, and for details of the flow and the content, reference is made to the above method embodiments, which are not described herein again.
In the online information platform provided by the embodiment of the invention, the receiving module receives the state information of each client sent by the EMQ server instead of receiving the state information from each client, and the connection for identifying the online state is not required to be established with each client. If the program exception of the online information platform is finished, the online state of the client can be acquired from the EMQ server after the exception is recovered, and the judgment error of directly judging the online state of the client is effectively avoided. After the online information platform and the client are disconnected and reconnected, the connection of online state identification is not required to be established with each client, so that the logic of disconnection and reconnection is not influenced, and the controllability of online state monitoring of the client is ensured.
An embodiment of the present invention further provides a server, where the server includes: the sending module is used for sending the state information of the client to the online information platform if the change of the online and offline states of the client is detected, so that the online information platform can analyze the online state of each client from the state information; the server is an EMQ server and is connected with all the clients, and the EMQ server receives subscriptions of the online information platform for the online and offline topics of the clients.
In the server provided by the embodiment of the invention, the sending module sends the state information of the client to the online information platform instead of sending the state information to the online information platform by each client if detecting the change of the online and offline states of the client, and the online information platform does not need to establish the connection for identifying the online state with each client. If the program exception of the online information platform is finished, the online state of the client can be acquired from the sending module after the exception is recovered, and the judgment error caused by directly judging the online state of the client is effectively avoided. After the online information platform and the client are disconnected and reconnected, the connection of online state identification is not required to be established with each client, so that the logic of disconnection and reconnection is not influenced, and the controllability of online state monitoring of the client is ensured.
Fig. 3 is a schematic entity structure diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 3, the electronic device may include: a processor (processor)301, a communication Interface (communication Interface)302, a memory (memory)303 and a bus 304, wherein the processor 301, the communication Interface 302 and the memory 303 complete communication with each other through the bus 304. The communication interface 302 may be used for information transfer of an electronic device. Processor 301 may call logic instructions in memory 303 to perform a method comprising: receiving state information of each client sent by an EMQ server; analyzing the online state of each client from the state information; the EMQ server is connected with all the clients, receives the client online and offline theme subscription, and sends the state information after the EMQ server detects the client online and offline state change.
In addition, the logic instructions in the memory 303 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may 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 server, or a network device) to execute all or part of the steps of the above-described method embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented to perform the transmission method provided in the foregoing embodiments when executed by a processor, and for example, the method includes: receiving state information of each client sent by an EMQ server; analyzing the online state of each client from the state information; the EMQ server is connected with all the clients, receives the client online and offline theme subscription, and sends the state information after the EMQ server detects the client online and offline state change.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods of the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. An Internet of things equipment online state identification method is characterized by comprising the following steps:
receiving state information of each client sent by an EMQ server;
analyzing the online state of each client from the state information;
the EMQ server is connected with all the clients, receives the client online and offline theme subscription, and sends the state information after detecting the client online and offline state change.
2. The internet of things equipment online state identification method according to claim 1, wherein before receiving the state information of each client sent by the EMQ server, the method further comprises:
and after all the clients are matched by using the wildcards, sending client online and offline topic subscription request information to the EMQ server.
3. The internet of things device online status identification method according to claim 2, wherein after sending client offline topic subscription request information to the EMQ server, the method further comprises:
the session reuse mechanism is opened and the state value of the persistent message parameter is set to enabled.
4. The internet of things equipment online state identification method according to claim 1, wherein the receiving the state information of each client sent by the EMQ server, specifically receiving the Mqtt Topic sent by the EMQ server, and accordingly, the analyzing the online state of each client from the state information includes:
and extracting an Mqtt Topic from the message authorized callback function, acquiring the corresponding identifier of the online and offline states of the client from the Mqtt Topic, and determining the online state of each client.
5. An Internet of things equipment online state identification method is characterized by comprising the following steps:
if the EMQ server detects that the on-line and off-line states of the client are changed, the EMQ server sends the state information of the client to an on-line information platform, so that the on-line information platform can analyze the on-line state of the client from the state information;
the EMQ server is connected with all the clients and receives subscriptions of the online information platform for the online and offline topics of the clients.
6. The internet of things equipment online state identification method of claim 5, wherein before sending the state information of the client to an online information platform, the method further comprises:
and receiving client on-line and off-line topic subscription request information sent to the EMQ server by the on-line information platform after the wildcard is matched with all the clients.
7. An online information platform, comprising:
the receiving module is used for receiving the state information of each client side sent by the EMQ server;
the processing module is used for analyzing the online state of each client from the state information;
the EMQ server is connected with all the clients, receives the client online and offline theme subscription, and sends the state information after detecting the client online and offline state change.
8. A server, comprising:
the sending module is used for sending the state information of the client to an online information platform if the change of the online and offline states of the client is detected, so that the online information platform can analyze the online state of the client from the state information;
the server is an EMQ server and is connected with all the clients, and the EMQ server receives subscriptions of the online information platform for the online and offline topics of the clients.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the internet of things device online status recognition method according to any one of claims 1 to 6 when executing the program.
10. A non-transitory computer readable storage medium, having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the internet of things device presence identification method according to any one of claims 1 to 6.
CN201910958890.XA 2019-10-10 2019-10-10 Internet of things equipment online state identification method, online information platform and server Pending CN110635970A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910958890.XA CN110635970A (en) 2019-10-10 2019-10-10 Internet of things equipment online state identification method, online information platform and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910958890.XA CN110635970A (en) 2019-10-10 2019-10-10 Internet of things equipment online state identification method, online information platform and server

Publications (1)

Publication Number Publication Date
CN110635970A true CN110635970A (en) 2019-12-31

Family

ID=68976311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910958890.XA Pending CN110635970A (en) 2019-10-10 2019-10-10 Internet of things equipment online state identification method, online information platform and server

Country Status (1)

Country Link
CN (1) CN110635970A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112087499A (en) * 2020-08-26 2020-12-15 武汉普利商用机器有限公司 Internet of things cloud management method and system
CN112134758A (en) * 2020-09-22 2020-12-25 上海茂声智能科技有限公司 Method and device for monitoring weak network environment and reconnecting communication session

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916442A (en) * 2013-01-07 2014-07-09 阿里巴巴集团控股有限公司 Message pushing achieving method, mobile terminal and message pushing system
CN104052653A (en) * 2014-06-23 2014-09-17 广东天波信息技术股份有限公司 Method for state presentation based on MQTT
CN104639625A (en) * 2015-01-27 2015-05-20 华南理工大学 Data concentrator acquisition control method based on MQTT (Message Queuing Telemetry Transport), data concentrator acquisition control device based on MQTT and data concentrator acquisition control system based on MQTT
CN104836723A (en) * 2015-03-31 2015-08-12 青岛海尔智能家电科技有限公司 Communication method based on MQTT topic subscription mechanism and access gateway
CN106059892A (en) * 2016-05-17 2016-10-26 中国科学院沈阳计算技术研究所有限公司 Message engine integrated with communication system
US20160337465A1 (en) * 2015-05-15 2016-11-17 Cisco Technology, Inc. Multi-datacenter message queue
CN106385410A (en) * 2016-09-08 2017-02-08 四川长虹电器股份有限公司 Intelligent household appliance control system based on MQTT
CN107154972A (en) * 2017-04-27 2017-09-12 上海斐讯数据通信技术有限公司 A kind of Internet of Things smart machine state synchronization method and system based on equipment snapshot
CN108289081A (en) * 2017-01-10 2018-07-17 研华股份有限公司 The method and system of message queue communication protocol link monitor
CN108768826A (en) * 2018-05-16 2018-11-06 华南理工大学 Based on the message route method under MQTT and Kafka high concurrent scenes
CN109660431A (en) * 2018-12-29 2019-04-19 北京奇安信科技有限公司 The processing method and processing device of tracking equipment presence

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916442A (en) * 2013-01-07 2014-07-09 阿里巴巴集团控股有限公司 Message pushing achieving method, mobile terminal and message pushing system
CN104052653A (en) * 2014-06-23 2014-09-17 广东天波信息技术股份有限公司 Method for state presentation based on MQTT
CN104639625A (en) * 2015-01-27 2015-05-20 华南理工大学 Data concentrator acquisition control method based on MQTT (Message Queuing Telemetry Transport), data concentrator acquisition control device based on MQTT and data concentrator acquisition control system based on MQTT
CN104836723A (en) * 2015-03-31 2015-08-12 青岛海尔智能家电科技有限公司 Communication method based on MQTT topic subscription mechanism and access gateway
US20160337465A1 (en) * 2015-05-15 2016-11-17 Cisco Technology, Inc. Multi-datacenter message queue
CN106059892A (en) * 2016-05-17 2016-10-26 中国科学院沈阳计算技术研究所有限公司 Message engine integrated with communication system
CN106385410A (en) * 2016-09-08 2017-02-08 四川长虹电器股份有限公司 Intelligent household appliance control system based on MQTT
CN108289081A (en) * 2017-01-10 2018-07-17 研华股份有限公司 The method and system of message queue communication protocol link monitor
CN107154972A (en) * 2017-04-27 2017-09-12 上海斐讯数据通信技术有限公司 A kind of Internet of Things smart machine state synchronization method and system based on equipment snapshot
CN108768826A (en) * 2018-05-16 2018-11-06 华南理工大学 Based on the message route method under MQTT and Kafka high concurrent scenes
CN109660431A (en) * 2018-12-29 2019-04-19 北京奇安信科技有限公司 The processing method and processing device of tracking equipment presence

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112087499A (en) * 2020-08-26 2020-12-15 武汉普利商用机器有限公司 Internet of things cloud management method and system
CN112134758A (en) * 2020-09-22 2020-12-25 上海茂声智能科技有限公司 Method and device for monitoring weak network environment and reconnecting communication session

Similar Documents

Publication Publication Date Title
CN110113381B (en) Method and device for subscribing theme in block chain
CN110912808B (en) Message subscription method, device, system, equipment terminal and readable storage medium
CN105825409B (en) Electronic invoice message pushing system and method
CN109714202A (en) A kind of client off-line reason method of discrimination and concentrating type safety management system
CN110635970A (en) Internet of things equipment online state identification method, online information platform and server
CN104796406A (en) Method and device for identifying application
CN113157466A (en) Message pushing method, device, system, electronic equipment and storage medium
CN105991412A (en) Method and device for pushing message
CN112988485A (en) Simulation test method and device for power Internet of things equipment
CN111092934B (en) Method for updating client routing and storage medium
CN109474540B (en) Method and device for identifying OPC (optical proximity correction) flow
US20220182305A1 (en) Request Processing System and Method Thereof
CN111064729B (en) Message processing method and device, storage medium and electronic device
CN113193990A (en) Fault processing method and device
CN111901298A (en) Method and device for determining cloud short message platform during SSLVPN authentication and electronic equipment
CN108628670B (en) Method and system for quitting node application
CN115037537A (en) Abnormal traffic interception and abnormal domain name identification method, device, equipment and medium
CN112910683B (en) Method and terminal for acquiring key data state
CN105743875B (en) Information processing apparatus and information processing method
CN108574622B (en) Instant message processing method and device based on XMPP
CN108337128B (en) Method, device and system for monitoring communication state between systems
CN110460586B (en) In-vehicle node communication method, device, equipment and storage medium
CN113157615B (en) Service bus communication method, electronic equipment and computer storage medium
CN115102854B (en) Remote procedure call route management control method, system and equipment for micro-service
CN110855785B (en) Data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191231