Touch service monitoring method and device, computer equipment and storage medium

By switching states and sending events in the touch screen system to control the on and off of independent monitoring threads, the problem of touch service stuck is solved, power consumption is reduced, and controllable monitoring time is achieved.

CN119493696APending Publication Date: 2025-02-21GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311024718.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-14
Publication Date
2025-02-21

AI Technical Summary

Technical Problem

Touch services are prone to logical exceptions in multi-threaded interactions, resulting in jamming. The existing methods require independent threads to monitor continuously, which has the problem of high power consumption.

Method used

By switching the status of the touch screen system and sending status events to the logic processing system, the independent monitoring thread is controlled to enable and close the monitoring time.

Benefits of technology

It realizes monitoring whether the touch service is operating normally, while reducing the power consumption of independent monitoring threads.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119493696A_ABST
    Figure CN119493696A_ABST
Patent Text Reader

Abstract

The invention provides a touch service monitoring method and device, computer equipment and a storage medium, and belongs to the field of touch service monitoring. The method comprises the following steps: when the touch screen system is switched to a first state, sending a first state event to a logic processing system; the logic processing system starts an independent monitoring thread in response to the first state event; the touch screen system responds to switching from the first state to the second state and sends a second state event to the logic processing system; the logical processing system closes the independent monitoring thread in response to the second state event. According to the technical scheme, by switching the state of the touch screen system and sending the state event to the logic processing system, the opening or closing of the independent monitoring thread is controlled based on different state events, so that the monitoring duration of the monitoring thread on the touch service is controllable; therefore, whether the touch service is normal or not can be monitored, and the power consumption required for independently monitoring the thread is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a touch service monitoring method, device, computer equipment and storage medium. Background Art

[0002] The touch system is an important means of realizing human-computer interaction. The touch system will regularly report raw data to the terminal system. After obtaining the raw data, the terminal system will perform touch algorithm calculations and analyze whether the touch state has changed at this time, so as to realize finger operation of the touch screen, and the touch system will respond synchronously. However, the touch service is multi-threaded and interactive, and logical anomalies are prone to occur, causing the touch service to freeze, that is, the touch system cannot respond to changes in the touch state within the preset period. Therefore, how to monitor whether the touch service is running normally, so as to quickly solve the problem of touch service freezing, is a problem that needs to be solved.

[0003] At present, an independent thread is usually used to monitor whether the touch service is running normally, and corresponding solutions are taken when the touch service is found to be stuck. However, this method requires the independent thread to monitor the touch service continuously, which has the problem of high power consumption. Summary of the invention

[0004] The embodiment of the present application provides a touch service monitoring method, which switches the state of the touch screen system and sends the state event to the logic processing system, thereby controlling the opening or closing of an independent monitoring thread based on different state events, so that the monitoring time of the monitoring thread on the touch service is controllable, thereby being able to monitor whether the touch service is normal and reduce the power consumption required by the independent monitoring thread. The technical solution is as follows:

[0005] In one aspect, a touch service monitoring method is provided, the method comprising:

[0006] When the touch screen system switches to the first state, the touch screen system sends a first state event to the logic processing system, where the first state is an active state of the touch screen system, and the first state event is used to indicate that the touch screen system is currently in the first state;

[0007] The logic processing system starts an independent monitoring thread in response to the first status event, wherein the independent monitoring thread is used to monitor whether a touch service is normal, and the touch service is used to respond to a touch operation of a touch object on a touch screen;

[0008] In response to switching from the first state to the second state, the touch screen system sends a second state event to the logic processing system, where the second state is an inactive state of the touch screen system, and the second state event is used to indicate that the touch screen system is currently in the second state;

[0009] The logic processing system shuts down the independent monitoring thread in response to the second status event.

[0010] On the other hand, a terminal is provided, which includes a processor and a memory, wherein the memory is used to store at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the touch service monitoring method in the embodiment of the present application.

[0011] On the other hand, a computer-readable storage medium is provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the touch service monitoring method in the embodiment of the present application.

