CN112350895B - Keep-alive method and device for application program, equipment and computer readable storage medium - Google Patents

Keep-alive method and device for application program, equipment and computer readable storage medium Download PDF

Info

Publication number
CN112350895B
CN112350895B CN202011227049.2A CN202011227049A CN112350895B CN 112350895 B CN112350895 B CN 112350895B CN 202011227049 A CN202011227049 A CN 202011227049A CN 112350895 B CN112350895 B CN 112350895B
Authority
CN
China
Prior art keywords
application program
keep
alive
equipment
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011227049.2A
Other languages
Chinese (zh)
Other versions
CN112350895A (en
Inventor
王云华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202011227049.2A priority Critical patent/CN112350895B/en
Publication of CN112350895A publication Critical patent/CN112350895A/en
Application granted granted Critical
Publication of CN112350895B publication Critical patent/CN112350895B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Abstract

The invention relates to the technical field of computers, and discloses a keep-alive method and device for an application program, terminal equipment, intelligent household equipment and a computer readable storage medium. According to the method, the terminal equipment acquires a first application program in an operating state on the terminal equipment, then a heartbeat packet corresponding to the first application program is sent to the intelligent household equipment according to the first application program, feedback information sent by the intelligent household equipment is not received within a first preset time period, it is determined that a second application program on the intelligent household equipment is not in the operating state, and then a wake-up message is sent to the intelligent household equipment; the intelligent home equipment receives a wake-up message sent by the terminal equipment, and wakes up a second application program on the intelligent home equipment according to the wake-up message so as to keep the second application program alive; the problem that in the related technology, application programs on the master device and the slave device are not on line simultaneously, and inconvenience is brought to users in use and operation is solved.

Description

Keep-alive method and device for application program, equipment and computer readable storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a keep-alive method and device for an application program, terminal equipment, intelligent household equipment and a computer readable storage medium.
Background
With the development of computer technology and the continuous improvement of living standard of people, various intelligent household devices are more and more popularized and become an indispensable part of the life of people.
At present, the interconnection of smart home master and slave devices has become a basic function, for example, a master smart television is connected with a slave smart phone, and various problems always occur in the linkage process of the master and slave devices, for example, the disconnection of an application program in the master device caused by poor network environment causes the inconvenience of use and operation of a user and the poor satisfaction degree of use experience.
Therefore, how to ensure that the applications on the master device and the slave device can be on-line at the same time is a problem to be solved.
Disclosure of Invention
The invention mainly aims to provide a keep-alive method and device of an application program, terminal equipment, intelligent household equipment and a computer readable storage medium, and aims to ensure that the application programs on master and slave equipment can be on line simultaneously.
In order to achieve the above object, the present invention provides a keep-alive method for an application, which is applied to a terminal device, and the keep-alive method for the application comprises:
acquiring a first application program in a running state on the terminal equipment;
sending a heartbeat packet corresponding to the first application program to the intelligent household equipment according to the first application program;
if the feedback information sent by the intelligent home equipment is not received in a first preset time period, determining that a second application program on the intelligent home equipment is not in an operating state;
and sending a wake-up message to the intelligent household equipment so as to keep the second application program alive.
Optionally, before the step of sending the heartbeat packet corresponding to the first application program to the smart home device according to the first application program, the keep-alive method of the application program further includes:
sending confirmation information whether the first application program is installed or not to the intelligent household equipment;
and receiving installation confirmation information sent by the intelligent household equipment.
Optionally, the step of sending, according to the first application program, the heartbeat packet corresponding to the first application program to the smart home device includes:
sending heartbeat packets corresponding to the first application program to the intelligent household equipment every other second preset time period according to the first application program;
if the feedback information sent by the intelligent household equipment is not received in the first preset time period, the step of determining that the second application program on the intelligent household equipment is not in the running state comprises the following steps:
if the heartbeat packet corresponding to the first application program is sent to the intelligent home equipment for multiple times and the feedback information sent by the intelligent home equipment is not received within a first preset time period, it is determined that a second application program on the intelligent home equipment is not in an operating state.
In order to achieve the above object, the present invention provides a keep-alive method for an application program, which is applied to an intelligent home device, and the keep-alive method for the application program includes:
receiving a wake-up message sent by terminal equipment; the terminal equipment sends a heartbeat packet corresponding to a first application program in an operating state to the intelligent home equipment, and the terminal equipment sends the heartbeat packet when not receiving feedback information sent by the intelligent home equipment in a first preset time period;
and awakening a second application program on the intelligent household equipment according to the awakening message so as to keep the second application program alive.
Optionally, before the step of receiving the wake-up message sent by the terminal device, the keep-alive method of the application program further includes:
receiving whether a first application program sent by the terminal equipment is installed or not;
judging whether an installation data packet of the second application program exists or not according to the information for determining whether the first application program is installed or not;
and if so, sending installation confirmation information of the second application program.
Optionally, the waking a second application program on the smart home device according to the wake-up message to keep the second application program alive includes:
acquiring a second application program identifier from the wake-up message;
determining a second application program according to the second application program identifier;
and awakening the second application program on the intelligent household equipment so as to keep the second application program alive.
In addition, in order to achieve the above object, the present invention further provides a keep-alive device for an application, which is applied to a terminal device, and the keep-alive device for the application includes:
the acquisition module is used for acquiring a first application program in a running state on the terminal equipment;
the first sending module is used for sending the heartbeat packet corresponding to the first application program to the intelligent household equipment according to the first application program;
the determining module is used for determining that a second application program on the intelligent household equipment is not in an operating state if the feedback information sent by the intelligent household equipment is not received in a first preset time period;
and the second sending module is used for sending a wake-up message to the intelligent household equipment so as to keep the second application program alive.
In addition, in order to achieve the above object, the present invention further provides a keep-alive device for an application program, which is applied to an intelligent home device, and the keep-alive device for the application program includes:
the receiving module is used for receiving the awakening message sent by the terminal equipment; the terminal equipment sends a heartbeat packet corresponding to a first application program in an operating state to the intelligent home equipment, and the terminal equipment sends the heartbeat packet when not receiving feedback information sent by the intelligent home equipment in a first preset time period;
and the awakening module is used for awakening a second application program on the intelligent household equipment according to the awakening message so as to keep the second application program alive.
In addition, to achieve the above object, the present invention also provides a terminal device, including: memory, a processor and a keep-alive program stored on the memory and running an application on the processor, the keep-alive program of the application when executed by the processor implementing the steps of the keep-alive method of the application as described above.
In addition, in order to achieve the above object, the present invention further provides an intelligent home device, including: memory, a processor and a keep-alive program stored on the memory and running an application on the processor, the keep-alive program of the application when executed by the processor implementing the steps of the keep-alive method of the application as described above.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, where a keep-alive program of an application program is stored on the computer readable storage medium, and the keep-alive program of the application program is executed by a processor to implement the steps of the keep-alive method of the application program on the terminal device side as described above, or to implement the steps of the keep-alive method of the application program on the smart home device side as described above.
According to the technical scheme provided by the invention, a first application program in an operating state on the terminal equipment is obtained through the terminal equipment, then a heartbeat packet corresponding to the first application program is sent to the intelligent household equipment according to the first application program, feedback information sent by the intelligent household equipment is not received within a first preset time period, a second application program on the intelligent household equipment is determined not to be in the operating state, and then a wake-up message is sent to the intelligent household equipment; the intelligent home equipment receives a wake-up message sent by the terminal equipment, and wakes up a second application program on the intelligent home equipment according to the wake-up message so as to keep the second application program alive; the problem that in the related technology, application programs on the master device and the slave device are not on line simultaneously, and inconvenience is brought to users in use and operation is solved. The technical scheme provided by the invention ensures that the application programs on the terminal equipment and the intelligent household equipment can be in the running state at the same time, so that the use and the operation of a user are facilitated, a great deal of convenience is brought to the user, and the experience satisfaction is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the structures shown in the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a terminal device and/or an intelligent home device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a keep-alive method for an application according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a keep-alive method for an application program according to a second embodiment of the present invention;
FIG. 4 is a block diagram of a keep-alive device of the present invention according to a first embodiment;
fig. 5 is a block diagram of a keep-alive device according to a first embodiment of the application program of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a terminal device and/or an intelligent home device in a hardware operating environment according to an embodiment of the present invention.
Terminal equipment and/or intelligent house equipment include: at least one processor 101, a memory 102, and a keep-alive program of an application stored on the memory and operable on the processor, the keep-alive program of the application configured to implement the steps of the keep-alive method of the application of any of the following embodiments.
Processor 101 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 101 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 101 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 101 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. The processor 101 may further include an AI (Artificial Intelligence) processor for processing keep-alive method operations related to the application program, so that the keep-alive method model of the application program can be trained and learned autonomously, thereby improving efficiency and accuracy.
Memory 102 may include one or more computer-readable storage media, which may be non-transitory. Memory 102 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage terminal devices and/or smart home devices, flash memory storage terminal devices, and/or smart home devices. In some embodiments, a non-transitory computer readable storage medium in memory 102 is used to store at least one instruction for execution by processor 101 to implement a keep-alive method for an application program as provided by method embodiments herein.
In some embodiments, the terminal device and/or the smart home device may further include: a communication interface 103 and at least one peripheral device. The processor 101, memory 102 and communication interface 103 may be connected by a bus or signal lines. Various peripheral devices may be connected to communication interface 103 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 104, display screen 105, and power supply 106.
The communication interface 103 can be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 101 and the memory 102. In some embodiments, the processor 101, memory 102, and communication interface 103 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 101, the memory 102 and the communication interface 103 may be implemented on a single chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 104 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 104 communicates with a communication network and other communication terminal devices and/or smart home devices through electromagnetic signals. The rf circuit 104 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 104 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 104 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 104 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 105 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 105 is a touch display screen, the display screen 105 also has the ability to capture touch signals on or over the surface of the display screen 105. The touch signal may be input to the processor 101 as a control signal for processing. At this point, the display screen 105 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 105 may be a front panel of the terminal device and/or the smart home device; in other embodiments, the number of the display screens 105 may be at least two, and the at least two display screens are respectively disposed on different surfaces of the terminal device and/or the smart home device or are in a folding design; in some embodiments, the display 105 may be a flexible display, disposed on a curved surface or a folded surface of the terminal device and/or the smart home device. Even further, the display screen 105 may be arranged in a non-rectangular irregular pattern, i.e. a shaped screen. The Display screen 105 may be made of LCD (liquid crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The power supply 106 is used for supplying power to each component in the terminal device and/or the smart home device. The power source 106 may be alternating current, direct current, disposable batteries, or rechargeable batteries. When the power source 106 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the terminal device and/or smart home device, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
Based on the above hardware structure, embodiments of the present invention are proposed.
Referring to fig. 2, fig. 2 is a flowchart illustrating a keep-alive method of an application program according to a first embodiment of the present invention, where the keep-alive method of the application program includes the following steps:
step S20: the terminal equipment acquires a first application program in a running state on the terminal equipment.
It should be clear that the first application program in the running state on the terminal device in this embodiment includes two points, where:
the application program is installed on the terminal device, and is referred to as a first application program for distinguishing from the application program installed on the smart home device, and correspondingly, the application program installed on the smart home device is referred to as a second application program.
In addition, in the embodiment, the application programs installed on the terminal device and the smart home device can be in the running state at the same time, namely, the representations can be on-line at the same time. It is understood that, in this embodiment, the first application and the second application may be the same or may be associated with each other, that is, the first application and the second application may be the same application or may also be associated with each other; wherein:
the same application program represents the same application program installed on different terminals, for example, the first application program "Tencent qq" is installed on the terminal device, the second application program "Tencent qq" is installed on the smart home device, and both are the application program "Tencent qq", and only the installation terminals are different.
The associated application program represents that a certain relevance exists between the first application program and the second application program, wherein the relevance can be determined according to the operation type or the application type and the like; for example, the first application is "pan bao", the second application is "pay bao" and "wechat", because both involve payment operations, or the first application is "Tencent video", the second application is "Aiqiyi", "mango TV", "potato video", "trembler short video", because both are video-type applications, in practical applications, it can be flexibly adjusted according to specific application scenarios.
The second point is that the application is an application in a running state on the terminal device, which may be an application in a running state in the foreground, an application in a running state in the background, or an application in running states in both the foreground and the background.
For a better understanding, a specific example is described herein; for example, if the terminal device is installed with 10 applications A0, A1, A2, A3, A4, A5, A6, A7, A8, and A9, where there are A1, A2, and A4 in the foreground and A6, A7, and A9 in the background, then the application A1, A2, and A4 may be acquired, the application A1, A2, and A4 may be used as the first application, the application A6, A7, and A9 may be acquired, the application A6, A7, and A9 may be used as the first application, the application A1, A2, A4, A6, A7, and A9 may be acquired, and the application A1, A2, A4, A6, A7, and A9 may be used as the first application.
Step S21: the terminal device sends the heartbeat packet corresponding to the first application program to the intelligent household device according to the first application program.
It should be clear that, in this embodiment, after acquiring the first application program in the running state, the terminal device needs to send the heartbeat packet corresponding to the first application program to the smart home device according to the first application program; specifically, the terminal device may send the heartbeat packet corresponding to the first application program to the smart home device according to the identification number or the name of the first application program.
It should be clear that, in this embodiment, the heartbeat packet corresponding to the first application represents that different application programs correspond to different heartbeat packets, but the heartbeat packets have the same function and are all used to determine whether the second application program is in a running state.
For a better understanding, a specific example is described herein; for example, the terminal device acquires the first application programs A1 and A2, and then sends the heartbeat packet corresponding to the application program A1 to the smart home device according to the application program name A1 of the first application program, and sends the heartbeat packet corresponding to the application program A2 to the smart home device according to the application program name A2 of the second application program.
In this embodiment, the step of sending, by the terminal device, the heartbeat packet corresponding to the first application program to the smart home device according to the first application program may include: and the terminal equipment sends the heartbeat packet corresponding to the first application program to the intelligent household equipment every second preset time period according to the first application program.
It should be clear that, in this embodiment, the terminal device may send the heartbeat packet corresponding to the first application program to the smart home device every other second preset time period, that is, the terminal device may send the heartbeat packet corresponding to the first application program to the smart home device multiple times, where a time interval of each sending by the terminal device is the second preset time period, so as to improve the accuracy of keeping the second application program alive.
It should be noted that, in practical application, the second preset time period may be flexibly set, for example, if the second preset time period is set to 5ms, the terminal device sends the heartbeat packet corresponding to the first application program to the smart home device every 5 ms; therefore, through setting a reasonable second preset time period, the keep-alive accuracy of the second application program can be improved while the consumption of the terminal equipment and the intelligent household equipment system is reduced.
It can be understood that there may be one or more first application programs acquired by the terminal device; when the first application programs acquired by the terminal equipment are multiple:
in some examples, the terminal device may sequence the first application programs, and then sequentially send the heartbeat packets corresponding to the first application programs to the smart home device according to a sequencing result; for example, the terminal device is configured to acquire the first applications A1, A2, A4, A6, A7, and A9, then sort the applications according to the frequency of use or the number of times of use of each first application, set the sorting result as A1, A2, A6, A7, A9, and A4, and then sequentially send the heartbeat packets corresponding to each first application A1, A2, A6, A7, A9, and A4 to the smart home device according to the sorting result. The heartbeat packets corresponding to the first application programs are sequentially sent to the intelligent home equipment in a sequencing mode, so that the accuracy of sending the heartbeat packets is guaranteed, and the phenomenon that the heartbeat packets corresponding to a certain first application program are omitted is avoided.
In some examples, the terminal device may send heartbeat packets corresponding to each first application program to the smart home device at the same time; for example, the heartbeat packets corresponding to the first application programs A1, A2, A4, A6, A7, and A9 are acquired, and then the heartbeat packets corresponding to the first application programs A1, A2, A4, A6, A7, and A9 are sent to the smart home device at the same time. Therefore, the heartbeat packets corresponding to the first application programs are sent to the intelligent home equipment at the same time, so that the sending rate of the heartbeat packets is guaranteed, and the keep-alive rate of the second application programs is improved.
Step S22: and if the terminal equipment does not receive the feedback information sent by the intelligent household equipment within the first preset time period, determining that the second application program on the intelligent household equipment is not in the running state.
It can be understood that, if the second application program on the smart home device is in the running state, the second application program will perform feedback when receiving the heartbeat packet corresponding to the first application program, that is, send feedback information to the terminal device, but if the second application program does not perform feedback, that is, send no feedback information to the terminal device, that is, represent that the second application program is not in the running state; therefore, in this embodiment, if the terminal device does not receive the feedback information sent by the smart home device within the first preset time period, it may be determined that the second application program on the smart home device is not in the running state.
It should be noted that, in practical applications, the first preset time period may be flexibly set, for example, if the first preset time period is 10ms, the terminal device does not receive the feedback information sent by the smart home device within 10ms, and it may be determined that the second application program on the smart home device is not in the running state; therefore, the accuracy of keeping the application program alive can be improved by setting a reasonable first preset time period.
Step S23: and the terminal equipment sends a wake-up message to the intelligent household equipment.
It should be clear that, in this embodiment, the terminal device sends a wake-up message to the smart home device when determining that the second application program on the smart home device is not in the running state, where the wake-up message is used for the smart home device to wake up the second application program, so as to keep alive the second application program.
Step S24: and the intelligent household equipment receives the awakening message sent by the terminal equipment.
It should be clear that, in this embodiment, the smart home device receives the wake-up message sent by the terminal device, so as to wake up the second application program on the smart home device according to the wake-up message, thereby implementing keep-alive of the second application program.
Step S25: and the intelligent household equipment awakens the second application program on the intelligent household equipment according to the awakening message so as to keep the second application program alive.
In this embodiment, waking up the second application program on the smart home device according to the wake-up message, so that the step of keeping the second application program alive includes:
firstly, acquiring a second application program identifier from a wake-up message;
then, determining a second application program according to the second application program identifier;
and secondly, awakening a second application program on the intelligent household equipment so as to keep the second application program alive.
It can be understood that, in this embodiment, the wake-up message sent by the terminal device may include the second application program identifier, so that it can be known which second application program or second application programs on the smart home device are to be woken up currently; therefore, the smart home device can acquire the second application program identifier from the wake-up message, and further determine the second application program according to the second application program identifier so as to wake up the second application program and keep the second application program alive.
In this embodiment, a first application program in an operating state on a terminal device is acquired through the terminal device, and then a heartbeat packet corresponding to the first application program is sent to an intelligent home device according to the first application program, and a feedback message sent by the intelligent home device is not received within a first preset time period, so that it is determined that a second application program on the intelligent home device is not in the operating state, and a wake-up message is sent to the intelligent home device, so that the intelligent home device can wake up the second application program on the intelligent home device according to the received wake-up message to keep the second application program alive; that is, in this embodiment, it is ensured that the application programs on the terminal device and the smart home device can be in an operating state at the same time, so as to facilitate the use and operation of the user, bring a great deal of convenience to the user, and improve the experience satisfaction.
Based on the first embodiment, the second embodiment of the keep-alive method of the application program is provided; referring to fig. 3, fig. 3 is a flowchart illustrating a keep-alive method for an application program according to a second embodiment of the present invention.
In this embodiment, before the step of sending, by the terminal device, the heartbeat packet corresponding to the first application program to the smart home device according to the first application program, the keep-alive method for the application program may further include the following steps:
step S30: and the terminal equipment sends confirmation information whether the first application program is installed or not to the intelligent household equipment.
It can be understood that the first application program installed on the terminal device may not be installed on the smart home device, so that the operation of the terminal device directly sending the heartbeat packet corresponding to the first application program to the smart home device is likely to be an invalid operation, which may increase system consumption of the terminal device and the smart home device; therefore, in this embodiment, the terminal device may send whether the first application program is installed to the smart home device, and if the terminal device receives the installation confirmation message sent by the smart home device, it is characterized that the second application program identical to the first application program is installed on the smart home device, and at this time, the heartbeat packet corresponding to the first application program is sent to the smart home device.
Step S31: and the intelligent household equipment receives the confirmation information of whether the first application program is installed or not, wherein the confirmation information is sent by the terminal equipment.
Step S32: the intelligent household equipment judges whether an installation data packet of a second application program exists or not according to the installation confirming information of the first application program;
if yes, go to step S33, otherwise, end the process.
It should be clear that, in this embodiment, when the smart home device receives the information of whether the first application program is installed and confirmed, which is sent by the terminal device, it may further determine whether the installation data packet of the second application program exists according to the information of whether the first application program is installed and confirmed; specifically, the smart home device may search for an installation data packet of the second application program, where when the installation data packet of the second application program is found, it is determined that the second application program is installed on the smart home device, and when the installation data packet of the second application program is not found, it is determined that the second application program is not installed on the smart home device.
Step S33: and the intelligent household equipment sends installation confirmation information of the second application program.
It should be clear that, in this embodiment, when the smart home device determines that the installation data packet of the second application exists, the smart home device sends installation confirmation information of the second application to notify the terminal device that the smart home device installs the second application, so that the terminal device can send the heartbeat packet corresponding to the first application to the smart home device according to the first application.
Step S34: and the terminal equipment receives the installation confirmation information sent by the intelligent household equipment.
Correspondingly, the terminal equipment receives installation confirmation information sent by the intelligent household equipment.
In this embodiment, whether the first application program is installed or not is sent to the smart home device by the terminal device, and after the installation confirmation information sent by the smart home device is received, the heartbeat packet corresponding to the first application program is sent to the smart home device according to the first application program, so that the phenomenon that the operation of directly sending the heartbeat packet corresponding to the first application program to the smart home device by the terminal device is probably invalid operation is avoided, and unnecessary system consumption of the terminal device and the smart home device is reduced.
In addition, referring to fig. 4, an embodiment of the present invention further provides a keep-alive device for an application program, based on the keep-alive method for the application program, where the keep-alive device for the application program is applied to a terminal device, and the keep-alive device for the application program includes:
an obtaining module 40, configured to obtain a first application program in an operating state on a terminal device;
the first sending module 41 is configured to send, according to the first application program, a heartbeat packet corresponding to the first application program to the smart home device;
the determining module 42 is configured to determine that the second application program on the smart home device is not in an operating state if the feedback information sent by the smart home device is not received within the first preset time period;
and a second sending module 43, configured to send a wake-up message to the smart home device, so as to keep the second application alive.
It should be noted that, in this embodiment, the keep-alive device applied to the application program of the terminal device further optionally includes a corresponding other module, so as to implement the steps of the keep-alive method of the application program.
The keep-alive device applied to the application program of the terminal device of the present invention adopts all the technical solutions of all the embodiments described above, so that at least all the beneficial effects brought by the technical solutions of the embodiments described above are achieved, and no further description is given here.
In addition, referring to fig. 5, an embodiment of the present invention further provides a keep-alive device for an application program based on the keep-alive method for the application program, where the keep-alive device for the application program is applied to a smart home device, and the keep-alive device for the application program includes:
a receiving module 50, configured to receive a wake-up message sent by a terminal device; the terminal equipment sends a heartbeat packet corresponding to a first application program in an operating state to the intelligent home equipment, and the terminal equipment sends the heartbeat packet when receiving no feedback information sent by the intelligent home equipment in a first preset time period;
and the waking module 51 is configured to wake up the second application program on the smart home device according to the waking message, so as to keep the second application program alive.
It should be noted that, in this embodiment, the keep-alive device applied to the application program of the smart home device further optionally includes a corresponding other module, so as to implement the steps of the keep-alive method of the application program.
The keep-alive device applied to the application program of the smart home equipment adopts all the technical schemes of all the embodiments, so that the keep-alive device at least has all the beneficial effects brought by the technical schemes of the embodiments, and is not repeated herein.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a keep-alive program of an application program is stored on the computer-readable storage medium, and when executed by a processor, the keep-alive program of the application program implements the step of the keep-alive method of the application program on the terminal device side, or implements the step of the keep-alive method of the application program on the smart home device side.
The computer-readable storage media include volatile or nonvolatile, removable or non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, computer program modules or other data. Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically erasable Programmable Read-Only Memory), flash Memory or other Memory technology, CD-ROM (Compact disk Read-Only Memory), digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage, or any other medium which can be used to store the desired information and which can be accessed by a computer.
It will be apparent to one skilled in the art that all or some of the steps of the methods, systems, functional modules/units in the terminal devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (11)

1. A keep-alive method of an application program is applied to a terminal device, and the keep-alive method of the application program comprises the following steps:
acquiring a first application program in a running state on the terminal equipment;
sending a heartbeat packet corresponding to the first application program to the intelligent household equipment according to the first application program;
if the feedback information sent by the intelligent home equipment is not received in a first preset time period, determining that a second application program on the intelligent home equipment is not in an operating state;
and sending a wake-up message to the intelligent household equipment so as to keep the second application program alive.
2. A keep-alive method of an application program according to claim 1, wherein before the step of sending the heartbeat packet corresponding to the first application program to the smart home device according to the first application program, the keep-alive method of the application program further includes:
sending confirmation information whether the first application program is installed or not to the intelligent household equipment;
and receiving installation confirmation information sent by the intelligent household equipment.
3. A keep-alive method of an application program according to claim 1 or 2, wherein the step of sending a heartbeat packet corresponding to the first application program to smart home equipment according to the first application program comprises:
sending heartbeat packets corresponding to the first application program to the intelligent household equipment every other second preset time period according to the first application program;
if the feedback information sent by the intelligent household equipment is not received in the first preset time period, the step of determining that the second application program on the intelligent household equipment is not in the running state comprises the following steps:
if the heartbeat packet corresponding to the first application program is sent to the intelligent home equipment for multiple times and the feedback information sent by the intelligent home equipment is not received within a first preset time period, it is determined that a second application program on the intelligent home equipment is not in an operating state.
4. A keep-alive method of an application program is applied to intelligent household equipment, and comprises the following steps:
receiving a wake-up message sent by terminal equipment; the terminal equipment sends a heartbeat packet corresponding to a first application program in an operating state to the intelligent home equipment, and the terminal equipment sends the heartbeat packet when not receiving feedback information sent by the intelligent home equipment in a first preset time period;
and awakening a second application program on the intelligent household equipment according to the awakening message so as to keep the second application program alive.
5. A keep-alive method for an application as claimed in claim 4, wherein the step of receiving a wake-up message sent by a terminal device is preceded by the keep-alive method for the application further comprising:
receiving whether a first application program sent by the terminal equipment is installed or not;
judging whether an installation data packet of the second application program exists or not according to the information for determining whether the first application program is installed or not;
and if so, sending installation confirmation information of the second application program.
6. The keep-alive method of the application program according to claim 4 or 5, wherein the step of waking up the second application program on the smart home device according to the wake-up message to keep-alive the second application program comprises:
acquiring a second application program identifier from the wake-up message;
determining a second application program according to the second application program identifier;
and awakening the second application program on the intelligent household equipment so as to keep the second application program alive.
7. A keep-alive device of an application program is applied to a terminal device, and the keep-alive device of the application program comprises:
the acquisition module is used for acquiring a first application program in a running state on the terminal equipment;
the first sending module is used for sending the heartbeat packet corresponding to the first application program to the intelligent household equipment according to the first application program;
the determining module is used for determining that a second application program on the intelligent household equipment is not in an operating state if the feedback information sent by the intelligent household equipment is not received in a first preset time period;
and the second sending module is used for sending a wake-up message to the intelligent household equipment so as to keep the second application program alive.
8. The utility model provides a keep-alive device of application program which characterized in that is applied to intelligent household equipment, keep-alive device of application program includes:
the receiving module is used for receiving the awakening message sent by the terminal equipment; the terminal equipment sends a heartbeat packet corresponding to a first application program in an operating state to the intelligent home equipment, and the terminal equipment sends the heartbeat packet when not receiving feedback information sent by the intelligent home equipment in a first preset time period;
and the awakening module is used for awakening a second application program on the intelligent household equipment according to the awakening message so as to keep the second application program alive.
9. A terminal device, characterized in that the terminal device comprises: memory, a processor and a keep-alive program stored on the memory and running an application on the processor, the keep-alive program of the application when executed by the processor implementing the steps of the keep-alive method of the application according to any one of claims 1-3.
10. The utility model provides an intelligent household equipment, its characterized in that, intelligent household equipment includes: memory, a processor and a keep-alive program stored on the memory and running an application on the processor, the keep-alive program of the application when executed by the processor implementing the steps of the keep-alive method of the application according to any of claims 4-6.
11. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a keep-alive program for an application, which keep-alive program, when executed by a processor, carries out the steps of a keep-alive method for an application according to any one of claims 1-3, or carries out the steps of a keep-alive method for an application according to any one of claims 4-6.
CN202011227049.2A 2020-11-05 2020-11-05 Keep-alive method and device for application program, equipment and computer readable storage medium Active CN112350895B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011227049.2A CN112350895B (en) 2020-11-05 2020-11-05 Keep-alive method and device for application program, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011227049.2A CN112350895B (en) 2020-11-05 2020-11-05 Keep-alive method and device for application program, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112350895A CN112350895A (en) 2021-02-09
CN112350895B true CN112350895B (en) 2023-04-07

Family

ID=74429820

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011227049.2A Active CN112350895B (en) 2020-11-05 2020-11-05 Keep-alive method and device for application program, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112350895B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860408A (en) * 2021-03-03 2021-05-28 苏州沁游网络科技有限公司 Process keep-alive method, device and system in cloud reality machine and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905213A (en) * 2014-03-27 2014-07-02 华为技术有限公司 Standby method, intelligent household devices and standby system
CN104113458A (en) * 2014-07-23 2014-10-22 海信集团有限公司 Mobile terminal and intelligent household appliance interconnecting method and device
CN107864042A (en) * 2017-10-31 2018-03-30 青岛海信电器股份有限公司 Application program awakening method and device
CN109379337A (en) * 2018-09-18 2019-02-22 四川长虹电器股份有限公司 The keepalive method of application process under a kind of Android platform
CN110677899A (en) * 2019-08-19 2020-01-10 深圳绿米联创科技有限公司 Data transmission method and device, terminal equipment and storage medium
CN111198503A (en) * 2018-11-16 2020-05-26 中兴通讯股份有限公司 Intelligent household control method, intelligent household equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905213A (en) * 2014-03-27 2014-07-02 华为技术有限公司 Standby method, intelligent household devices and standby system
CN104113458A (en) * 2014-07-23 2014-10-22 海信集团有限公司 Mobile terminal and intelligent household appliance interconnecting method and device
CN107864042A (en) * 2017-10-31 2018-03-30 青岛海信电器股份有限公司 Application program awakening method and device
CN109379337A (en) * 2018-09-18 2019-02-22 四川长虹电器股份有限公司 The keepalive method of application process under a kind of Android platform
CN111198503A (en) * 2018-11-16 2020-05-26 中兴通讯股份有限公司 Intelligent household control method, intelligent household equipment and storage medium
CN110677899A (en) * 2019-08-19 2020-01-10 深圳绿米联创科技有限公司 Data transmission method and device, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN112350895A (en) 2021-02-09

Similar Documents

Publication Publication Date Title
CN106604369B (en) Terminal equipment with dual-mode switching function
CN104866063B (en) A kind of method and electronic equipment of information processing
CN112436985A (en) Network distribution method, device, terminal equipment and storage medium
CN110493855A (en) Communication mode control method, device, storage medium and terminal
CN111277991A (en) Operator name display method and device, mobile terminal and storage medium
CN112350895B (en) Keep-alive method and device for application program, equipment and computer readable storage medium
CN112883036A (en) Index creation method, device, storage server and storage medium
CN109981299B (en) Wake-up method and device
CN115622177A (en) Charging method, mobile terminal and storage medium
CN111309325A (en) Method and device for reference of third-party library and mobile terminal
CN112367203A (en) Network distribution method and device, smart television and computer readable storage medium
CN112449411A (en) Intelligent equipment working mode switching method and device
CN112583907A (en) Connection method and device, smart home equipment and computer readable storage medium
CN112689172A (en) Program playing method and device, set top box and storage medium
CN112351097A (en) Device control method, device, sending end and storage medium
CN111916084A (en) Smart home voice control method and device, equipment and storage medium
CN112437339A (en) Audio output control method and device, smart television and storage medium
CN114222370A (en) Networking communication time slot allocation method, device and system
CN112583706A (en) Gateway service processing method, gateway, receiving end, system and storage medium
CN112118470A (en) Awakening method, device and system of set top box and electronic equipment
CN112346885A (en) Electronic device control method, device, equipment and computer readable storage medium
CN112449327A (en) Method and device for switching working states of wireless data interaction terminal
CN112327646A (en) Intelligent household control method and device, terminal equipment and storage medium
CN112612526A (en) Application program control method and device, terminal device and storage medium
CN112612526B (en) Application program control method, device, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant