CN114815641A - Monitoring method and device for intelligent equipment, storage medium and electronic equipment - Google Patents

Monitoring method and device for intelligent equipment, storage medium and electronic equipment Download PDF

Info

Publication number
CN114815641A
CN114815641A CN202210319587.7A CN202210319587A CN114815641A CN 114815641 A CN114815641 A CN 114815641A CN 202210319587 A CN202210319587 A CN 202210319587A CN 114815641 A CN114815641 A CN 114815641A
Authority
CN
China
Prior art keywords
target
monitoring
monitoring process
condition
equipment
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
CN202210319587.7A
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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202210319587.7A priority Critical patent/CN114815641A/en
Publication of CN114815641A publication Critical patent/CN114815641A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

The invention discloses a monitoring method and device of intelligent equipment, a storage medium and electronic equipment. The monitoring method of the intelligent equipment comprises the following steps: under the condition that the target equipment is started, running a target monitoring process, and monitoring the target process of the target equipment through the target monitoring process; and under the condition that the target process is monitored to be abnormally operated by the target monitoring process, managing the target process by the target monitoring process so as to enable the target process to be recovered to a normal state. The invention solves the technical problem that the abnormal operation of the equipment cannot be solved in time because the process of the equipment is not monitored.

Description

Monitoring method and device for intelligent equipment, storage medium and electronic equipment
Technical Field
The invention relates to the field of smart home, in particular to a monitoring method and device of smart equipment, a storage medium and electronic equipment.
Background
With the continuous maturity of intelligent household appliance technology and the advent of related products, more and more intelligent devices, such as intelligent sound boxes, intelligent washing machines, intelligent refrigerators and the like, appear in the whole home. The intelligent device not only uses an artificial intelligence technology to respond to the requirements of users, but also has the functions of networking, player, Bluetooth, screen display, conversation and the like.
As the functions of the smart devices increase, the entire smart home appliance system needs to monitor and manage more resources, such as voice control, memory resources, and process management. However, more resource monitoring and management cannot guarantee that the main process in the intelligent device always runs normally, so that the running of the intelligent device is not monitored, and if the main process has a problem, the problem cannot be solved in time, and the normal running of the device is influenced.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a monitoring method and device of intelligent equipment, a storage medium and electronic equipment, which at least solve the technical problem that the abnormal operation of the equipment cannot be solved in time because the process of the equipment is not monitored.
According to an aspect of an embodiment of the present invention, a monitoring method for an intelligent device is provided, including: under the condition that target equipment is started, running a target monitoring process, and monitoring the target process of the target equipment through the target monitoring process; and under the condition that the target process is monitored to be abnormal in operation through the target monitoring process, managing the target process through the target monitoring process so as to enable the target process to be recovered to be normal in operation.
According to another aspect of the embodiments of the present invention, there is also provided a monitoring apparatus for an intelligent device, including: the running unit is used for running a target monitoring process under the condition that target equipment is started, and monitoring the target process of the target equipment through the target monitoring process; and the management unit is used for managing the target process through the target monitoring process under the condition that the target process is monitored to be abnormal in operation through the target monitoring process so as to enable the target process to be recovered to be normal in operation.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the monitoring method of the intelligent device when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the monitoring method of the intelligent device through the computer program.
In the embodiment of the invention, the method comprises the steps of running a target monitoring process when a target device is started, monitoring the target process of the target device through the target monitoring process, managing the target process through the target monitoring process when the target monitoring process monitors that the target process runs abnormally, so as to recover the normal running of the target process, monitoring the target process through the running target monitoring process, managing the target process through the target monitoring process when the target process is monitored to be abnormal, so as to recover the normal running of the target process, monitoring the process running in the target device, and recovering the normal running of the target process through the management of the target monitoring process when the target process runs abnormally, so that the process abnormality of the target device during running can be timely found, and the technical effect of process abnormity of the target equipment is solved in time, and the technical problem that the equipment operation abnormity cannot be solved in time because the equipment process is not monitored is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a schematic diagram of an application environment of an alternative monitoring method for a smart device according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating an alternative monitoring method for a smart device according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating an alternative monitoring method for a smart device according to an embodiment of the present invention;
FIG. 4 is a flow chart diagram illustrating an alternative monitoring method for a smart device in accordance with an embodiment of the present invention;
FIG. 5 is a flow chart illustrating an alternative monitoring method for a smart device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an alternative monitoring apparatus for an intelligent device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiment of the invention, the monitoring method of the intelligent device is widely applied to full-House intelligent digital control application scenes such as Smart Home (Smart Home), Smart Home device ecology, Smart Home (Intelligence House) ecology and the like. Alternatively, in this embodiment, the monitoring method of the intelligent device may be applied to a hardware environment formed by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be configured to provide a service (e.g., an application service) for the terminal or a client installed on the terminal, set a database on the server or independent of the server, and provide a data storage service for the server 104, and configure a cloud computing and/or edge computing service on the server or independent of the server, and provide a data operation service for the server 104.
The terminal device 102 reports the process exception to the server 104 through the network, and after receiving the process exception, the server 104 is not limited to determining the corresponding solution based on the process exception, so that the execution instruction corresponding to the solution is fed back to the terminal device 102 through the network to solve the process exception of the terminal device 102. The process exception of the terminal apparatus 102 is not limited to be implemented in the monitoring method of the smart device by sequentially executing S102 to S104. And S102, running a target monitoring process. And running a target monitoring process under the condition that the target equipment is started, and monitoring the target process of the target equipment through the target monitoring process. And S104, managing the target process. And under the condition that the target process is monitored to be abnormal in operation through the target monitoring process, managing the target process through the target monitoring process so as to enable the target process to be recovered to be normal in operation.
The server may be a single server, a server cluster composed of a plurality of servers, or a cloud server. The network may include, but is not limited to, at least one of: wired networks, wireless networks. The wired network may include, but is not limited to, at least one of: wide area networks, metropolitan area networks, local area networks, which may include, but are not limited to, at least one of the following: WIFI (Wireless Fidelity), bluetooth. The terminal device 102 may not be limited to a PC, a mobile phone, a tablet computer, an intelligent air conditioner, an intelligent cigarette machine, an intelligent refrigerator, an intelligent oven, an intelligent cooking range, an intelligent washing machine, an intelligent water heater, an intelligent washing device, an intelligent dish washer, an intelligent projection device, an intelligent television, an intelligent clothes hanger, an intelligent curtain, an intelligent video, an intelligent socket, an intelligent sound box, an intelligent fresh air device, an intelligent kitchen and toilet device, an intelligent bathroom device, an intelligent floor sweeping robot, an intelligent window wiping robot, an intelligent floor mopping robot, an intelligent air purification device, an intelligent steam box, an intelligent microwave oven, an intelligent kitchen and toilet, an intelligent purifier, an intelligent water dispenser, an intelligent door lock, and the like.
As an optional implementation, as shown in fig. 2, the monitoring method of the intelligent device includes:
s202, under the condition that target equipment is started, running a target monitoring process, and monitoring the target process of the target equipment through the target monitoring process;
and S204, under the condition that the target process is monitored to be abnormal by the target monitoring process, managing the target process by the target monitoring process so as to restore the target process to be normal in operation.
The target monitoring process starts to run when the target device starts, and is not limited to starting the target monitoring process while the target device starts. The target monitoring process is used for monitoring a process called by the target equipment during operation and is not limited to at least one operation process. The target monitoring process is not limited to be integrated in the operation center of the target equipment, and the target monitoring process is automatically started by starting the target equipment.
The target monitoring process is a monitoring process used for monitoring other processes in the target equipment and is independent of the existing processes in the target equipment, wherein the existing processes comprise the running process and the non-running process of the target equipment. The number of processes simultaneously monitored by the target monitoring process is not limited herein, and all processes running in the target device may be monitored simultaneously, a part of the processes may be monitored, or a preset process may be monitored.
When the target monitoring process monitors that the target process is abnormally operated, the target process is managed through the target monitoring process, but the operation abnormality of the target process is not limited to be eliminated through the target monitoring process, for example, the target process is restarted to enable the target process to recover normal operation.
As an optional implementation manner, monitoring the target process of the target device by the target monitoring process includes: establishing a monitoring association relation between a target process and a target monitoring process through inter-process communication between the target monitoring process and the target process; and monitoring the association relation by the target monitoring process.
The establishment of the monitoring association relationship with the target monitoring process is not limited to at least one target process, and the target process is any process called by the target device when running, such as a host process of the target device.
And establishing a monitoring association relation between the target process and the target monitoring process through the inter-process communication between the target monitoring process and the target process, so that the running of the target process is monitored through the target monitoring process. The monitoring of the operation of the target process by the target monitoring process is not limited to monitoring of the operation state of the target process and the operation parameters of the target process, and whether the target process is abnormal in operation or not is determined according to the operation state and the operation parameters.
In the embodiment of the application, when the target device is started, the target monitoring process is operated, the target process of the target device is monitored through the target monitoring process, when the target process is monitored to be abnormal in operation through the target monitoring process, the target process is managed through the target monitoring process, so that the target process is recovered to be normal in operation, the target process is monitored through the operated target monitoring process, when the target process is monitored to be abnormal, the target process is managed through the target monitoring process, so that the target process is recovered to be normal in operation, the purpose of monitoring the process operated in the target device is achieved, when the target process is abnormal in operation, the purpose of recovering to be normal in operation of the target process is achieved through the management of the target monitoring process, and therefore, the process abnormality of the target device in operation is timely discovered, and the technical effect of process abnormity of the target equipment is solved in time, and the technical problem that the equipment operation abnormity cannot be solved in time because the equipment process is not monitored is solved.
As an optional implementation manner, as shown in fig. 3, after the monitoring association relationship between the target process and the target monitoring process is established, the method further includes:
s302, the target process is controlled to continuously send the state data packet to the target monitoring process according to the target frequency through monitoring the association relation, wherein the target monitoring process monitors the running condition of the target process according to the state data packet.
S304, under the condition that the target monitoring process continuously receives the state data packet according to the target frequency, determining that the target monitoring process monitors that the target process normally operates.
Under the condition of establishing a monitoring association relation between a target process and a target monitoring process, the target process is controlled to actively send a state data packet to the target monitoring process according to a target frequency, the state data packet is used for indicating whether the target process operates normally, the state data packet can be continuously sent to the target monitoring process only under the condition that the target process operates normally, and under the condition that the target process operates abnormally, abnormal sending can occur in the sending of the state data packet, and the sending is not limited to not sending the state data packet or sending the abnormal frequency, so that the state data packet cannot be sent according to the target frequency, and the target monitoring process cannot naturally receive the state data packet according to the target frequency.
And under the condition that the target monitoring process receives the state data packet according to the target frequency, determining that the target process normally operates, under the condition that the target monitoring process fails to receive the state data packet or the frequency of receiving the state data packet is not the target frequency, determining that the target monitoring process fails to continuously receive the state data packet according to the target frequency, and at the moment, determining that the target process abnormally operates.
The target frequency is the number of sending times in a preset unit time, is not limited to be represented by sending intervals, and sends the state data packet to the target monitoring process at intervals of the preset intervals, so that the target monitoring process determines whether the monitored target process operates normally by whether the state data packet is received on time or not.
The status data packet is not limited to include the process information of the target process, the current process occupancy rate, the current memory parameter, and other current running status data of the target process.
As an optional implementation manner, as shown in fig. 4, after controlling the target process to continuously send the status data packet to the target monitoring process according to the target frequency by monitoring the association relationship, the method further includes:
s402, determining that the target monitoring process monitors abnormal operation of the target process under the condition that the target monitoring process does not continuously receive the state data packet according to the target frequency;
s404, restarting the target process through the target monitoring process.
And when the target monitoring process determines that the target process is abnormal in operation based on the state data packet, closing the target process and restarting the target process, and ensuring that the target process returns to a normal operation state by restarting the target process.
Taking the example of establishing a heartbeat detection mechanism between the target process and the target monitoring process through inter-process communication, the target process actively sends a heartbeat data packet to the target monitoring process, and the target monitoring process determines that the target process is abnormal in operation through incorrect frequency or interval of the heartbeat data packet, and then closes the target process and restarts the target process.
As an optional implementation manner, after controlling the target process to continuously send the status data packet to the target monitoring process according to the target frequency by monitoring the association relationship, the method further includes:
s1, under the condition that the target monitoring process receives the state data packet, acquiring the current memory parameters of the target process from the state data packet, wherein the current memory parameters are used for indicating the available memory space of the target process at the current moment;
and S2, determining the memory operation condition of the target process according to the available memory space.
And under the condition that the target monitoring process determines the running state of the target process based on the received state data packet, obtaining the memory parameters from the state data packet so as to determine the current memory running condition of the target process. The memory parameters of the current target process are carried in each state data packet, and the memory parameters of the target process at different moments are not limited to be independent.
Taking the currently available memory space of the target process obtained from the status data packet as an example, the target monitoring process determines whether the memory of the target process is normal or not through the currently available memory space of the target process, so as to report and process the abnormality in time under the condition that the memory is abnormal.
As an optional implementation manner, the determining the memory operation condition of the target process according to the available memory space includes:
s1, determining that the target monitoring process monitors that the current memory of the target process is abnormal when the available memory space is not in the preset memory range;
s2, writing the current memory operation exception into a process log, wherein the process log is used for recording the process exception in the target device
And determining that the current memory of the target process normally operates under the condition that the available memory space is within the preset memory range, and determining that the current memory of the target process abnormally operates under the condition that the available memory space is not within the preset memory range. And under the condition that the target monitoring process monitors that the current memory of the target process is abnormally operated, writing the abnormal operation of the memory into the process log, and simultaneously writing the data related to the abnormal operation of the memory into the process log, so that the reason of the abnormal operation of the target process can be conveniently analyzed through the process log.
As an optional implementation manner, when the target monitoring process monitors that the current memory of the target process is abnormal, the target device is restarted at the target time, where the target time is a random time allocated to the target device in the target time period.
And under the condition that the target monitoring process monitors that the current memory of the target process is abnormally operated, determining the current time at the current moment. And determining whether the target process is restarted to release the available memory of the target process by judging whether the current time is within the target time period, so that the target process is adjusted to a normal memory operation state. And when the current time is not in the target time period, the target process is not limited to be adjusted to the normal memory running state by restarting the target process. And when the current time is within the target time period, restarting the target equipment at the target moment to release the available memory of the equipment, so that the target process is adjusted to a normal memory running state.
And restarting the target equipment at the target time, wherein the target time is the random restarting time allocated to the target equipment in the target time period. Alternatively, in the case where the current time is not within the target time period, in the case where the target device operates to the target time period, it is not limited to restarting the target device at the target time.
The target time period is not limited to the restart time period set for the equipment, and the probability of restarting each equipment at each moment in the target time period is not limited to the same, so that when the number of the equipment is large, the running pressure caused by restarting the servers by a plurality of equipment is avoided.
Taking the monitoring association as a heartbeat detection mechanism and the target time period as night as an example, the monitoring method of the intelligent device is not limited to the method shown in fig. 5.
S501, starting a target monitoring process. Under the condition that the target equipment is started, starting and running a target monitoring process;
s502, pulling up the target process. The target monitoring process pulls up the target process;
s503, judging whether the heartbeat is normal. If the judgment result is no, executing S502 and continuing to pull up the target process; if yes, S504 is executed.
S504, whether the memory is sufficient is judged. If the judgment is no, S506 is executed; if yes, executing S505;
and S505, judging whether the night is set. If yes, S506 is executed; if the determination is no, S506 and S503 are executed, and it is continuously determined whether the heartbeat of the target process is normal.
And S506, recording the operation log. And recording the memory exception in the running log.
And S507, restarting the target process. And under the condition of recording the memory running exception, restarting the target process to solve the memory running exception.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art will appreciate that the embodiments described in this specification are presently preferred and that no acts or modules are required by the invention.
According to another aspect of the embodiment of the present invention, there is also provided a monitoring apparatus for an intelligent device, which is used for implementing the monitoring method for an intelligent device. As shown in fig. 6, the apparatus includes:
an operation unit 602, configured to operate a target monitoring process when a target device is started, and monitor a target process of the target device through the target monitoring process;
the management unit 604 is configured to manage the target process through the target monitoring process when it is monitored that the target process operates abnormally by the target monitoring process, so that the target process is recovered to operate normally.
Optionally, the running unit 602 is further configured to establish a monitoring association relationship between the target process and the target monitoring process through inter-process communication between the target monitoring process and the target process; and monitoring the association relation by the target monitoring process.
Optionally, the monitoring apparatus of the intelligent device further includes a control unit, configured to control the target process to continuously send a state data packet to the target monitoring process according to the target frequency through the monitoring association relationship after the monitoring association relationship between the target process and the target monitoring process is established, where the target monitoring process monitors an operation condition of the target process according to the state data packet; and under the condition that the target monitoring process continuously receives the state data packet according to the target frequency, determining that the target monitoring process monitors that the target process operates normally.
Optionally, the monitoring apparatus of the intelligent device further includes a first restarting unit, configured to determine that the target monitoring process monitors that the target process is abnormally operated when the target monitoring process does not continuously receive the status data packet according to the target frequency after the target process is controlled to continuously send the status data packet to the target monitoring process according to the target frequency through monitoring the association relationship; and restarting the target process through the target monitoring process.
Optionally, the monitoring apparatus of the intelligent device further includes a memory unit, configured to obtain a current memory parameter of the target process from the status data packet when the target monitoring process receives the status data packet after controlling the target process to continuously send the status data packet to the target monitoring process according to the target frequency through monitoring the association relationship, where the current memory parameter is used to indicate an available memory space of the target process at the current time; and determining the memory operation condition of the target process according to the available memory space.
Optionally, the memory unit is further configured to determine that the target monitoring process monitors that the current memory of the target process is abnormal when the available memory space is not within the preset memory range; writing the current memory operation exception into a process log, wherein the process log is used for recording the process exception in the target equipment
Optionally, the monitoring apparatus of the intelligent device further includes a second restarting unit, configured to restart the target device at a target time when the target monitoring process monitors that the current memory of the target process is abnormal, where the target time is a random time allocated to the target device in a target time period.
In the embodiment of the application, when the target device is started, the target monitoring process is operated, the target process of the target device is monitored through the target monitoring process, when the target process is monitored to be abnormal in operation through the target monitoring process, the target process is managed through the target monitoring process, so that the target process is recovered to be normal in operation, the target process is monitored through the operated target monitoring process, when the target process is monitored to be abnormal, the target process is managed through the target monitoring process, so that the target process is recovered to be normal in operation, the purpose of monitoring the process operated in the target device is achieved, when the target process is abnormal in operation, the purpose of recovering to be normal in operation of the target process is achieved through the management of the target monitoring process, and therefore, the process abnormality of the target device in operation is timely discovered, and the technical effect of process abnormity of the target equipment is solved in time, and the technical problem that the equipment operation abnormity cannot be solved in time because the equipment process is not monitored is solved.
According to another aspect of the embodiment of the present invention, there is also provided an electronic device for implementing the monitoring method of the intelligent device, where the electronic device may be a terminal device or a server shown in fig. 1. The present embodiment takes the electronic device as a terminal device as an example for explanation. As shown in fig. 7, the electronic device comprises a memory 702 and a processor 704, the memory 702 having stored therein a computer program, the processor 704 being arranged to perform the steps of any of the above-described method embodiments by means of the computer program.
Optionally, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, running the target monitoring process under the condition that the target equipment is started, and monitoring the target process of the target equipment through the target monitoring process;
and S2, under the condition that the target process is monitored to be abnormal by the target monitoring process, managing the target process by the target monitoring process so as to restore the target process to be normal in operation.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 7 is only an illustration, and the electronic device may be any terminal device. Fig. 7 does not limit the structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 7, or have a different configuration than shown in FIG. 7.
The memory 702 may be used to store software programs and modules, such as program instructions/modules corresponding to the monitoring method and apparatus for an intelligent device in the embodiments of the present invention, and the processor 704 executes various functional applications and data processing by running the software programs and modules stored in the memory 702, so as to implement the monitoring method for an intelligent device described above. The memory 702 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 702 can further include memory located remotely from the processor 704, which can be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 702 may be specifically, but not limited to, used to store information such as a target monitoring process, a monitoring association, and operation monitoring data. As an example, as shown in fig. 7, the memory 702 may include, but is not limited to, an operation unit 602 and a management unit 604 in a monitoring apparatus including the smart device. In addition, the monitoring apparatus may further include, but is not limited to, other module units in the monitoring apparatus of the intelligent device, which is not described in detail in this example.
Optionally, the transmitting device 706 is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 706 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 706 is a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In addition, the electronic device further includes: a display 708 for displaying the operation monitoring data; and a connection bus 710 for connecting the respective module parts in the above-described electronic apparatus.
In other embodiments, the terminal device or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting a plurality of nodes through a network communication. Nodes can form a Peer-To-Peer (P2P, Peer To Peer) network, and any type of computing device, such as a server, a terminal, and other electronic devices, can become a node in the blockchain system by joining the Peer-To-Peer network.
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 monitoring aspect of the smart device described above. Wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, running a target monitoring process under the condition that the target equipment is started, and monitoring the target process of the target equipment through the target monitoring process;
and S2, under the condition that the target process is monitored to be abnormal by the target monitoring process, managing the target process by the target monitoring process so as to restore the target process to be normal in operation.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A monitoring method of an intelligent device is characterized by comprising the following steps:
under the condition that target equipment is started, running a target monitoring process, and monitoring the target process of the target equipment through the target monitoring process;
and under the condition that the target process is monitored to be abnormal in operation through the target monitoring process, managing the target process through the target monitoring process so as to enable the target process to be recovered to be normal in operation.
2. The method of claim 1, wherein the monitoring, by the target monitoring process, the target process of the target device comprises:
establishing a monitoring association relation between the target process and the target monitoring process through the inter-process communication between the target monitoring process and the target process;
and monitoring the target process by the target monitoring process according to the monitoring association relation.
3. The method according to claim 2, further comprising, after establishing the monitoring association relationship between the target process and the target monitoring process:
controlling the target process to continuously send a state data packet to the target monitoring process according to a target frequency through the monitoring association relation, wherein the target monitoring process monitors the running condition of the target process according to the state data packet;
and under the condition that the target monitoring process continuously receives the state data packet according to the target frequency, determining that the target monitoring process monitors that the target process operates normally.
4. The method according to claim 3, wherein after controlling the target process to continuously send the status data packet to the target monitoring process according to the target frequency through the monitoring association relationship, the method further comprises:
determining that the target monitoring process monitors that the target process operates abnormally under the condition that the target monitoring process does not continuously receive the state data packet according to the target frequency; and restarting the target process through the target monitoring process.
5. The method as claimed in claim 3, wherein after controlling the target process to continuously send the status data packet to the target monitoring process according to the target frequency through the monitoring association relationship, further comprising:
under the condition that the target monitoring process receives the state data packet, acquiring a current memory parameter of the target process from the state data packet, wherein the current memory parameter is used for indicating an available memory space of the target process at the current moment;
and determining the memory operation condition of the target process according to the available memory space.
6. The method of claim 5, wherein determining the memory behavior of the target process based on the available memory space comprises:
determining that the target monitoring process monitors that the current memory of the target process is abnormally operated under the condition that the available memory space is not within a preset memory range;
and writing the current memory operation exception into a process log, wherein the process log is used for recording the process exception in the target equipment.
7. The method of claim 6, wherein:
and restarting the target equipment at a target time under the condition that the target monitoring process monitors that the current memory of the target process is abnormal, wherein the target time is a random time distributed to the target equipment in a target time period.
8. A monitoring device of intelligent equipment is characterized by comprising:
the running unit is used for running a target monitoring process under the condition that the target equipment is started, and monitoring the target process of the target equipment through the target monitoring process;
and the management unit is used for managing the target process through the target monitoring process under the condition that the target process is monitored to be abnormal in operation through the target monitoring process so as to enable the target process to be recovered to be normal in operation.
9. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202210319587.7A 2022-03-29 2022-03-29 Monitoring method and device for intelligent equipment, storage medium and electronic equipment Pending CN114815641A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210319587.7A CN114815641A (en) 2022-03-29 2022-03-29 Monitoring method and device for intelligent equipment, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210319587.7A CN114815641A (en) 2022-03-29 2022-03-29 Monitoring method and device for intelligent equipment, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN114815641A true CN114815641A (en) 2022-07-29