[0012] On the other hand, a computer program product is provided, including a computer program, wherein the computer program is executed by a processor to implement the touch service monitoring method in the embodiment of the present application.

[0013] The present application provides a touch service monitoring method, which switches the state of the touch screen system and sends the state event to the logic processing system, thereby controlling the opening or closing of an independent monitoring thread based on different state events, so that the monitoring time of the monitoring thread on the touch service is controllable, thereby being able to monitor whether the touch service is normal and reduce the power consumption required by the independent monitoring thread. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0015] Figure 1 is a schematic diagram of an implementation environment of a touch service monitoring method provided according to an embodiment of the present application;

[0016] Figure 2 is a flow chart of a touch service monitoring method provided according to an embodiment of the present application;

[0017] Figure 3 is a flow chart of another touch service monitoring method provided according to an embodiment of the present application;

[0018] Figure 4 is a schematic diagram of capacitance data processing provided according to an embodiment of the present application;

[0019] Figure 5 is a schematic diagram of an interaction between systems provided according to an embodiment of the present application;

[0020] Figure 6 is a flow chart of a touch service monitoring method provided according to an embodiment of the present application;

[0021] Figure 7 is a schematic diagram of the structure of a terminal provided according to an embodiment of the present application;

[0022] Figure 8 It is a structural diagram of a server provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0023] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0024] In this application, the terms "first", "second", etc. are used to distinguish identical or similar items with substantially the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there any limitation on quantity and execution order.

[0025] In the present application, the term "at least one" means one or more, and the term "plurality" means two or more.

[0026] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions. For example, the touch operation of the touch object involved in this application is obtained with full authorization.

[0027] Figure 1 is a schematic diagram of an implementation environment of a touch service monitoring method provided according to an embodiment of the present application. Figure 1 The implementation environment includes a terminal 101 and a server 102. The terminal 101 and the server 102 can be directly or indirectly connected via wired or wireless communication, which is not limited in this application.

[0028] In some embodiments, the terminal 101 is a mobile phone, a desktop computer, a laptop computer, a tablet computer, a smart watch, and other types of terminals. An application can be installed and run on the terminal 101, and the application can switch states and control the opening or closing of the independent monitoring system according to different state events. The application is associated with the server 102, and the server 102 provides background services to the terminal 101.

[0029] In some embodiments, server 102 is an independent physical server, or it can be a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms.

[0030] In some embodiments, the server 102 undertakes the main computing work and the terminal 101 undertakes the secondary computing work; or, the server 102 undertakes the secondary computing work and the terminal 101 undertakes the main computing work; or, the server 102 and the terminal 101 adopt a distributed computing architecture to perform collaborative computing.

[0031] Figure 2 is a flow chart of a touch service monitoring method provided according to an embodiment of the present application, the method is executed by a terminal, and the terminal includes a touch screen system and a logic processing system. Figure 2 , the method comprises the following steps:

[0032] 201. When the touch screen system switches to a first state, the touch screen system sends a first state event to a logic processing system. The first state is an active state of the touch screen system. The first state event is used to indicate that the touch screen system is currently in the first state.

[0033] In an embodiment of the present application, after the touch screen system switches to an active state, it communicates to the logic processing system that the touch screen system is currently in an active state. Among them, the touch screen system includes a scanning device and a processing device. The scanning device is used to collect data generated by the touch object, and the processing device is used to generate a status event through the collected data, and report the status event to the logic processing system. The first state means that all functions of the touch screen system are normally turned on and maintain a high-power consumption operation mode. At this time, the touch screen system uses a long scanning cycle and a full channel scanning method to scan the touch objects within a certain range, and can accurately monitor the movement trajectory and operation force of the touch operation. The logic processing system is used to receive status events and control the opening and closing of independent monitoring threads based on status events. Among them, the touch screen system switches to the first state, which can be switched after being affected by the outside world; or it can be automatically switched when the timing time is reached.

