Method, device and equipment for outputting feedback state information
By obtaining vibration status data on the mobile terminal to judge the tap behavior and triggering the feedback device to output feedback status information, the problem of large power consumption of the mobile terminal and stimulating the screen light is solved, and a convenient experience of knocking the wood fish is achieved.
Patent Information
- Application Number
- CN202411639815.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-15
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2044-11-15
AI Technical Summary
The existing method of simulating the knocking of wooden fish through the wooden fish software in mobile terminals leads to a large amount of power consumption in mobile terminals, and users need to view the screen, which is easily stimulated by screen light.
By obtaining the vibration state data collected by the sensor, it is determined whether the preset knock determination conditions are met. If so, the trigger feedback device will output feedback status information that imitates the knocking of the wooden fish, realizing the knocking experience of the wooden fish without the need for a screen light or touch event.
It reduces the battery consumption of mobile terminals, avoids the stimulation of screen light on the eyes, and provides a more convenient and closer user experience to the traditional wooden fish knocking experience.
Smart Images

Figure CN119739279A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information processing technology, and in particular to a method for outputting feedback status information. The present application also relates to a device for outputting feedback status information and a computing device. Background Art
[0002] As a traditional musical instrument, wooden fish is often used in Buddhist ceremonies and music performances. It can not only create a solemn atmosphere, but also purify the mind and concentrate attention. Traditional wooden fish are handmade and mostly made of hardwood materials such as red sandalwood and mahogany to ensure that the sound quality is pure and long. Users usually hold a wooden stick and gently tap the surface of the wooden fish to produce a crisp and pleasant sound.
[0003] In recent years, with the rapid development of mobile Internet technology, many traditional cultural elements have been cleverly integrated into mobile terminal applications, including the traditional musical instrument wooden fish. Through the wooden fish software in the mobile terminal to simulate the virtual wooden fish, the user can touch the virtual wooden fish icon on the screen with a finger, and the mobile terminal can play the corresponding wooden fish sound effect after receiving the user's touch event. The solution of using the wooden fish software on the mobile terminal to knock the wooden fish overcomes the shortcomings of the traditional wooden fish in terms of portability. Users can enjoy the fun of knocking the wooden fish at any place and at any time, achieving the effect of relaxation and meditation.
[0004] However, although this digital method brings many conveniences, it also causes the problem of high power consumption of mobile terminals. Summary of the invention
[0005] In view of this, the embodiments of the present application provide a method, device and apparatus for outputting feedback status information to solve the problem of high power consumption of the mobile terminal in the existing method of knocking a wooden fish by using a wooden fish software in the mobile terminal.
[0006] According to a first aspect of an embodiment of the present application, a method for outputting feedback status information is provided, which is applied to a mobile terminal, and includes: acquiring vibration status data collected by a sensor; the vibration status data is generated based on knocking of the mobile terminal by an object outside the mobile terminal; determining whether the vibration status data satisfies a preset knocking determination condition, and obtaining a knocking determination result; if the knocking determination result indicates that the vibration status data satisfies the preset knocking determination condition, triggering a feedback device to output feedback status information for imitating the knocking of a wooden fish.
[0007] According to a second aspect of an embodiment of the present application, a device for outputting feedback status information is provided, which is applied to a mobile terminal, and includes: a vibration status data acquisition module, used to acquire vibration status data collected by a sensor; the vibration status data is generated based on knocking of the mobile terminal by an object outside the mobile terminal; a knocking judgment module, used to judge whether the vibration status data meets a preset knocking judgment condition and obtain a knocking judgment result; a feedback status information output module, used to trigger a feedback device to output feedback status information for imitating the knocking of a wooden fish if the knocking judgment result indicates that the vibration status data meets the preset knocking judgment condition.
[0008] According to a third aspect of an embodiment of the present application, a mobile terminal device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can: obtain vibration state data collected by a sensor; the vibration state data is generated based on knocking of the mobile terminal by an object outside the mobile terminal; determine whether the vibration state data meets a preset knocking determination condition to obtain a knocking determination result; if the knocking determination result indicates that the vibration state data meets the preset knocking determination condition, trigger a feedback device to output feedback state information for imitating the knocking of a wooden fish.
[0009] One embodiment of the present specification can at least achieve the following beneficial effects: obtaining vibration state data generated by external knocking collected by a sensor through a mobile terminal, and triggering a feedback device to output feedback state information for imitating the knocking of a wooden fish when the vibration state data meets a preset knocking judgment condition. Therefore, in the process of using a mobile terminal to achieve the effect of knocking a wooden fish, there is no need to display a virtual wooden fish icon on the screen of the mobile terminal, nor is there a need for the mobile terminal to perceive the user's touch event through the wooden fish software, which at least partially solves the problem of high power consumption of the mobile terminal when using a mobile terminal to knock a wooden fish. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0011] Figure 1 A schematic diagram of an application scenario of a method for outputting feedback status information provided in an embodiment of this specification; Figure 2A schematic diagram of an implementation environment of a method for outputting feedback status information provided in an embodiment of this specification; Figure 3 A flowchart of a method for outputting feedback status information provided in an embodiment of this specification; Figure 4 A schematic diagram of an example of a time variation of first acceleration component data used in a method for outputting feedback state information provided in an embodiment of this specification; Figure 5 A schematic diagram of a process for determining a knocking judgment result provided in an embodiment of this specification; Figure 6 The embodiments of this specification provide corresponding to Figure 3 A schematic diagram of the structure of a device for outputting feedback status information; Figure 7 The embodiments of this specification provide corresponding to Figure 3 A structural schematic diagram of a mobile terminal device. DETAILED DESCRIPTION
[0012] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.
[0013] The terms used in one or more embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of the present application. The singular forms of "a", "said" and "the" used in one or more embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of the present application refers to and includes any or all possible combinations of one or more associated listed items.
[0014] It should be understood that, although the terms first, second, etc. may be used to describe various information in one or more embodiments of the present application, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of the present application, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0015] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data 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 in the relevant regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0016] In the related art, a virtual wooden fish can be simulated by a wooden fish software in a mobile terminal. A user can touch the virtual wooden fish icon on the screen with a finger. After receiving the user's touch event, the mobile terminal can play the corresponding wooden fish sound effect, thereby giving the user the experience of using a mobile terminal to knock on a wooden fish. However, although this method of knocking on a wooden fish overcomes the problem of the lack of convenience of carrying a physical wooden fish, it also has problems such as excessive power consumption of the mobile terminal and damage to the eyes of the user due to screen light when the user knocks on the wooden fish using an electronic screen.
[0017] In order to solve the defects in the prior art, this solution provides the following embodiments.
[0018] Figure 1 A schematic diagram of an application scenario of a method for outputting feedback status information provided in an embodiment of this specification.
[0019] like Figure 1 As shown, the user can use the hand 101 to knock on the mobile terminal 102, and the sensor in the mobile terminal 102 can collect the vibration state data generated by the knocking. Then, the mobile terminal 102 can trigger the feedback device to output feedback state information for imitating the knocking of the wooden fish when it is determined that the vibration state data meets the preset knocking judgment conditions. As a result, the user uses the mobile terminal 102 to obtain the experience of knocking the wooden fish.
[0020] Despite Figure 1 , the user taps the mobile terminal 102 using the user's hand 101, but the object used to tap the mobile terminal 102 is not limited to the user's hand 101. In actual application, the object used to tap the mobile terminal 102 can be any object outside the mobile terminal 102. For example, it can be any part of the user's body, or it can be any object held by the user.
[0021] Despite Figure 1 , the mobile terminal 102 is a mobile phone, but it is not limited thereto in actual application. In actual application, in order to facilitate the user to conveniently obtain the experience of knocking wooden fish anytime and anywhere, the mobile terminal 102 can be an item carried by the user. For example, it can be a mobile phone, a smart wearable device (for example, a smart bracelet, a smart watch, smart glasses, etc.), a tablet computer, etc.
[0022] Despite Figure 1 As shown in FIG. 1 , when the mobile terminal 102 is specifically a mobile phone, the user places the mobile phone with the screen facing downward and the back facing upward when knocking the wooden fish, and the knocking action occurs on the back of the mobile phone. However, in actual application, the placement state of the mobile phone, the position where the mobile phone is knocked, and the user's knocking gesture are not limited to Figure 1 For example, the mobile phone can be set to a state where the screen is facing upward, and the user can tap the front or side of the mobile phone. For another example, the mobile phone can be set to a state where it is held in a handheld state or held by a bracket, and the user can tap the back, front, or side of the mobile phone.
[0023] Figure 2 A schematic diagram of an implementation environment of a method for outputting feedback status information provided in an embodiment of this specification.
[0024] like Figure 2 As shown in , when the user 210 performs a tapping operation on the mobile terminal 220, the sensor 221 of the mobile terminal 220 can sense the tapping operation and collect vibration state data. Then, when the mobile terminal 220 determines that the preset tapping judgment conditions are met based on the vibration state data, the feedback device 222 of the mobile terminal 220 can be triggered to output feedback state information for imitating the wooden fish being tapped.
[0025] In addition, although Figure 2 Although not shown in the figure, a target application may be running in the mobile terminal 220, and the target application may be used to execute a judgment process based on the vibration state data to determine whether the preset knocking judgment condition is met and trigger the feedback device. In actual application, the target application may be called a wooden fish application or wooden fish software, which may be an application running in the mobile terminal when the user knocks the wooden fish using the mobile terminal.
[0026] In addition, although Figure 2 The implementation scenario is not shown, but optionally, a server connected to the mobile terminal 220 in communication may also be included in the implementation scenario. Specifically, the server may be a server corresponding to the target application (i.e., the wooden fish application / software) running in the mobile terminal 220. In actual application, with the user's authorization, the mobile terminal 220 may upload the user's tapping data to the server through the target application, and may perform various statistical analyses based on the tapping data. In actual application, the server may include but is not limited to any device, equipment, platform, equipment cluster, etc. with computing and processing capabilities. In addition, the server may be connected to one or more mobile terminals 220 via a local area network connection, a wide area network connection, an Internet connection, or other types of data networks.
[0027] Based on at least some of the schemes of the embodiments of this specification, a mobile terminal such as a mobile phone can be directly used as a wooden fish to be struck. Compared with the method in the related art where the user clicks the wooden fish icon in the wooden fish software, the user does not need to check the display screen or click a designated location on the display screen (for example, the wooden fish icon). The action of striking the wooden fish is simpler and more convenient, allowing the user to obtain an experience closer to the traditional way of striking the wooden fish.
[0028] Furthermore, since the mobile terminal does not need to be in a bright screen state to display the wooden fish icon, nor does it need to sense the user's touch operation on the screen, the energy consumption of the mobile terminal is reduced when the user uses the mobile terminal to strike the wooden fish, which at least partially solves the problem of high power consumption of the mobile terminal when striking the wooden fish using the wooden fish software in the mobile terminal.
[0029] In addition, since the user can trigger the sensor to collect vibration status data generated by tapping by tapping any position on the mobile terminal without clicking a specified position on the display screen, the user has greater freedom of operation. At the same time, it can avoid the problem of not being able to trigger feedback information because the user did not click a relatively small specified position on the screen (for example, the wooden fish icon), and the statistical accuracy of the wooden fish tapping data is also higher.
[0030] In addition, since the user does not need to look at the electronic screen of the mobile terminal during the wooden fish knocking operation, the stimulation of the user's eyes by the light emitted by the electronic screen is avoided, which can protect the user's eyes and give the user a more comfortable wooden fish knocking experience.
[0031] In the present application, a method for outputting feedback status information is provided. The present application also relates to an apparatus for outputting feedback status information and a mobile terminal device, which are described in detail one by one in the following embodiments.
[0032] Figure 3 A flowchart of a method for outputting feedback status information provided in an embodiment of this specification.
[0033] From the program perspective, the execution subject of the process can be a program installed on an application server or an application terminal. It can be understood that the method can be executed by any device, equipment, platform, or device cluster with computing and processing capabilities.
[0034] like Figure 3 As shown, the process may include the following steps: Step 302: Acquire vibration state data collected by a sensor; the vibration state data is generated based on an object outside the mobile terminal striking the mobile terminal.
[0035] Among them, the sensor used to collect vibration state data can be any sensor that can sense the tapping action. For example, the vibration sensor may include an accelerometer, a pressure sensor, etc. Among them, the accelerometer is an electronic device that can measure acceleration and can detect the magnitude and direction of the acceleration of the mobile terminal. By measuring the changes in the acceleration of the mobile terminal in different directions, the force condition of the mobile terminal can be indirectly understood. The pressure sensor, also known as a force sensor, is an electronic device that can convert mechanical quantities into electrical signals and can be composed of an elastomer, a strain gauge, a compensation circuit, etc. When the mobile terminal is subjected to an external force, the pressure sensor can sense and measure the magnitude and direction of the external force, and convert the mechanical quantity into an electrical signal for output. Therefore, the force condition of the mobile terminal can be directly understood by reading the electrical signal.
[0036] The vibration state data may be data collected by the sensor. For example, the vibration state data may include acceleration data collected by an acceleration sensor. Furthermore, the acceleration data collected by the acceleration sensor may include acceleration component data in multiple directions. When the mobile terminal is specifically a mobile phone, the acceleration data collected by the acceleration sensor may include first acceleration component data along the z-axis direction, second acceleration component data along the x-axis direction, and third acceleration component data along the y-axis direction. Among them, the z-axis direction may be a direction perpendicular to the plane where the screen of the mobile phone is located, for example, it may be a direction toward the inside (or outside) of the mobile phone screen; the x-axis direction and the y-axis direction may be directions perpendicular to each other in the plane where the screen of the mobile terminal is located, for example, the x-axis direction may be a direction along the width (or length) of the mobile phone, and the y-axis direction may be a direction along the length (or width) of the mobile phone. In actual application, the definitions of the z-axis direction, the x-axis direction, and the y-axis direction may be different from the above examples, as long as they meet the pre-settings. For another example, the vibration state data may include pressure data collected by a pressure sensor. In actual application, the pressure sensor may be distributed at a suitable position of the mobile terminal for users to tap.
[0037] In the embodiments of the present specification, the object outside the mobile terminal may include any type of object used by the user to knock the mobile terminal to achieve the effect of knocking a wooden fish. Further, the object outside the mobile terminal may include a body part of the user or an object held by the user. For example, it may include the user's finger. For another example, it may include an object of any material and shape held by the user, such as a wooden stick, a rubber stick, etc.
[0038] In the embodiments of the present specification, since the pressure data of external objects is essentially sensed by the sensors of the mobile terminal, there is no need to sense the user's touch operation through a screen with a touch function. Therefore, there is no need to limit the material of the external objects, which provides users with greater freedom and enhances the user's wooden fish knocking experience.
[0039] Step 304: Determine whether the vibration state data meets a preset knocking determination condition, and obtain a knocking determination result.
[0040] The knocking determination condition may be a condition for determining whether the vibration state data indicates that the mobile terminal is being knocked like a wooden fish. Further, the knocking determination condition may include rules or laws that the vibration amplitude, vibration frequency, etc. of the mobile terminal reflected by the vibration state data should comply with.
[0041] Optionally, the knocking determination condition can be determined in advance based on experimental data or historical wooden fish knocking data. For example, the vibration state data set collected by the sensor during the process of the experimenter or test user knocking the mobile terminal as a wooden fish can be obtained, and statistical analysis can be performed based on the vibration state data set to determine the law of the vibration state data when the mobile terminal is knocked as a wooden fish, and the knocking determination condition is determined according to this law. For another example, the vibration state data set collected by the sensor during the process of the experimenter or test user knocking the mobile terminal as a wooden fish can be obtained, and the machine learning model or deep learning model is trained based on these vibration state data sets to obtain a model for identifying the situation where the mobile terminal is knocked as a wooden fish. In this way, the vibration state data can be judged to meet the preset knocking determination condition, which can specifically include inputting the vibration state data into the pre-trained model, judging whether the prediction result output by the model indicates that the mobile terminal is knocked as a wooden fish, if so, it meets the knocking determination condition, otherwise, it does not meet the knocking determination condition.
[0042] Optionally, the knocking judgment condition may correspond to the type of mobile terminal, or in other words, the knocking judgment conditions corresponding to different types of mobile terminal devices may be different. In actual application, taking into account factors such as different sensor types and sensitivities of different types of mobile terminal devices, and different tapping locations or habits of users, different knocking judgment conditions may be set for different types of mobile terminal devices, or the basic knocking judgment conditions may be fine-tuned for different types of mobile terminal devices to improve the accuracy of the method of outputting feedback status information provided in the embodiments of this specification. Specifically, for types of mobile terminal devices with historical usage records, the aforementioned analysis operation may be performed based on the vibration state data generated when the user uses the type of mobile terminal as a wooden fish to knock, so as to determine the knocking judgment conditions corresponding to each device type, and apply them to the following situations: Figure 3 In the method flow shown.
[0043] Optionally, the knocking judgment condition may be corresponding to the user, or in other words, the knocking judgment conditions corresponding to different users may be different. In actual application, considering that different users have different knocking habits, for example, the knocking position, the holding state of the mobile phone when knocking, the knocking force, the knocking frequency, etc., different knocking judgment conditions can be set for different users, or the basic knocking judgment conditions can be fine-tuned for different users to improve the accuracy of the method of outputting feedback status information provided in the embodiments of this specification. Specifically, for users with historical usage records, the personalized knocking judgment conditions corresponding to the user can be determined based on the personalized vibration state data generated by the user when the mobile terminal is knocked as a wooden fish, and applied to the following conditions: Figure 3 In the method flow shown.
[0044] In the embodiments of this specification, a target application may be installed on the mobile terminal. From the perspective of software, the target application may execute Figure 3 Specifically, after obtaining the vibration state data collected by the sensor, the target application can determine whether the vibration state data meets the preset knocking determination condition, and then, when the preset knocking determination condition is met, the feedback device can be called to output feedback state information.
[0045] Step 306: If the knocking judgment result indicates that the vibration state data meets the preset knocking judgment condition, the feedback device is triggered to output feedback state information for imitating the knocking of the wooden fish.
[0046] In actual application, if the vibration state data meets the preset knocking judgment condition, it can indicate that the mobile terminal is currently being knocked like a wooden fish. At this time, step 306 can be executed, that is, triggering the feedback device to output feedback state information for imitating the knocking of a wooden fish.
[0047] If the vibration state data does not meet the preset knocking judgment condition, it can indicate that the mobile terminal is not currently being knocked as a wooden fish. At this time, step 306 may not be executed, that is, the feedback device is not triggered to output feedback state information for imitating the knocking of the wooden fish. At this time, the vibration state data of the next cycle collected by the sensor may be obtained again, that is, the process of entering the process again may be performed. Figure 3 The process shown in .
[0048] Thus, in the embodiments of this specification, repeatedly executing Figure 3 The process shown can achieve that when the user uses the mobile terminal as a wooden fish to strike, the mobile terminal can timely output feedback status information based on the user's striking behavior. For example, when the user strikes the mobile terminal once, the mobile terminal outputs feedback status information once to imitate the striking of a wooden fish, thereby allowing the user to gain the experience of striking a wooden fish.
[0049] In an embodiment of the present specification, the feedback device may include a feedback device arranged in the mobile terminal or an external device connected to the mobile terminal. In practical applications, for convenience, preferably, a feedback device arranged in the mobile terminal can be used, for example, an audio output device, a vibration device, etc. provided in the mobile terminal can be used, but not limited to this. The feedback state information used to imitate the wooden fish being struck can be information corresponding to the feedback device. For example, when the feedback device includes an audio output device, a sound effect for imitating the wooden fish being struck can be output. For another example, when the feedback device includes a vibration device, a vibration for imitating the wooden fish being struck can be output.
[0050] It should be understood that in the methods described in one or more embodiments of this specification, the order of some steps can be adjusted according to actual needs, or some steps can be omitted.
[0051] Figure 3 The method in the invention obtains vibration state data generated by external knocking collected by a sensor through a mobile terminal, and triggers a feedback device to output feedback state information for imitating the knocking of a wooden fish when the vibration state data meets a preset knocking judgment condition. Therefore, in the process of realizing the knocking wooden fish effect by using a mobile terminal, there is no need to display a virtual wooden fish icon on the screen of the mobile terminal, and there is no need for the mobile terminal to perceive the user's touch event through the wooden fish software, which at least partially solves the problem of high power consumption of the mobile terminal when using a mobile terminal to knock a wooden fish.
[0052] based on Figure 3 The present specification also provides some improved implementation methods of the method, which are described below.
[0053] In one or more embodiments of the present specification, the mobile terminal executes the following Figure 3 Before the method of outputting feedback status information shown in , it is also necessary to register the corresponding sensor event listener in the operating system of the mobile terminal through the target application, so that when the mobile terminal is hit by an external object, the target application can successfully obtain the vibration status data collected by the sensor.
[0054] Furthermore, when the user accesses the target application, a sensor event listener can be registered. Before obtaining the vibration state data collected by the sensor, the method can also include: obtaining the user's access operation to the target application; registering a sensor event listener in response to the access operation; and the sensor event listener is used to provide the vibration state data detected by the sensor.
[0055] For example, an acceleration sensor event listener may be registered, and the acceleration sensor event listener may be used to provide the target application with acceleration data detected by the acceleration sensor.
[0056] In actual application, when registering a sensor event listener, the sampling callback frequency of the sensor may also be set, so that the sensor event listener may provide the target application with the vibration state data detected by the sensor at a preset frequency.
[0057] Taking the Android system as an example, the SensorManager class has several preset constants for setting the sampling callback frequency of sensor data. Further, these constants may include SENSOR_DELAY_NORMAL, SENSOR_DELAY_UI, SENSOR_DELAY_GAME, etc. Among them, SENSOR_DELAY_NORMAL is usually suitable for application scenarios that do not require particularly precise or fast response, and a typical value may be, for example, about 5Hz. SENSOR_DELAY_UI is usually suitable for application scenarios such as providing smooth animations for user interfaces, and its value is usually higher than SENSOR_DELAY_NORMAL, and a typical value may be, for example, about 15Hz. SENSOR_DELAY_GAME is usually suitable for games or other applications that require high sensitivity and fast response, and its value is usually higher than SENSOR_DELAY_UI, and a typical value is generally above 50Hz, and can reach 200Hz or higher in some devices, depending on the hardware capabilities of the device. Among them, the typical values corresponding to SENSOR_DELAY_NORMAL, SENSOR_DELAY_UI, SENSOR_DELAY_GAME, etc. are not fixed, and the actual values may vary depending on the device.
[0058] In actual application, when registering a sensor event listener, one of the multiple preset sampling callback frequencies can be selected as the actual sampling callback frequency. In the embodiments of this specification, on the one hand, considering the sampling density requirements of the vibration state data to be used when judging whether the user performs a wooden fish operation on the mobile terminal, on the other hand, considering factors such as excessive resource consumption of the mobile terminal due to too high a sampling frequency, preferably, the sampling callback frequency of the sensor can be set to SENSOR_DELAY_UI.
[0059] In an optional embodiment, the frequency at which the sensor event listener provides vibration status data may be greater than or equal to a value of SENSOR_DELAY_UI preset in the operating system of the mobile terminal.
[0060] Based on the solution of the embodiment of this specification, by setting the frequency of the vibration state data provided by the sensor event listener to a value not less than SENSOR_DELAY_UI, the basic requirement of the mobile terminal for judging the user's knocking wooden fish event can be met. On this basis, optionally, if the user terminal has sufficient operating resources, then the frequency of the vibration state data provided by the sensor event listener can also be set to the value of SENSOR_DELAY_GAME to further improve the accuracy of the determined knocking judgment result.
[0061] In one or more embodiments of the present specification, considering that in actual applications, an acceleration sensor is usually installed in a mobile terminal, therefore, the acceleration sensor can be used as a sensor for obtaining vibration state data. Therefore, there is no need to perform hardware modification on the mobile terminal device, and the solution has a wide range of applications. In addition, the acceleration sensor can usually sense the user's tapping at almost any position of the mobile terminal, which can provide convenience for the user to use the mobile terminal to tap the wooden fish to a large extent.
[0062] Therefore, in Figure 3 In the method for outputting feedback state information shown, the sensor may include an acceleration sensor; the vibration state data may include acceleration data. The step of acquiring the vibration state data collected by the sensor may specifically include: acquiring the acceleration data collected by the acceleration sensor.
[0063] Generally, the acceleration data collected by the acceleration sensor may include three sets of acceleration component data, that is, acceleration component data corresponding to three directions, and these three sets of acceleration component data may be positive or negative. As an example, when the mobile terminal is specifically a mobile phone, the acceleration data collected by the acceleration sensor may include first acceleration component data along the z-axis direction (for example, a method pointing to the inside of the mobile phone screen), second acceleration component data along the x-axis direction (for example, the direction from the upper left corner to the upper right corner when the mobile phone is in portrait mode), and third acceleration component data along the y-axis direction (for example, the direction from the upper left corner to the lower left corner when the mobile phone is in portrait mode).
[0064] According to the classical mechanics formula F=m·a, where F represents the force on the mobile terminal, m represents the mass of the mobile terminal, and a represents the acceleration of the mobile terminal. It can be seen that the acceleration of the mobile terminal is linearly related to the force on the mobile terminal. The force on the mobile terminal can be detected by using an acceleration sensor and analyzing the value of the acceleration to obtain the force on the mobile terminal, and thus the knocking operation on the mobile terminal.
[0065] In actual application, taking the mobile terminal as a mobile phone as an example, when the user knocks on the mobile phone, he usually knocks on the front or back of the mobile phone. Then, the acceleration sensor can detect the change of the first acceleration component data in the z-axis direction in a short time. Therefore, in the embodiments of this specification, it can be mainly based on the first acceleration component data along the z-axis direction in the acceleration data to determine whether a wooden fish knocking operation has occurred on the mobile terminal.
[0066] Specifically, the vibration state data may include first acceleration component data; the first acceleration component data is first acceleration component data along the z-axis direction; the z-axis direction is a direction perpendicular to the plane where the screen of the mobile terminal is located. Then, judging whether the vibration state data satisfies a preset knock determination condition may specifically include: judging whether the first acceleration component data satisfies a preset knock determination condition.
[0067] In one or more embodiments of the present specification, the first acceleration component data may be regarded as a numerical sequence, and specifically, may be a numerical sequence that changes with time, for example, a numerical sequence of "time-first acceleration component value". Considering the characteristics of the wooden fish knocking operation, the knocking effect lasts for a short time and disappears quickly, which is reflected in the change of the acceleration value, which may deviate greatly from the baseline value in a short time and return to the baseline value in a short time. Therefore, in the embodiments of the present specification, it is possible to determine whether the wooden fish knocking operation has occurred on the mobile terminal by detecting the fluctuation of the first acceleration component value in a short time.
[0068] Specifically, the first acceleration component data can be regarded as including multiple sequences that change with time and are connected in sequence. Further, the first acceleration component data can include a first sequence and a second sequence; the second sequence can include a first acceleration value component collected within a preset time range before the current moment; the first sequence can include a first acceleration value component collected within the preset time range before the start moment of the second sequence. Accordingly, the determination of whether the first acceleration component data meets the preset knocking judgment condition can specifically include: calculating the first variance of each first acceleration component value included in the first sequence; calculating the second variance of each first acceleration component value included in the second sequence; determining whether the first variance is greater than or equal to a preset variance threshold and the second variance is less than the variance threshold, and obtaining a variance judgment result. Therefore, if the knocking judgment result indicates that the vibration state data meets the preset knocking judgment condition, the feedback device is triggered to output feedback state information for imitating the wooden fish being knocked, which may specifically include: if the variance judgment result indicates that the first variance is greater than or equal to the preset variance threshold and the second variance is less than the variance threshold, the feedback device is triggered to output feedback state information for imitating the wooden fish being knocked.
[0069] Among them, the preset duration range used to divide the sequence can be used to reflect the duration of the tapping operation after it deviates from the baseline value and then returns to the baseline value. In actual application, the preset duration range can be determined based on historical data of users tapping wooden fish using mobile terminals, or based on measurement data of users tapping with real wooden fish. The setting of the preset duration range makes it possible to determine whether the mobile terminal is subjected to a tapping wooden fish operation by counting the variance of the acceleration component values of two adjacent preset duration ranges.
[0070] Among them, the variance threshold used to determine the variance judgment result can be obtained based on the historical data statistics of the user performing the knocking wooden fish operation on the mobile terminal. In practical applications, optionally, the variance threshold can be affected by the sensitivity of the sensor, and therefore, the variance threshold can vary from device to device. For device types with relatively high sensor sensitivity, the variance threshold can be set relatively high. Optionally, the variance threshold can also vary from person to person. Thus, by setting the variance threshold according to device or person, the accuracy of determining the variance judgment result can be improved.
[0071] For the adjacent second sequence and first sequence in time sequence, if the variance corresponding to the second sequence is greater than or equal to the preset variance threshold, it means that the mobile terminal is knocked during the second sequence, and if the variance corresponding to the subsequent first sequence is less than the preset variance threshold, it means that the mobile terminal is restored to a non-knocked state during the first sequence. This reflects that the mobile terminal is subjected to a short knock, and it can be considered that the mobile terminal is subjected to a wooden fish operation.
[0072] In one or more embodiments of the present specification, considering that when a wooden fish knocking operation occurs, the force / acceleration change amplitude of the mobile terminal is usually large, so, in order to improve the accuracy of the knocking judgment result, the difference in variance of adjacent sequences can be considered when judging whether the mobile terminal is subjected to a wooden fish knocking operation.
[0073] Specifically, after determining whether the first variance is greater than or equal to a preset variance threshold and the second variance is less than the variance threshold, and obtaining a variance determination result, it may also include: if the variance determination result indicates that the first variance is greater than or equal to a preset variance threshold and the second variance is less than the variance threshold, then calculating the ratio of the first variance to the second variance; and determining whether the ratio is greater than or equal to a preset ratio threshold, and obtaining a ratio determination result. Thus, if the knocking determination result indicates that the vibration state data meets the preset knocking determination condition, then triggering the feedback device to output feedback state information for imitating the wooden fish being knocked, specifically may include: if the ratio determination result indicates that the ratio is greater than or equal to the preset ratio threshold, then triggering the feedback device to output feedback state information for imitating the wooden fish being knocked.
[0074] Among them, the ratio threshold used to determine the ratio judgment result can be obtained based on the historical data statistics of the user performing the knocking wooden fish operation on the mobile terminal. The ratio threshold can be used to reflect the sensitivity of the mobile terminal in response to the user's knocking wooden fish operation output for imitating the feedback state information of the wooden fish being knocked, that is, the sensitivity of the mobile terminal as the wooden fish. In actual application, it can be set according to actual business needs, for example, it can be set to 20, 10, etc., but is not limited to this.
[0075] exist Figure 4 In FIG. 1 , a schematic diagram of an example of a first acceleration component data variation over time used in a method for outputting feedback state information provided in an embodiment of this specification is shown. Figure 4 In the diagram, the horizontal axis represents the time unit, and one time unit can be 20ms; the vertical axis represents the acceleration value, and the unit can be m / s 2 . Figure 4 The units and data shown in the figure are for example only and do not limit the scope of the technical solution of the present application.
[0076] like Figure 4 As shown in , if the sequence is divided into 200ms, that is, if the preset time range is set to 200ms, the acceleration value components corresponding to 1 to 10 time units can be divided into one sequence, and the acceleration value components corresponding to 11 to 20 time units can be divided into one sequence, and so on. When it is determined that in two adjacent sequences, the variance of the acceleration value components of the former is greater than or equal to the preset variance threshold, and the variance of the acceleration value components of the latter is less than the preset variance threshold, and preferably, the ratio of the variance corresponding to the former to the variance corresponding to the latter is greater than or equal to the preset ratio threshold, it can be determined that the mobile terminal has been subjected to a wooden fish knocking operation. Figure 4 In FIG. 1 , two wooden fish knocking operations determined based on the aforementioned judgment method are shown.
[0077] In one or more embodiments of the present specification, taking into account that when a user is using a mobile terminal, when opening a target application, in addition to performing the operation of knocking the wooden fish, other operations may also be performed due to actual needs, such as payment operations, etc. These operations will cause the mobile terminal to move and the acceleration to change. In view of this, in an embodiment of the present specification, a technical solution is provided for removing interference noise in the process of determining the knock judgment result, so as to improve the accuracy of determining the knock judgment result, and thereby improve the accuracy of the output feedback status information.
[0078] Specifically, before determining whether the first variance is greater than or equal to a preset variance threshold and the second variance is less than the variance threshold, it is possible to determine whether the mobile terminal is in a preset vibration state to obtain a vibration state judgment result; the preset vibration state is used to reflect that the mobile terminal is in a vibration state other than a tapped state.
[0079] Further, it may include: obtaining a state tag of the mobile terminal; the state tag is used to indicate that the mobile terminal is in a vibration state other than a tapped state; and then judging whether the mobile terminal is in a preset vibration state according to the state tag. Accordingly, judging whether the first variance is greater than or equal to a preset variance threshold and the second variance is less than the variance threshold may specifically include: if the vibration state judgment result indicates that the mobile terminal is not in a preset vibration state, judging whether the first variance is greater than or equal to a preset variance threshold and the second variance is less than the variance threshold.
[0080] In actual application, different vibration states of the mobile terminal can be used to reflect different usage states of the mobile terminal. For example, the preset vibration state can be used to indicate that the mobile terminal is in a shaking state. For another example, the preset vibration state can be used to indicate that the mobile terminal is in a state of being placed.
[0081] In one or more embodiments of the present specification, a process of determining that the mobile terminal is in a preset vibration state such as a shaken state is further provided.
[0082] In an optional embodiment, the first acceleration component data may also include a third sequence; the third sequence may include the first acceleration value component collected within the preset time range before the start time of the first sequence. Therefore, before judging whether the first variance is greater than or equal to the preset variance threshold and the second variance is less than the variance threshold, it may also include: judging whether the first variance corresponding to the first sequence is greater than or equal to the preset variance threshold, and the third variance corresponding to the third sequence is greater than or equal to the variance threshold, and obtaining a multi-sequence judgment result; if the multi-sequence judgment result indicates that the first variance corresponding to the first sequence is greater than or equal to the preset variance threshold, and the third variance corresponding to the third sequence is greater than or equal to the variance threshold, then the state label set by the mobile terminal is set to the preset vibration state.
[0083] In the above-mentioned embodiment, the preset vibration state can be determined based on the adjacent first sequence and third sequence in the first acceleration component data. The third sequence includes the first acceleration value component collected within the preset time range before the start time of the first sequence. In practical application, if the variance of two consecutive sequences is greater than the preset variance threshold, that is, in the case of Figure 4 Two adjacent peaks appear in the schematic diagram shown ( Figure 4 (This situation is not shown in the figure), thus, the mobile terminal can be considered to be in a state of being shaken, and the mobile terminal is marked as a preset vibration state. In this case, even if the variance in the sequence after these two sequences is less than the preset variance threshold, it will not be mistaken for the mobile terminal being subjected to a wooden fish knocking operation, thereby improving the accuracy of the knocking judgment result, and then improving the accuracy of the output feedback state information, for example, feedback state information for imitating the knocking of a wooden fish will not be output when the mobile terminal is shaken.
[0084] In addition, although in the aforementioned embodiment, when the variances of two consecutive sequences are greater than the preset variance threshold, the mobile terminal is considered to be in a shaking state, in actual application, in order to avoid the possibility of being mistakenly identified as the mobile terminal being in a shaking state, considering that shaking usually lasts for a long time, for example, it can last for the time corresponding to three or more sequences, therefore, optionally, the preset vibration state can be determined based on the first sequence, the third sequence and the fourth sequence in the first acceleration component data, and the fourth sequence includes the first acceleration value component collected within the preset time range before the start time of the third sequence.
[0085] For ease of understanding, Figure 5 A schematic diagram of a process for determining a knock judgment result provided in an embodiment of this specification is shown in FIG.
[0086] like Figure 5 As shown in , 1) a current numerical sequence can be obtained, where the current numerical sequence is collected by a sensor.
[0087] 2) The variance of the current numerical sequence can be calculated.
[0088] 3) It can be determined whether the variance of the current numerical sequence exceeds a preset variance threshold; if so, step 4 can be executed; if not, step 8 can be executed.
[0089] 4) If step 3) determines that the variance of the current numerical sequence exceeds a preset variance threshold, the current numerical sequence can be marked as a suspicious sequence.
[0090] 5) Optionally, it may be determined whether the suspicious sequence appears continuously for a preset number of times (eg, 3 times); if so, step 6 may be performed; if not, step 7 may be performed.
[0091] 6) If it is determined in step 5) that the suspicious sequence appears continuously for a preset number of times, the mobile terminal may be marked as being in a shaking state.
[0092] 7) If step 5) determines that the suspicious sequence does not appear continuously for a preset number of times, the next numerical sequence can be obtained, for example, returning to step 1).
[0093] 8) If step 3) determines that the variance of the current numerical sequence does not exceed the preset variance threshold, then optionally, it can be determined whether the current state of the mobile terminal is a shaking state; if so, it can indicate that the shaking is over, and steps 13) and 7) can be executed; if not, step 9) can be executed.
[0094] 9) If step 8) determines that the current state of the mobile terminal is not a shaking state, it can be further determined whether the previous numerical sequence is a suspicious sequence; if so, step 10 can be executed; if not, step 13) and step 7) can be executed.
[0095] 10) If the judgment result of step 9) indicates that the previous numerical sequence is a suspicious sequence, then optionally, the ratio of the variance of the previous numerical sequence to the variance of the current numerical sequence may be calculated.
[0096] 11) It can be determined whether the ratio calculated in step 10) is greater than or equal to a preset ratio threshold; if so, step 12) can be executed; if not, it can indicate that the current mobile terminal is slightly shaken and not hit by the wooden fish, and steps 13) and 7) are executed.
[0097] 12) If the judgment result of step 11) indicates that the ratio calculated in step 10) is greater than or equal to the preset ratio threshold, it can indicate that the current mobile terminal is struck by a wooden fish, that is, the striking judgment condition is met, and the feedback device can be triggered to output feedback status information for imitating the striking of a wooden fish.
[0098] 13) In the case where step 8) is judged as yes, step 9) is judged as no, step 11) is judged as no, step 12) is executed, etc., it can be indicated that the judgment of the current numerical sequence is completed, and step 7) can be further executed to enter the next sampling period and obtain the next numerical sequence. In actual application, if the judgment result of step 3) indicates that the variance of the current numerical sequence does not exceed the preset variance threshold, before executing step 7), it is necessary to clear the previous mark of the suspicious sequence and the mark of the shaking state of the mobile terminal to avoid errors in the evaluation of subsequent sequences.
[0099] In one or more embodiments of the present specification, considering that when a user uses a mobile terminal to strike the wooden fish, the usage status of the mobile terminal may be in multiple situations, therefore, in order to improve the accuracy of determining the knocking judgment result, and thereby improve the accuracy of the output feedback status information, the knocking judgment result can be determined by determining the actual usage status of the mobile terminal and using different knocking judgment conditions.
[0100] Specifically, before judging whether the vibration state data meets the preset tapping judgment condition, it may also include: determining the usage state of the mobile terminal; the usage state includes the screen horizontal state or the screen tilted state; obtaining the tapping judgment condition corresponding to the usage state; the tapping judgment condition includes a variance threshold corresponding to the usage state information; the variance threshold corresponding to the horizontal state of the screen is different from the variance threshold corresponding to the tilted state of the screen.
[0101] The variance threshold may correspond to the variance threshold used to determine whether the tapping determination condition is met as mentioned above.
[0102] Taking a mobile terminal specifically including a mobile phone as an example, in actual application, if the mobile phone is in a horizontal screen state, for example, the mobile phone screen is facing up or down, it usually means that the mobile phone is placed on a horizontal plane. In this case, the variance threshold for judging whether the mobile phone is hit by a wooden fish can be set relatively small to ensure the sensitivity of detecting the result of the wooden fish hitting. If the mobile phone is in a tilted screen state, for example, the mobile phone screen is at an angle of 60 degrees to the horizontal plane, it usually means that the mobile phone may be in a state of being held or placed on a stand. In this case, the variance threshold for judging whether the mobile phone is hit by a wooden fish can be set relatively large to avoid introducing too much noise when detecting the result of the wooden fish hitting.
[0103] In one or more embodiments of the present specification, a specific method for determining the usage status of a mobile terminal is further provided. Specifically, the usage status of the mobile terminal can be determined based on acceleration data collected by an acceleration sensor.
[0104] More specifically, the acquisition of vibration state data collected by the sensor may specifically include: acquiring acceleration data collected by the acceleration sensor; the acceleration data includes second acceleration component data along the x-axis direction and third acceleration component data along the y-axis direction; the x-axis direction and the y-axis direction are mutually perpendicular directions in the plane where the screen of the mobile terminal is located. Thus, the determination of the use state of the mobile terminal; the use state includes the horizontal screen state or the tilted screen state, may specifically include: for a specified moment, if the absolute value of the second acceleration component is less than the detection critical value and the absolute value of the third acceleration component is less than the detection critical value, then the use state of the mobile terminal is determined to be the horizontal screen state; if only one of the absolute value of the second acceleration component and the absolute value of the third acceleration component data is greater than or equal to the detection critical value, then the use state of the mobile terminal is determined to be the tilted screen state.
[0105] The detection threshold value may be a value close to zero, or in other words, may be a standard for determining whether a quantity is zero at the detection level. Generally, if it is greater than the threshold value, it can be detected and recorded as a non-zero value. Based on the aforementioned scheme of the embodiment of this specification, it can be confirmed that the screen is in a horizontal state when the second acceleration component is zero and the third acceleration component is zero at the detection level.
[0106] In one or more embodiments of the present specification, when the mobile terminal determines that the tapping judgment result indicates that the vibration state data satisfies the preset tapping judgment condition, it can not only trigger the feedback device to output feedback state information for imitating the wooden fish being struck, but also include: if the tapping judgment result indicates that the vibration state data satisfies the preset tapping judgment condition, then the tapping data is updated.
[0107] The tapping data may include, but are not limited to, the number of tapping times, the duration of tapping, the time when tapping occurs, the frequency of tapping, the intensity of tapping, etc.
[0108] The traditional way of knocking a wooden fish in the related art is not only inconvenient to carry the wooden fish, but also difficult to count how long and how many times the user knocks. Based on the solution of the embodiment of this specification, a mobile terminal such as a mobile phone is directly used as a wooden fish to knock. The target application in the mobile terminal can record and save the knocking data, making it convenient for users to view and understand their own knocking data.
[0109] In actual application, the mobile terminal can also upload the user's tapping data to the server corresponding to the Muyu application under the user's authorization so that the server can store the user's tapping data. Therefore, the tapping data can be recorded in the mobile terminal and / or the server corresponding to the target application.
[0110] Optionally, the mobile terminal or server can also perform statistical analysis on the user's tapping data to obtain statistical data. For example, the changing trend of data such as the number of taps or tapping time of the user in each time period (e.g., daily, weekly, monthly, annual, etc.) within a period of time, the average number of taps or tapping time of the user in each time period (e.g., daily, weekly, monthly, annual, etc.) within a period of time, the distribution of the time when each tap of the user occurs within a period of time, etc. can be analyzed, and the statistical items shown here are not limited.
[0111] Optionally, the server may also perform comparative analysis based on the tapping data corresponding to each of the multiple users to obtain comparative data. For example, the average value of the tapping data (or statistical data) of multiple or all users may be statistically analyzed, and users may be ranked based on the tapping data (or statistical data) of multiple or all users, and the comparative data may be fed back to each user.
[0112] Optionally, after updating the tap data, the method may further include: when it is detected that the target application is running in the foreground (for example, when the user views the target application), displaying at least one of the tap data, the statistical data obtained based on the tap data, and the comparative data obtained based on the tap data and / or the statistical data. Specifically, at least one of the tap data, the statistical data, or the comparative data may be displayed in the display interface of the screen, and more specifically, at least one of the tap data, the statistical data, or the comparative data may be displayed in the page of the target application.
[0113] In one or more embodiments of the present specification, one or more feedback devices may be provided in the mobile terminal.
[0114] Optionally, the feedback device may include an audio output device. Accordingly, the triggering of the feedback device to output feedback status information for imitating the wooden fish being struck may specifically include: triggering the audio output device in the mobile terminal to emit a sound effect for imitating the wooden fish being struck.
[0115] As an example, the audio output device may be specifically embodied as a speaker or the like.
[0116] Optionally, the feedback device may include a vibration device. Accordingly, the triggering of the feedback device to output feedback status information for imitating the wooden fish being struck may specifically include: triggering the vibration device in the mobile terminal to emit vibration for imitating the wooden fish being struck.
[0117] As an example, the vibration device may be specifically embodied as a vibration motor or the like.
[0118] Optionally, when the feedback device is triggered to output feedback status information for imitating the wooden fish being struck, one feedback status information may be triggered, or multiple feedback devices may be triggered to simultaneously send feedback status information. For example, only the audio output device may be triggered to send a sound effect for imitating the wooden fish being struck, or only the vibration device may be triggered to send a vibration for imitating the wooden fish being struck, or both the audio output device may be triggered to send a sound effect for imitating the wooden fish being struck and the vibration device may be triggered to send a vibration for imitating the wooden fish being struck.
[0119] And optionally, various feedback devices in the mobile terminal can be set to multiple. When a type of feedback device is set to multiple, one or more of the multiple feedback devices can be triggered to output feedback status information for imitating the wooden fish being struck. For example, when multiple speakers are included, one or more of the multiple speakers can be triggered to emit a sound effect for imitating the wooden fish being struck. For another example, when multiple vibration motors are included, one or more of the multiple vibration motors can be triggered to emit vibrations for imitating the wooden fish being struck.
[0120] In actual application, which feedback devices are used to output feedback status information for imitating the wooden fish being struck can be determined based on setting information provided by the user who performs the wooden fish striking operation, or can also be determined based on information preset by other personnel. In practice, by changing the combination of feedback devices for imitating the feedback status information of the wooden fish being struck, the user can obtain a richer experience of striking the wooden fish.
[0121] In one or more embodiments of the present specification, the mobile terminal may have a display screen, and during the execution of the method for outputting feedback status information, the display screen may be in a state where the target application cannot receive screen touch events; the target application is an application for outputting the feedback status information.
[0122] In actual application, taking a mobile terminal, specifically a mobile phone, as an example, based on the solution of the embodiments of this specification, optionally, when the mobile phone is placed with the screen facing down, even if the user cannot see the wooden fish icon in the target application, the experience of knocking the wooden fish can be achieved, which not only reduces the power consumption caused by the mobile phone displaying the wooden fish icon for the user and responding to the user's touch operation, but also avoids the stimulation of the light of the display screen to the user's eyes, and at the same time makes the user's knocking operation more convenient, achieving multiple effects at one stroke.
[0123] In actual application, optionally, when the wooden fish application is running in the background, for example, when the screen is off, it can still receive the user's wooden fish knocking operation, regardless of whether the user knocks on the front or back of the phone. This not only reduces the power consumption caused by the phone displaying the wooden fish icon and responding to the user's touch operation, but also avoids the light from the display screen irritating the user's eyes. At the same time, it also makes the user's knocking operation more convenient, achieving multiple effects at one stroke.
[0124] In actual application, optionally, when the wooden fish application is running in the background, for example, when the user is using other applications in the foreground (for example, information browsing applications, etc.), it does not prevent the user from continuing to perform the operation of knocking the wooden fish. This not only reduces the power consumption caused by the mobile phone displaying the wooden fish icon for the user and responding to the user's touch operation, but also makes it easier for the user to handle other business while knocking the wooden fish, providing convenience for the user.
[0125] In one or more embodiments of the present specification, it is taken into account that the user may still wish to perform the wooden fish knocking operation in a traditional way in some scenarios, that is, it is necessary to knock the wooden fish by touching the wooden fish icon displayed in the wooden fish application. In actual application, optionally, the method for outputting feedback status information provided in the embodiments of the present application can be executed only when the screen of the mobile terminal is facing downward.
[0126] Specifically, data collected by a distance sensor of the mobile terminal may be used to determine whether the mobile terminal is in a screen-downward state.
[0127] Furthermore, before judging whether the vibration state data satisfies the preset knocking determination condition, it may also include: obtaining distance data collected by a distance sensor; the distance data is used to reflect the distance between the mobile terminal and an object outside the mobile terminal; then determining the screen blocking state of the mobile terminal according to the distance data; the screen blocking state includes a blocked state or an unblocked state. Accordingly, judging whether the vibration state data satisfies the preset knocking determination condition may specifically include: if the screen blocking state is specifically a blocked state, judging whether the vibration state data satisfies the preset knocking determination condition.
[0128] In actual application, if the screen blocking state of the mobile terminal is specifically the blocked state, it can be inferred that the mobile terminal is in the screen-down state. Optionally, in order to improve the accuracy of the judgment result of determining whether the mobile terminal is in the screen-down state, the distance data collected by the distance sensor and the acceleration data collected by the acceleration sensor can also be used in combination. Specifically, when it is determined based on the second acceleration component and the third acceleration component that the use state of the mobile terminal is the screen horizontal state, and when it is determined based on the distance data collected by the distance sensor that the screen blocking state of the mobile terminal is specifically the blocked state, it can be determined that the mobile terminal is in the screen-down state.
[0129] Optionally, after determining the screen blocking state of the mobile terminal according to the distance data, the method may further include: if the screen blocking state is specifically an unblocked state, determining whether the target application is in a state unable to receive screen touch events, and obtaining a touchable state judgment result; the target application is an application for outputting the feedback state information; accordingly, determining whether the vibration state data satisfies a preset tapping judgment condition may specifically include: if the touchable state judgment result indicates that the target application is in a state unable to receive screen touch events, determining whether the vibration state data satisfies a preset tapping judgment condition.
[0130] In actual application, if the screen blocking state of the mobile terminal is specifically unblocked, but the target application is in a state where it cannot receive screen touch events, it can be inferred that the user is using the mobile terminal to view other applications in the foreground. In this case, based on the solution of the embodiment of this specification, the effect of the user using the mobile terminal as a wooden fish can also be achieved.
[0131] The various technical features in the above embodiments can be combined arbitrarily as long as there is no conflict or contradiction between the combinations of features. However, due to space limitations, they are not described one by one. Therefore, any combination of the various technical features in the above embodiments also falls within the scope of this specification.
[0132] Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method.
[0133] Figure 6 The embodiments of this specification provide corresponding to Figure 3 A structural diagram of a device for outputting feedback status information.
[0134] like Figure 6 As shown, the device is applied to a mobile terminal and may include: The vibration state data acquisition module 602 is used to acquire vibration state data collected by the sensor; the vibration state data is generated based on the mobile terminal being struck by an object outside the mobile terminal; A knock determination module 604 is used to determine whether the vibration state data meets a preset knock determination condition and obtain a knock determination result; The feedback status information output module 606 is used to trigger the feedback device to output feedback status information for imitating the wooden fish being struck if the knocking judgment result indicates that the vibration status data meets the preset knocking judgment condition.
[0135] based on Figure 6 The present specification also provides some specific implementation schemes of the method, which are described below.
[0136] Optionally, the device for outputting feedback status information may also include: an access operation acquisition module, used to obtain the user's access operation on the target application; a registration module, used to register a sensor event listener in response to the access operation; the sensor event listener is used to provide vibration status data detected by the sensor.
[0137] Optionally, the frequency at which the sensor event listener provides vibration status data is greater than or equal to a value of SENSOR_DELAY_UI preset in the operating system of the mobile terminal.
[0138] Optionally, the vibration state data includes first acceleration component data; the first acceleration component data is first acceleration component data along the z-axis direction; the z-axis direction is a direction perpendicular to the plane where the screen of the mobile terminal is located; the tapping judgment module 604 can be specifically used to: determine whether the first acceleration component data meets a preset tapping judgment condition.
[0139] Optionally, the first acceleration component data includes a first sequence and a second sequence; the second sequence includes a first acceleration value component collected within a preset time range before the current moment; the first sequence includes a first acceleration value component collected within the preset time range before the start moment of the second sequence; the knocking judgment module 604 can be specifically used to: calculate the first variance of each first acceleration component value included in the first sequence; calculate the second variance of each first acceleration component value included in the second sequence; judge whether the first variance is greater than or equal to a preset variance threshold and the second variance is less than the variance threshold, and obtain a variance judgment result. Correspondingly, the feedback state information output module 606 can be specifically used to: if the variance judgment result indicates that the first variance is greater than or equal to a preset variance threshold and the second variance is less than the variance threshold, then trigger the feedback device to output feedback state information for imitating the wooden fish being knocked.
[0140] Optionally, after the determination of whether the first variance is greater than or equal to a preset variance threshold and the second variance is less than the variance threshold, and the variance determination result is obtained, it may also include: if the variance determination result indicates that the first variance is greater than or equal to a preset variance threshold and the second variance is less than the variance threshold, then calculating the ratio of the first variance to the second variance; and determining whether the ratio is greater than or equal to a preset ratio threshold, and obtaining a ratio determination result. Accordingly, the feedback status information output module 606 may be specifically used to: if the ratio determination result indicates that the ratio is greater than or equal to a preset ratio threshold, then trigger the feedback device to output feedback status information for imitating the wooden fish being struck.
[0141] Optionally, before judging whether the first variance is greater than or equal to a preset variance threshold and the second variance is less than the variance threshold, the method may further include: obtaining a status tag of the mobile terminal; the status tag is used to indicate that the mobile terminal is in a vibration state other than a tapped state; judging whether the mobile terminal is in a preset vibration state according to the status tag, and obtaining a vibration state judgment result. Accordingly, judging whether the first variance is greater than or equal to a preset variance threshold and the second variance is less than the variance threshold may specifically include: if the vibration state judgment result indicates that the mobile terminal is not in a preset vibration state, judging whether the first variance is greater than or equal to a preset variance threshold and the second variance is less than the variance threshold.
[0142] Optionally, the first acceleration component data also includes a third sequence; the third sequence contains the first acceleration value component collected within the preset time range before the starting time of the first sequence; accordingly, before judging whether the first variance is greater than or equal to a preset variance threshold and the second variance is less than the variance threshold, it can also include: judging whether the first variance corresponding to the first sequence is greater than or equal to the preset variance threshold, and the third variance corresponding to the third sequence is greater than or equal to the variance threshold, to obtain a multi-sequence judgment result; if the multi-sequence judgment result indicates that the first variance corresponding to the first sequence is greater than or equal to the preset variance threshold, and the third variance corresponding to the third sequence is greater than or equal to the variance threshold, then the status label set by the mobile terminal is set to a preset vibration state.
[0143] Optionally, before judging whether the vibration state data meets the preset tapping judgment condition, it may also include: determining the usage state of the mobile terminal; the usage state includes the screen horizontal state or the screen tilted state; obtaining the tapping judgment condition corresponding to the usage state; the tapping judgment condition includes a variance threshold corresponding to the usage state information; the variance threshold corresponding to the screen horizontal state is different from the variance threshold corresponding to the screen tilted state.
[0144] Optionally, the obtaining of vibration state data collected by the sensor may specifically include: obtaining acceleration data collected by an acceleration sensor; the acceleration data includes second acceleration component data along the x-axis direction and third acceleration component data along the y-axis direction; the x-axis direction and the y-axis direction are directions perpendicular to each other within the plane where the screen of the mobile terminal is located; accordingly, the determining of the usage state of the mobile terminal; the usage state includes a horizontal screen state or a tilted screen state, may specifically include: for a specified moment, if the absolute value of the second acceleration component is less than a detection critical value and the absolute value of the third acceleration component is less than the detection critical value, then determining that the usage state of the mobile terminal is a horizontal screen state; if only one of the absolute value of the second acceleration component and the absolute value of the third acceleration component data is greater than or equal to the detection critical value, then determining that the usage state of the mobile terminal is a tilted screen state.
[0145] Optionally, after determining whether the vibration state data satisfies a preset knocking determination condition and obtaining a knocking determination result, the process may further include: if the knocking determination result indicates that the vibration state data satisfies a preset knocking determination condition, updating the knocking data.
[0146] Optionally, the feedback device may include an audio output device; accordingly, the feedback status information output module 606 may be specifically used to: trigger the audio output device in the mobile terminal to emit a sound effect for imitating the striking of a wooden fish.
[0147] Optionally, the feedback device may include a vibration device; accordingly, the feedback status information output module 606 may be specifically used to: trigger the vibration device in the mobile terminal to emit vibrations for imitating the striking of a wooden fish.
[0148] Optionally, the mobile terminal may have a display screen, and during the execution of the method for outputting feedback status information, the display screen is in a state where a target application cannot receive screen touch events; the target application is an application for outputting the feedback status information.
[0149] Optionally, before judging whether the vibration state data satisfies a preset tapping determination condition, it may also include: acquiring distance data collected by a distance sensor; the distance data is used to reflect the distance between the mobile terminal and an object outside the mobile terminal; determining a screen blocking state of the mobile terminal according to the distance data; the screen blocking state includes a blocked state or an unblocked state; the tapping determination module 604 may be specifically used for: if the screen blocking state is specifically a blocked state, then judging whether the vibration state data satisfies a preset tapping determination condition.
[0150] Optionally, after determining the screen blocking state of the mobile terminal according to the distance data, the method may further include: if the screen blocking state is specifically an unblocked state, determining whether the target application is in a state where it cannot receive screen touch events, and obtaining a touchable state determination result; the target application is an application for outputting the feedback state information; the tapping determination module 604 may be specifically used for: if the touchable state determination result indicates that the target application is in a state where it cannot receive screen touch events, determining whether the vibration state data satisfies a preset tapping determination condition.
[0151] It is understood that the above modules refer to computer programs or program segments for executing one or more specific functions. In addition, the distinction between the above modules does not mean that the actual program codes must also be separated.
[0152] The above is a schematic scheme of a device for outputting feedback status information of this embodiment. It should be noted that the technical scheme of the device for outputting feedback status information and the technical scheme of the method for outputting feedback status information belong to the same concept, and the details not described in detail in the technical scheme of the device for outputting feedback status information can be referred to the description of the technical scheme of the method for outputting feedback status information.
[0153] Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method.
[0154] Figure 7 The embodiments of this specification provide corresponding to Figure 3 A schematic diagram of the structure of a mobile terminal device. Figure 7 As shown, the device 700 may include: at least one processor 710; and, A memory 730 in communication with the at least one processor; wherein, The memory 730 stores instructions 720 that can be executed by the at least one processor 710. The instructions are executed by the at least one processor 710 to enable the at least one processor 710 to: Acquire vibration state data collected by a sensor; the vibration state data is generated based on the mobile terminal being struck by an object outside the mobile terminal; Determining whether the vibration state data meets a preset knocking determination condition, and obtaining a knocking determination result; If the knocking judgment result indicates that the vibration state data meets the preset knocking judgment condition, the feedback device is triggered to output feedback state information for imitating the knocking of the wooden fish.
[0155] The above is a schematic scheme of a mobile terminal device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the method for outputting feedback status information above belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the method for outputting feedback status information above.
[0156] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the device and equipment embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments. The devices, equipment and methods provided in the embodiments of this specification correspond to each other, so the devices and equipment also have beneficial technical effects similar to the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the corresponding devices and equipment will not be repeated here.
[0157] The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0158] In the 1990s, it was very clear whether the improvement of a technology was hardware improvement (for example, improvement of the circuit structure of diodes, transistors, switches, etc.) or software improvement (improvement of the method flow). However, with the development of technology, many improvements of the method flow today can be regarded as direct improvements of the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented with a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming themselves, without having to ask chip manufacturers to design and make dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one kind of HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0159] The controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, and the memory controller may also be implemented as part of the control logic of the memory. It is also known to those skilled in the art that, in addition to implementing the controller in a purely computer-readable program code manner, the controller may be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller may be considered as a hardware component, and the devices for implementing various functions included therein may also be considered as structures within the hardware component. Or even, the devices for implementing various functions may be considered as both software modules for implementing the method and structures within the hardware component.
[0160] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0161] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0162] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0163] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0164] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0165] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0166] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0167] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0168] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined in this article, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0169] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0170] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0171] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for outputting feedback status information, applied to a mobile terminal, comprising: Obtain vibration state data collected by the sensor; The vibration state data is generated based on an object outside the mobile terminal striking the mobile terminal; Determining whether the vibration state data meets a preset knocking determination condition, and obtaining a knocking determination result; If the knocking judgment result indicates that the vibration state data meets the preset knocking judgment condition, the feedback device is triggered to output feedback state information for imitating the knocking of the wooden fish.
2. The method according to claim 1, before acquiring the vibration state data collected by the sensor, further comprising: Obtain the user's access operations on the target application; In response to the access operation, registering a sensor event listener; The sensor event listener is used to provide vibration state data detected by the sensor.
3. The method of claim 2, wherein: The frequency at which the sensor event listener provides vibration status data is greater than or equal to a value of SENSOR_DELAY_UI preset in the operating system of the mobile terminal.
4. The method according to claim 1, wherein the vibration state data comprises first acceleration component data; the first acceleration component data is first acceleration component data along the z-axis direction; the z-axis direction is a direction perpendicular to the plane where the screen of the mobile terminal is located; and the determining whether the vibration state data satisfies a preset tapping determination condition specifically comprises: Determine whether the first acceleration component data meets a preset tapping determination condition.
5. The method according to claim 4, wherein the first acceleration component data comprises a first sequence and a second sequence; the second sequence comprises a first acceleration value component collected within a preset time range before the current moment; the first sequence comprises a first acceleration value component collected within the preset time range before the start moment of the second sequence; The determining whether the first acceleration component data satisfies a preset knock determination condition specifically includes: Calculating a first variance of each first acceleration component value included in the first sequence; Calculating a second variance of each first acceleration component value included in the second sequence; Determine whether the first variance is greater than or equal to a preset variance threshold and the second variance is less than the variance threshold, and obtain a variance determination result; If the knocking judgment result indicates that the vibration state data meets the preset knocking judgment condition, the feedback device is triggered to output feedback state information for imitating the knocking of the wooden fish, which specifically includes: If the variance judgment result indicates that the first variance is greater than or equal to a preset variance threshold and the second variance is less than the variance threshold, the feedback device is triggered to output feedback status information for imitating the wooden fish being struck.
6. The method according to claim 5, wherein after determining whether the first variance is greater than or equal to a preset variance threshold and the second variance is less than the variance threshold, obtaining the variance determination result, further comprises: If the variance judgment result indicates that the first variance is greater than or equal to a preset variance threshold and the second variance is less than the variance threshold, calculating a ratio of the first variance to the second variance; Determine whether the ratio is greater than or equal to a preset ratio threshold, and obtain a ratio determination result; If the knocking judgment result indicates that the vibration state data meets the preset knocking judgment condition, the feedback device is triggered to output feedback state information for imitating the knocking of the wooden fish, which specifically includes: If the ratio judgment result indicates that the ratio is greater than or equal to a preset ratio threshold, the feedback device is triggered to output feedback status information for imitating the wooden fish being struck.
7. The method according to claim 5, before determining whether the first variance is greater than or equal to a preset variance threshold and the second variance is less than the variance threshold, further comprising: Acquire a status tag of the mobile terminal; The state label is used to indicate that the mobile terminal is in a vibration state other than a tapped state; According to the state tag, determining whether the mobile terminal is in a preset vibration state, and obtaining a vibration state determination result; The determining whether the first variance is greater than or equal to a preset variance threshold and the second variance is less than the variance threshold specifically includes: If the vibration state determination result indicates that the mobile terminal is not in a preset vibration state, it is determined whether the first variance is greater than or equal to a preset variance threshold and the second variance is less than the variance threshold.
8. The method according to claim 7, wherein the first acceleration component data further comprises a third sequence; the third sequence comprises the first acceleration value component collected within the preset time range before the start time of the first sequence; Before determining whether the first variance is greater than or equal to a preset variance threshold and the second variance is less than the variance threshold, the method further includes: Determine whether the first variance corresponding to the first sequence is greater than or equal to a preset variance threshold, and whether the third variance corresponding to the third sequence is greater than or equal to the variance threshold, and obtain a multi-sequence determination result; If the multi-sequence judgment result indicates that the first variance corresponding to the first sequence is greater than or equal to a preset variance threshold, and the third variance corresponding to the third sequence is greater than or equal to the variance threshold, the state label set by the mobile terminal is set to a preset vibration state.
9. The method according to claim 1, before determining whether the vibration state data satisfies a preset knocking determination condition, further comprising: Determining a usage status of the mobile terminal; The use state includes a screen horizontal state or a screen tilted state; Acquire a tap determination condition corresponding to the usage state; the tap determination condition includes a variance threshold corresponding to the usage state information; the variance threshold corresponding to the horizontal state of the screen is different from the variance threshold corresponding to the tilted state of the screen.
10. The method according to claim 9, wherein the step of obtaining vibration state data collected by the sensor comprises: Acquire acceleration data collected by the acceleration sensor; the acceleration data includes second acceleration component data along the x-axis direction and third acceleration component data along the y-axis direction; The x-axis direction and the y-axis direction are directions perpendicular to each other within the plane where the screen of the mobile terminal is located; Determining the usage status of the mobile terminal; The use state includes a screen horizontal state or a screen tilted state, specifically including: At a specified moment, if the absolute value of the second acceleration component is less than a detection threshold value and the absolute value of the third acceleration component is less than the detection threshold value, determining that the use state of the mobile terminal is a screen horizontal state; If only one of the absolute value of the second acceleration component and the absolute value of the third acceleration component data is greater than or equal to the detection threshold value, it is determined that the use state of the mobile terminal is a screen tilt state.
11. The method according to claim 1, wherein after determining whether the vibration state data satisfies a preset knocking determination condition and obtaining a knocking determination result, the method further comprises: If the knocking determination result indicates that the vibration state data meets the preset knocking determination condition, the knocking data is updated.
12. The method according to claim 1, wherein the feedback device comprises an audio output device; and the triggering feedback device outputs feedback status information for imitating the striking of a wooden fish, specifically comprising: The audio output device in the mobile terminal is triggered to emit a sound effect for imitating the striking of a wooden fish.
13. The method according to claim 1, wherein the feedback device comprises a vibration device; and the triggering feedback device outputs feedback status information for imitating the striking of a wooden fish, specifically comprising: The vibration device in the mobile terminal is triggered to emit vibrations for imitating the striking of a wooden fish.
14. According to the method described in any one of claims 1 to 13, the mobile terminal has a display screen, and during the execution of the method for outputting feedback status information, the display screen is in a state where the target application cannot receive screen touch events; the target application is an application used to output the feedback status information.
15. The method according to claim 1, before determining whether the vibration state data satisfies a preset knocking determination condition, further comprising: Get the distance data collected by the distance sensor; The distance data is used to reflect the distance between the mobile terminal and an object outside the mobile terminal; Determining a screen blocking state of the mobile terminal according to the distance data; The screen blocking state includes a blocked state or an unblocked state; The determining whether the vibration state data satisfies a preset knocking determination condition specifically includes: If the screen blocking state is specifically a blocked state, it is determined whether the vibration state data satisfies a preset tapping determination condition.
16. The method according to claim 15, after determining the screen blocking state of the mobile terminal according to the distance data, further comprising: If the screen blocking state is specifically an unblocked state, determining whether the target application is in a state where it cannot receive screen touch events, and obtaining a touchable state determination result; The target application is an application for outputting the feedback status information; The determining whether the vibration state data satisfies a preset knocking determination condition specifically includes: If the touchable state determination result indicates that the target application is in a state where it cannot receive a screen touch event, it is determined whether the vibration state data satisfies a preset tap determination condition.
17. A device for outputting feedback status information, applied to a mobile terminal, comprising: A vibration state data acquisition module is used to acquire vibration state data collected by the sensor; The vibration state data is generated based on an object outside the mobile terminal striking the mobile terminal; A knocking judgment module, used to judge whether the vibration state data meets a preset knocking judgment condition and obtain a knocking judgment result; The feedback state information output module is used to trigger the feedback device to output feedback state information for imitating the wooden fish being struck if the knocking judgment result indicates that the vibration state data meets the preset knocking judgment condition.
18. A mobile terminal device, comprising: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Acquire vibration state data collected by a sensor; the vibration state data is generated based on the mobile terminal being struck by an object outside the mobile terminal; Determining whether the vibration state data meets a preset knocking determination condition, and obtaining a knocking determination result; If the knocking judgment result indicates that the vibration state data meets the preset knocking judgment condition, the feedback device is triggered to output feedback state information for imitating the knocking of the wooden fish.
Citation Information
Patent Citations
Fiber Bragg grating perimeter intrusion pattern recognition method and system
CN103345808A
Interactive operation facility
CN110737325A
Intelligent electric percussion instrument
CN113611264A
Touch detection method and device and storage medium
CN115480666A
Method for operating a hearing device and hearing system comprising such a hearing device
CN118474650A