CN113835977A - State prompting method and device, computer equipment and computer readable storage medium - Google Patents

State prompting method and device, computer equipment and computer readable storage medium Download PDF

Info

Publication number
CN113835977A
CN113835977A CN202111114065.5A CN202111114065A CN113835977A CN 113835977 A CN113835977 A CN 113835977A CN 202111114065 A CN202111114065 A CN 202111114065A CN 113835977 A CN113835977 A CN 113835977A
Authority
CN
China
Prior art keywords
state
equipment
control
power consumption
control device
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.)
Pending
Application number
CN202111114065.5A
Other languages
Chinese (zh)
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 CN202111114065.5A priority Critical patent/CN113835977A/en
Publication of CN113835977A publication Critical patent/CN113835977A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/328Computer systems status display
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the application discloses a state prompting method, a state prompting device, computer equipment and a computer readable storage medium, wherein the power consumption state of the control equipment is detected; when the power consumption state of the control equipment is a low power consumption state, performing keep-alive detection on the connection state of the control equipment in a target time period; if the connection state of the control equipment is the survival state, determining that the equipment state of the control equipment is the online state; the device state of the control device is prompted based on the online state, and the scheme determines the device state of the control device through the power consumption state of the control device and the survival state in the target time, so that the device state of the control device can be accurately determined, and accurate prompt is made.

Description