[0034] 202. The logic processing system starts an independent monitoring thread in response to the first state event, where the independent monitoring thread is used to monitor whether the touch service is normal, and the touch service is used to respond to the touch operation of the touch object on the touch screen.

[0035] In the embodiment of the present application, the logic processing system receives a status event sent by the touch screen system. When the status event indicates that the touch screen system is currently in an active state, the logic processing system wakes up the dormant independent monitoring thread and puts the independent monitoring thread into a working state. If the logic processing system does not receive a status event, the independent monitoring thread is not woken up and remains in a dormant state.

[0036] Among them, the independent monitoring thread is an independent thread different from the thread that controls the touch service, and the logic processing system controls the opening and closing of the independent monitoring thread based on the different status events received. A touch object refers to an object that can generate a touch operation on the screen. The position, size, trajectory and strength of the touch operation generated by the touch object are not exactly the same. For example, the touch object can be a finger, multiple fingers, or a stylus. The operation generated by the touch object can be a click, such as a single-finger click, a double-finger click, and a three-finger click, etc., or it can be a slide, such as a two-finger up and down slide, a two-finger left and right slide, and a two-finger opening and closing.

[0037] 203. In response to switching from the first state to the second state, the touch screen system sends a second state event to the logic processing system, where the second state is an inactive state of the touch screen system, and the second state event is used to indicate that the touch screen system is currently in the second state.

[0038] In the embodiment of the present application, after the touch screen system switches from an active state to an inactive state, it communicates to the logic processing system that the touch screen system is currently in an inactive state. The second state refers to the touch screen system turning on some functions and maintaining a low-power operation mode. At this time, the touch screen system uses a short scanning cycle and partial channel scanning to scan touch objects within a certain range, and can only monitor whether there is a press operation on the touch object. The touch screen system switches from the first state to the second state, which can be switched after being affected by the outside world, or it can be switched automatically when the timing time is reached.

[0039] 204. The logic processing system closes the independent monitoring thread in response to the second status event.

[0040] In the embodiment of the present application, the logic processing system receives a status event sent by the touch screen system. When the status event indicates that the touch screen system is currently in an inactive state, the logic processing system shuts down the working independent monitoring thread and puts the independent monitoring thread into a dormant state. If the logic processing system does not receive a status event, the independent monitoring thread is not shut down and the independent monitoring thread remains in a working state.

[0041] An embodiment of the present application provides a touch service monitoring method, which switches the state of the touch screen system and sends the state event to the logic processing system, thereby controlling the opening or closing of an independent monitoring thread based on different state events, so that the monitoring time of the monitoring thread on the touch service is controllable, thereby being able to monitor whether the touch service is normal and reduce the power consumption required by the independent monitoring thread.

[0042] Figure 3 is a flowchart of another touch service monitoring method provided according to an embodiment of the present application, the method is executed by a computer device, see Figure 3 , the method comprises the following steps:

[0043] 301. In response to detecting that a touch object has moved, the touch screen system determines a moving direction of the touch object and a current state of the touch screen system, where the state includes a first state and a second state.

[0044] In the embodiment of the present application, the touch object moves, and the touch screen system determines the moving direction of the touch object and the current state of the touch screen system based on the current capacitance data collected by the touch screen. The touch object refers to an object that can generate a touch operation on the screen. For example, the touch object can be a finger, multiple fingers, or a stylus. The moving direction of the touch object can be close to the touch screen or away from the touch screen.

[0045] The moving direction of the touch object is obtained based on the current capacitance data and the capacitance reference data. The current capacitance data is collected by the touch screen and is used to determine the moving direction of the touch object. The capacitance reference data is the capacitance data when the touch screen does not detect a touch operation. The capacitance data difference is the difference between the current capacitance data and the capacitance reference data. If the capacitance data difference is not less than the preset capacitance threshold, it is determined that the touch object moves in a direction close to the touch screen; if the capacitance data difference is less than the preset capacitance threshold, it is determined that the touch object moves in a direction away from the touch screen.

