Offline detection method and device and computer readable memory medium
An offline detection and storage medium technology, applied in the field of communication, can solve the problem of long time-consuming offline detection
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Publication Date
- 2018-09-21
- Estimated Expiration
- Not applicable · inactive patent
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] The present invention relates to the technical field of communication, in particular to an off-line detection method, device and computer-readable storage medium. Background technique
[0002] With the development of science and technology, smart home appliances are gradually diversified. A set of visual PAD tablets are embedded in many smart home appliances as the user's control interface to upload user data. In order for the smart home appliances to exchange data with the server in real time, a long connection between the home appliance and the server is maintained to ensure the stable online of the home appliance.
[0003] A set of heartbeat detection mechanisms are often used in long-term connections, and the method of regularly sending heartbeat packets is used to judge the connection status of the terminal, so as to ensure that the server can discover the online and offline scenarios of the terminal. The offline detection method in the heartbeat...
Examples
no. 1 example
[0078] refer to figure 2 , the first embodiment of the offline detection of the present invention, the offline detection method includes:
[0079] Step S10, sending heartbeat data packets every first preset time interval.
[0080] Step S20, after sending the first heartbeat data packet, receiving a response signal of the heartbeat data packet.
[0081] When the heartbeat data packet or communication data sent by the server does not receive a response signal from the receiving terminal, the server starts the offline detection mode in the heartbeat detection. In the offline detection mode, the heartbeat data packet is sent every first preset time interval, and the response information of the heartbeat data packet is received after sending the first heartbeat data packet, so as to detect whether the heartbeat data packet is sent successfully. Here, the first preset time interval for sending the heartbeat data packet is shorter than the time interval for regularly sending the h...