Method for state presentation based on MQTT

A state and message technology, applied in digital transmission systems, electrical components, transmission systems, etc., can solve problems such as high hardware requirements, high cost of deploying hardware, and meaninglessness, to ensure timeliness, accessibility, and effectiveness sexual effect

Inactive Publication Date: 2014-09-17
GUANGDONG TELEPOWER TELECOM TECH
View PDF3 Cites 29 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0027] 1. Based on the SIP protocol, the protocol process is relatively complicated. The problems of NAT traversal and firewall on SIP also exist on SIMPLE
[0028] 2. Based on the XML text to identify the state, the cost of state identification is relatively high
[0029] 3. The protocol interaction process is complicated
[0030] 4. The cost of installing and deploying the XCAP system is relatively high, and there are relatively high requirements for hardware;
[0031] 5. For the terminal, the traffic and power consumed are relatively large
[0037] 3. For the terminal, the traffic and power consumed are relatively large;
[0038] 4. The cost of deploying hardware is high
[0054] However, based on the current MQTT protocol specification, the function of status presentation cannot be realized, and it needs to be extended
[0055] When the QOS of the MQTT PUBLISH message is 0, there is no guarantee that the client can receive the corresponding message. When the network condition is not good, the client cannot receive the message. For the corresponding status presentation, it cannot perceive the current status of other users. ; In addition, because the message with QOS of 0 is not cached on the server, after a new client logs in, it cannot obtain the current status of other users from the server in time, and the corresponding status message will not be received until other users release a new status
[0056] But when QOS is set to 1 or 2, there will be problems. When QOS is 1 or 2, it will ensure that the client will receive every message. If the client is offline for a long time, it will receive it after going online. A large number of historical status messages, these historical status messages are meaningless, the client only cares about the latest status of other users

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for state presentation based on MQTT
  • Method for state presentation based on MQTT
  • Method for state presentation based on MQTT

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0095] Please refer to Figure 4 As shown, Broker is the MQTT server used by client B to receive the status message sent by client A. When client B is always online, it includes the following steps:

[0096] Step 1. Client B sends SUBSCRIBE topic information to Broker;

[0097] Step 2. Broker returns topic subscription confirmation (SUBACK) information to client B;

[0098] Step 3. Client A publishes instant message 1 (PUBLISH MSG1, which is a status message) to Broker;

[0099] Step 4, the Broker returns to the client A the instant message 1 confirmation message (PUBACK) received by the Broker and stores the instant message 1 in its cache area;

[0100] Step 5. When the instant message 1 is the content in the topic information subscribed by the client B (of course, it can also be other clients), the Broker pushes the instant message 1 to the client B, and the client B returns the push of the instant message 1 Confirm (PUBACK) information to Broker;

[0101] Step 6. When B...

Embodiment 2

[0105] The present invention is mainly applied to the application when the client B is not always online, and its flow chart refers to Figure 5 shown, including the following steps:

[0106] Firstly, the 3 steps are the normal interaction process when the QOS is 3 in the first embodiment, which will not be repeated here.

[0107] When client B is offline (step 4), after client A sends status message 2 to Broker (step 5), Broker will not push the status message 2 to client B (step 6), but choose to store it in In the cache area above it (step 7), because there is no corresponding status message stored in the cache area at this time (the so-called status message here obviously refers to the corresponding topic information subscribed by client B), so no The previous information will be cleared, and when client A sends status message 3 to Broker (step 8), the same status message 3 cannot be pushed to client B because client B is offline. At this time, you need State message 3 i...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for state presentation based on MQTT. The method comprises the steps that 1, state messages sent to a second client by a first client are received; 2, the state messages needing to be cached are refreshed, wherein according to the refreshing process, the newest state message is restored and the earlier state messages are deleted according to the time sequence; 3, the newest state message is stored to a caching zone; 4, the newest state message stored in the caching zone is pushed to the second client. The invention further discloses a system for state presentation based on MQTT. The system comprises a state message receiving unit, a state message refreshing unit, a state message buffering unit and a state message pushing unit. According to the method, state presentation is achieved on the basis of MQTT, the advantage of low weight of MQTT is obtained, and meanwhile the effectiveness of the state messages is guaranteed according to the mechanism that only the last state message is cached.

Description

technical field [0001] The invention relates to a method for realizing state presentation based on MQTT, in particular to a method for realizing state presentation based on MQTT. Background technique [0002] Presence service means that a user or client publishes its current communication status to other users. For example, it may announce that it is currently free or busy. When other users communicate with this user, the published status can promptly prompt their current communication possibility and willingness, etc. The most commonly used method at present is: on the instant messaging client, display a clear round mark and corresponding text for each state of the user. Status presentation applications mainly include personal applications and industry (group) applications: [0003] Among them, personal applications generally include: [0004] 1. Personalization of address book: With personalized address book information, the owner can control the information in the oth...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/58
Inventor 吴晓东颜君志梁生平黄昊左俊
Owner GUANGDONG TELEPOWER TELECOM TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products