[0046] Among them, the current state of the touch screen system includes a first state and a second state. The first state means that the touch screen system is currently in an active state, that is, a high power consumption state, such as an active state; the second state means that the touch screen system is currently in an inactive state, that is, a low power consumption state, such as an idle state.

[0047] See also Figure 4 As shown, Figure 41 is a schematic diagram of a capacitance data processing according to an embodiment of the present application. In the touch screen system, data initialization is first performed, and then the touch screen obtains current capacitance data through AFE (Analog Front End) sampling, and the touch screen system reports the sampled data to the logic processing system. In the logic processing system, capacitance reference data is obtained, and the capacitance data difference is calculated based on the current capacitance data and the capacitance reference data, and then noise reduction processing is performed, and finally the coordinate position where the capacitance data difference exists is calculated.

[0048] 302. In response to the touch object moving toward the direction approaching the touch screen and the touch screen system being currently in the second state, the touch screen system switches from the second state to the first state.

[0049] In an embodiment of the present application, the touch screen collects current capacitance data and calculates a capacitance data difference based on capacitance reference data; when the capacitance data difference is not less than a preset capacitance threshold, the touch screen system determines that the touch object moves toward the touch screen, and the touch screen system is currently in the second state; the touch screen system switches from the second state to the first state, that is, from an inactive state to an active state.

[0050] It should be noted that the touch screen system switches to the first state after being affected by external factors, for example, when a finger touches the touch screen, the touch screen system switches to the first state; it may also switch automatically when the timing time is reached, for example, the timing time is one hour, and when one hour has passed, the touch screen system switches to the first state. In the embodiment of the present application, the example of the touch screen system switching to the first state after being affected by external factors is used for explanation. It should be noted that when the touch screen system is just powered on, the initial state is the first state, and the MCU (Microcontroller Unit) in the touch screen system is powered on and reset.

[0051] 303. The touch screen system sends a first status event to the logic processing system.

[0052] In the embodiment of the present application, the first status event is used to indicate that the touch screen system is in an active state.

[0053] See also Figure 5 As shown, Figure 5 This is a schematic diagram of an interaction between systems provided according to an embodiment of the present application. The touch screen system triggers an interrupt signal through the INT pin, and the logic processing system sets the touch screen system through the I2C / SPI interface. It should be noted that there are many ways of interaction between the touch screen system and the logic processing system, and this application does not limit this.

[0054] 304. The logic processing system starts an independent monitoring thread in response to the first state event, where the independent monitoring thread is used to monitor whether the touch service is normal, and the touch service is used to respond to the touch operation of the touch object on the touch screen.

[0055] In an embodiment of the present application, the logic processing system receives a status event sent by the touch screen system. When the status event indicates that the touch screen system is currently in an active state, the logic processing system wakes up the sleeping independent monitoring thread and puts the independent monitoring thread into a working state. If the logic processing system does not receive a status event, the independent monitoring thread will not be woken up, and the independent monitoring thread will remain in a sleeping state. By waking up the independent monitoring thread to enter a working state only when the touch screen system is currently in an active state, the working time of the independent monitoring thread can be reduced, thereby reducing the power consumption of the independent monitoring thread.

[0056] 305. In response to not receiving a notification signal sent by the touch service within the monitoring period, the logic processing system increases the number of monitoring times by one, where the notification signal is used to indicate that the touch service operates normally.

[0057] In an embodiment of the present application, the touch service sends a notification signal, such as a heartbeat signal, to the logic processing system at regular intervals to indicate that the touch service is operating normally. Within a monitoring cycle, if the logic processing system does not receive a notification signal sent by the touch service, the number of monitoring times will be increased by one to the original number of monitoring times. The original number of monitoring times may be zero or multiple times less than the monitoring times threshold. The monitoring cycle and the monitoring times threshold are pre-set in the logic processing system.

