Unlock instant, AI-driven research and patent intelligence for your innovation.

Keep alive long connection method, device, terminal equipment and storage medium

A connection method and a technology for connecting devices, which are applied in the field of communication, and can solve problems such as small heartbeat intervals, large client traffic, and large power consumption.

Active Publication Date: 2021-11-12
GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] During the use of the existing keep-alive long connection method, when there is a time-sensitive application on the client, in order to ensure that the other party is disconnected in time, the fixed heartbeat interval is set to be relatively small, which in turn causes the client to Sending heartbeat data packets frequently for a long time makes the client's traffic and power consumption larger

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
  • Keep alive long connection method, device, terminal equipment and storage medium
  • Keep alive long connection method, device, terminal equipment and storage medium
  • Keep alive long connection method, device, terminal equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] In order to facilitate a better understanding of the present invention, the present invention will be further explained below in conjunction with the accompanying drawings of related embodiments. Embodiments of the invention are shown in the drawings, but the invention is not limited to the preferred embodiments described above. Rather, these embodiments are provided so that the disclosure of the invention will be more thorough.

[0046] see figure 1 , is a flow chart of the keep-alive long connection method provided in the first embodiment of the present invention, including steps S10 to S30.

[0047] Step S10, receiving the heartbeat data packet sent by the client, and judging whether the sending of the heartbeat data packet has timed out;

[0048] Among them, the client saves the sending interval value it is using and its own network information (for example, Unicom 3G or Telecom 2G), and the server saves the current interval value it is using, which should be adju...

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 present invention provides a keep-alive long connection method, device, terminal equipment, and storage medium. The method includes: receiving a heartbeat data packet sent by a client, and judging whether the sending of the heartbeat data packet has timed out; When the sending of the heartbeat data packet is overtime, obtain and judge whether the timeout times of the heartbeat data packet is equal to the first preset number of times; if so, adjust the sending interval value in the heartbeat data packet, and adjust the The sending interval value is sent to the client to control the client to send the heartbeat data packet according to the adjusted sending interval value. The present invention uses the timeout times and the first preset The design of the number of judgments improves the accuracy of the adjustment of the sending interval value, and through the design of adjusting the sending interval value, it prevents the traffic and power consumption caused by the heartbeat packet method at a fixed time interval The consumption is large.

Description

technical field [0001] The present invention relates to the field of communication technology, in particular to a keep-alive long connection method, device, terminal equipment and storage medium. Background technique [0002] At present, with the development of the mobile Internet and the change of the way people socialize, mobile APPs (Applications), enterprise applications, mobile games, and WEB (Internet) applications are slowly beginning to embed instant messaging functions, making Real-time communication, collaboration and sharing between people and people, people and enterprises, and enterprises and enterprises can be done anytime and anywhere. In the communication between the mobile terminal and the server, in order to maintain a long connection between the mobile terminal and the server, the client needs to send a protocol packet defined by the application layer to the server, called heartbeat. [0003] Most of the existing keep-alive long connection methods use the...

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 Patents(China)
IPC IPC(8): H04L12/26H04L29/08
CPCH04L43/103H04L67/145
Inventor 杨朋
Owner GUANGZHOU SHIYUAN ELECTRONICS CO LTD