State prompting method and device, computer equipment and computer readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a state prompting method and apparatus, a computer device, and a computer-readable storage medium.
Background
Some control devices can not be directly connected with a power supply, a battery is required to be installed to provide electric quantity, if the normal operation state is kept all the time, the electric quantity can be very fast, so that the general solution is that when the control devices are not used, the control devices are enabled to enter a keep-alive state with low power consumption, and the control devices are awakened when being actively operated or are connected through TCP (transmission control protocol) to further interact with the control devices. When the power consumption state is switched, the equipment cannot be switched seamlessly, the control equipment can be in a transient off-line state, but the off-line state does not influence the normal use of the control equipment, but the prompt can lead the user to fail for the control equipment, and the experience feeling is poor.
Disclosure of Invention
The embodiment of the application provides a state prompting method, a state prompting device, computer equipment and a computer readable storage medium, which can accurately determine the equipment state of the equipment and make an accurate prompt.
The state prompting method provided by the embodiment of the application comprises the following steps:
detecting a power consumption state of the control device;
when the power consumption state of the control equipment is a low power consumption state, performing keep-alive detection on the connection state of the control equipment in a target time period;
if the connection state of the control equipment is a survival state, determining that the equipment state of the control equipment is an online state;
and prompting the equipment state of the control equipment based on the online state.
Optionally, a state prompting method provided in an embodiment of the present application includes:
detecting a connection state of the control device;
when the connection state of the control equipment is the inactivation state, detecting the power consumption state of the control equipment in a target time period;
when the power consumption state of the control equipment is a normal power consumption state, determining that the equipment state of the control equipment is an online state;
and prompting the equipment state of the control equipment based on the online state.
Correspondingly, the embodiment of the present application further provides a status prompting device, including:
a first detection unit for detecting a power consumption state of the control device;
the second detection unit is used for performing keep-alive detection on the connection state of the control equipment in a target time period when the power consumption state of the control equipment is a low power consumption state;
a first determining unit, configured to determine that a device state of the control device is an online state if a connection state of the control device is a live state;
and the first prompting unit is used for prompting the equipment state of the control equipment based on the online state.
Correspondingly, another status prompting device provided in the embodiment of the present application includes:
a third detection unit for detecting a connection state of the control device;
a fourth detection unit, configured to detect a power consumption state of the control device within the target time period when the connection state of the control device is an inactive state;
a second determining unit, configured to determine that the device state of the control device is an online state when the power consumption state of the control device is a normal power consumption state;
and the second prompting unit is used for prompting the equipment state of the control equipment based on the online state.
Correspondingly, the embodiment of the application also provides computer equipment, which comprises a memory and a processor; the memory stores a computer program, and the processor is used for operating the computer program in the memory to execute any state prompting method provided by the embodiment of the application.
Correspondingly, the embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium is used for storing a computer program, and the computer program is loaded by a processor to execute any one of the state prompting methods provided by the embodiment of the present application.
The embodiment of the application detects the power consumption state of the control equipment; when the power consumption state of the control equipment is a low power consumption state, performing keep-alive detection on the connection state of the control equipment in a target time period; if the connection state of the control equipment is the survival state, determining that the equipment state of the control equipment is the online state; the device state of the control device is prompted based on the online state, and the scheme determines the device state of the control device through the power consumption state of the control device and the survival state in the target time, so that the device state of the control device can be accurately determined, and accurate prompt is made.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a status prompting method provided in an embodiment of the present application;
fig. 2 is another flowchart of a status prompting method provided in an embodiment of the present application;
fig. 3 is a schematic view of a status prompt apparatus according to an embodiment of the present application;
fig. 4 is another schematic diagram of a status prompt apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a computer device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a state prompting method, a state prompting device, computer equipment and a computer readable storage medium. The state prompting device can be integrated in computer equipment, and the computer equipment can be a server or equipment such as a terminal.
The terminal may include a mobile phone, a wearable smart device, a tablet Computer, a notebook Computer, a Personal Computer (PC), a vehicle-mounted Computer, and the like.
The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, big data and artificial intelligence platform.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
In this embodiment, a description will be given from the perspective of a status prompting device, where the status prompting device may be specifically integrated on a terminal, as shown in fig. 1, a specific flow of a status prompting method provided in an embodiment of the present application is as follows:
101. the power consumption state of the control device is detected.
The control device may be a device that can be controlled by a program, such as an application (app), a sub-application (e.g., an applet), and a client application (Web application), and the control device may be a monitoring camera, an intelligent doorbell, an intelligent television, or the like.
Wherein, the power consumption state can include low power consumption state, normal power consumption state and unusual power consumption state, and the low power consumption state can be controlgear's dormancy state, and controlgear cuts off the power supply to main treater (main CPU) in order to close main function, for example, the function of surveillance camera head closure video collection. The normal power consumption state may be to control the device to turn on a primary function; the abnormal power consumption state may be a state in which the control device is abnormally consuming power.
For example, when the power consumption state of the control device is in a low power consumption state, and the terminal wants to acquire video data collected by the control device, the control device may be woken up to switch to a normal power consumption state, and the control device switches the connection state to a live state, for example, periodically sends heartbeat packet information to the server through a TCP long connection, maintains the connection with the server, and when a wake-up instruction sent by the terminal is received, the control device is woken up, and the control device needs to switch the power consumption state from the low power consumption state to the normal power consumption state, and switches the connection state to an inactive state. And when the power consumption state of the control equipment is a low power consumption state and the connection state is an inactivation state, judging that the equipment state of the control equipment is an off-line state because the terminal cannot wake up the control equipment through an instruction, otherwise, judging that the equipment state of the control equipment is an on-line state.
For example, if the control device receives the message that the power consumption state of the control device is changed to the inactive state first and receives the power consumption state of the control device as the normal power consumption state after a period of time, the device state of the control device is determined to be the offline state within the period of time, but the control device is not offline actually, and only time delay causes a device state determination error.
For example, when the control device switches the power consumption state, the control device sends a message indicating that the power consumption state changes to the server, the server receives the corresponding message and sends the message indicating that the power consumption state of the control device changes to the terminal, and the terminal receives the message indicating that the power consumption state of the control device changes from the server, detects the power consumption state of the control device, and further determines the power consumption state of the control device.
In an embodiment, the terminal may detect the power consumption state of the control device according to a trigger operation of a user, that is, the step "detecting the power consumption state of the control device" may specifically include:
displaying an equipment control page corresponding to the control equipment;
detecting power consumption state information of the control device in response to a power consumption state switching operation for the device control page.
For example, the device control page may be a user interface, and the device control page may include a power consumption state switching control, where the terminal may send a power consumption state switching instruction to the control device in response to an operation of a user for the power consumption state switching control, the control device performs power consumption state switching after responding to the power consumption state switching instruction, and sends a related message of power consumption state change to the terminal through the server, or directly sends a related message of power consumption state change to the terminal, and the terminal receives the message of power consumption state change sent by the control device according to the server, and determines the power consumption state of the control device.
It will be appreciated that the power consumption state switching control may also be a device state switching control.
102. And when the power consumption state of the control equipment is a low power consumption state, performing keep-alive detection on the connection state of the control equipment in a target time period.
The connection state may include a start state of a keep-alive function of the Control device, when the keep-alive function is started, the connection state of the Control device is a alive state, the Control device starts the keep-alive function, and maintains a long connection with the server through a Transmission Control Protocol (TCP), and periodically sends heartbeat information to the server, so that the server confirms that the Control device is in an online state; when the keep-alive function is not activated, the connection state of the control device is an inactivated state.
The keep-alive detection may be detecting whether the control device generates heartbeat information.
For example, the connection state of the terminal may be determined by the terminal according to heartbeat information, which is sent by the control device directly to the terminal or sent by the control device to the terminal through the server.
Optionally, the terminal may perform keep-alive detection on the connection state of the control device by detecting whether a connection state switching message sent by the server is received, for example, the control device may send heartbeat information to the server through a TCP long connection, the server determines that the control device is online according to the heartbeat information, when the server does not receive the heartbeat information within a specified time, the terminal sends the connection state switching message to the terminal, and the terminal determines the connection state of the control device according to the connection state switching message.
Optionally, the terminal may send a keep-alive detection request to the server, and determine the connection state of the control device according to the connection state returned by the server, that is, in step "when the power consumption state of the control device is the low power consumption state, perform keep-alive detection on the connection state of the control device in the target time period", specifically, the step may be:
sending a keep-alive detection request to a server connected with the control equipment;
and receiving the connection state of the control equipment returned by the server aiming at the keep-alive detection request.
For example, a keep-alive detection request may be specifically sent to the terminal to the server, where the keep-alive detection request is used to instruct the server to return the connection state of the control device, and when the server receives the keep-alive detection request, the server may determine the connection state of the control device according to whether heartbeat information sent by the control terminal is received, and return the connection state to the terminal.
103. And if the connection state of the control equipment is the survival state, determining that the equipment state of the control equipment is the online state.
For example, specifically, if the connection state of the control device is the alive state, and the power consumption state is the low power consumption state because the connection state of the control device is the alive state, the terminal may determine that the device state of the control device is the online state.
Different control devices need different time for switching connection states, and in order to be compatible with different control devices, additional detection time can be set, so that the terminal does not incorrectly prompt the device state of the control device with long time for switching the connection state because the detection time is not enough, that is, the step "if the connection state of the control device is a survival state, the device state of the control device is determined to be an online state", specifically, the method includes:
if the connection state of the control equipment is the inactivation state, performing keep-alive detection on the connection state of the control equipment in an additional time period;
if the connection status of the control device is the alive status for the additional period of time, determining that the device status of the control device is the online status.
For example, it may be specifically determined that the device state of the control device is the online state if the connection state of the control device is detected to be the alive state in the target time period; if the connection state of the control equipment is detected to be the inactivated state in the target time period, the detection time is increased, the connection state of the control equipment is subjected to keep-alive detection again in the additional time period, if the connection state of the control equipment is detected to be the survival state in the additional time period, the equipment state of the control equipment is determined to be the online state, and if not, the equipment state of the control equipment is determined to be the online state.
104. And prompting the equipment state of the control equipment based on the online state.
For example, the terminal may specifically prompt the device state of the control device on a corresponding user interface, so that the user may determine the device state of the control device through the prompt information on the user interface, or prompt the control device through a voice prompt, a short message prompt, or a message popup window.
Optionally, if it is detected that the connection state of the control device is the inactivated state, the terminal may determine that the device state of the control device is the offline state, and the device state prompting method may further include:
when the connection state of the control equipment is the inactivation state, determining that the equipment state of the control equipment is the off-line state;
and prompting the equipment state of the control equipment based on the offline state.
For example, specifically, if it is detected that the connection state of the control device is the inactive state, and the power consumption state is the low power consumption state because the connection state of the control device is the inactive state, the terminal may determine that the device state of the control device is the offline state, and prompt the device state of the control device based on the offline state with reference to the above-mentioned prompt manner for the online state of the control device.
As can be seen from the above, the terminal in the embodiment of the present application may control the power consumption state of the device by detecting; when the power consumption state of the control equipment is a low power consumption state, performing keep-alive detection on the connection state of the control equipment in a target time period; if the connection state of the control equipment is the survival state, determining that the equipment state of the control equipment is the online state; the device state of the control device is prompted based on the online state, and the scheme determines the device state of the control device through the power consumption state of the control device and the memory state in the preset time, so that the device state of the control device can be accurately determined, and accurate prompt is made.
On the basis of the above-described embodiments, further details will be given below by way of example.
The present embodiment will be described from the perspective of a status prompting device, which may be specifically integrated on a terminal; as shown in fig. 2, a specific process of the state prompting method provided in the embodiment of the present application may be as follows:
201. the connection state of the control device is detected.
For example, when the connection state of the control device is controlled, the control device sends a message of changing the connection state to the server, the server receives the corresponding message and sends the message of changing the connection state of the control device to the terminal, and the terminal receives the message of changing the connection state sent by the control device according to the server, detects the connection state of the control device, and further determines the connection state of the control device.
In an embodiment, the terminal may respond to a device wake-up operation of a user, and send a keep-alive detection request to the server, and the server may determine a connection state of the control device according to heartbeat information sent by the control device at regular time, that is, the step "detecting the connection state of the control device" may specifically include:
displaying an equipment control page corresponding to the control equipment;
and responding to the equipment awakening operation aiming at the equipment control page, and detecting the connection state of the control equipment.
For example, the method may specifically include that the terminal displays a device control page corresponding to the control device, responds to a device wake-up operation of the user on the device control page, where the device wake-up operation may be an operation of specifying a control for the device control page, or an arbitrary operation on the device control page, detects a connection state of the control device, determines that the connection state of the control device is a live state if the server receives heartbeat information sent by the control device within a predetermined time, determines that the connection state of the control device is an inactive state if the server does not receive the heartbeat information sent by the control device within the predetermined time, and determines that the connection state of the control device is according to the connection state returned by the server.
Alternatively, the connection state of the control device may be detected when an application program, a sub-application program or a client application is started.
202. And when the connection state of the control equipment is the inactivation state, detecting the power consumption state of the control equipment in a target time period.
For example, if the connection state of the control device is the inactive state, the terminal determines the power consumption state of the control device by whether a power consumption state switching message sent by the server or the control device is received within a target time period.
203. And when the power consumption state of the control equipment is a normal power consumption state, determining that the equipment state of the control equipment is an online state.
For example, when the connection state of the control device is the inactive state and the power consumption state is the normal power consumption state, it may be specifically determined that the device state of the control device is the online state.
204. And prompting the equipment state of the control equipment based on the online state.
For example, the terminal may specifically prompt the online state of the control device on a corresponding user interface, so that the user may determine that the device state of the control device is the online state through the prompt information on the user interface, or prompt the user through a voice prompt, a short message prompt, or a message popup window.
Optionally, if it is detected that the power consumption state of the control device is the low power consumption state, it may be determined that the device state of the control device is the offline state, and the device state prompting method may further include:
when the power consumption state of the control equipment is detected to be a low power consumption state, determining that the equipment state of the control equipment is an off-line state;
and prompting the equipment state of the control equipment based on the off-line state.
For example, specifically, if it is detected that the power consumption state of the control device is the low power consumption state, and since the connection state of the control device is the inactive state and the power consumption state is the low power consumption state, it may be determined that the device state of the control device is the offline state, and the device state of the control device is prompted based on the offline state with reference to the above-mentioned prompting manner for the online state of the control device.
As can be seen from the above, in the embodiment of the application, the terminal detects the connection state of the control device; when the connection state of the control equipment is the inactivation state, detecting the power consumption state of the control equipment in the target time period; when the power consumption state of the control equipment is a normal power consumption state, determining that the equipment state of the control equipment is an online state; the device state of the control device is prompted based on the online state, and the scheme determines the device state of the control device through the power consumption state of the control device and the existence state in the preset time, so that the device state of the control device can be accurately determined, and accurate prompt is made.
In order to better implement the state prompting method provided by the embodiment of the application, a state prompting device is further provided in an embodiment. The meanings of the nouns are the same as those in the above state prompting method, and specific implementation details can refer to the description in the method embodiment.
The status prompting device may be specifically integrated in a computer device, as shown in fig. 3, and the status prompting device may include: the first detection unit 301, the second detection unit 302, the first determination unit 303, and the first prompt unit 304 are specifically as follows:
(1) the first detection unit 301: for detecting the power consumption state of the control device.
Optionally, the first detection unit 301 may include a first display subunit and a first response subunit, specifically:
a first display subunit: the device control page is used for displaying a device control page corresponding to the control device;
a first response subunit: and the power consumption state information is used for responding to the power consumption state switching operation aiming at the equipment control page and detecting the power consumption state information of the control equipment.
(2) The second detection unit 302: and the method is used for performing keep-alive detection on the connection state of the control equipment in a target time period when the power consumption state of the control equipment is a low power consumption state.
Optionally, the second detecting unit 302 may include a sending subunit and a receiving subunit, specifically:
a sending subunit: the system comprises a keep-alive detection request sending unit, a keep-alive detection request sending unit and a control unit, wherein the keep-alive detection request is used for sending a keep-alive detection request to a server connected with control equipment;
a receiving subunit: and the connection state of the control equipment returned by the server for the keep-alive detection request is received.
(3) The first determination unit 303: and the controller is used for determining that the equipment state of the control equipment is an online state if the connection state of the control equipment is a survival state.
Optionally, the first determining unit 303 may include a detecting subunit and a determining subunit, specifically:
a detection subunit: the keep-alive detection device is used for carrying out keep-alive detection on the connection state of the control device in an additional time period if the connection state of the control device is the inactivated state;
determining a subunit: and means for determining that the device status of the control device is online if the connection status of the control device is detected as an alive status for an additional period of time.
(4) The first prompting unit 304: for prompting the device status of the control device based on the presence status.
Optionally, the state prompting device may include a state detecting unit and a state prompting unit, specifically:
a state detection unit: the device state judging module is used for determining that the device state of the control device is an offline state when the connection state of the control device is an inactivated state;
a state prompting unit: and the device state prompt device is used for prompting the device state of the control device based on the offline state.
As can be seen from the above, the state prompting apparatus in the embodiment of the present application can detect the power consumption state of the control device through the first detecting unit 301; when the power consumption state of the control device is a low power consumption state, the second detection unit 302 performs keep-alive detection on the connection state of the control device in a target time period; if the connection state of the control device is the alive state, the device state of the control device is determined to be the online state by the first determining unit 303; finally, the first prompting unit 304 prompts the device state of the control device based on the online state, and the scheme determines the device state of the control device according to the power consumption state of the control device and the active state in the preset time, so that the device state of the control device can be accurately determined, and accurate prompt is made.
In order to better implement the state prompting method provided by the embodiment of the application, a state prompting device is further provided in an embodiment. The meanings of the nouns are the same as those in the above state prompting method, and specific implementation details can refer to the description in the method embodiment.
The status prompting device may be specifically integrated in a computer device, as shown in fig. 4, and the status prompting device may include: the third detecting unit 401, the fourth detecting unit 402, the second determining unit 403, and the second prompting unit 404 are specifically as follows:
(1) third detection unit 401: for detecting the connection status of the control device.
Optionally, the third detecting unit 401 may include a second display subunit and a second response subunit, specifically:
a second display subunit: the device control page is used for displaying a device control page corresponding to the control device;
a second response subunit: and the device is used for responding to the device awakening operation aiming at the device control page and detecting the connection state of the control device.
(2) The fourth detection unit 402: and the method is used for performing keep-alive detection on the connection state of the control equipment in a target time period when the power consumption state of the control equipment is a low power consumption state.
(3) The second determination unit 403: and the controller is used for determining that the equipment state of the control equipment is an online state if the connection state of the control equipment is a survival state.
(4) Second presentation unit 404: for prompting the device status of the control device based on the presence status.
Optionally, the state prompting device may include a state detecting unit and a state prompting unit, specifically:
a state detection unit: the device state judging module is used for determining that the device state of the control device is an offline state when the connection state of the control device is an inactivated state;
a state prompting unit: and the device state prompt device is used for prompting the device state of the control device based on the offline state.
As can be seen from the above, in the embodiment of the present application, the state prompting apparatus may detect the power consumption state of the control device through the third detecting unit 401; when the power consumption state of the control device is a low power consumption state, the fourth detection unit 402 performs keep-alive detection on the connection state of the control device in a target time period; if the connection state of the control device is the alive state, the device state of the control device is determined to be the online state by the second determining unit 403; finally, the second prompting unit 404 prompts the device state of the control device based on the online state, and the scheme determines the device state of the control device according to the power consumption state of the control device and the active state in the preset time, so that the device state of the control device can be accurately determined, and an accurate prompt is made.
An embodiment of the present application further provides a computer device, where the computer device may be a terminal or a server, as shown in fig. 5, which shows a schematic structural diagram of the computer device according to the embodiment of the present application, and specifically:
the computer device may include components such as a processor 1001 of one or more processing cores, memory 1002 of one or more computer-readable storage media, a power supply 1003, and an input unit 1004. Those skilled in the art will appreciate that the computer device configuration illustrated in FIG. 5 does not constitute a limitation of computer devices, and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. Wherein:
the processor 1001 is a control center of the computer device, connects various parts of the entire computer device using various interfaces and lines, and performs various functions of the computer device and processes data by running or executing software programs and/or modules stored in the memory 1002 and calling data stored in the memory 1002, thereby monitoring the computer device as a whole. Optionally, processor 1001 may include one or more processing cores; preferably, the processor 1001 may integrate an application processor, which mainly handles operating systems, user interfaces, computer programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1001.
The memory 1002 may be used to store software programs and modules, and the processor 1001 executes various functional applications and data processing by operating the software programs and modules stored in the memory 1002. The memory 1002 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, a computer program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 1002 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 1002 may also include a memory controller to provide the processor 1001 access to the memory 1002.
The computer device further includes a power source 1003 for supplying power to each component, and preferably, the power source 1003 may be logically connected to the processor 1001 through a power management system, so that functions of managing charging, discharging, power consumption, and the like are implemented through the power management system. The power source 1003 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The computer device may also include an input unit 1004, and the input unit 1004 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the computer device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 1001 in the computer device loads the executable file corresponding to the process of one or more computer programs into the memory 1002 according to the following instructions, and the processor 1001 runs the computer programs stored in the memory 1002, so as to implement various functions as follows:
detecting a power consumption state of the control device;
when the power consumption state of the control equipment is a low power consumption state, performing keep-alive detection on the connection state of the control equipment in a target time period;
if the connection state of the control equipment is the survival state, determining that the equipment state of the control equipment is the online state;
and prompting the equipment state of the control equipment based on the online state.
And:
detecting a connection state of the control device;
when the connection state of the control equipment is the inactivation state, detecting the power consumption state of the control equipment in a target time period;
when the power consumption state of the control equipment is a normal power consumption state, determining that the equipment state of the control equipment is an online state;
and prompting the equipment state of the control equipment based on the online state.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
As can be seen from the above, the computer device in the embodiment of the present application may determine the device state of the control device by controlling the power consumption state of the device and the active state within the preset time, and may accurately determine the device state of the device to make an accurate prompt.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method provided in the various alternative implementations of the above embodiments.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by a computer program, which may be stored in a computer-readable storage medium and loaded and executed by a processor, or by related hardware controlled by the computer program.
To this end, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, where the computer program can be loaded by a processor to execute any one of the state prompting methods provided in the embodiment of the present application.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the computer program stored in the computer-readable storage medium can execute any state prompting method provided in the embodiments of the present application, beneficial effects that can be achieved by any state prompting method provided in the embodiments of the present application can be achieved, and detailed descriptions are omitted here for the foregoing embodiments.
A state prompting method, a state prompting device, a computer device, and a computer-readable storage medium provided in the embodiments of the present application are introduced in detail, and a specific example is applied in the present application to explain the principles and embodiments of the present application, and the description of the above embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (12)

