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

CN108566312AInactive Publication Date: 2018-09-21MIDEA GRP CO LTD +1
5 Cites 21 Cited by

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 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses an offline detection method, comprising the steps of sending heartbeat data packets every other first preset time interval, wherein after the heartbeat data packets are sent for preset times, the sending of the heartbeat data packets is stopped; receiving a response signal of the heartbeat data packet after a first heartbeat data packet is sent; and judging that a terminalreceiving the heartbeat data packet is in an offline state when the response signal is not received within a second preset time interval, wherein the second preset time interval is greater than the sum of the total first preset time intervals among the heartbeat data packets and the response duration of the heartbeat data packets. The invention also discloses an offline detection device and a computer readable memory medium. The preset times of heartbeat data packets are sent every other preset time, and after all data packets are sent completely, whether the response signals of the heartbeatdata packets are received or not is uniformly detected in certain time interval, so whether the terminal is in the offline state or not is judged, and the offline detection speed and efficiency are improved.
Need to check novelty before this filing date? Find Prior Art

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...