[0058] For example, the monitoring period is preset to 500ms in the logic processing system, and the monitoring times threshold is preset to four times. If the logic processing system does not receive the notification signal within 500ms, the monitoring times are increased by one on the original monitoring times.

[0059] In some embodiments, the logic processing system receives a notification signal sent by the touch service during the monitoring period. Accordingly, in response to receiving the notification signal during the monitoring period, the logic processing system determines that the touch service is normal and resets the monitoring times to zero. The monitoring times may be zero or multiple times less than the monitoring times threshold.

[0060] For example, the monitoring cycle is preset to 500ms in the logic processing system, and the monitoring times threshold is preset to four times. Within 1s, the logic processing system does not receive a notification signal, and the monitoring times are twice. Within the next 500ms, the logic processing system receives a notification signal, and at this time, it is determined that the touch service is normal, and the monitoring times are reset to zero.

[0061] 306 . In response to the monitoring number reaching a monitoring number threshold, the logic processing system determines that the touch service is abnormal.

[0062] In an embodiment of the present application, within a monitoring cycle, the logic processing system does not receive a notification signal sent by the touch service, and increases the monitoring times by one to the original monitoring times. At this time, the increased monitoring times reaches the monitoring times threshold, and the logic processing system determines that the touch service is abnormal.

[0063] For example, the monitoring period is preset to 500ms in the logic processing system, and the monitoring times threshold is preset to four times. Within 2s, the logic processing system does not receive a notification signal, and the monitoring times is equal to four times, that is, the monitoring times threshold is reached, and the logic processing system determines that the touch service is abnormal.

[0064] In some embodiments, in response to the monitoring times not reaching the monitoring times threshold, the logic processing system continues monitoring in the next monitoring cycle.

[0065] For example, the monitoring cycle is preset to 500ms in the logic processing system, and the monitoring number threshold is preset to four times. Within 1 second, the logic processing system does not receive the notification signal, and the monitoring number is two times, which does not reach the monitoring number threshold, and the logic processing system continues to monitor the next monitoring cycle.

[0066] 307. The logic processing system performs exception processing on the touch service, where the exception processing includes restarting the touch service.

[0067] In some embodiments, after the touch service is restarted, within the time corresponding to the monitoring number threshold, the logic processing system still does not receive the notification signal sent by the touch service, and sends a warning event to the touch screen system, and the touch screen system displays the warning event on the touch screen. It should be noted that the touch service can be restarted multiple times. When the restart number threshold is reached, within the time corresponding to the monitoring number threshold, the logic processing system still does not receive the notification signal sent by the touch service, and then sends a warning event. This application does not limit this. By monitoring the touch service, the touch service can be restarted when the touch service is abnormal, such as stuck, thereby improving the efficiency of exception handling, ensuring that the touch service can operate normally, and thus improving the efficiency of human-computer interaction.

[0068] 308. In response to the touch object moving in a direction away from the touch screen and the touch screen system being currently in the first state, the touch screen system switches from the first state to the second state.

[0069] In the embodiment of the present application, the touch screen collects current capacitance data, calculates capacitance data difference based on capacitance reference data, and when the capacitance data difference is less than a preset capacitance threshold, the touch screen system determines that the touch object moves away from the touch screen. When the touch screen system is currently in the first state, the touch screen system switches from the first state to the second state, that is, switches from the active state to the inactive state.

[0070] It should be noted that the touch screen system switches from the first state to the second state, which may be switched according to settings after being affected by external factors, for example, when the finger leaves the touch screen, the touch screen system switches from the first state to the second state; or it may be switched automatically when a timer is reached, for example, when the timer is one hour, the touch screen system switches from the first state to the second state after one hour. In the embodiment of the present application, the touch screen system switches to the second state after being affected by external factors for explanation.

[0071] 309. The touch screen system sends a second state event to the logic processing system.

[0072] In the embodiment of the present application, the second status event is used to indicate that the touch screen system is in an inactive state.

[0073] 310. The logic processing system closes the independent monitoring thread in response to the second status event.

