CN114745426A - Method, device and equipment for monitoring abnormity of terminal, readable storage medium and system - Google Patents

Method, device and equipment for monitoring abnormity of terminal, readable storage medium and system Download PDF

Info

Publication number
CN114745426A
CN114745426A CN202110018212.2A CN202110018212A CN114745426A CN 114745426 A CN114745426 A CN 114745426A CN 202110018212 A CN202110018212 A CN 202110018212A CN 114745426 A CN114745426 A CN 114745426A
Authority
CN
China
Prior art keywords
terminal
application
target terminal
state
state information
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
CN202110018212.2A
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202110018212.2A priority Critical patent/CN114745426A/en
Publication of CN114745426A publication Critical patent/CN114745426A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • 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
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the application discloses a method, a device, equipment, a readable storage medium and a system for monitoring the abnormity of a terminal; after monitoring that the terminal is normally started, sending a connection request to at least one searched target terminal, wherein the connection request is used for the terminal to establish pairing connection with the target terminal; determining the equipment state of the target terminal according to the pairing connection condition; when the equipment state of the target terminal is equipment connection normal, acquiring application state information of an application to be monitored of the target terminal; determining the application state of the application to be monitored according to the application state information; generating state information of the target terminal according to the equipment state or the application state; and transmitting the state information of the target terminal to the server so that the server determines whether the target terminal is abnormal or not according to the state information. According to the scheme, the state information of other terminals is acquired through the terminal and is transmitted to the server, so that the server monitors each terminal device according to the state information transmitted by the terminal.

Description