1. A status prompting method is characterized by comprising the following steps:
detecting a power consumption state of the control device;
when the power consumption state of the control equipment is a low power consumption state, performing keep-alive detection on the connection state of the control equipment in a target time period;
if the connection state of the control equipment is a survival state, determining that the equipment state of the control equipment is an online state;
and prompting the equipment state of the control equipment based on the online state.
2. The method of claim 1, wherein the keep-alive detection of the connection status of the control device for a target time period comprises;
sending a keep-alive detection request to a server connected with the control device;
and receiving the connection state of the control equipment returned by the server for the keep-alive detection request.
3. The method of claim 1, wherein determining that the device status of the control device is online if the connection status of the control device is alive comprises:
if the connection state of the control equipment is the inactivation state, performing keep-alive detection on the connection state of the control equipment in an additional time period;
and if the connection state of the control equipment is the survival state in the additional time period, determining that the equipment state of the control equipment is the online state.
4. The method of claim 1, wherein the detecting a power consumption state of a control device comprises:
displaying an equipment control page corresponding to the control equipment;
and responding to the power consumption state switching operation aiming at the equipment control page, and detecting the power consumption state information of the control equipment.
5. The method according to any one of claims 1 to 4, further comprising:
when the connection state of the control equipment is the inactivation state, determining that the equipment state of the control equipment is the off-line state;
and prompting the equipment state of the control equipment based on the off-line state.
6. A status prompting method is characterized by comprising the following steps:
detecting a connection state of the control device;
when the connection state of the control equipment is the inactivation state, detecting the power consumption state of the control equipment in a target time period;
when the power consumption state of the control equipment is a normal power consumption state, determining that the equipment state of the control equipment is an online state;
and prompting the equipment state of the control equipment based on the online state.
7. The method of claim 6, wherein the detecting the connection status of the control device comprises:
displaying an equipment control page corresponding to the control equipment;
and responding to the equipment awakening operation aiming at the equipment control page, and detecting the connection state of the control equipment.
8. The method according to any one of claims 6 to 7, further comprising:
when the power consumption state of the control equipment is detected to be a low power consumption state, determining that the equipment state of the control equipment is an off-line state;
and prompting the equipment state of the control equipment based on the off-line state.
9. A status prompting device, comprising:
a first detection unit for detecting a power consumption state of the control device;
the second detection unit is used for performing keep-alive detection on the connection state of the control equipment in a target time period when the power consumption state of the control equipment is a low power consumption state;
a first determining unit, configured to determine that a device state of the control device is an online state if a connection state of the control device is a live state;
and the first prompting unit is used for prompting the equipment state of the control equipment based on the online state.
10. A status prompting device, comprising:
a third detection unit for detecting a connection state of the control device;
a fourth detection unit configured to detect a power consumption state of the control device within a target time period when a connection state of the control device is an inactivated state;
a second determining unit, configured to determine that the device state of the control device is an online state when the power consumption state of the control device is a normal power consumption state;
and the second prompting unit is used for prompting the equipment state of the control equipment based on the online state.
11. A computer device comprising a memory and a processor; the memory stores a computer program, and the processor is configured to execute the computer program in the memory to perform the status prompting method of any one of claims 1 to 5 or claims 6 to 8.
12. A computer-readable storage medium for storing a computer program which is loaded by a processor to perform the method of status prompting of any of claims 1 to 5 or claims 6 to 8.
CN202111114065.5A 2021-09-23 2021-09-23 State prompting method and device, computer equipment and computer readable storage medium Pending CN113835977A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111114065.5A CN113835977A (en) 2021-09-23 2021-09-23 State prompting method and device, computer equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111114065.5A CN113835977A (en) 2021-09-23 2021-09-23 State prompting method and device, computer equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN113835977A true CN113835977A (en) 2021-12-24

