Method for maintaining connection of terminal and network server, terminal and network server
A network server and terminal technology, applied in the field of communication and network, can solve the problems of power bottleneck, difficult to uniformly determine the cycle, and real-time data cannot be pushed, so as to reduce energy consumption and save power.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0031] According to a method for maintaining a connection between a terminal and a network server provided by an embodiment of the present invention, the terminal has a first processing unit (such as a main processor), and the first processing unit has a first state and a second state, wherein the second state (e.g., dormant state) consumes less power than the first state (e.g., active state), see figure 1 , the method includes:
[0032] When the first processing unit is in the second state, the terminal periodically sends heartbeat data packets to the network server connected through the network; or the network server periodically sends heartbeat data packets to the terminal connected through the network to maintain the terminal and the network server the connection between.
[0033] The terminal sends a heartbeat packet, specifically including:
[0034] The heartbeat data packet is received by the second processing unit (such as Modem) of the terminal before the first proc...
Embodiment 2
[0043]The terminal accesses the Internet and establishes a network connection (such as TCP or UDP) with the network server. In view of the long intermittent time of data transmission, in order to maintain the connection between the server and the terminal, the main processing unit of the terminal will issue an instruction to construct a heartbeat data packet, and send it to the communication function unit (such as Modem, Bluetooth function unit, etc.) ), and notify the communication function unit of the cycle of sending the heartbeat packet. During the sleep period of the main processing unit, the communication function unit sends a heartbeat packet to the network server at the said period, so as to maintain the connection between the terminal and the server.
[0044] refer to figure 2 , a method for maintaining a network connection of a terminal provided in this embodiment includes:
[0045] S101, the main processing unit of the terminal instructs to construct a heartbeat ...
Embodiment 3
[0081]In order to maintain the connection (TCP or UDP) between the network server and the terminal, in this embodiment, the server sends a special heartbeat packet to the terminal, by setting the relevant parameter values of the special heartbeat packet (IP packet), specifically a Predetermined lifetime (TTL, Time to live) value, so that the heartbeat packet can pass through the NAT gateway, but it is discarded before reaching the terminal, refer to Figure 5 . Since the heartbeat data packet passes through the NAT gateway, the status of the TCP or UDP connection channel on the gateway is refreshed, so the connection between the server and the terminal is maintained.
[0082] The web server sends a special data packet to maintain the connection between the web server and the terminal, so that the dormant terminal can keep connected to the web server without being woken up by the heartbeat packet sent by the web server.
[0083] refer to Figure 6 , a method for maintaining...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com