[0074] In the embodiment of the present application, the logic processing system receives a status event sent by the touch screen system. When the status event indicates that the touch screen system is currently in an inactive state, the logic processing system shuts down the working independent monitoring thread and puts the independent monitoring thread into a dormant state, such as a sleep state. If the logic processing system does not receive a status event, the independent monitoring thread is not shut down and the independent monitoring thread remains in a working state.

[0075] In some embodiments, the touch screen system switches to the third state, and the logic processing system closes the independent monitoring thread. Accordingly, in response to the switch from the first state to the third state, the touch screen system sends a third state event to the logic processing system, the third state is the dormant state of the touch screen system, and the third state event is used to indicate that the logic processing system is currently in the third state. In response to the third state event, the logic processing system closes the independent monitoring thread.

[0076] The third state refers to an operation mode in which all functions of the touch screen system are turned off and no energy is consumed. At this time, the touch screen system does not respond to any event. The touch screen system switches from the first state to the third state either after being affected by external factors or automatically when the timing time is reached.

[0077] It should be noted that the touch screen system can also switch from the second state to the third state. After the touch screen system switches to the sleep state, it sends a status event to the logic processing system, and the logic processing system shuts down the working independent monitoring thread, so that the independent monitoring thread enters the sleep state. If the logic processing system does not receive the status event, the independent monitoring thread is not shut down, and the independent monitoring thread remains in the working state.

[0078] In order to more clearly illustrate the process of the touch service monitoring method provided by this application, see Figure 6 As shown, Figure 6 It is a flow chart of a touch service monitoring method provided according to an embodiment of the present application.

[0079] Execute step 601, and pre-set the monitoring cycle and monitoring times threshold in the logic processing system. When the touch object approaches the touch screen system, execute step 602, the touch screen system switches to the first state, and sends the first state event to the logic processing system. Execute step 603, the logic processing system determines whether the first state event is received. If not, execute step 604, and do not start the independent monitoring thread; if received, execute step 605, and start the independent monitoring thread. Then execute step 611.

[0080] When the touch service is monitored, step 611 is executed. Within the time corresponding to the monitoring number threshold, the logic processing system determines whether a notification signal sent by the touch screen system is received. If a notification signal is received within the monitoring period, step 612 is executed to clear the monitoring number, and then step 611 is executed. If no notification signal is received within the time corresponding to the monitoring number threshold, step 613 is executed to perform exception processing and then exit.

[0081] When the touch object is away from the touch screen, step 606 is executed, the touch screen system switches from the first state to the second state, and sends the second state event to the logic processing system; when the touch screen enters the off state, step 607 is executed, the touch screen system switches to the third state, and sends the third state event to the logic processing system. Step 608 is executed, and the logic processing system determines whether the second state event or the third state event is received. If received, step 609 is executed to close the independent monitoring thread and then exit; if not received, step 610 is executed, the independent monitoring thread is not closed, and step 611 is continued.

[0082] A touch service monitoring method provided by the present application switches the state of the touch screen system and sends the state events to the logic processing system, thereby controlling the opening or closing of an independent monitoring thread based on different state events, so that the monitoring time of the touch service by the monitoring thread is controllable, thereby being able to monitor whether the touch service is normal and reduce the power consumption required by the independent monitoring thread.

[0083] Figure 7 700 is a schematic diagram of a terminal structure provided according to an embodiment of the present application. The terminal 700 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer or a desktop computer. The terminal 700 may also be referred to as a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.

[0084] Typically, the terminal 700 includes a processor 701 and a memory 702 .

[0085] The processor 701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 701 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 701 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 701 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 701 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0086] The memory 702 may include one or more computer-readable storage media, which may be non-transitory. The memory 702 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 702 is used to store at least one computer program, which is executed by the processor 701 to implement the touch service monitoring method provided in the method embodiment of the present application.