Method, device and equipment for monitoring abnormity of terminal, readable storage medium and system
Technical Field
The invention relates to the technical field of computers, in particular to a method, a device, equipment, a readable storage medium and a system for monitoring abnormity of a terminal.
Background
With the popularization and application of the electronic money technology, the electronic money is not limited to the circulation among online accounts any more, and can be applied to online actual use. However, in the actual application of the online store, the transaction between the individual account and the merchant account is usually assisted by some terminal devices to improve the reliability of the online store in the electronic money transaction or feed back the transaction result, and since the role of the terminal device on the online electronic payment is crucial, the terminal device is strictly required to be able to operate normally in the activated state.
In the current practical application of off-line stores, the related terminal equipment comprises voice terminal equipment, face recognition terminal equipment and the like; the transaction result is played through the voice terminal equipment, and the security and the efficiency of the transaction are improved through the face recognition terminal. However, most of terminal devices have many technical problems, and when an abnormality occurs in a terminal device, the abnormality is usually detected autonomously and reported to a back-end server.
In the research and practice processes of the prior art, the inventor of the present invention finds that, in the prior art, when the terminal device is abnormal, the terminal device is autonomously detected and autonomously reported to the backend server, and the abnormal reporting mode of the terminal is single, which cannot take into account the situation that the host terminal or the similar terminal device cannot report due to the abnormal condition or the reporting delay condition caused by the abnormal condition, which is not beneficial to the monitoring service of the backend server on the terminal device.
Disclosure of Invention
The embodiment of the application provides an abnormality monitoring method, an abnormality monitoring device, an abnormality monitoring equipment, a readable storage medium and an abnormality monitoring system for a terminal, which can solve the technical problems that an abnormality reporting mode of the terminal is single, and the abnormality reporting mode cannot take into account the situation that a host terminal or similar terminal equipment cannot report due to abnormality or reporting delay is caused by abnormal situations.
The embodiment of the application provides an abnormity monitoring method of a terminal, which is applied to the terminal and comprises the following steps:
after monitoring that the terminal is normally started, sending a connection request to at least one searched target terminal, wherein the connection request is used for the terminal to establish pairing connection with the target terminal;
determining the equipment state of the target terminal according to the pairing connection condition;
when the equipment state of the target terminal is equipment connection normal, acquiring application state information of an application to be monitored of the target terminal;
determining the application state of the application to be monitored according to the application state information;
generating state information of the target terminal according to the equipment state or the application state;
and transmitting the state information of the target terminal to a server so that the server determines whether the target terminal is abnormal or not according to the state information.
Correspondingly, the embodiment of the present application further provides an anomaly monitoring method for a terminal, which is applied to a server and includes:
receiving state information of at least one target terminal transmitted by a terminal, wherein the target terminal is a terminal device with identification matching with the terminal;
analyzing the state information of the target terminal to obtain the equipment state of the target terminal or the application state of the application to be monitored on the target terminal;
monitoring whether the target terminal is abnormal or not based on the equipment state or the application state;
and executing a corresponding exception handling strategy when the target terminal is monitored to have the exception.
Correspondingly, the embodiment of the present application provides an abnormality monitoring apparatus for a terminal, which is applied to the terminal, and includes:
the terminal comprises a sending unit, a receiving unit and a sending unit, wherein the sending unit is used for sending a connection request to at least one searched target terminal after monitoring that the terminal is normally started, and the connection request is used for the terminal to establish pairing connection with the target terminal;
the first determining unit is used for determining the equipment state of the target terminal according to the pairing connection condition;
the device comprises an acquisition unit, a monitoring unit and a processing unit, wherein the acquisition unit is used for acquiring application state information of an application to be monitored of the target terminal when the device state of the target terminal is that the device connection is normal;
the second determining unit is used for determining the application state of the application to be monitored according to the application state information;
a generating unit, configured to generate state information of the target terminal according to the device state or the application state;
and the transmission unit is used for transmitting the state information of the target terminal to a server so that the server determines whether the target terminal is abnormal or not according to the state information.
In some embodiments, the sending unit includes:
the searching subunit is used for searching candidate terminals with the distance to the terminal within a preset range;
the identification subunit is used for identifying the searched attribution identification information of the candidate terminal;
the confirming subunit is used for confirming that the terminal equipment is the target terminal when the attribution identification information of the candidate terminal is matched with the attribution identification information of the terminal;
and the sending subunit is used for sending the connection request to the target terminal.
In some embodiments, the first determining unit includes:
the detection subunit is used for detecting the pairing connection condition of the terminal and the target terminal;
the first determining subunit is configured to determine, when it is detected that pairing connection between the terminal and the target terminal is successful, that the device state of the target terminal is normal;
the first determining subunit is further configured to determine, when it is detected that the pairing connection between the terminal and the target terminal fails, that the device state of the target terminal is a device connection abnormality.
In some embodiments, the obtaining unit includes:
the sending subunit is configured to send an application state acquisition instruction of the application to be monitored to a daemon application of the target terminal, where the daemon application is configured to monitor the application to be monitored;
and the acquisition subunit is used for receiving the application state information of the target terminal, which is sent by the daemon application of the target terminal.
In some embodiments, the second determining unit is specifically configured to: determining the connection condition between the application to be monitored on the target terminal and the daemon application according to the application state information;
when the data interface connection between the application to be monitored on the target terminal and the daemon application is established, determining that the application state of the application to be monitored on the target terminal is normal in application running;
and when the application to be monitored on the target terminal cannot establish data interface connection with the daemon application, determining that the application state of the application to be monitored on the target terminal is abnormal in application running.
In some embodiments, the transmission unit includes:
the acquisition subunit is used for acquiring the serial number of the target terminal;
the establishing subunit is used for establishing a mapping relation between the state information and the serial number of the target terminal;
the storage subunit is used for storing the mapping relationship in a storage space of the terminal;
and the transmission subunit is used for transmitting the stored mapping relation to the server.
In some embodiments, the apparatus further comprises:
the generating unit is further configured to regenerate the state information of the target terminal at preset unit time intervals;
the comparison unit is used for comparing the regenerated state information with the stored state information in the mapping relation;
an updating unit, configured to update the state information in the mapping relationship in the storage space to obtain an updated mapping relationship when the regenerated state information is different from state information in a storage device of the terminal;
the transmission unit is further configured to transmit the updated mapping relationship to a server.
Correspondingly, an embodiment of the present application provides an abnormality monitoring apparatus for a terminal, which is applied to a server, and includes:
the terminal comprises a receiving unit, a judging unit and a judging unit, wherein the receiving unit is used for receiving the state information of at least one target terminal transmitted by a terminal, and the target terminal is a terminal device with identification matching with the terminal;
the analysis unit is used for analyzing the state information of the target terminal to obtain the equipment state of the target terminal or the application state of the application to be monitored on the target terminal;
the monitoring unit is used for monitoring whether the target terminal is abnormal or not based on the equipment state or the application state;
and the execution unit is used for executing a corresponding exception handling strategy when the target terminal is monitored to have the exception.
In some embodiments, the monitoring unit is specifically configured to: when the target terminal is determined to be normally connected based on the equipment state, determining whether the application to be monitored on the target terminal is abnormal or not according to the application state;
when the application to be monitored on the target terminal is determined to be the application running normally based on the application state, monitoring that the target terminal is abnormal, and when the application to be monitored on the target terminal is determined to be the application running abnormally based on the application state, monitoring that the target terminal is abnormal;
and when the target terminal is determined to be abnormal in equipment connection based on the equipment state, monitoring that the target terminal is abnormal.
In some embodiments, further comprising:
the receiving unit is also used for receiving the state information transmitted by the terminal at preset unit time intervals;
the analysis unit is further used for analyzing the state information of the target terminal to obtain the equipment state of the target terminal or the application state of the application to be monitored on the target terminal;
the monitoring unit is also used for monitoring whether the target terminal is abnormal or not based on the equipment state or the application state;
and the execution module is further used for executing a corresponding exception handling strategy when the monitored exception state frequency of the target terminal is greater than a preset exception frequency threshold value.
Correspondingly, the present application further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the steps in any of the method for monitoring abnormality of a terminal provided in the embodiments of the present application when executing the program.
In addition, the embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in any one of the method for monitoring abnormality of a terminal provided in the embodiment of the present application.
Correspondingly, the present application further provides an anomaly monitoring system for a terminal, the system includes: the system comprises a terminal with the abnormality monitoring device of the terminal and a server with the abnormality monitoring device of the terminal, wherein the terminal is in communication connection with the server.
The method and the device for establishing the pairing connection between the terminal and the target terminal can send a connection request to the at least one searched target terminal after monitoring that the terminal is normally started, wherein the connection request is used for the terminal to establish the pairing connection with the target terminal; determining the equipment state of the target terminal according to the pairing connection condition; when the equipment state of the target terminal is equipment connection normal, acquiring application state information of an application to be monitored of the target terminal; determining the application state of the application to be monitored according to the application state information; generating state information of the target terminal according to the equipment state or the application state; and transmitting the state information of the target terminal to the server so that the server determines whether the target terminal is abnormal or not according to the state information. According to the scheme, the equipment state or the application state of the target terminal can be acquired through the normally started terminal, and data interaction is carried out between the normally started terminal and the server, so that the server can determine whether the target terminal is abnormal or not based on the equipment state or the application state, the mutual monitoring of the health state among the terminal equipment is realized, the server is assisted to monitor each terminal equipment according to the state information, the monitoring force of the server on the terminal is improved, the monitoring service of the server on the terminal is facilitated, and the reliability is achieved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a scene schematic diagram of an anomaly monitoring system of a terminal according to an embodiment of the present application;
fig. 2 is a schematic flowchart of an anomaly monitoring method for a terminal according to an embodiment of the present application;
fig. 3 is another schematic flow chart of an anomaly monitoring method for a terminal according to an embodiment of the present application;
fig. 4a is a schematic diagram of a first structure of an abnormality monitoring apparatus of a terminal according to an embodiment of the present application;
fig. 4b is a second schematic structural diagram of an abnormality monitoring apparatus of a terminal according to an embodiment of the present application;
fig. 4c is a schematic diagram of a third structure of an abnormality monitoring apparatus for a terminal according to an embodiment of the present application;
fig. 4d is a schematic diagram of a fourth structure of an abnormality monitoring apparatus for a terminal according to an embodiment of the present application;
fig. 4e is a schematic diagram of a fifth structure of an abnormality monitoring apparatus of a terminal according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of another abnormality monitoring apparatus for a terminal according to an embodiment of the present application;
fig. 6a is a schematic structural diagram of an abnormality monitoring system of a terminal according to an embodiment of the present application;
fig. 6b is a timing diagram illustrating an anomaly monitoring method for a terminal according to an embodiment of the present application;
fig. 7 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 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.
The embodiment of the application provides a method and a device for monitoring terminal abnormity, computer equipment, a computer readable storage medium and a system. Specifically, the abnormality monitoring method for the terminal according to the embodiment of the present application may be executed by a Computer device, where the Computer device may be a terminal or a server, and the terminal may be a payment device, a mobile phone, a tablet Computer, a notebook Computer, a smart television, a wearable smart device, a Personal Computer (PC), and other devices. The terminal may include a client, where the client may be a client having the capability of performing state information interaction with other clients, actively acquiring state information of other clients, or identifying state information of other clients, and the server may be a single server at the back end, or a server cluster composed of multiple servers at the back end. It should be noted that, a service relationship or a relationship between a supply service and a supplied service exists between the server or the server cluster and the terminal at the back end, for example, a data service relationship exists between the mobile phone terminal and the network operator, a financial data management service relationship exists between the cash dispenser and the bank background server, and a financial data management service relationship exists between the payment and receipt terminal and the financial data management service having the financial management authority background server; furthermore, in some embodiments, the backend server provides a software, a program, an application, or the like, and the software or the application can be installed on the terminal or the corresponding program can be executed to realize data interaction between the terminal and the backend server so as to realize the relationship between the corresponding providing service and the provided service. The above embodiments are only some of the embodiments listed in the present application, and other embodiments similar to or the same as the above embodiments still fall within the practical scope of the present application.
The embodiment of the application provides an abnormality monitoring method for a terminal, which can be executed by the terminal or a server, or can be executed by the terminal and the server respectively or jointly.
The terminal and the server respectively execute the exception monitoring method of the terminal as an example.
Specifically, referring to fig. 1, fig. 1 is a schematic view of a scene of an anomaly monitoring system of a terminal provided in an embodiment of the present application, which includes two parts, specifically including: the system comprises a server and a terminal at the back end, wherein the server can be a single server or a server cluster consisting of a plurality of servers, or can be a server for providing specific data service, the terminal can enjoy the service provided by the server, and the data generated on the terminal is uploaded to the server for data processing, management, storage and the like; it should be noted that, in this embodiment, at least two terminals are included, the multiple terminals may be the same or terminals that share the same service of a server, for convenience of description, a financial terminal with a payment and receipt function is taken as an example, the financial terminal is an electronic money transaction function for realizing payment and receipt, this embodiment includes at least two financial terminals, which are represented as a terminal 1 and a target terminal 2, it should be noted that the number of the target terminal 2 may be one or more, a server at the rear end thereof receives and processes financial data from the terminal, and in addition, may also receive other data information from the financial terminal.
Illustratively, as shown in fig. 1, the terminal is not limited to include: an OS (Operation System), a 3D camera, a financial application, and a daemon application, which may be an application for performing financial transactions, such as a face recognition application (abbreviated as a face APP); the daemon application is used for monitoring or identifying the application state of the financial application on the terminal, for example, whether the financial application on the terminal normally runs or not is identified, and the daemon terminal can also receive or collect the states of other terminals in the same store or a preset distance range, wherein the states of other terminals include the equipment state and the application state of the financial application, so that the terminal stores the state information of other terminals; further, the terminal can transmit all the stored state information to the server, so that the server at the back end processes the state information data according to the received state information data, and a corresponding strategy is made.
Specifically, after the OS of the terminal is normally started, for example, after the terminal is normally started, the related functions can be realized, for example, biological feature information such as face information and the like is collected by the 3D camera, and the output data includes related information such as a depth map and the like in addition to the RGB map, and the 3D camera can enhance the security of face recognition of the user. The face APP is not limited to include: the system comprises a face recognition module, a setting module, a network module and a server, wherein the face recognition module comprises a face acquisition sub-module and a face optimization sub-module; the user or related personnel sets attribution identification information of the terminal through the setting module, wherein the attribution identification information can be address information or attribution information of the terminal, such as the name of a store or the ID of the store, so that terminal external equipment or a server can learn the attribution address of the terminal or a label of the address where the user is located; the face acquisition submodule is used for calling a 3D camera to acquire an RGB image stream, a depth image stream, an infrared image stream and the like; the face optimization submodule is used for comprehensively evaluating and selecting an optimal face picture according to coefficient indexes such as face size, face angle, image contrast, image brightness and definition and the like; after obtaining an optimal face picture, a financial terminal sends data to a back-end server through a network module for recognition, during the period, a face APP front-end interface on the terminal enters a LOADING or waiting (load) state, the server receives the face picture sent by the terminal through a face recognition service, the face picture is matched with face-account information stored in a face-account database (called 'face-account database' for short) of the server in advance, after the server successfully recognizes, the back end returns a face recognition result to the terminal, after the user actively confirms, the financial terminal initiates payment to the back end, and then waits for a final result of the payment inquired by the back-end server.
Further, the server also provides an abnormal monitoring service of the terminal for the terminal. Illustratively, the daemon application (abbreviated "daemon APP") on the terminal 1 is not limited to include: a communication module, a cache (a storage space or a storage module), a client (a client), and a network module. The Client Server mode is adopted when TCP communication is used for establishing connection between a Client (Client) in the daemon APP and a Server (Server) in the face APP, the mode is often called a master-slave mode architecture, and is called a C/S structure for short, and belongs to a network communication architecture, two communication parties are distinguished by the identities of the Client (Client) and the Server (Server), after a system OS of the terminal 1 normally runs, the Client (Client) in the daemon APP and the Server (Server) in the face APP establish data interface connection, for example, data interface (AIDL) connection is established, so that data interaction between the face APP in the terminal and the daemon APP is realized, the daemon APP in the terminal 1 monitors the face APP, and whether the face APP is abnormal is detected. Communication module can be bluetooth module, infrared transmission module, fast tooth module, wiFi module etc. have data transmission ability's module to bluetooth module is for example, guards APP and after monitoring the start-up broadcast of terminal 1's system, calls the bluetooth module who contains and establishes to pair the connection with other external terminals, can be for in the process of establishing to pair the connection: the attribution identification information of other external target terminals 2 is obtained through the Bluetooth module, and according to the attribution identification information set by the module in the terminal 1 obtained through the Bluetooth module, when the home identification information of other target terminals 2 in the outside is the same as the home identification information set in the terminal 1, the terminal 1 and other external target terminals 2 are paired and connected through the bluetooth module, so as to realize data interaction between the terminal 1 and other target terminals 2, and further, the state information of other target terminals 2 is acquired or received through a bluetooth module in the terminal 1, and the acquired state information is stored in a storage space (cache) in a specific data form, where it should be noted that the state information stored in the storage space (cache) of the terminal 1 is the state information of the terminal 1 itself and the state information of other target terminals 2, and the state information is not limited to include: a serial number, attribution identification information, a device state and an application state of the terminal, for example, an implementation manner in an android system (android) is a share reference, which is a lightweight storage class and is suitable for storing configuration parameters of software; in practical applications, the form of the share prediction embodying stored data may be expressed as follows: { device _ sn: xxxxx1, store _ id: xx1, device _ state: ok, faceapp _ state: ok }, { device _ sn: xxxxx2, store _ id: xx1, device _ state: ok, faceapp _ state: no } ], wherein device _ sn is the serial number of the device and is unique identification information of the device, store _ id is attributive identification information of the terminal, device _ state is the device state of the terminal, and faceapp _ state is the application state of the face APP; wherein ok represents normal, no represents abnormal, and unbown represents unknown, if device _ state is ok, it represents that the device state of the terminal with the serial number xxxxx1 is normal, the device state is judged depending on whether the current terminal and other peripheral terminals can establish bluetooth connection, device _ state is ok, it represents that the terminal can establish bluetooth connection with other terminals, and if terminal faceapp _ state with the serial number xxxxx2 is no, it represents that the application state of the face APP of the terminal with the serial number xxxxx2 is abnormal, the application state mainly depends on whether a data interface (AIDL) connection can be established between the current device daemon APP and the face of the APP, and it represents that the application state of the face APP is normal, otherwise, it is abnormal. Further, a network module in the daemon APP is used for data transmission between the terminal and the server, the terminal can specifically establish communication connection with the server in a wireless or wired connection mode, and after the terminal 1 obtains state information of other terminals, all the state information stored in a storage space (cache) of the terminal 1 is transmitted to the server at the rear end through the network module, so that the server monitors whether each terminal is abnormal or not according to the received state information.
The terminal 1 may send a connection request to the searched target terminal 2 after monitoring that the terminal 1 is normally started, the connection request being used for the terminal to establish a pairing connection with the target terminal 2; determining the equipment state of the target terminal 2 according to the pairing connection condition; when the device state of the target terminal 2 is the device connection normal, acquiring application state information of an application to be monitored of the target terminal 2; determining the application state of the application to be monitored according to the application state information; generating state information of the target terminal 2 according to the equipment state or the application state; the state information of the target terminal 2 is transmitted to the server so that the server determines whether there is an abnormality in the terminal 1 and the target terminal 2 according to all the state information transmitted from the terminal 1.
The server receives the state information of at least one target terminal 2 transmitted by the terminal 1, and the target terminal 2 is a terminal device with identification matching with the terminal 1; analyzing the state information of the target terminal 2 to obtain the equipment state of the target terminal 2 or the application state of the application to be monitored on the target terminal 2; monitoring whether the target terminal 2 is abnormal or not based on the equipment state or the application state; and when monitoring that the target terminal 2 has the abnormality, executing a corresponding abnormality processing strategy.
It should be noted that the scenario diagram of the anomaly monitoring system of the terminal shown in fig. 1 is only an example, and the anomaly monitoring system and the scenario of the terminal described in the embodiment of the present application are for more clearly illustrating the technical solution of the embodiment of the present application, and do not form a limitation on the technical solution provided in the embodiment of the present application.
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.
The embodiment of the application provides an abnormality monitoring method for a terminal, which can be executed by the terminal or a server, or can be executed by the terminal and the server together.
The embodiment of the present application is described by taking an example in which an abnormality monitoring method of a terminal is executed by the terminal.
As shown in fig. 2, fig. 2 is a flowchart of steps of an abnormality monitoring method for a terminal according to an embodiment of the present application, and when a processor on the terminal executes a program corresponding to the abnormality monitoring method for the terminal, a specific flow of the abnormality monitoring method for the terminal may be as follows:
step 101, after monitoring that the terminal is normally started, sending a connection request to at least one searched target terminal, wherein the connection request is used for the terminal to establish pairing connection with the target terminal.
In some embodiments, a plurality of applications may be installed on the terminal, where the applications include an application to be monitored and an auxiliary application, the application to be monitored is an application that enables the terminal to have a main function or an application that implements a certain necessary or required function, for example, the application to be monitored installed on the financial terminal is a financial application, and the application to be monitored installed on the display terminal is a display application, a play application, a video application, or the like; in addition, the terminal may further include an auxiliary application, where the auxiliary application is configured to obtain status information of the terminal and a target terminal, and in this embodiment, a daemon application is taken as the auxiliary application, and the daemon application is configured to obtain status information of the terminal, for example, a hardware device status of the terminal and an application running status of an application to be monitored are obtained, and send the obtained status information to the server, so as to assist the server in monitoring the terminal. It should be noted that the target terminal is installed with an application that is the same as the auxiliary application on the terminal, so as to implement data interaction between the target terminal and the terminal, and achieve the effect of mutual monitoring between terminal devices, in addition, the target terminal may be installed with an application that is the same as the application to be monitored on the terminal, but is not limited thereto, and may also be installed with other applications that are provided by a service provider and implement other main functions, it should be noted that the other applications on the target terminal and the application to be monitored on the terminal belong to the application to be monitored provided by the same service provider, and data information of the applications to be monitored is provided by the same backend server, and is subjected to data processing by the same backend server. Illustratively, an application provider provides applications to be monitored including: the application a to be monitored, the application B to be monitored, and the auxiliary application C are different applications, and the functions implemented between the application a to be monitored and the application B to be monitored are different, for example, the functions between the broadcast application and the instant messaging application are different, when the applications to be monitored installed on the terminal and the target terminal are the same, the terminal and the target terminal can implement the same main functions, otherwise, when the applications to be monitored are not installed on the terminal and the target terminal, the main functions implemented between the terminal and the target terminal are different, and it needs to be described that the terminal and the target terminal can install multiple applications to be monitored, as when the applications to be monitored a and the applications to be monitored B are installed at the same time. Further, the same auxiliary application C is installed on the terminal and the target terminal, and the auxiliary application C is used for acquiring the application state of the terminal device itself and the state information of the target terminal, and data interaction is established between the auxiliary application C on the terminal and the auxiliary application C on the target terminal so as to mutually acquire the state information of the other terminal device. For example, an application a to be monitored and an auxiliary application C are installed on the terminal, and the application a to be monitored and the auxiliary application C are installed on the target terminal; or the terminal is provided with an application A to be monitored, an application B to be monitored and an auxiliary application C, and the target terminal is provided with the application A to be monitored and the auxiliary application; or the application A to be monitored and the auxiliary application C are installed on the terminal, and the application A to be monitored, the application B to be monitored and the auxiliary application are installed on the target terminal; the terminal and the target terminal can realize the same main function A, and the terminal and the target terminal can establish pairing connection with the opposite terminal equipment through the auxiliary application C under the condition of normal starting so as to acquire the state information of the opposite terminal equipment and assist the server in carrying out abnormal monitoring on the terminal. For another example, the application a to be monitored and the auxiliary application C are installed on the terminal, and the application B to be monitored and the auxiliary application C are installed on the target terminal, so that the terminal and the target terminal respectively implement different main functions, and the terminal and the target terminal can establish pairing connection with the terminal device of the other party through the auxiliary application C under the condition of normal starting to acquire state information of the terminal device of the other party, so as to assist the server in performing abnormal monitoring of the terminal. The embodiment can prevent the terminal equipment from being abnormal, prevent the terminal from realizing corresponding main functions and influence the service quality during the service provided by the server.
It should be noted that, when the auxiliary application on the terminal monitors that the system of the terminal is normally started, sending a connection request to the target terminal can be realized, so as to further obtain the application state information of the application to be monitored on the target terminal; in addition, the auxiliary application on the terminal can also detect the application state information of the application to be monitored of the terminal, generate the state information in the form of corresponding data information according to the equipment state and the application state of the terminal body and the equipment state and the application state of the target terminal, and report the state information to the back-end server. In some embodiments, even if the application to be monitored of the terminal itself is abnormal, the system of the terminal is in a normal starting condition, that is, the device state of the terminal host body is normal, and the transmission of the state information of the terminal itself and the state information of the target terminal to the backend server is not affected.
In an embodiment of this step, the terminal and the target terminal are both provided with the attribution identification information, and taking the terminal as an example, the setting can be specifically performed through a setting module on the terminal, for example: receiving attribution identification information input by a user on a terminal input interface, setting the terminal according to the input attribution identification information, storing the set attribution identification information in the terminal, and reporting the set attribution identification information to a server for recording.
Further, in some embodiments, sending a connection request to the searched at least one target terminal includes:
searching candidate terminals with the distance to the terminal within a preset range;
identifying the attribution identification information of the searched candidate terminal;
when the attribution identification information of the candidate terminal is matched with the attribution identification information of the terminal, the terminal equipment is confirmed to be a target terminal;
and sending a connection request to the target terminal.
Specifically, in this embodiment, the auxiliary application on the terminal is a daemon application, the daemon application includes a communication module, and taking the bluetooth module as the communication module as an example, after the terminal is normally started, the daemon application monitors a start broadcast of a system of the terminal, and calls the bluetooth module to search for a candidate terminal within a preset distance range, where the preset distance range is a distance range that can be searched by the bluetooth module, and the candidate terminal is a terminal device that can be searched by the bluetooth module within the distance range; further, the attribution identification information of the searched candidate terminal is identified, and the attribution identification information may be a store name or a store ID of a store where the terminal is located, or geographic location information of the terminal, or a specific identification set by the user for a plurality of terminals, so as to distinguish the terminal attributing to itself from external terminal equipment. It should be noted that the attribution identification information may be acquired and displayed by any terminal, and may also have concealment and/or encryption, in this embodiment, taking the fact that the attribution identification information has concealment and/or encryption as an example, a daemon application of the terminal acquires an information character string of a searched candidate terminal, and performs covert data information calculation on the information character string, or obtains attribution identification information only after a digital password is verified, and determines that the candidate terminal is a target terminal when the obtained attribution identification information of the candidate terminal is the same as the attribution identification information on the terminal. Further, after determining the target terminal from the candidate terminals, the terminal only sends a connection request to the target terminal with the same attribution identification information, so that the terminal establishes a pairing connection with the target terminal.
And 102, determining the equipment state of the target terminal according to the pairing connection condition.
The pairing connection is a pairing connection between a terminal and a target terminal, and the terminal and the target terminal can realize data interaction after the pairing connection, such as realizing state information interaction between the terminal and the target terminal, specifically: after the terminal sends a connection request to the target terminal, the terminal requests to establish pairing connection with the target terminal, and when the pairing connection is successful, the application state of the application to be monitored of the target terminal is further acquired. The equipment state can reflect the conditions of hardware equipment of the terminal and the target terminal, and the terminal and the target terminal can be mutually connected in a pairing way under the condition that the terminal and the target terminal are normally started; when the pairing connection can be successfully established between the terminal and the target terminal, the target terminal is proved to have no equipment abnormal conditions, such as abnormal starting and shutdown of equipment; it should be noted that, when the terminal has an abnormal device condition and cannot be started, the terminal cannot send a connection request to the target terminal and cannot receive and respond to the connection request sent by the target terminal, and the terminal and the target terminal are allowed to mutually acquire mutual state information, and only when the terminal and/or the target terminal is started normally, the terminal can send the connection request to the other terminal and other terminal devices. Therefore, under the condition that the terminal is normally started, the terminal can determine whether the target terminal has an abnormal condition according to the pairing connection condition with the target terminal.
In some embodiments, the pairing connection case includes: the pairing connection is successful and the pairing connection is failed, and the device state comprises: if the device connection is normal and the device connection is abnormal, determining the device state of the target terminal according to the pairing connection condition, including:
detecting the pairing connection condition of the terminal and a target terminal;
when the pairing connection between the terminal and the target terminal is detected to be successful, determining that the equipment state of the target terminal is normal;
and when the pairing connection failure between the terminal and the target terminal is detected, determining that the equipment state of the target terminal is equipment connection abnormity.
Specifically, after the terminal in normal start sends a connection request to the target terminal, when the target terminal is also in normal start, the target terminal may respond to the connection request from the terminal, so that the terminal and the target terminal successfully establish a pairing connection, and when the target terminal cannot be started normally, the target terminal cannot receive and respond to the connection request from the target terminal. In this embodiment, after the terminal sends the connection request to the target terminal, a preset unit time may be set, for example, after sending the connection request to the target terminal, the preset unit time is set to 1 second, 3 seconds, 8 seconds, and the like, where the preset unit time is not limited herein; further, detecting a pairing connection condition between the terminal and the target terminal, specifically, determining whether the pairing connection between the terminal and the target terminal is successfully established according to a connection feedback signal or a connection response instruction from the terminal, or determining whether the pairing connection between the terminal and the target terminal is established by acquiring a pairing connection state of the terminal, which is not limited herein.
Further, when it is detected that the pairing connection between the terminal and the target terminal is successful, it is determined that the target terminal is in a normal starting state, and the terminal generates the device state information of the target terminal according to the determination, where the device state of the target terminal is successful in device connection. Otherwise, when the pairing connection condition between the terminal and the target terminal is detected to be pairing connection failure, the target terminal is determined to be in an abnormal starting state, the terminal generates the equipment state information of the target terminal according to the abnormal starting condition, and the equipment state of the target terminal is equipment connection abnormity. It should be noted that the device status records a situation that the target terminal establishes a paired connection with another terminal, and the device status may reflect whether the target terminal is normally started.
And 103, acquiring application state information of the application to be monitored of the target terminal when the equipment state of the target terminal is equipment connection normal.
When the target terminal responds to a connection request sent by the terminal and pairing connection is established between the terminal and the target terminal, the equipment state of the target terminal is normal equipment connection, at the moment, application state information of an application to be monitored in the target terminal can be acquired, the application to be monitored is an application for realizing a main function on the terminal equipment, and if the main function or function of the terminal equipment is used for payment, the application to be monitored installed on the terminal equipment can be understood as financial application, and the terminal equipment realizes the payment and receipt function in the form of electronic money through the financial application; for another example, the main function or function of the terminal device is that the user plays a video, the application to be monitored installed on the terminal device may be a play application, and the terminal device realizes an audio play function through the play application. It should be noted that the applications to be monitored installed on the terminal and the target terminal may be applications implementing different functions, or applications implementing the same function, but different applications to be monitored may belong to different services of the same back-end server to perform data processing, that is, the same server provides different application data services, for example, a movie playing terminal and a financial terminal of a movie theater, the data connection may be established between the movie playing terminal and the financial terminal, and the data connection may be a pairing connection such as a bluetooth connection, a WiFi wireless connection, and the like, and the device status of the terminal device of the other party is determined according to the pairing connection condition, and after the pairing connection is successfully established between the movie playing terminal and the financial terminal, the movie playing terminal and the financial terminal may mutually obtain the application status of the terminal device of the other party.
In some embodiments, obtaining application state information of an application to be monitored of a target terminal includes:
sending an application state acquisition instruction of an application to be monitored to a daemon application of a target terminal, wherein the daemon application is used for monitoring the application to be monitored;
and acquiring application state information of the target terminal, which is sent by the daemon application of the target terminal.
Specifically, the terminal and the target terminal are both provided with an auxiliary application, the auxiliary application is an application provided by an application provider to be monitored and used for monitoring the terminal device and the abnormal condition of the application to be monitored on the terminal device, and the auxiliary application is also used for determining whether the device state of the target terminal is abnormal or not. The auxiliary application is a daemon application, when the daemon application detects that pairing connection between a middle terminal and a target terminal is successful, the device state of the target terminal is determined to be normal, then, an application state acquisition instruction of an application to be monitored of the target terminal is sent to the daemon application on the target terminal, the daemon application on the target terminal generates application state information of the application to be monitored according to the connection condition of a data interface between the daemon application (on the target terminal) and the application to be monitored, the application state information is sent to the terminal through a data interaction channel in pairing connection between the terminal and the target terminal, and the terminal can receive and acquire the application state information sent by the daemon application of the target terminal.
And 104, determining the application state of the application to be monitored according to the application state information.
After receiving the application state information from the target terminal, the terminal can determine the application state of the application to be monitored according to the application state information. The application state information is the application state information generated by the auxiliary application on the target terminal according to the detection result of the application to be monitored, and is used for determining the running state of the application to be monitored on the target terminal.
In some embodiments, the application state includes: if the application runs normally and abnormally, determining the application state of the application to be monitored according to the application state information, wherein the application state information comprises the following steps:
determining the connection condition of the application to be monitored and the daemon application on the target terminal according to the application state information;
when the data interface connection between the application to be monitored on the target terminal and the daemon application is established, determining the application state of the application to be monitored on the target terminal as normal application operation;
and when the application to be monitored on the target terminal cannot establish data interface connection with the daemon application, determining the application state of the application to be monitored on the target terminal as abnormal application operation.
Specifically, when determining the application state of the application to be monitored on the target terminal according to the received application state information, the application state information is mainly determined according to the application state information, and the application state information is not limited to include: for example, in this embodiment, a connection condition between an application to be monitored and an auxiliary application on a target terminal is determined according to application state information, where the auxiliary application is a daemon application, and only when the application to be monitored can establish a data interface connection with the daemon application, it can be determined that an application state of the application to be monitored on the target terminal is that the application normally operates, specifically, the application to be monitored includes a server (server) and the daemon application includes a client (client), and when the server (server) on the application to be monitored establishes a data interface (AIDL) connection with the client (client) on the daemon application, it is determined that a data interface connection is established between the application to be monitored and the daemon application, and it is determined that the application state of the application to be monitored is that the application normally operates. Otherwise, when the application to be monitored can not establish data interface connection with the daemon application, determining that the application state of the application to be monitored on the target terminal is abnormal in application running.
In some embodiments, the terminal may also determine the application state of the application to be monitored of the terminal itself by determining the application state of the application to be monitored on the target terminal, specifically as follows:
sending a data interface connection request to the application to be monitored, wherein the data interface connection is used for establishing data interface connection between the daemon application and the application to be monitored;
when detecting that the application to be monitored and the daemon application establish data interface connection, determining the application state of the application to be monitored on the terminal as normal operation of the application;
when detecting that the application to be monitored and the daemon application cannot establish data interface connection, determining that the application state of the application to be monitored on the terminal is abnormal in application operation.
Specifically, when the terminal is normally started and the application to be monitored on the terminal runs abnormally, the device state of the terminal is normal, and the abnormal connection between the terminal and other target terminals does not exist, under the condition, the terminal can still determine the application state of the application to be monitored of the terminal host, and determine the device state and the application state of other target terminals; and respectively generating corresponding state information from the determined application state, the equipment states of other target terminals and the application state, and transmitting the state information to a back-end server to assist the server in monitoring whether each terminal equipment is abnormal or not.
And 105, generating the state information of the target terminal according to the equipment state or the application state.
Specifically, after the device state and the application state of the target terminal are obtained, state information in a data form corresponding to the target terminal needs to be generated to store related data on the terminal. For example, the implementation in the android system (andoid) is a share reference, and the form in which the share reference implements the stored data can be expressed as follows:
"device _ sn: xxxxx1, store _ id: xx1, device _ state: ok, and face APP _ state: ok, { device _ sn: xxxxx2, store _ id: xx1, device _ state: ok, and face APP _ state: no } ], wherein device _ sn is the serial number of the device and is unique identification information of the device, store _ id is attributive identification information of the terminal, device _ state is the device state of the terminal, and face APP _ state is the application state of the face APP; wherein ok represents normal, no represents abnormal, and unbown represents unknown, if device _ state is ok, it represents that the device state of the terminal with the serial number xxxxx1 is normal, the device state is judged depending on whether the current terminal and other peripheral terminals can establish bluetooth connection, device _ state is ok, it represents that the terminal can establish bluetooth connection with other terminals, and if terminal faceapp _ state with the serial number xxxxx2 is no, it represents that the application state of the face APP of the terminal with the serial number xxxxx2 is abnormal, the application state mainly depends on whether a data interface (AIDL) connection can be established between the current device daemon APP and the face of the APP, and it represents that the application state of the face APP is normal, otherwise, it is abnormal. Further, a network module in the daemon APP is used for data transmission between the terminal and the server, the terminal can specifically establish communication connection with the server in a wireless or wired connection mode, and after the terminal obtains state information of other terminals, all the state information stored in a storage space (cache) of the terminal is transmitted to the server at the rear end through the network module, so that the server monitors whether each terminal is abnormal or not according to the received state information. The state information at least includes a device state and an application state of the target terminal, and in addition, the state information may further include a device serial number and home identification information, which is not further limited in this embodiment.
It should be noted that, in a write-in embodiment, when the terminal generates corresponding state information according to the device state and the application state of the target terminal, the terminal also generates corresponding state information according to the device state and the application state of the terminal itself, and reports the state information of the terminal itself and the state information of the target terminal to the server at the back end together.
And 106, transmitting the state information of the target terminal to the server so that the server determines whether the target terminal is abnormal or not according to the state information.
After the state information of the target terminal is obtained, the state information of the target terminal needs to be uploaded to the server, so that the server determines whether each target terminal is abnormal or not according to the received state information.
In some embodiments, transmitting the state information of the target terminal to the server includes:
collecting a serial number of a target terminal;
establishing a mapping relation between the state information and the serial number of the target terminal;
storing the mapping relation in a storage space of the terminal;
and transmitting the stored mapping relation to the server.
Specifically, after the terminal is normally started, taking the example of calling a bluetooth module, the terminal may start a bluetooth broadcast through the bluetooth module, send a pairing connection request to the scanned candidate terminals, and after determining attribution identification information of each candidate terminal, determine the candidate terminals with the same attribution identification information as target terminals, at this time, the number of the target terminals may be one or more, in order to distinguish state information of each target terminal, in this embodiment, a serial number of each target terminal needs to be collected, and the serial number of each target terminal may be a device code set when leaving a factory, or may be set for a terminal device when being used by a relevant person, which is not limited herein. Further, a mapping relationship between the acquired serial number of the target terminal and the state information of the target terminal is established, and the mapping relationship is stored in a storage space of the terminal in a specific data form, for example, an implementation manner in the andoid is a share reference, and the form of the share reference specifically implementing the stored data can be expressed as follows:
"device _ sn: xxxxx1, store _ id: xx1, device _ state: ok, and face APP _ state: ok, { device _ sn: xxxxx2, store _ id: xx1, device _ state: ok, and face APP _ state: no } ], wherein device _ sn is the serial number of the device and is unique identification information of the device, store _ id is attributive identification information of the terminal, device _ state is the device state of the terminal, and face APP _ state is the application state of the face APP; wherein ok represents normal, no represents abnormal, and unbown represents unknown, if device _ state is ok, it represents that the device state of the terminal with the serial number xxxxx1 is normal, the device state is judged depending on whether the current terminal and other peripheral terminals can establish bluetooth connection, device _ state is ok, it represents that the terminal can establish bluetooth connection with other terminals, and if terminal faceapp _ state with the serial number xxxxx2 is no, it represents that the application state of the face APP of the terminal with the serial number xxxxx2 is abnormal, the application state mainly depends on whether a data interface (AIDL) connection can be established between the current device daemon APP and the face of the APP, and it represents that the application state of the face APP is normal, otherwise, it is abnormal. Further, data transmission between the terminal and the server is achieved through a network module in the daemon application, the terminal can specifically establish communication connection with the server in a wireless or wired connection mode, and all state information stored in a storage space (cache) of the terminal is transmitted to the server at the rear end through the network module, so that the server monitors whether each terminal is abnormal or not according to the received state information.
In some embodiments, the terminal may continuously monitor the device status and the application status of the target terminal. If the terminal determines the equipment state and the application state of the target terminal, generating corresponding state information, establishing a mapping relation between the state information and the serial number of the target terminal, storing the mapping relation in a storage space of the terminal, and transmitting the stored mapping relation to a server; further, after a preset unit time interval, for example, 5 seconds, 30 seconds, 1 minute, 5 minutes and the like, when it is monitored that the terminal is still in a normal starting state, a link request is sent to the searched target terminal, the device state of the target terminal is re-determined, the application state of the application to be monitored on the target terminal is re-determined, and corresponding state information is generated according to the device state and the application state, so that the new state information is further transmitted to the server at the back end, the server at the back end monitors whether each terminal device is abnormal in real time or discontinuously, and the server monitors the operation condition of each terminal device in real time or discontinuously.
Specifically, the mapping relationship is stored in a storage space of the terminal, and then the method includes the following steps:
regenerating the state information of the target terminal at preset unit time intervals;
comparing the regenerated state information with the state information in the stored mapping relation;
when the regenerated state information is different from the state information in the storage device of the terminal, updating the state information in the mapping relation in the storage space to obtain an updated mapping relation;
and sending the updated mapping relation to a server.
It should be noted that, after the state information of the target terminal is regenerated, the terminal is required to compare the regenerated state information with the state information of the target terminal generated last time, and the specific comparison process may be: comparing the regenerated state information with the last generated state information stored in the storage space of the terminal equipment, and also comparing the regenerated state information with the previous times or historical state information; further, when the regenerated state information is different from the state information generated last time, the state information in the mapping relation in the storage space is updated. It can be understood that when the state information of the terminal is different from the state information generated last time, the application state of the application to be monitored is mainly reflected to be different, and at this time, the state information of the terminal is updated to the state information generated last time and is sent to the server together with the state information of other target terminals. By the method, the server can acquire the monitoring state of each terminal device in real time, the terminal devices assist the server in monitoring the monitoring state of the terminal devices, the monitoring strength of the server on the terminal devices is improved, and the server has reliability.
The implementation manner in the andoid is a share reference, wherein in the state information generated last time by the terminal, the share reference specifically implements the form of stored data as follows:
[{device_sn:xxxxx1,store_id:xx1,device_state:ok,faceapp_state:ok},{device_sn:xxxxx2,store_id:xx1,device_state:ok,faceapp_state:ok}];
after a preset unit time interval, the form of the regenerated state information, which is embodied as the storage data, can be expressed as follows:
[{device_sn:xxxxx1,store_id:xx1,device_state:ok,faceapp_state:ok},{device_sn:xxxxx2,store_id:xx1,device_state:no,faceapp_state:unknow}];
wherein, device _ sn is a serial number of the device, and is unique identification information of the device, store _ id is attributive identification information of the terminal, device _ state is a device state of the terminal, and faceapp _ state is an application state of the face APP; wherein ok indicates normal, no indicates abnormal, and unknown indicates unknown. Specifically, in the state information generated last time, device _ state is ok, which indicates that the device states of the terminals with serial numbers xxxxx1 and xxxxx2 are all normal, and indicates that the terminal can establish bluetooth connection with other terminals, and the terminal face APP _ state with serial numbers xxxxx1 and xxxxx2 is ok, which indicates that the application states of the face APPs of the terminals with serial numbers xxxxx1 and xxxxx2 are normal, where the application states mainly depend on whether a data interface (AIDL) connection can be established between the current in-device guard APP and the face APP, and the application states of the face APPs are normal if the connection can be established, otherwise, the application states are abnormal. Further, in the regenerated state information, device _ state of the terminal with the sequence number xxxxx2 is no, which indicates that the device state of the terminal with the sequence number xxxxx2 is abnormal, at this time, since the device state of the terminal with the sequence number xxxxx2 is abnormal, bluetooth connection cannot be established with other terminals, the application state (faceapp _ state) of the application to be monitored on the terminal with the sequence number xxxxx2 cannot be acquired by the terminal, and the application state of the application to be monitored on the terminal with the sequence number xxxxx2 cannot be known, so the faceapp _ state on the terminal with the sequence number xxxxx2 is unknown.
Further, the newly generated state information is updated to replace the state information generated last time, and the form of the replaced state information specifically realizing the storage data is expressed as follows:
[{device_sn:xxxxx1,store_id:xx1,device_state:ok,faceapp_state:ok},{device_sn:xxxxx2,store_id:xx1,device_state:no,faceapp_state:unknow}]。
further, data transmission between the terminal and the server is achieved through a network module in the daemon application, the terminal can be in communication connection with the server in a wireless or wired connection mode, all state information updated in a storage space (cache) of the terminal is transmitted to the server at the rear end through the network module, and the server monitors whether each terminal is abnormal or not according to the received state information.
As can be seen from the above, in the embodiment of the present application, after it is monitored that the terminal is normally started, a connection request may be sent to at least one searched target terminal, where the connection request is used for the terminal to establish a pairing connection with the target terminal; determining the equipment state of the target terminal according to the pairing connection condition; when the equipment state of the target terminal is equipment connection normal, acquiring application state information of an application to be monitored of the target terminal; determining the application state of the application to be monitored according to the application state information; generating state information of the target terminal according to the equipment state or the application state; and transmitting the state information of the target terminal to the server so that the server determines whether the target terminal is abnormal or not according to the state information. According to the scheme, the equipment state or the application state of the target terminal can be acquired through the normally started terminal, and data interaction is carried out between the normally started terminal and the server, so that the server can determine whether the target terminal is abnormal or not based on the equipment state or the application state, the mutual monitoring of the health state among the terminal equipment is realized, the server is assisted to monitor each terminal equipment according to the state information, the monitoring force of the server on the terminal is improved, the monitoring service of the server on the terminal is facilitated, and the reliability is achieved.
The method described in the above embodiment is further described in detail by way of example.
In this embodiment, a method for monitoring an abnormality of a terminal is provided, where the method may be executed by the terminal or the server, or may be executed by both the terminal and the server.
As shown in fig. 3, fig. 3 is a flowchart of another step of the method for monitoring an abnormality of a terminal according to the embodiment of the present application, and when a processor on a server executes a program corresponding to the method for monitoring an abnormality of a terminal, a specific flow of the method for monitoring an abnormality of a terminal may be as follows:
step 201, receiving state information of at least one target terminal transmitted by a terminal, where the target terminal is a terminal device having an identifier matching with the terminal.
The server of the back end includes: the system comprises a daemon service and an application service to be monitored. The application service to be monitored comprises a data processing service and a database of the application to be monitored, taking the application to be monitored as a financial application with a face recognition application as an example, after a face picture sent by the financial application of a terminal is received, the face picture is subjected to face recognition through the data processing service in the server, the recognized face data is searched for a face-account database, an account corresponding to the face data is searched for from the face-account database, the account can be a financial account, an electronic currency account, a bank card account, a game account and the like, the searched account is returned to the terminal, and after the personnel corresponding to the face picture confirms, the transaction of electronic currency or virtual game assets is realized.
The daemon services are not limited to include: state base, strategy control service, and exception handling strategy service. After the daemon application in the terminal establishes communication connection with the daemon service of the back-end server through the network module, the state information obtained by the terminal is transmitted to the server in real time or regularly. It should be noted that the daemon application on the terminal establishes a communication connection with the daemon service of the server at the back end, that is, data interaction between the daemon application and the daemon service or unidirectional data transmission between the daemon application and the daemon service can be realized.
In some embodiments, the server receives the status information of the at least one target terminal from the terminal transmission, previously including:
the method comprises the steps that a daemon service of a server detects the communication connection condition between the daemon service of the server and a daemon application of a terminal;
and determining whether the terminal can send the state information in real time according to the communication connection condition.
Then, the server receives the status information of at least one target terminal transmitted from the terminal, including:
when the fact that the daemon service establishes communication connection with the daemon application of the terminal is detected, the terminal is waited for sending state information of a target terminal, and when new state information is detected, the state information of at least one target terminal and the state information of the terminal are received in real time, wherein the state information is transmitted by the terminal;
when detecting that the daemon service does not establish communication connection with the daemon application of the terminal, preliminarily defaulting that the terminal is abnormal and waiting for state information sent by other terminals.
It should be noted that, in some embodiments, the server may establish a communication connection with one or more terminal devices at the same time, so that the daemon service of the server establishes a communication connection with the daemon application on any one normally started terminal device, and data interaction is implemented.
The server can store the received state information by receiving the state information sent by the terminal so as to process data of the daemon service.
Step 202, analyzing the state information of the target terminal to obtain the device state of the target terminal or the application state of the application to be monitored on the target terminal.
After the server receives the state information, because there is a difference between the data type of the state information and the data type required by the server, for example, the implementation in the andoid is a share reference, and the form of storing data in the share reference is specifically implemented as follows:
({ device _ sn: xxxxx1, store _ id: xx1, device _ state: ok, faceapp _ state: ok }, { device _ sn: xxxxx2, store _ id: xx1, device _ state: ok, faceapp _ state: no } ], the data type of the state information sent by the terminal cannot meet the storage and data processing in the server, data disorder may be caused, and the operation state of the terminal device and the operation state of the application to be monitored cannot be distinguished, so that the received state information needs to be analyzed.
Specifically, the received state information is analyzed to obtain the device state and the application state in the state information, the analyzed state information is stored in a state library in the server, and whether the target terminal is abnormal or not is further judged according to the analyzed data.
And 203, monitoring whether the target terminal is abnormal or not based on the equipment state or the application state.
In this embodiment, the server is configured to monitor that the terminal has an abnormality, where the device state includes normal device connection and abnormal device connection, and the application state includes normal application operation and abnormal application operation. The situation of the terminal device monitored by the server may not be limited to include: the device state of the terminal is that the device is normally connected, the application state of the application to be monitored is that the application runs normally, the device state of the terminal is that the device is normally connected, the application state of the application to be monitored is that the application runs abnormally, and the device state of the terminal is that the device is connected abnormally. It should be noted that, when the device state of the terminal is that the device is normally connected and the application state of the application to be monitored is that the application is running normally, it indicates that the corresponding terminal device does not have an abnormal state; when the device state of the terminal is that the device is normally connected and the application state of the application to be monitored is that the application runs abnormally, the abnormal state of the corresponding terminal device is indicated, and specifically, the abnormal state of the application to be monitored exists; when the device state of the terminal is the device connection abnormality, it indicates that the corresponding terminal device has an abnormal state, and it can be determined that the terminal device is in the application state of the terminal in which the device state abnormality cannot be obtained because the terminal device cannot be started or is started up, and it indicates that the terminal has an abnormality because the device state of the terminal is the device connection abnormality, and it is not necessary to further determine according to the application state of the terminal.
In some embodiments, monitoring whether the target terminal is abnormal or not based on the device state or the application state specifically includes the following steps:
when the target terminal is determined to be normally connected with the equipment based on the equipment state, determining whether the application to be monitored on the target terminal is abnormal or not according to the application state;
when the application to be monitored on the target terminal is determined to be the application running normally based on the application state, monitoring that the target terminal is abnormal, and when the application to be monitored on the target terminal is determined to be the application running abnormally based on the first application state, monitoring that the target terminal is abnormal;
and when the target terminal is determined to be abnormal in equipment connection based on the equipment state, monitoring that the target terminal is abnormal.
204. And when monitoring that the target terminal has the abnormality, executing a corresponding abnormality processing strategy.
Specifically, the monitoring that the target terminal has the abnormality is not limited to include: if the device state of the terminal device is abnormal, and the application state of the application to be monitored of the terminal device is abnormal, any abnormal state can cause the terminal to fail to normally operate related functions and functions, for example, when the device state of the terminal is abnormal, the terminal device can be defaulted to be shut down or unable to normally start, and factors causing the terminal device to fail to normally start include: the terminal equipment is in a power-off state, hardware of the terminal equipment is damaged and the like, at the moment, the terminal equipment cannot be started normally, and any application to be monitored and other applications on the terminal cannot be operated; when the application state of the application to be monitored on the terminal is abnormal, it can be determined that the application to be monitored has errors, such as bugs, too low version, incompatibility with terminal hardware, incompatibility with other applications, and the like, so that the application to be monitored cannot normally run, and the application runs abnormally. And judging that the corresponding terminal equipment has the abnormality according to the abnormality, and making a corresponding abnormality processing strategy.
In some embodiments, when monitoring that there is an abnormality in the corresponding terminal device, the server may invoke a policy control service, determine an abnormality level of the terminal device in which the abnormality exists, and make a corresponding policy service based on the determined abnormality level, where the policy service is not limited to include: providing alarm service to the back-end management personnel, actively informing terminal equipment users, remotely controlling terminal service, remotely repairing terminal service and the like.
Taking the example of providing the alarm service to the back-end management personnel, when monitoring that the target terminal has the abnormality, executing a corresponding abnormality processing strategy, comprising the following steps:
receiving state information transmitted by a terminal at preset unit time intervals;
analyzing the state information of the target terminal to obtain the equipment state of the target terminal or the application state of the application to be monitored on the target terminal;
monitoring whether the target terminal is abnormal or not based on the equipment state or the application state;
and executing a corresponding exception handling strategy when the monitored exception state frequency of the target terminal is greater than a preset exception frequency threshold value.
Specifically, when the server monitors that the terminal device is abnormal for the first time, in order to avoid misjudgment, the server stores the condition that the terminal device is abnormal for the first time, and after a preset unit time interval, such as 10 seconds, 30 seconds, 1 minute, 3 minutes, 5 minutes and the like, without limitation, re-receives the state information sent by the terminal, analyzes the corresponding device state and application state of the state information, and determines whether the corresponding terminal device is abnormal or not based on the device state and the application state; when the number of times of abnormal states of the terminal equipment is larger than a preset abnormal number threshold value, such as the number of times of abnormal states, the number of times of continuous abnormal states and the like, is monitored, the abnormal level of the corresponding terminal equipment is judged, and a strategy for providing alarm service for rear-end management personnel is executed.
In some embodiments, after determining the abnormal level of the terminal device, the corresponding policy service may be further executed according to the abnormal level, for example, when monitoring that there is an abnormality in the device state of the corresponding terminal device, it is determined that the abnormal level of the terminal device is one level, and the corresponding policy service is actively notifying the user of the terminal device, where the notifying method may include: the notification is performed by mail, by system man-machine telephone, by short message, by instant message of public number, etc., which is not limited herein. For another example, when the device state of the corresponding terminal device is monitored to be normal and the application state of the application to be monitored is abnormal, the abnormal level of the terminal device is determined to be two-level, and the corresponding policy service is executed to remotely repair the terminal service, so as to remotely repair the application to be monitored on the terminal device with the abnormal state.
In some embodiments, when determining the abnormality level of the terminal device, the abnormality level when the abnormality of the terminal device exists may be determined according to a case where the relevant abnormality processing policy is executed. For example, when monitoring that there is an abnormality in an application to be monitored on a terminal device, preliminarily defaulting that the terminal device has an abnormality level as a primary level, a policy for remotely repairing a terminal service is executed first to implement the repair of the terminal device by a back end, and the repair method is not limited to include: the application to be monitored is restarted remotely, the application to be monitored is updated remotely, the application to be monitored is patched remotely, the application to be monitored is reinstalled remotely, and the like, which is not limited herein. Further, after executing the policy of remotely repairing the terminal service, when the abnormality of the terminal device cannot be solved, the abnormality level of the terminal device is determined to be a middle level, a policy of actively notifying a user of the terminal device is executed, and when the policy is executed, a possible solution or a relevant operation instruction can be sent to the mobile device of the user, so that the user can process the abnormality of the terminal device according to the received solution or the relevant operation instruction, or the user can process the abnormality of the application to be monitored by matching with a rear-end server manager in a way that the terminal device and the server are matched with each other. Further, after executing the policy of actively notifying the user of the terminal device, when the abnormality of the terminal device still cannot be solved, the abnormality level of the terminal device is determined to be high, an alarm service is provided to a backend management staff to search for an abnormal solution of the application to be monitored, or whether an error occurs in the functional service of the backend server corresponding to the application to be monitored or not is detected, and the manager of the backend server actively researches the solution.
In order to better implement the method, an embodiment of the present application further provides an abnormality monitoring apparatus for a terminal, where the abnormality monitoring apparatus for a terminal may be specifically integrated in the terminal. The meaning of the noun is the same as that in the above-mentioned abnormality monitoring method for the terminal, and specific implementation details may refer to the description in the method embodiment.
For example, as shown in fig. 4a, fig. 4a is a schematic diagram of a first structure of an abnormality monitoring apparatus of a terminal according to an embodiment of the present application, and the abnormality monitoring apparatus of the terminal may include a sending unit 301, a first determining unit 302, an obtaining unit 303, a second determining unit 304, a generating unit 305, and a transmitting unit 306, as follows:
a sending unit 301, configured to send a connection request to at least one searched target terminal after monitoring that the terminal is normally started, where the connection request is used for the terminal to establish a pairing connection with the target terminal;
a first determining unit 302, configured to determine a device status of the target terminal according to the pairing connection condition;
an obtaining unit 303, configured to obtain application state information of an application to be monitored of a target terminal when a device state of the target terminal is a device connection normal state;
a second determining unit 304, configured to determine an application state of the application to be monitored according to the application state information;
a generating unit 305 for generating state information of the target terminal according to the device state or the application state;
a transmitting unit 306, configured to transmit the state information of the target terminal to the server, so that the server determines whether the target terminal is abnormal according to the state information.
In some embodiments, referring to fig. 4b, the transmitting unit 301 comprises:
a search subunit 3011, configured to search for a candidate terminal whose distance from the terminal is within a preset range;
an identifying subunit 3012, configured to identify the searched attribution identification information of the candidate terminal;
a confirming subunit 3013, configured to confirm that the terminal device is the target terminal when the attribution identification information of the candidate terminal matches the attribution identification information of the terminal;
a sending subunit 3014, configured to send a connection request to the target terminal.
In some embodiments, referring to fig. 4c, the first determining unit 302 includes:
a detecting subunit 3021, configured to detect a pairing connection condition between the terminal and the target terminal;
a first determining subunit 3022, configured to determine, when it is detected that pairing connection between the terminal and the target terminal is successful, that the device state of the target terminal is normal;
the first determining subunit 3022 is further configured to determine, when it is detected that the pairing connection between the terminal and the target terminal fails, that the device state of the target terminal is a device connection abnormality.
In some embodiments, referring to fig. 4d, the obtaining unit 303 comprises:
the transmitting subunit 3031 is configured to transmit an application state acquisition instruction of the application to be monitored to a daemon application of the target terminal, where the daemon application is used to monitor the application to be monitored;
the acquiring subunit 3032 is configured to receive application state information of the target terminal sent by the daemon application of the target terminal.
In some embodiments, the second determining unit 304 is specifically configured to: determining the connection condition of the application to be monitored and the daemon application on the target terminal according to the application state information;
when the data interface connection between the application to be monitored on the target terminal and the daemon application is established, determining the application state of the application to be monitored on the target terminal as normal application operation;
and when the application to be monitored on the target terminal cannot establish data interface connection with the daemon application, determining the application state of the application to be monitored on the target terminal as abnormal application running.
In some embodiments, referring to fig. 4e, the transmission unit 306 includes:
the acquisition subunit 3061 is used for acquiring the serial number of the target terminal;
a building subunit 3062, configured to build a mapping relationship between the state information and the serial number of the target terminal;
a storage subunit 3063, configured to store the mapping relationship in a storage space of the terminal;
a transmitting subunit 3064, configured to transmit the stored mapping relationship to the server.
In some embodiments, the apparatus further comprises: a comparison unit and an update unit.
A generating unit 305, further configured to regenerate the state information of the target terminal at a preset unit time interval;
the comparison unit is used for comparing the regenerated state information with the state information in the stored mapping relation;
the updating unit is used for updating the state information in the mapping relation in the storage space to obtain an updated mapping relation when the regenerated state information is different from the state information in the storage device of the terminal;
the transmitting unit 306 is further configured to transmit the updated mapping relationship to the server.
As can be seen from the above, the anomaly monitoring apparatus for a terminal provided in the embodiment of the present application may send, through the sending unit 301, a connection request to at least one target terminal that is searched after monitoring that the terminal is normally started, where the connection request is used for the terminal to establish a pairing connection with the target terminal; determining the device state of the target terminal according to the pairing connection condition by the first determining unit 302; when the device state of the target terminal is the device connection normal, the obtaining unit 303 obtains the application state information of the application to be monitored of the target terminal; determining the application state of the application to be monitored according to the application state information through a second determining module 304; generating state information of the target terminal according to the device state or the application state by the generation unit 305; and transmits the state information of the target terminal to the server by the transmission unit 306 so that the server determines whether there is an abnormality of the target terminal according to the state information. According to the scheme, the equipment state or the application state of the target terminal can be acquired through the normally started terminal, and data interaction is performed between the normally started terminal and the server, so that the server can determine whether the target terminal is abnormal or not based on the equipment state or the application state, the mutual monitoring of the health states among the terminal equipment is realized, the server is assisted to monitor each terminal equipment according to the state information, the monitoring force of the server on the terminal is improved, the monitoring service of the server on the terminal is facilitated, and the reliability is realized.
The specific implementation of each unit can refer to the previous embodiment, and is not described herein again.
In order to better implement the method for monitoring the abnormality of the terminal provided in the embodiments of the present application, an embodiment of the present application further provides a device for monitoring the abnormality based on the terminal, and the device may be specifically integrated in a server. The meaning of the noun is the same as that in the above-mentioned abnormality monitoring method for the terminal, and specific implementation details may refer to the description in the method embodiment.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an abnormality monitoring apparatus of a terminal according to an embodiment of the present disclosure, where the abnormality monitoring apparatus of the terminal may include a receiving unit 401, an analyzing unit 402, a monitoring unit 403, and an executing unit 404.
A receiving unit 401, configured to receive state information of at least one target terminal transmitted by a terminal, where the target terminal is a terminal device having an identifier matching with the terminal;
an analyzing unit 402, configured to analyze state information of the target terminal to obtain an equipment state of the target terminal or an application state of an application to be monitored on the target terminal;
a monitoring unit 403, configured to monitor whether the target terminal is abnormal based on the device status or the application status;
the executing unit 404 is configured to execute a corresponding exception handling policy when it is monitored that the target terminal has an exception.
In some embodiments, the monitoring unit 403 is specifically configured to:
when the target terminal is determined to be normally connected with the equipment based on the equipment state, determining whether the application to be monitored on the target terminal is abnormal or not according to the application state;
when the application to be monitored on the target terminal is determined to be the application running normally based on the application state, monitoring that the target terminal is abnormal, and when the application to be monitored on the target terminal is determined to be the application running abnormally based on the first application state, monitoring that the target terminal is abnormal;
and when the target terminal is determined to be abnormal in equipment connection based on the equipment state, monitoring that the target terminal is abnormal.
In some embodiments, the receiving unit 401 is further configured to receive status information transmitted by the terminal at preset unit time intervals;
the analyzing unit 402 is further configured to analyze the state information of the target terminal to obtain an equipment state of the target terminal or an application state of an application to be monitored on the target terminal;
the monitoring unit 403 is further configured to monitor whether the target terminal is abnormal based on the device status or the application status;
the executing module 404 is further configured to execute a corresponding exception handling policy when the monitored number of times of the exception state of the target terminal is greater than the preset exception number threshold.
As can be seen from the above, the abnormality monitoring apparatus for a terminal according to this embodiment is applied to a server, and includes: the system comprises a receiving unit 401, an analyzing unit 402, a monitoring unit 403 and an executing unit 404, wherein the receiving unit 401 is used for receiving state information of at least one target terminal transmitted by a terminal, and the target terminal is a terminal device with identification matching with the terminal; analyzing the state information of the target terminal through an analyzing unit 402 to obtain the equipment state of the target terminal or the application state of the application to be monitored on the target terminal; monitoring whether the target terminal is abnormal or not through the monitoring unit 403 based on the equipment state or the application state; when monitoring that the target terminal has an exception, the execution unit 404 executes a corresponding exception handling policy. According to the embodiment, the state information of the target terminal equipment sent by the receiving terminal is received, and then the running state of the corresponding target terminal is determined according to the received state information, if the target terminal equipment is monitored whether to be abnormal currently, the abnormal state of each terminal equipment is monitored by the server in an assisting manner through the mutual cooperation between the terminal and the target terminal, so that the monitoring strength of the server on the terminal equipment is improved, the monitoring accuracy is improved, and the reliability is achieved.
The above embodiments can be referred to as the previous embodiments, and detailed descriptions thereof are omitted.
The embodiment of the application provides an abnormity monitoring system of a terminal, and an abnormity monitoring method of the terminal is respectively executed or jointly executed by the terminal and a server.
Referring to fig. 6a, fig. 6a is a schematic structural diagram of an anomaly monitoring system of a terminal according to an embodiment of the present application; as shown in fig. 6a, the system comprises: a terminal 501 and a server 502.
The abnormality monitoring device of the terminal may be integrated in the terminal 501, which may be specifically referred to as embodiment four. For example, taking the case that the information interaction device is specifically integrated in a terminal, the following is specifically made:
the terminal 501 is configured to send a connection request to at least one searched target terminal after monitoring that the terminal is normally started, where the connection request is used for the terminal to establish a pairing connection with the target terminal; determining the equipment state of the target terminal according to the pairing connection condition; when the equipment state of the target terminal is equipment connection normal, acquiring application state information of an application to be monitored of the target terminal; determining the application state of the application to be monitored according to the application state information; generating state information of the target terminal according to the equipment state or the application state; and transmitting the state information of the target terminal to the server so that the server determines whether the target terminal is abnormal or not according to the state information.
The abnormality monitoring device of the terminal may be integrated in the server 502, which may be specifically referred to as embodiment five. For example, taking the example that the information interaction device is specifically integrated in a server, the following is specific:
the server 502 is configured to receive state information of at least one target terminal transmitted by a terminal, where the target terminal is a terminal device having an identifier matching with the terminal; analyzing the state information of the target terminal to obtain the equipment state of the target terminal or the application state of the application to be monitored on the target terminal; monitoring whether the target terminal is abnormal or not based on the equipment state or the application state; and when monitoring that the target terminal has the abnormality, executing a corresponding abnormality processing strategy.
Referring to fig. 6b, fig. 6b is a timing diagram of an abnormal monitoring method for a terminal according to an embodiment of the present application, and specifically, a process of the method for monitoring legacy of the terminal when the terminal and the server execute the corresponding method for monitoring legacy of the terminal in the system is as follows:
s1: after monitoring that the terminal is normally started, the terminal sends a connection request to at least one searched target terminal;
wherein the connection request is used for the terminal to establish a pairing connection with the target terminal.
S2: the target terminal responds to the connection request to establish pairing connection with the terminal or cannot establish pairing connection;
s3: the terminal determines the equipment state of the target terminal according to the pairing connection condition with the target terminal;
s4: and when the equipment state of the target terminal is the pairing connection normal, the terminal acquires the application state information of the application to be monitored of the target terminal.
S5: and the target terminal sends the application state information of the application to be monitored to the terminal.
S6: after receiving application state information sent by a target terminal, the terminal determines the application state of an application to be monitored according to the application state information;
s7: the terminal generates state information of a target terminal according to the equipment state and the application state;
s8: and transmitting the state information of the target terminal to the server.
S9: the server receives the state information of at least one target terminal transmitted by the terminal;
s10: analyzing the state information of the target terminal to obtain the equipment state of the target terminal or the application state of the application to be monitored on the target terminal;
s11: monitoring whether the target terminal is abnormal or not based on the equipment state or the application state;
s12: and when monitoring that the target terminal has the abnormality, executing a corresponding abnormality processing strategy.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Since the abnormality monitoring system of the terminal may include any one of the abnormality monitoring devices of the terminal provided in the embodiments of the present application, beneficial effects that can be achieved by any one of the abnormality monitoring devices of the terminal provided in the embodiments of the present application can be achieved, for details, see the foregoing embodiments, and are not described herein again.
An embodiment of the present application provides a computer device, and specifically refer to fig. 7, which shows a schematic structural diagram of a computer device according to an embodiment of the present application, where the structure of the computer device is specifically as follows:
the computer device may include components such as a processor 601 of one or more processing cores, memory 602 of one or more computer-readable storage media, a power supply 603, and an input unit 604. Those skilled in the art will appreciate that the computer device configuration illustrated in FIG. 7 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 601 is a control center of the computer device, connects various parts of the whole computer device by various interfaces and lines, performs various functions of the computer device and processes data by running or executing software programs and/or units stored in the memory 602 and calling data stored in the memory 602, thereby monitoring the computer device as a whole. Optionally, processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor, which mainly handles operating systems, user interfaces, application 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 601.
The memory 602 may be used to store software programs and units, and the processor 601 executes various functional applications and data processing by executing the software programs and units stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 602 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 602 may also include a memory controller to provide the processor 601 with access to the memory 602.
The computer device further comprises a power supply 603 for supplying power to the various components, and preferably, the power supply 603 is logically connected to the processor 601 through a power management system, so that functions of managing charging, discharging, and power consumption are realized through the power management system. The power supply 603 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The computer device may also include an input unit 604, the input unit 604 being operable to receive input numeric or character information and to 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 601 in the computer device loads the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and the processor 601 runs the application programs stored in the memory 602, thereby implementing various functions as follows:
when the computer device is a terminal, the processor 601 may perform: after monitoring that the terminal is normally started, sending a connection request to at least one searched target terminal, wherein the connection request is used for the terminal to establish pairing connection with the target terminal; determining the equipment state of the target terminal according to the pairing connection condition; when the equipment state of the target terminal is equipment connection normal, acquiring application state information of an application to be monitored of the target terminal; determining the application state of the application to be monitored according to the application state information; generating state information of the target terminal according to the equipment state or the application state; and transmitting the state information of the target terminal to the server so that the server determines whether the target terminal is abnormal or not according to the state information.
When the computer device is a server, the processor 601 may perform: receiving state information of at least one target terminal transmitted by a terminal, wherein the target terminal is a terminal device matched with the terminal in identification; analyzing the state information of the target terminal to obtain the equipment state of the target terminal or the application state of the application to be monitored on the target terminal; monitoring whether the target terminal is abnormal or not based on the equipment state or the application state; and when monitoring that the target terminal has the abnormality, executing a corresponding abnormality processing strategy.
The above operations can be referred to the previous embodiments specifically, and are not described herein.
The present application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and executes the computer instructions, so that the computer device executes the method for monitoring the abnormality of the terminal provided in the various optional implementation manners in the above embodiments.
The 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 the steps in any one of the method for monitoring abnormality of a terminal provided in the embodiment of the present application. For example, the computer program may perform the steps of:
after monitoring that the terminal is normally started, sending a connection request to at least one searched target terminal, wherein the connection request is used for the terminal to establish pairing connection with the target terminal; determining the equipment state of the target terminal according to the pairing connection condition; when the equipment state of the target terminal is equipment connection normal, acquiring application state information of an application to be monitored of the target terminal; determining the application state of the application to be monitored according to the application state information; generating state information of the target terminal according to the equipment state or the application state; and transmitting the state information of the target terminal to the server so that the server determines whether the target terminal is abnormal or not according to the state information.
Or receiving state information of at least one target terminal transmitted by the terminal, wherein the target terminal is a terminal device matched with the terminal in identification; analyzing the state information of the target terminal to obtain the equipment state of the target terminal or the application state of the application to be monitored on the target terminal; monitoring whether the target terminal is abnormal or not based on the equipment state or the application state; and when monitoring that the target terminal has the abnormality, executing a corresponding abnormality processing strategy.
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 instructions stored in the computer-readable storage medium may execute the steps in the method for monitoring an abnormality of any terminal provided in the embodiment of the present application, beneficial effects that can be achieved by the method for monitoring an abnormality of any terminal provided in the embodiment of the present application may be achieved, for details, see the foregoing embodiment, and are not described herein again.
The foregoing describes in detail a method, an apparatus, a computer device, a computer-readable storage medium, and a system for monitoring an abnormality of a terminal provided in an embodiment of the present application, where a specific example is applied to illustrate principles and embodiments of the present invention, and the description of the foregoing embodiment is only used to help understanding a method and a core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, 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 invention.