Family

ID=78969238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111114065.5A Pending CN113835977A (en) 2021-09-23 2021-09-23 State prompting method and device, computer equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113835977A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530291A (en) * 2015-11-30 2016-04-27 深圳市元征软件开发有限公司 Method, device and system for obtaining diagnostic equipment state
CN110381130A (en) * 2019-07-12 2019-10-25 湖南新云网科技有限公司 The long connection method of keep-alive, device, communication terminal and storage medium
CN110995823A (en) * 2019-11-27 2020-04-10 安徽江淮汽车集团股份有限公司 Vehicle-mounted terminal offline processing method, device, storage medium and device
CN111356214A (en) * 2018-12-21 2020-06-30 杭州登虹科技有限公司 Low-power-consumption wireless visual doorbell sleep time difference awakening optimization scheme
CN112165697A (en) * 2020-09-04 2021-01-01 诺博汽车科技有限公司 Tbox sleep wake-up control method and device and terminal equipment
CN113014599A (en) * 2017-03-17 2021-06-22 华为技术有限公司 Method, equipment and system for safely keeping alive
CN113342415A (en) * 2021-06-04 2021-09-03 海信视像科技股份有限公司 Timed task execution method and display device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530291A (en) * 2015-11-30 2016-04-27 深圳市元征软件开发有限公司 Method, device and system for obtaining diagnostic equipment state
CN113014599A (en) * 2017-03-17 2021-06-22 华为技术有限公司 Method, equipment and system for safely keeping alive
CN111356214A (en) * 2018-12-21 2020-06-30 杭州登虹科技有限公司 Low-power-consumption wireless visual doorbell sleep time difference awakening optimization scheme
CN110381130A (en) * 2019-07-12 2019-10-25 湖南新云网科技有限公司 The long connection method of keep-alive, device, communication terminal and storage medium
CN110995823A (en) * 2019-11-27 2020-04-10 安徽江淮汽车集团股份有限公司 Vehicle-mounted terminal offline processing method, device, storage medium and device
CN112165697A (en) * 2020-09-04 2021-01-01 诺博汽车科技有限公司 Tbox sleep wake-up control method and device and terminal equipment
CN113342415A (en) * 2021-06-04 2021-09-03 海信视像科技股份有限公司 Timed task execution method and display device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
中国支付清算协会: "《预付卡理论与实务》", 中国金融出版社, pages: 24 *