[0087] In some embodiments, the terminal 700 may further optionally include: a peripheral device interface 703 and at least one peripheral device. The processor 701, the memory 702 and the peripheral device interface 703 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 703 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 704, a display screen 705, a camera assembly 706, an audio circuit 707 and a power supply 708.

[0088] The peripheral device interface 703 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 701 and the memory 702. In some embodiments, the processor 701, the memory 702, and the peripheral device interface 703 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 701, the memory 702, and the peripheral device interface 703 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.

[0089] The radio frequency circuit 704 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 704 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 704 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. In some embodiments, the radio frequency circuit 704 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 704 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 704 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.

[0090] The display screen 705 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 705 is a touch display screen, the display screen 705 also has the ability to collect touch signals on the surface or above the surface of the display screen 705. The touch signal can be input to the processor 701 as a control signal for processing. At this time, the display screen 705 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 705 can be one, set on the front panel of the terminal 700; in other embodiments, the display screen 705 can be at least two, respectively set on different surfaces of the terminal 700 or in a folding design; in other embodiments, the display screen 705 can be a flexible display screen, set on a curved surface or a folding surface of the terminal 700. Even, the display screen 705 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 705 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc.

[0091] The camera assembly 706 is used to capture images or videos. In some embodiments, the camera assembly 706 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal, and the rear camera is disposed on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 706 may also include a flash. The flash may be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

[0092] The audio circuit 707 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 701 for processing, or input them into the radio frequency circuit 704 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 700. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 701 or the radio frequency circuit 704 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 707 may also include a headphone jack.

[0093] The power supply 708 is used to power various components in the terminal 700. The power supply 708 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 708 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.

[0094] In some embodiments, the terminal 700 further includes one or more sensors 709 , including but not limited to: an acceleration sensor 710 , a gyroscope sensor 711 , a pressure sensor 712 , an optical sensor 713 , and a proximity sensor 714 .

[0095] The acceleration sensor 710 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 700. For example, the acceleration sensor 710 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 701 can control the display screen 705 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 710. The acceleration sensor 710 can also be used to collect motion data of games or users.

[0096] The gyro sensor 711 can detect the body direction and rotation angle of the terminal 700, and the gyro sensor 711 can cooperate with the acceleration sensor 710 to collect the user's 3D actions on the terminal 700. The processor 701 can implement the following functions based on the data collected by the gyro sensor 711: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0097] The pressure sensor 712 can be set on the side frame of the terminal 700 and / or the lower layer of the display screen 705. When the pressure sensor 712 is set on the side frame of the terminal 700, it can detect the user's holding signal of the terminal 700, and the processor 701 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 712. When the pressure sensor 712 is set on the lower layer of the display screen 705, the processor 701 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 705. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0098] The optical sensor 713 is used to collect the ambient light intensity. In one embodiment, the processor 701 can control the display brightness of the display screen 705 according to the ambient light intensity collected by the optical sensor 713. Optionally, when the ambient light intensity is high, the display brightness of the display screen 705 is increased; when the ambient light intensity is low, the display brightness of the display screen 705 is decreased. In another embodiment, the processor 701 can also dynamically adjust the shooting parameters of the camera assembly 709 according to the ambient light intensity collected by the optical sensor 713.

[0099] The proximity sensor 714, also called a distance sensor, is disposed on the front panel of the terminal 700. The proximity sensor 714 is used to collect the distance between the user and the front of the terminal 700. In one embodiment, when the proximity sensor 714 detects that the distance between the user and the front of the terminal 700 is gradually decreasing, the processor 701 controls the display screen 705 to switch from the screen-on state to the screen-off state; when the proximity sensor 714 detects that the distance between the user and the front of the terminal 700 is gradually increasing, the processor 701 controls the display screen 705 to switch from the screen-off state to the screen-on state.

[0100] Those skilled in the art will understand that Figure 7 The structure shown in the figure does not constitute a limitation on the terminal 700, and the terminal 700 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.