Family

ID=82531509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210319587.7A Pending CN114815641A (en) 2022-03-29 2022-03-29 Monitoring method and device for intelligent equipment, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114815641A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1904852A (en) * 2006-08-01 2007-01-31 西安西电捷通无线网络通信有限公司 Method for monitoring and abnormal processing of computer application program
CN101268447A (en) * 2005-05-26 2008-09-17 美国联合包裹服务公司 Software process monitor
CN109660426A (en) * 2018-12-14 2019-04-19 泰康保险集团股份有限公司 Monitoring method and system, computer-readable medium and electronic equipment
CN111090562A (en) * 2019-11-25 2020-05-01 广东科徕尼智能科技有限公司 Business process monitoring method, equipment and storage medium of edge intelligent gateway
CN111949490A (en) * 2020-08-14 2020-11-17 中国工商银行股份有限公司 JVM process monitoring method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101268447A (en) * 2005-05-26 2008-09-17 美国联合包裹服务公司 Software process monitor
CN1904852A (en) * 2006-08-01 2007-01-31 西安西电捷通无线网络通信有限公司 Method for monitoring and abnormal processing of computer application program
CN109660426A (en) * 2018-12-14 2019-04-19 泰康保险集团股份有限公司 Monitoring method and system, computer-readable medium and electronic equipment
CN111090562A (en) * 2019-11-25 2020-05-01 广东科徕尼智能科技有限公司 Business process monitoring method, equipment and storage medium of edge intelligent gateway
CN111949490A (en) * 2020-08-14 2020-11-17 中国工商银行股份有限公司 JVM process monitoring method and device