Claims (15)

1. The method for monitoring the abnormity of the terminal is applied to the terminal and comprises the following steps:
after monitoring that the terminal is normally started, sending a connection request to at least one searched target terminal, wherein the connection request is used for the terminal to establish pairing connection with the target terminal;
determining the equipment state of the target terminal according to the pairing connection condition;
when the equipment state of the target terminal is equipment connection normal, acquiring application state information of an application to be monitored of the target terminal;
determining the application state of the application to be monitored according to the application state information;
generating state information of the target terminal according to the equipment state or the application state;
and transmitting the state information of the target terminal to a server so that the server determines whether the target terminal is abnormal or not according to the state information.
2. The method of claim 1, wherein the sending a connection request to the searched at least one target terminal comprises:
searching candidate terminals with the distance to the terminal within a preset range;
identifying the searched attribution identification information of the candidate terminal;
when the attribution identification information of the candidate terminal is matched with the attribution identification information of the terminal, the terminal equipment is confirmed to be a target terminal;
and sending a connection request to the target terminal.
3. The method according to claim 1, wherein the device status includes normal device connection and abnormal device connection, and the determining the device status of the target terminal according to the pairing connection condition includes:
detecting the pairing connection condition of the terminal and the target terminal;
when the pairing connection between the terminal and the target terminal is detected to be successful, determining that the equipment state of the target terminal is normal;
and when the pairing connection failure between the terminal and the target terminal is detected, determining that the equipment state of the target terminal is equipment connection abnormity.
4. The method according to claim 1, wherein the obtaining application state information of the application to be monitored of the target terminal comprises:
sending an application state acquisition instruction of an application to be monitored to a daemon application of the target terminal, wherein the daemon application is used for monitoring the application to be monitored;
and acquiring the application state information of the target terminal, which is sent by the daemon application of the target terminal.
5. The method according to claim 1, wherein the application states include normal application operation and abnormal application operation, and the determining the application state of the application to be monitored according to the application state information includes:
determining the connection condition of the application to be monitored on the target terminal and the daemon application according to the application state information;
when the data interface connection between the application to be monitored on the target terminal and the daemon application is established, determining that the application state of the application to be monitored on the target terminal is normal in application running;
and when the application to be monitored on the target terminal cannot establish data interface connection with the daemon application, determining that the application state of the application to be monitored on the target terminal is abnormal in application running.
6. The method of claim 1, wherein transmitting the status information of the at least one target terminal to a server comprises:
collecting a serial number of the target terminal;
establishing a mapping relation between the state information and the serial number of the target terminal;
storing the mapping relation in a storage space of the terminal;
and transmitting the stored mapping relation to a server.
7. The method according to claim 6, wherein the storing the mapping relationship in a storage space of the terminal comprises:
regenerating the state information of the target terminal at preset unit time intervals;
comparing the regenerated state information with the stored state information in the mapping relation;
when the regenerated state information is different from the state information in the storage device of the terminal, updating the state information in the mapping relation in the storage space to obtain an updated mapping relation;
and sending the updated mapping relation to a server.
8. The method for monitoring the abnormity of the terminal is applied to a server and comprises the following steps:
receiving state information of at least one target terminal transmitted by a terminal, wherein the target terminal is a terminal device with identification matching with the terminal;
analyzing the state information of the target terminal to obtain the equipment state of the target terminal or the application state of the application to be monitored on the target terminal;
monitoring whether the target terminal is abnormal or not based on the equipment state or the application state;
and executing a corresponding exception handling strategy when the target terminal is monitored to have the exception.
9. The method according to claim 8, wherein the device status includes normal device connection and abnormal device connection, the application status includes normal application operation and abnormal application operation, and the monitoring whether the target terminal has the abnormality based on the device status and the application status of the application to be monitored includes:
when the target terminal is determined to be normally connected based on the equipment state, determining whether the application to be monitored on the target terminal is abnormal or not according to the application state;
when the application to be monitored on the target terminal is determined to be the application running normal based on the application state, monitoring that the target terminal has no abnormity, and when the application to be monitored on the target terminal is determined to be the application running abnormity based on the application state, monitoring that the target terminal has abnormity;
and when the target terminal is determined to be abnormal in equipment connection based on the equipment state, monitoring that the target terminal is abnormal.
10. The method according to claim 8, wherein when monitoring that the target terminal has an exception, executing a corresponding exception handling policy includes:
receiving state information transmitted by the terminal at preset unit time intervals;
analyzing the state information of the target terminal to obtain the equipment state of the target terminal or the application state of the application to be monitored on the target terminal;
monitoring whether the target terminal is abnormal or not based on the equipment state or the application state;
and executing a corresponding exception handling strategy when the monitored exception state frequency of the target terminal is greater than a preset exception frequency threshold value.
11. An abnormality monitoring apparatus of a terminal, applied to the terminal, comprising:
the terminal comprises a sending unit, a receiving unit and a sending unit, wherein the sending unit is used for sending a connection request to at least one searched target terminal after monitoring that the terminal is normally started, and the connection request is used for the terminal to establish pairing connection with the target terminal;
the determining unit is used for determining the equipment state of the target terminal according to the pairing connection condition;
the device comprises an acquisition unit, a monitoring unit and a processing unit, wherein the acquisition unit is used for acquiring application state information of an application to be monitored of the target terminal when the device state of the target terminal is that the device connection is normal;
the determining unit is further configured to determine an application state of the application to be monitored according to the application state information;
a generating unit, configured to generate state information of the target terminal according to the device state or the application state;
and the transmission unit is used for transmitting the state information of the target terminal to a server so that the server determines whether the target terminal is abnormal or not according to the state information.
12. An abnormality monitoring device for a terminal, applied to a server, comprising:
the terminal comprises a receiving unit, a judging unit and a judging unit, wherein the receiving unit is used for receiving the state information of at least one target terminal transmitted by a terminal, and the target terminal is a terminal device with identification matching with the terminal;
the analysis unit is used for analyzing the state information of the target terminal to obtain the equipment state of the target terminal or the application state of the application to be monitored on the target terminal;
the monitoring unit is used for monitoring whether the target terminal is abnormal or not based on the equipment state or the application state;
and the execution unit is used for executing a corresponding exception handling strategy when the target terminal is monitored to have the exception.
13. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method according to any of claims 1-7 or any of claims 8-10 are implemented when the program is executed by the processor.
14. A computer-readable storage medium, on which a computer program is stored, wherein the computer program, when being executed by a processor, realizes the steps of the method according to any one of claims 1 to 7 or any one of claims 8 to 10.
15. An abnormality detection system for a terminal, comprising: a terminal having the apparatus according to claim 11 and a server having the apparatus according to claim 12, the terminal and the server being communicatively connected.
CN202110018212.2A 2021-01-07 2021-01-07 Method, device and equipment for monitoring abnormity of terminal, readable storage medium and system Pending CN114745426A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110018212.2A CN114745426A (en) 2021-01-07 2021-01-07 Method, device and equipment for monitoring abnormity of terminal, readable storage medium and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110018212.2A CN114745426A (en) 2021-01-07 2021-01-07 Method, device and equipment for monitoring abnormity of terminal, readable storage medium and system