[0101] Figure 8This is a schematic diagram of the structure of a server provided according to an embodiment of the present application. The server 800 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 801 and one or more memories 802, wherein the memory 802 stores at least one computer program, and the at least one computer program is loaded and executed by the processor 801 to implement the touch service monitoring method provided by the above-mentioned various method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output, and the server may also include other components for implementing device functions, which will not be repeated here.

[0102] The embodiment of the present application also provides a computer-readable storage medium, in which at least one computer program is stored, and the at least one computer program is loaded and executed by a processor to implement the touch service monitoring method in the above embodiment. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device.

[0103] The embodiment of the present application further provides a computer program product, including a computer program, which is executed by a processor to implement the touch service monitoring method in the embodiment of the present application.

[0104] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0105] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A touch service monitoring method, characterized in that: Applied to a terminal, the terminal includes a touch screen system and a logic processing system, and the method includes: When the touch screen system switches to the first state, the touch screen system sends a first state event to the logic processing system, where the first state is an active state of the touch screen system, and the first state event is used to indicate that the touch screen system is currently in the first state; The logic processing system starts an independent monitoring thread in response to the first status event, wherein the independent monitoring thread is used to monitor whether a touch service is normal, and the touch service is used to respond to a touch operation of a touch object on a touch screen; In response to switching from the first state to the second state, the touch screen system sends a second state event to the logic processing system, where the second state is an inactive state of the touch screen system, and the second state event is used to indicate that the touch screen system is currently in the second state; The logic processing system shuts down the independent monitoring thread in response to the second status event.

2. The method according to claim 1, characterized in that When the touch screen system is switched to the first state, sending the first state event to the logic processing system includes: In response to detecting that the touch object moves, the touch screen system determines a moving direction of the touch object and a current state of the touch screen system, wherein the state includes the first state and the second state; In response to the touch object moving in a direction close to the touch screen and the touch screen system being currently in the second state, the touch screen system switches from the second state to the first state; The touch screen system sends the first status event to the logic processing system.

3. The method according to claim 1, characterized in that In response to the touch screen system switching from the first state to the second state, sending the second state event to the logic processing system includes: In response to detecting that the touch object moves, the touch screen system determines a moving direction of the touch object and a current state of the touch screen system, wherein the state includes the first state and the second state; The touch screen system switches from the first state to the second state in response to the touch object moving in a direction away from the touch screen and the touch screen system is currently in the first state; The touch screen system sends the second state event to the logic processing system.

4. The method according to claim 1, characterized in that: The monitoring cycle and monitoring times threshold are preset in the logic processing system; The method further comprises: In response to not receiving a notification signal sent by the touch control service within the monitoring period, the logic processing system increases the number of monitoring times by one, wherein the notification signal is used to indicate that the touch control service is working normally; The logic processing system determines that the touch service is abnormal in response to the monitoring number reaching the monitoring number threshold; The logic processing system performs exception processing on the touch service, and the exception processing includes restarting the touch service.

5. The method according to claim 4, characterized in that The method further comprises: In response to receiving the notification signal within the monitoring period, the logic processing system determines that the touch service is normal and clears the number of monitoring times.

6. The method according to claim 4, characterized in that The method further comprises: In response to the monitoring times not reaching the monitoring times threshold, the logic processing system continues monitoring in the next monitoring cycle.

7. The method according to claim 1, characterized in that The method further comprises: In response to the touch screen system switching from the first state to the third state, the touch screen system sends a third state event to the logic processing system, wherein the third state is a dormant state of the touch screen system, and the third state event is used to indicate that the logic processing system is currently in the third state; The logic processing system shuts down the independent monitoring thread in response to the third status event.

8. A terminal, characterized in that: The terminal comprises a processor and a memory, wherein the memory is used to store at least one computer program, and the at least one computer program is loaded by the processor and executes the touch service monitoring method according to any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store at least one computer program, and the at least one computer program is used to execute the touch service monitoring method according to any one of claims 1 to 7.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the touch service monitoring method according to any one of claims 1 to 7 is implemented.