Similar Documents

Publication Publication Date Title
CN114866365A (en) Arbitration machine election method and device, intelligent equipment and computer readable storage medium
CN116016002A (en) Intelligent household appliance network distribution method and device and electronic device
CN114697150B (en) Command issuing method and device, storage medium and electronic device
CN111767167A (en) Method, system, server and storage medium for migrating gateway data
CN113296729A (en) Prompt message broadcasting method, device and system, storage medium and electronic device
CN114815641A (en) Monitoring method and device for intelligent equipment, storage medium and electronic equipment
CN116033006A (en) Data processing method, system, storage medium and electronic device
CN108616433B (en) State synchronization method, device, gateway equipment and storage medium
CN107248935B (en) System and method for network management to discover and monitor network elements
CN114697345B (en) Information updating method and device, storage medium and electronic device
CN115695182A (en) Network connection method, device, storage medium and electronic device
CN115297345B (en) Method and device for processing screen-throwing request, storage medium and electronic device
CN115148204B (en) Voice wakeup processing method and device, storage medium and electronic device
CN115174382B (en) Equipment upgrading method, storage medium and electronic device
CN117527459A (en) Control method and device of intelligent equipment, storage medium and electronic device
CN115174609B (en) Method and device for sending control instruction, storage medium and electronic device
CN115296945B (en) Control method, system and device of equipment, storage medium and electronic device
CN116346686A (en) Information transmission method and device, storage medium and electronic device
CN117240874A (en) Equipment linkage method and device, storage medium and electronic device
CN117176791A (en) Push information sending method and device, storage medium and electronic device
CN115955386A (en) Method and device for determining disconnection reason, storage medium and electronic device
CN115766881A (en) Timing scheduling monitoring method, storage medium and electronic device
CN116527425A (en) Message processing method and device, storage medium and electronic device
CN116170344A (en) Message monitoring method and device, storage medium and electronic device
CN115312050A (en) Command response method, storage medium and electronic device

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