CN109660431A - The processing method and processing device of tracking equipment presence - Google Patents
The processing method and processing device of tracking equipment presence Download PDFInfo
- Publication number
- CN109660431A CN109660431A CN201811645997.0A CN201811645997A CN109660431A CN 109660431 A CN109660431 A CN 109660431A CN 201811645997 A CN201811645997 A CN 201811645997A CN 109660431 A CN109660431 A CN 109660431A
- Authority
- CN
- China
- Prior art keywords
- message
- terminal
- last
- server
- application 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
Landscapes
- Engineering & Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Debugging And Monitoring (AREA)
Abstract
A kind of processing method and processing device of tracking equipment presence provided in an embodiment of the present invention, the connection state of itself and terminal is detected by MQTT server, obtain testing result, and when the testing result is to disconnect, LAST Will message is then sent to application server, so that the application server, which carries out processing to the LAST Will message, obtains status information, knows disconnected with terminal according to the state information, realize the purpose of quick tracking equipment presence.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of processing method and processing devices of tracking equipment presence.
Background technique
Server and terminal carry out communication service connection at present, need after connection the moment pay close attention to its connection status.And
In the prior art, need voluntarily to realize that long connection service could preferable tracking equipment presence.
Summary of the invention
The present invention provides a kind of processing method and processing device of tracking equipment presence, for solving the above problems.
In a first aspect, the embodiment of the present invention provides a kind of processing method of tracking equipment presence, comprising:
MQTT server detects the connection state of itself and terminal, obtains testing result;
If the testing result is to disconnect, LAST Will message is sent to application server, so that described answer
Processing is carried out to the LAST Will message with server and obtains status information, is known according to the state information disconnected with terminal
Open connection;
Wherein, the application server is the server that business is communicatively coupled with the terminal, the LAST Will
Message is the message being stored in the MQTT server after application server is successfully connected with the terminal.
Second aspect, the embodiment of the present invention provide a kind of processing unit of tracking equipment presence, comprising:
Detection module is detected for the connection state to itself and terminal, obtains testing result;
Sending module, for when the testing result is to disconnect, LAST Will message to be sent to application service
Device, so that the application server, which carries out processing to the LAST Will message, obtains status information, according to the state information
Know and is disconnected with terminal;
Wherein, the application server is the server that business is communicatively coupled with the terminal, the LAST Will
Message is the message being stored in the MQTT server after application server is successfully connected with the terminal.
The third aspect, the embodiment of the present invention provides a kind of electronic equipment, including memory, processor and is stored in memory
Computer program that is upper and can running on a processor, which is characterized in that the processor is realized as above when executing described program
The step of stating method.
Fourth aspect, the embodiment of the present invention provide a kind of non-transient computer readable storage medium, are stored thereon with calculating
Machine program is realized when the computer program is executed by processor such as the step of the above method.
As shown from the above technical solution, a kind of processing method of tracking equipment presence provided in an embodiment of the present invention and
Device detects the connection state of itself and terminal by MQTT server, obtains testing result, and in the testing result
When to disconnect, then LAST Will message is sent to application server, so that the application server is to the LAST
Will message carries out processing and obtains status information, knows disconnect with terminal according to the state information, realizes quickly tracking
The purpose of equipment on-line state.
Detailed description of the invention
Fig. 1 is the flow diagram of the processing method for the tracking equipment presence that one embodiment of the invention provides;
Fig. 2 is the structural schematic diagram of the processing unit for the tracking equipment presence that one embodiment of the invention provides;
Fig. 3 is the structural schematic diagram for the electronic equipment that one embodiment of the invention provides.
Specific embodiment
With reference to the accompanying drawings and examples, specific embodiments of the present invention will be described in further detail.Implement below
Example is not intended to limit the scope of the invention for illustrating the present invention.
Fig. 1 shows one embodiment of the invention and provides a kind of processing method of tracking equipment presence, comprising:
S11, MQTT server detect the connection state of itself and terminal, obtain testing result;
If S12, the testing result are to disconnect, LAST Will message is sent to application server, so that institute
It states application server and processing acquisition status information is carried out to the LAST Will message, know according to the state information and whole
End disconnects;
Wherein, the application server is the server that business is communicatively coupled with the terminal, the LAST Will
Message is the message being stored in the MQTT server after application server is successfully connected with the terminal.
For step S11 and step S12, it should be noted that in embodiments of the present invention, MQTT (Message
Queuing Telemetry Transport, message queue telemetering transmission) it is the instant communication protocol that IBM is developed.MQTT
Server is the equipment for executing the instant communication protocol, which is communicatively coupled industry for realizing application server and terminal
The intermediate equipment of business.The MQTT server receives institute in the connection procedure for completing the application server and the terminal
It states the LAST Will message (unfulfilled wish of the deceased message) of terminal transmission and stores.
In the present embodiment, the MQTT server can be measured in real time the connection state of itself and terminal, be examined
Survey result.If the testing result is to disconnect, LAST Will message is sent to application server, so that described answer
Processing is carried out to the LAST Will message with server and obtains status information, is known according to the state information disconnected with terminal
Open connection.Herein, the application server divides message the LAST Will message using preset format rule
Analysis, learns status information.The status information includes device name and Status Type.Status Type is offline and online.
In embodiments of the present invention, if the testing result is to keep connection, do not disappear to application server transmission
Breath.That is: application server and terminal are also in holding connection status.
A kind of processing method of tracking equipment presence provided in an embodiment of the present invention, by MQTT server to its with
The connection state of terminal is detected, and obtains testing result, and when the testing result is to disconnect, then by LAST
Will message is sent to application server, so that the application server, which carries out processing to the LAST Will message, obtains shape
State information, knows disconnect with terminal according to the state information, realizes the purpose of quick tracking equipment presence.
Fig. 2 shows a kind of processing units for tracking equipment presence that one embodiment of the invention provides, including detection
Module 21, sending module 21, in which:
Detection module 21 is detected for the connection state to itself and terminal, obtains testing result;
Sending module 22, for when the testing result is to disconnect, LAST Will message to be sent to using clothes
Business device is believed so that the application server, which carries out processing to the LAST Will message, obtains status information according to the state
Breath is known to be disconnected with terminal;
Wherein, the application server is the server that business is communicatively coupled with the terminal, the LAST Will
Message is the message being stored in the MQTT server after application server is successfully connected with the terminal.
It further include memory module, for receiving institute in the connection procedure for completing the application server and the terminal
It states the LAST Will message of terminal transmission and stores.
Since described device of the embodiment of the present invention is identical as the principle of above-described embodiment the method, for more detailed
Explain that details are not described herein for content.
It should be noted that can be by hardware processor (hardware processor) come real in the embodiment of the present invention
Existing related function module.
A kind of processing unit of tracking equipment presence provided in an embodiment of the present invention, by MQTT server to its with
The connection state of terminal is detected, and obtains testing result, and when the testing result is to disconnect, then by LAST
Will message is sent to application server, so that the application server, which carries out processing to the LAST Will message, obtains shape
State information, knows disconnect with terminal according to the state information, realizes the purpose of quick tracking equipment presence.
Fig. 3 illustrates the entity structure schematic diagram of a kind of electronic equipment, as shown in figure 3, the electronic equipment may include: place
Manage device (processor) 310, communication interface (Communications Interface) 320,330 He of memory (memory)
Communication bus 340, wherein processor 310, communication interface 320, memory 330 complete mutual lead to by communication bus 340
Letter.Processor 310 can call the logical order in memory 330, to execute following method: to MQTT server and terminal
Connection state is detected, and obtains testing result, and when the testing result is to disconnect, then by LAST Will message
It is sent to application server, so that the application server, which carries out processing to the LAST Will message, obtains status information, root
Know according to the status information and is disconnected with terminal.
In addition, the logical order in above-mentioned memory 330 can be realized by way of SFU software functional unit and conduct
Independent product when selling or using, can store in a non-transient computer readable storage medium.Based on such reason
Solution, substantially the part of the part that contributes to existing technology or the technical solution can in other words for technical solution of the present invention
To be expressed in the form of software products, which is stored in a storage medium, including some instructions
With so that computer equipment (can be personal computer, server or the network equipment an etc.) execution present invention is each
The all or part of the steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory
(ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk
Etc. the various media that can store program code.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member
It is physically separated with being or may not be, component shown as a unit may or may not be physics list
Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs
In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness
Labour in the case where, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on
Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should
Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers
It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation
Method described in certain parts of example or embodiment.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;
And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and
Range.
Claims (10)
1. a kind of processing method of tracking equipment presence characterized by comprising
MQTT server detects the connection state of itself and terminal, obtains testing result;
If the testing result is to disconnect, LAST Will message is sent to application server, so that the application takes
Business device carries out processing to the LAST Will message and obtains status information, knows disconnect company with terminal according to the state information
It connects;
Wherein, the application server is the server that business is communicatively coupled with the terminal, the LAST Will message
The message being stored in after being successfully connected for application server and the terminal in the MQTT server.
2. the method according to claim 1, wherein further include: the MQTT server completes the application
In server and the connection procedure of the terminal, receives the LAST Will message that the terminal is sent and store.
3. the method according to claim 1, wherein further include: if the testing result is to keep connection, no
Message is sent to the application server.
4. the method according to claim 1, wherein the status information includes device name and Status Type.
5. a kind of processing unit of tracking equipment presence characterized by comprising
Detection module is detected for the connection state to itself and terminal, obtains testing result;
Sending module, for when the testing result is to disconnect, LAST Will message to be sent to application server,
So that the application server, which carries out processing to the LAST Will message, obtains status information, obtain according to the state information
Know and is disconnected with terminal;
Wherein, the application server is the server that business is communicatively coupled with the terminal, the LAST Will message
The message being stored in after being successfully connected for application server and the terminal in the MQTT server.
6. device according to claim 5, which is characterized in that further include memory module, for completing the application clothes
Device be engaged in the connection procedure of the terminal, receives the LAST Will message that the terminal is sent and stores.
7. device according to claim 5, which is characterized in that the sending module is also used to: being in the testing result
When keeping connection, message is not sent to the application server.
8. device according to claim 5, which is characterized in that the status information includes device name and Status Type.
9. a kind of electronic equipment including memory, processor and stores the calculating that can be run on a memory and on a processor
Machine program, which is characterized in that the processor is realized when executing described program such as any one of Claims 1-4 the method
Step.
10. a kind of non-transient computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer
It is realized when program is executed by processor such as the step of any one of Claims 1-4 the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811645997.0A CN109660431A (en) | 2018-12-29 | 2018-12-29 | The processing method and processing device of tracking equipment presence |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811645997.0A CN109660431A (en) | 2018-12-29 | 2018-12-29 | The processing method and processing device of tracking equipment presence |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109660431A true CN109660431A (en) | 2019-04-19 |
Family
ID=66118188
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811645997.0A Pending CN109660431A (en) | 2018-12-29 | 2018-12-29 | The processing method and processing device of tracking equipment presence |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109660431A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110635970A (en) * | 2019-10-10 | 2019-12-31 | 武汉普利商用机器有限公司 | Internet of things equipment online state identification method, online information platform and server |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150281374A1 (en) * | 2014-03-31 | 2015-10-01 | Ford Global Technologies, Llc | Remote vehicle connection status |
CN106713389A (en) * | 2015-11-13 | 2017-05-24 | 深圳云联讯数据科技有限公司 | Monitoring method and system |
CN108259262A (en) * | 2016-12-02 | 2018-07-06 | 远升科技股份有限公司 | Method and system for monitoring connection status of device |
-
2018
- 2018-12-29 CN CN201811645997.0A patent/CN109660431A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150281374A1 (en) * | 2014-03-31 | 2015-10-01 | Ford Global Technologies, Llc | Remote vehicle connection status |
CN106713389A (en) * | 2015-11-13 | 2017-05-24 | 深圳云联讯数据科技有限公司 | Monitoring method and system |
CN108259262A (en) * | 2016-12-02 | 2018-07-06 | 远升科技股份有限公司 | Method and system for monitoring connection status of device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110635970A (en) * | 2019-10-10 | 2019-12-31 | 武汉普利商用机器有限公司 | Internet of things equipment online state identification method, online information platform and server |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108520454A (en) | Method and system for calling back orders in real time | |
CN109446071A (en) | Interface test method, interface test device, electronic equipment and storage medium | |
CN110399253A (en) | Delay machine treating method and apparatus | |
CN109005208B (en) | Method and device for pushing information | |
CN108833510A (en) | Message treatment method and device | |
CN110347493A (en) | Processing method, display methods, device, equipment and the storage medium of page data | |
CN110445632A (en) | A kind of method and apparatus for preventing client collapse | |
CN113378855A (en) | Method for processing multitask, related device and computer program product | |
US11036490B2 (en) | Proactive storage system-based software version analysis using machine learning techniques | |
CN109818994A (en) | Information processing method and device for agent side | |
CN108366098A (en) | A kind of data interactive method and device of network node | |
CN109660431A (en) | The processing method and processing device of tracking equipment presence | |
WO2020146170A1 (en) | Test result triage for a failed code validation | |
CN110162959A (en) | Data processing method and device based on device-fingerprint | |
CN110489334A (en) | A kind of system integration and test test processing method and device | |
CN116926241B (en) | Immune cell culture control method and system | |
CN109359034A (en) | A kind of operation system test method, computer readable storage medium and terminal device | |
CN111353039B (en) | File category detection method and device | |
CN109408104B (en) | Method and device for acquiring game integration information | |
CN113157911A (en) | Service verification method and device | |
CN113420713A (en) | Abnormity monitoring method and device, electronic equipment and computer readable medium | |
CN114610599A (en) | Test method and system | |
CN106569915B (en) | A kind of data back up method and data backup server | |
CN109977087A (en) | A kind of update detection method and device | |
CN113819989B (en) | Article packaging method, apparatus, electronic device and computer readable medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190419 |