Publications (1)

Publication Number Publication Date
CN114745426A true CN114745426A (en) 2022-07-12

Family

ID=82274027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110018212.2A Pending CN114745426A (en) 2021-01-07 2021-01-07 Method, device and equipment for monitoring abnormity of terminal, readable storage medium and system

Country Status (1)

Country Link
CN (1) CN114745426A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117411732A (en) * 2023-12-15 2024-01-16 国网四川省电力公司技能培训中心 Monitoring method and system for network security event

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117411732A (en) * 2023-12-15 2024-01-16 国网四川省电力公司技能培训中心 Monitoring method and system for network security event
CN117411732B (en) * 2023-12-15 2024-03-22 国网四川省电力公司技能培训中心 Monitoring method and system for network security event

Similar Documents

Publication Publication Date Title
US8826402B2 (en) Management of an instant message session
CN107040777A (en) A kind of remote debugging method, set top box and server
RU2601148C1 (en) System and method for detecting anomalies when connecting devices
CN112911013B (en) Cloud application processing method and device, computer equipment and storage medium
US11669136B1 (en) Systems and methods for automatically starting workplace computing devices
JP2023503736A (en) Scene detection method and apparatus, electronic equipment, computer storage medium
US20220172516A1 (en) Monitoring Devices at Enterprise Locations Using Machine-Learning Models to Protect Enterprise-Managed Information and Resources
CN114745426A (en) Method, device and equipment for monitoring abnormity of terminal, readable storage medium and system
CN111818025B (en) User terminal detection method and device
CN115001806B (en) Mobile phone bank login authorization method and device
CN115190044B (en) Device connection state checking method, device and storage medium
US20220292216A1 (en) System and method for securing and facilitating access to a digital legacy
WO2022096959A1 (en) Scene detection method and apparatus, electronic device and computer storage medium
CN112395175A (en) Log processing method and device and electronic equipment
CN112351030A (en) Data processing method and computer equipment
JP5891140B2 (en) Connection state management device and program thereof
CN112989349B (en) Virus detection method, device, equipment and storage medium
CN106791808A (en) The detection method and device of a kind of video accelerator
WO2023197642A1 (en) Identity verification method, device, storage medium, and program product
US20220415121A1 (en) Systems, Methods, Apparatuses, And Computer-Readable Storage Media For Warning
CN114602186A (en) Cheating behavior identification method and device, storage medium and electronic equipment
CN115619405A (en) Information processing method, information processing device, computer-readable storage medium and computer equipment
CN116610379A (en) Method and device for starting pcsd service
CN117592935A (en) Service data processing method and device and client terminal
CN111178834A (en) Information processing method, system, device, equipment and 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