Similar Documents

Publication Publication Date Title
CN106412091A (en) Method, device and system for controlling data transmission
BRPI0901714B1 (en) method to save energy on portable internet devices and instant messaging system
CN110673640B (en) Unmanned aerial vehicle control method, device, equipment and storage medium
CN111103963A (en) Fingerprint module starting method and device, storage medium and terminal
EP3314438B1 (en) Thermal mitigation user experience
CN115987852A (en) Interface service state detection method and device, computer equipment and storage medium
CN110362395B (en) Background program management method and device, computer equipment and storage medium
CN114624569A (en) Sensor circuit abnormality detection method, circuit, device, intelligent device, and medium
CN113835977A (en) State prompting method and device, computer equipment and computer readable storage medium
CN113075992B (en) Memory power-on method, device, equipment and computer readable storage medium
CN114827922A (en) Electronic table card control method, device and medium
CN112214094B (en) Method and equipment for coping with power supply jitter of hard disk
CN114489892A (en) Data processing method, data processing device, computer readable storage medium and computer equipment
CN114116090A (en) Information display method and device, electronic equipment and computer readable storage medium
CN115102924B (en) Cluster address switching method and device, computer equipment and storage medium
JP7370409B2 (en) Data processing methods, equipment, electronic equipment and media
CN114443439B (en) ARM server-based control method, ARM server-based control device, ARM server-based control equipment and storage medium
CN115378803B (en) Log management method, device, blockchain node and storage medium
CN114222361A (en) Information acquisition method and device, computer equipment and computer readable storage medium
CN105988788A (en) Information processing method, device and electronic equipment
CN114791831A (en) Process control method and device, storage medium and electronic equipment
CN114385252A (en) Device control method, device, storage medium and electronic device
CN117411932A (en) Message pushing method and device, electronic equipment and computer storage medium
CN114007090A (en) Video live broadcast establishing method and device, storage medium and electronic equipment
CN117033084A (en) Virtual machine backup method and device, electronic 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