CN113163055B - Vibration adjusting method and device, storage medium and electronic equipment - Google Patents

Vibration adjusting method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113163055B
CN113163055B CN202110438451.3A CN202110438451A CN113163055B CN 113163055 B CN113163055 B CN 113163055B CN 202110438451 A CN202110438451 A CN 202110438451A CN 113163055 B CN113163055 B CN 113163055B
Authority
CN
China
Prior art keywords
intensity
light
parameter
vibration
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110438451.3A
Other languages
Chinese (zh)
Other versions
CN113163055A (en
Inventor
彭锦川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110438451.3A priority Critical patent/CN113163055B/en
Publication of CN113163055A publication Critical patent/CN113163055A/en
Application granted granted Critical
Publication of CN113163055B publication Critical patent/CN113163055B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses a vibration adjusting method, a device, a storage medium and electronic equipment, wherein the method comprises the following steps: detecting a relative position state aiming at an entity object, acquiring a current environment light parameter, and determining a current target environment based on the relative position state and the environment light parameter; and acquiring intensity adjusting information corresponding to the target environment, and adjusting the vibration intensity of the equipment based on the intensity adjusting information. By adopting the embodiment of the application, the accuracy of vibration adjustment can be improved.

Description

Vibration adjusting method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for adjusting vibration, a storage medium, and an electronic device.
Background
With the rapid development of communication technologies, application scenarios of terminals such as mobile phones and tablet computers become more and more popular. And (4) a terminal. In many different use scenarios, a user has different requirements for setting a terminal, for example, when the user is in a meeting, ringing of a mobile phone when the mobile phone is in a call can seriously affect the progress of the meeting, and in order to keep quiet, the mobile phone is changed into a vibration mode, and call reminding is performed in a vibration mode. For another example, when the user uses the electronic book in the mobile phone to read carefully in a quiet environment, the terminal may be set to a vibration state, perform notification reminding in a vibration manner, and the like.
Disclosure of Invention
The embodiment of the application provides a vibration adjusting method, a device, a storage medium and electronic equipment, and the technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a vibration adjusting method, where the method includes:
detecting the relative position state of the entity object, and acquiring the current ambient light parameter;
determining a current target environment based on the relative position state and the ambient light parameter;
and acquiring intensity adjusting information corresponding to the target environment, and adjusting the vibration intensity of the equipment based on the intensity adjusting information.
In a second aspect, an embodiment of the present application provides a shock adjustment apparatus, including:
the parameter acquisition module is used for detecting the relative position state of the entity object and acquiring the current ambient light parameter;
the environment determining module is used for determining the current target environment based on the relative position state and the environment light parameter;
and the intensity adjusting module is used for acquiring intensity adjusting information corresponding to the target environment and adjusting the vibration intensity of the equipment based on the intensity adjusting information.
In a third aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-mentioned method steps.
In a fourth aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
The beneficial effects brought by the technical scheme provided by some embodiments of the application at least comprise:
in one or more embodiments of the present application, a terminal detects a relative position state for an entity object, acquires a current ambient light parameter, and then determines a current target environment based on the relative position state and the ambient light parameter; and then obtaining intensity adjustment information corresponding to the target environment, and adjusting the vibration intensity of the equipment based on the intensity adjustment information. This application is under the condition that does not increase hardware cost and consumption, can avoid the terminal to carry out the during operation with acquiescence vibration intensity, and the not good problem of effect is reminded to not intelligence to vibrations, and the terminal has realized that vibration intensity is based on practical application environment or scene self-adaptation, and the vibration intensity at terminal can be followed scene change and realize self-adaptation regulation, and vibrations are adjusted "intelligence" more, has promoted user's sense of vibration and has experienced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a vibration adjusting method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of an environment mapping relationship provided in an embodiment of the present application;
FIG. 3 is a schematic flow chart of another vibration adjustment method provided in the embodiments of the present application;
FIG. 4 is a schematic flow chart of another vibration adjustment method provided in the embodiment of the present application;
FIG. 5 is a schematic structural diagram of a vibration control device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a parameter obtaining module according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a state determination unit provided in an embodiment of the present application;
fig. 8 is a schematic structural diagram of an environment determination module according to an embodiment of the present application;
FIG. 9 is a schematic structural diagram of a vibration control device according to an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
FIG. 11 is a schematic structural diagram of an operating system and a user space provided in an embodiment of the present application;
FIG. 12 is an architectural diagram of the android operating system of FIG. 10;
FIG. 13 is an architectural diagram of the IOS operating system of FIG. 10.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In the description of the present application, it is noted that, unless explicitly stated or limited otherwise, "including" and "having" and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The present application will be described in detail with reference to specific examples.
In one embodiment, as shown in fig. 1, a shock-conditioning method is proposed, which can be implemented by means of a computer program and can be run on a shock-conditioning device based on the von neumann architecture. The computer program may be integrated into the application or may run as a separate tool-like application. The vibration adjusting device may be a terminal device, including but not limited to: personal computers, tablet computers, handheld devices, in-vehicle devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and the like. The terminal devices in different networks may be called different names, for example: user equipment, access terminal, subscriber unit, subscriber station, mobile station, remote terminal, mobile device, user terminal, wireless communication device, user agent or user equipment, cellular telephone, cordless telephone, terminal equipment in a 5G network or future evolution network, and the like.
Specifically, the vibration adjusting method includes:
s101: detecting the relative position state of the entity object, and acquiring the current ambient light parameter;
the entity object can be a user of the terminal or an individual with mobile capability.
The ambient light parameter includes, but is not limited to, ambient light intensity, ambient light color temperature, ambient light brightness, spectrum of ambient light.
Specifically, the terminal may be configured with at least one sensor for sensing ambient light, and the ambient light in the environment where the terminal is located may be collected by the sensor to obtain an ambient light parameter, for example, when the sensor has a color temperature sensing function, the sensor may obtain a color temperature of the ambient light in a sensor detection area of the terminal; and/or when the sensor has a color sensing function, the sensor can acquire the spectrum of the ambient light in the sensor detection area of the terminal; and/or when the sensor has a brightness sensing function, the light sensor can acquire the ambient light brightness of a sensor detection area of the screen; and/or, when the sensor has an intensity sensing function, the sensor can acquire the intensity of the ambient light of the sensor detection area of the terminal, and so on.
In a possible implementation manner, when the terminal is in the sleep mode, for example, the terminal is in the screen-saving state, the terminal may turn on a detection function for the entity object, so as to sense whether the entity object is close to the terminal, that is, sense a relative position state for the entity object (for example, a user of the terminal), and then determine that the terminal is equivalent to the relative position state of the entity object, and then in the process of detecting the relative position state, the terminal may synchronously or asynchronously obtain a current ambient light parameter, for example, obtain a fit of at least one of parameters of an ambient light intensity, an ambient light color temperature, an ambient light brightness, and an ambient light spectrum of an environment where the terminal is located.
In practical implementation, when the terminal is configured in a factory, the terminal usually has a function of adjusting the vibration intensity of a vibration device (such as a vibration motor), but the vibration intensity of a gear is generally selected when the terminal is shipped, and when a user encounters a call or an information notification and other scenes, due to the fact that the vibration intensity is too small, an entity object such as the user misses the call or the information notification, and further, due to the fact that the vibration intensity is too large, the use experience of the user is affected due to vibration interference.
Specifically, the terminal detects a relative position state for the entity object, where the relative position state includes, but is not limited to, "a proximity state for the entity object, generally the entity object is in a range close to the terminal," and a distance state for the entity object, generally the entity object is in a range far from the terminal.
In a possible implementation manner, the terminal may have an environment image collecting function, and an environment image of an environment where the terminal is located is collected through an internal image collecting device or an external image collecting device, where the image collecting device may be one or more cameras. Under the condition that the number of the cameras is multiple, the cameras can be distributed at different positions to form a camera array, the terminal acquires an environment image collected by each camera through the camera array, the environment images collected by the channels are combined to obtain a high-fidelity environment image, and if the image features of multiple environment images are extracted, the environment features with higher quality in the images are extracted by adopting a multi-frame synthesis technology to perform image synthesis processing, so that the environment images with higher quality are obtained. Whether a physical object (such as a user of the terminal) and/or a relative range of the physical object exist is detected based on the environment image, and based on this, a relative position state for the physical object, such as a proximity state for the physical object or a distant state for the physical object, can be determined.
In a specific implementation scenario, the terminal may externally emit a light detection signal for the physical object through the sensor, and implement the relative position state of the physical object based on the light detection signal. The light detection signal can be emitted by a light emitting unit, and the light emitting unit is matched with a light sensing unit for use, so that the relative position state of the entity object is monitored. In some embodiments, the light emitting unit may be a hybrid integrated module or a monolithically integrated component with a light emitting function, which is composed of a light source (laser or light emitting diode) and its driving circuit; the light emitting unit may be a laser emitter, a light emitting diode, an infrared light emitter, or the like. The light sensing unit can collect light rays in the environment where the terminal is located in real time or periodically during working, when the light emitting unit is used in cooperation, the light emitting unit can emit the light rays outwards according to preset working emission parameters (such as emission intensity, amplitude-frequency parameters, emission angle and the like), in addition, when an entity object is positioned on a light path of a light detection signal, the light detection signal can be sent to the entity object at the moment to generate a reflection effect with the entity object, so that a light signal (namely a reflection signal) after the reflection effect is generated, in addition, the light path of the light signal conforms to the reflection principle in the related technology, so that the reflected light path is re-determined and outwards transmitted along the light path, in the application, if the entity object is in an approaching state, the reflection signal can be transmitted along the light path, and at the moment, the sensing range of the configured light sensing unit can cover a certain range when being configured, this may collect a light sensing signal corresponding to the light detection signal, where the light sensing signal includes a reflection signal generated when the light detection signal is reflected by the physical object.
In addition, in the present application, based on the detection of the relative position state, the proximity state for the physical object may be determined not based on the light emission signal to calculate the relative distance, but based on the signal characteristic parameters (such as signal intensity, signal frequency, etc.) corresponding to the light sensing signal; the relative position state includes a position close state and a position distant state.
Furthermore, the terminal can realize accurate judgment of the relative position state of the entity object by acquiring the signal intensity value of the light sensing signal and combining a preset intensity threshold value, so as to avoid misjudgment of objects such as walls, obstacles and the like.
When the signal intensity value is larger than an intensity threshold value, determining that the entity object is in a position approaching state;
and when the signal intensity value is smaller than the intensity threshold value, determining that the entity object is in a position far state.
The strength threshold is a threshold value or a critical value set for the signal strength value, and can be obtained by combining the setting with the terminal practical application environment to collect a large amount of sample data and analyze the sample data.
In the foregoing process of determining the relative position state for the entity object, the terminal may synchronously or asynchronously obtain the current ambient light parameter, such as obtaining a fit of at least one of the ambient light intensity, the ambient light color temperature, the ambient light brightness, and the spectrum of the ambient light of the environment where the terminal is located. Therefore, the use scene where the entity object (such as a user of the terminal) is located is judged based on the relative position state and the ambient light parameter, and the vibration intensity of the terminal is intelligently adjusted based on the use scene.
S102: determining a current target environment based on the relative position state and the ambient light parameter;
in practical application, an environment mapping relationship between the relative position state and the ambient light parameter and at least one reference environment may be established in advance, a group of the relative position state and the ambient light parameter may correspond to one reference environment, and the environment mapping relationship may be represented in the form of an environment mapping set, an environment mapping table, an array, or the like in practical implementation. After determining the relative position state and the ambient light parameter, the terminal may determine a target environment in which the terminal is currently located based on the environment mapping relationship, and then perform vibration adjustment based on the target environment.
Schematically, as shown in fig. 2, fig. 2 is a schematic diagram of an environment mapping relationship, in fig. 2, the environment mapping relationship of a plurality of reference environments and "relative position states and environment light parameters" is involved, for example, when the relative position state is a far state and the environment light intensity is less than 10, the target environment currently located is considered to be environment 2 (sleep rest scene); for example, when the relative position state is a close state and the ambient light intensity is less than 10, the target environment is considered to be environment 1 (e.g., in a pocket); for another example, when the relative position state is the distant state, the ambient light intensity is greater than 3000, and the light color temperature is 6000, it is considered that the target environment at present is the environment 3.
In practical applications, the environment mapping relations comprise a reference value relation for at least one environment light parameter, a reference range relation for at least one environment light parameter.
S103: obtaining intensity adjusting information corresponding to the target environment, and adjusting the vibration intensity of the equipment based on the intensity adjusting information
The strength adjustment information is indication information for adjusting a current vibration strength parameter of the terminal, and includes, but is not limited to, a vibration strength indication value, a vibration strength frequency, a vibration amplitude, a vibration period, a vibration duration, a vibration mode, a vibration level, and the like.
In actual implementation, a large number of terminal vibration data samples in a reference environment can be collected in a mathematical analysis mode to be analyzed based on the actual environment where the terminal is located, so that the adjustment mapping relationship of the reference intensity adjustment information corresponding to each reference environment and the reference environment is determined, and the adjustment mapping relationship can be represented in the form of an adjustment mapping set, an adjustment mapping table, an array and the like. In practical application, after the terminal determines the current target environment, the terminal only needs to extract the intensity adjustment information corresponding to the target environment based on the adjustment mapping relation. And then the terminal adjusts the state indicated by the information of the intensity of the default vibration parameter adjusting value corresponding to the current vibration function. For example, taking the strength adjustment information as the vibration strength indication value and the vibration strength frequency as an example, the terminal may adjust the vibration strength indication value and the vibration strength frequency of the default vibration parameter adjustment value corresponding to the current vibration function. The vibration adjusting method is implemented in such a way that the environmental scene where the terminal is located is accurately quantified based on the relative position state and the ambient light parameter, for example, when the terminal is in a pocket of a user, the vibration intensity should be increased in the scene to ensure that the electric energy is sensed by the user. When the user is sleeping, the terminal can reduce the vibration intensity of the short message and the WeChat in the scene to ensure that the user is not beaten and the like. Therefore, the terminal vibration adjustment can be optimized according to the environment scene, so that the condition that the user misses prompts such as incoming calls, information and notifications when the user is in a complex scene is avoided, the efficiency of terminal information prompting is improved, and the condition that reminding is missed is avoided.
In the embodiment of the application, a terminal detects the relative position state of an entity object, acquires the current ambient light parameter, and then determines the current target environment based on the relative position state and the ambient light parameter; and then obtaining intensity adjusting information corresponding to the target environment, and adjusting the vibration intensity of the equipment based on the intensity adjusting information. This application is under the condition that does not increase hardware cost and consumption, can avoid the terminal to carry out the during operation with acquiescence vibration intensity, and the not good problem of effect is reminded to not intelligence to vibrations, and the terminal has realized that vibration intensity is based on practical application environment or scene self-adaptation, and the vibration intensity at terminal can be followed scene change and realize self-adaptation regulation, and vibrations are adjusted "intelligence" more, has promoted user's sense of vibration and has experienced.
Referring to fig. 3, fig. 3 is a schematic flow chart of another embodiment of a vibration adjusting method according to the present application. Specifically, the method comprises the following steps:
s201: and detecting the relative position state of the entity object to acquire the current ambient light parameter.
For details, refer to step S101, which is not described herein again.
S202: obtaining a light parameter threshold for the ambient light parameter;
the optical parameter threshold is a critical value or a threshold value for the environmental optical parameter, and is used for realizing the judgment of the scene environment where the terminal is located by combining the detected relative position state of the entity object.
Specifically, different light parameter thresholds are respectively preset for the types of the ambient light parameters, such as an intensity threshold corresponding to the intensity of ambient light, a color temperature threshold corresponding to the color temperature of ambient light, a brightness threshold corresponding to the brightness of ambient light, a preset spectrum corresponding to the spectrum of ambient light, and the like.
In some implementation scenarios, a plurality of optical parameter thresholds can be set for a certain type of ambient optical parameter, so as to implement accurate determination on the current environment of the terminal, and better distinguish changes of the same type of optical parameter in different environmental scenarios.
S203: and determining the current target environment based on the relative position state, the ambient light parameter and the light parameter threshold.
The ambient light parameters comprise light intensity parameters and light color temperature parameters, and the light parameter threshold comprises an intensity threshold and a color temperature threshold;
in a specific implementation scenario, when the relative position state is a position approaching state and the light intensity parameter is smaller than a first intensity threshold, determining that the current target environment is a first type environment; for example, the first type environment may be an environment related to scene 1 shown in fig. 2, in scene 1, the terminal is usually in a scene where the user is placed in a pocket, and for scene 1, the first type scene may be generalized to a first type scene, in some embodiments, the first type scene may be a scene where the terminal is in a bag or the like, is closed, has insufficient light, and is in proximity of a physical object (user) at this time, and for the decision of the first type scene, it is required to satisfy that the relative position state determined by the terminal for the physical object is a position proximity state, and the light intensity parameter is smaller than a first intensity threshold, and in the case that the aforementioned condition is satisfied, the terminal may be considered to be in the first type scene at present.
Further, in some implementation scenarios, if the terminal is in a first type scenario, the first type scenario corresponds to the first type intensity adjustment information; the first type of intensity adjustment information may be first type of intensity adjustment information that is uniquely distinguished from other intensity adjustment information with respect to at least one of parameters of a vibration intensity indication value, a vibration intensity frequency, a vibration amplitude, a vibration period, a vibration duration, a vibration mode, a vibration level, and the like, and illustratively, the first type of intensity adjustment information may be first type of intensity adjustment information that indicates that the vibration level is adjusted to a first vibration level, such as a strongest vibration level, and the like. Further, the first intensity threshold may be 10Lx in some embodiments.
In a specific implementation scenario, when the relative position state is a position far state and the light intensity parameter is smaller than a first intensity threshold, determining that the current target environment is a second type of environment; for example, the second type of scene may be an environment related to the scene 2 shown in fig. 2, in the scene 2, the terminal is usually in a user rest scene, at this time, the user usually does not use the terminal, and the user is usually in a scene far from the terminal, which is often a scene with insufficient light and is far away from an entity object (user), for the decision of the second type of scene, it needs to be satisfied that the relative position state determined by the terminal for the entity object is a position far state, and the light intensity parameter is smaller than the first intensity threshold, and in the case that the foregoing condition is satisfied, the terminal may be considered to be currently in the first type of scene.
Further, in some implementation scenarios, if the terminal is in a first type scenario, the first type scenario corresponds to the first type intensity adjustment information; the first type of intensity adjustment information may be a second type of intensity adjustment information that is uniquely distinguished from other intensity adjustment information with respect to at least one of parameters of a vibration intensity indication value, a vibration intensity frequency, a vibration amplitude, a vibration period, a vibration duration, a vibration mode, a vibration level, and the like, and illustratively, the first type of intensity adjustment information may be an intensity adjustment information indicating that the vibration level is adjusted to a second vibration level, a weak vibration level, and the like. Further, the first intensity threshold may be 10Lx in some embodiments.
In a specific implementation scenario, when the relative position state is a position distant state, the light intensity parameter is greater than the second intensity threshold, and the light color temperature parameter belongs to a range corresponding to the first color temperature threshold (which may be a color temperature value unit with a color temperature value unit floating up and down on the first color temperature threshold, where a is determined based on an actual application environment), determining that the current target environment is a third type of environment; the third type of scene may be an environment related to the scene 3 shown in fig. 2, in the scene 3, the terminal is usually located in an indoor scene such as an office and a conference room, and lights such as fluorescent lights are usually present in the indoor scene, and for the determination of the third type of scene, it is required to satisfy that the relative position state determined by the terminal is a position away state, the light intensity parameter is greater than the second intensity threshold, and the light color temperature parameter is greater than or equal to the first color temperature threshold, and in the case that the foregoing conditions are satisfied, the terminal may be considered to be currently located in the third type of scene.
Further, in some implementation scenarios, if the terminal is in a third type scenario, the third type scenario corresponds to a third type intensity adjustment information; the third type of intensity adjustment information may be a third type of intensity adjustment information that is uniquely distinguished from other intensity adjustment information with respect to at least one of parameters of a vibration intensity indication value, a vibration intensity frequency, a vibration amplitude, a vibration period, a vibration duration, a vibration mode, a vibration level, and the like, and illustratively, the third type of intensity adjustment information may be an intensity adjustment information indicating that the vibration level is adjusted to a second vibration level, a weak vibration level, and the like. Further, in some embodiments the second intensity threshold may be 3000Lx and the first color temperature threshold is 6000T.
In a specific implementation scenario, when the relative position state is a position far state, the light intensity parameter is greater than a second intensity threshold, and the light color temperature parameter belongs to a range corresponding to a second color temperature threshold (which may be b color temperature value units with the second color temperature threshold floating up and down, and b is determined based on an actual application environment), determining that the current target environment is a first type of environment; determining that a target environment where the current environment is located is a first type environment; a third type of scene as this may be an environment as shown in fig. 2, scene 4 being an environment to which scene 4 relates, in scene 4 the terminal is typically in an outdoor scene, in which typically the color temperature values fall within the range of the second color temperature threshold 5400T and the illumination intensity is typically greater than the second intensity threshold 3000 Lx.
Further, in some implementation scenarios, if the terminal is in a first type scenario, the first type scenario corresponds to the first type intensity adjustment information; the first type intensity adjustment information may be first type intensity adjustment information that is uniquely distinguished from other intensity adjustment information with respect to at least one of parameters of a vibration intensity indication value, a vibration intensity frequency, a vibration amplitude, a vibration period, a vibration duration, a vibration mode, a vibration level, and the like, and illustratively, the first type intensity adjustment information may be first type intensity adjustment information indicating that the vibration level is adjusted to a first vibration level, a strongest vibration level, and the like. Further, the second color temperature threshold may be 5400T in some embodiments.
In a specific implementation scenario, when the relative position state is a position distant state, the light intensity parameter is greater than a third intensity threshold, and the light color temperature parameter belongs to a range corresponding to a third color temperature threshold (which may be C color temperature value units with the third color temperature threshold floating up and down, where C is determined based on an actual application environment), it is determined that the current target environment is a third type of environment. A third type of scenario as this may be an environment as shown in fig. 2, scenario 3, where in scenario 3 the terminal is typically in an indoor scenario such as a study room, where lights such as incandescent lights etc. are typically present indoors.
S204: and acquiring intensity adjusting information corresponding to the target environment, and adjusting the vibration intensity of the equipment based on the intensity adjusting information.
According to some embodiments, the strength adjustment information is indication information for adjusting a current vibration strength parameter of the terminal, including but not limited to a vibration strength indication value, a vibration strength frequency, a vibration amplitude, a vibration period, a vibration duration, a vibration mode, a vibration level, and the like.
In actual implementation, a large number of terminal vibration data samples in a reference environment can be collected in a mathematical analysis mode to be analyzed based on an actual corresponding environment of the terminal, so that an adjustment mapping relation of reference intensity adjustment information corresponding to each type of reference environment (such as a first type environment, a second type environment and a third type environment) and the reference environment (such as the first type environment, the second type environment and the third type environment) is determined, and the adjustment mapping relation can be represented in the form of an adjustment mapping set, an adjustment mapping table, an array and the like. In practical application, after the terminal determines the current target environment, the terminal only needs to extract the intensity adjustment information corresponding to the target environment based on the adjustment mapping relation. And then the terminal adjusts the state indicated by the information of the intensity of the default vibration parameter adjusting value corresponding to the current vibration function. For example, if the strength adjustment information is the vibration strength indication value and the vibration strength frequency, the terminal may use the vibration strength indication value and the vibration strength frequency of the default vibration parameter adjustment value corresponding to the current vibration function. By implementing the vibration adjusting method, the environment scene where the terminal is located is accurately quantized based on the relative position state and the environment light parameters, so that the optimization of the vibration adjustment of the terminal is realized according to the environment scene, the condition that the user misses prompts such as incoming calls, information and notifications when the user is in a complex scene is avoided, the efficiency of prompting the terminal information is improved, and the condition that the prompt is missed is avoided.
In the embodiment of the application, a terminal detects the relative position state of an entity object, acquires the current environment light parameter, and then determines the current target environment based on the relative position state and the environment light parameter; and then obtaining intensity adjustment information corresponding to the target environment, and adjusting the vibration intensity of the equipment based on the intensity adjustment information. This application is under the condition that does not increase hardware cost and consumption, can avoid the terminal to carry out the during operation with acquiescence vibration intensity, and the not good problem of effect is reminded to not intelligence to vibrations, and the terminal has realized that vibration intensity is based on practical application environment or scene self-adaptation, and the vibration intensity at terminal can be followed scene change and realize self-adaptation regulation, and vibrations are adjusted "intelligence" more, has promoted user's sense of vibration and has experienced.
Referring to fig. 4, fig. 4 is a schematic flow chart of another embodiment of a vibration adjusting method according to the present application. Specifically, the method comprises the following steps:
s301: and detecting the relative position state of the entity object to acquire the current ambient light parameter.
For details, refer to step S101, which is not described herein again.
S302: and determining the current target environment based on the relative position state and the environmental light parameter, and acquiring intensity adjustment information corresponding to the target environment.
Specifically, refer to step S102, which is not described herein again.
S303: and acquiring current equipment mode information and notification information in a target time period.
The device mode information is mode information associated with the terminal (execution subject), and includes but is not limited to a contextual mode, an external device mode, a network mode, and the like, where the contextual mode may be a silent mode, a focus mode, a sleep mode, a driving mode, and the like, the external device mode may be a connection/disconnection mode of an external device (such as an external bluetooth headset, a speaker, a watch, and the like), and the network mode may be a mobile data mode, a WiFi mode, and the like.
The notification information includes short message notification information, application notification information and conversation notification information, and the notification information in the target time period is usually a sentence or a combination of sentences with complete and systematic meanings. The text content is exemplified by a Chinese language, and can be a word, a sentence and a paragraph, and the notification information can be an actual application form of daily notification content in a target time period.
The target time period is a time period before a time point of "detecting the relative position state for the entity object", for example, within a preset time before a target time point corresponding to "detecting the relative position state for the entity object", such as 10 minutes before the target time point and 30 minutes before the target time point; the setting is specifically based on the actual application situation.
In this embodiment, in order to achieve the accuracy of the shock adjustment, the erroneous adjustment is avoided. The method includes the steps that not only are the relative position state and the ambient light parameters brought into reference, but also from the scene that a user uses a terminal, based on an individual object, namely the actual use condition of the user, intelligent analysis is conducted through the use behavior of the individual object before the relative position state of the entity object is detected, current equipment mode information and notification information in a target time period are brought into reference, a vibration adjusting mode is determined intelligently, the use behavior of the individual object is mined, the vibration adjusting mode which accords with the use behavior of the individual object is determined, user experience is improved, and misoperation is avoided.
S304: intensity correction processing is carried out on the intensity adjusting information based on the equipment mode information and the notification information to obtain target adjusting information;
specifically, the terminal may obtain all notification information within a target time period (e.g., within 1 hour), extract notification semantic features of the notification information within the target time period by using a semantic extraction algorithm, comprehensively measure a quantization degree of vibration adjustment by combining mode semantic features corresponding to device mode information (e.g., current network is mobile data or WiFi, current contextual mode, and current state (on or off) of an external device), and specifically perform intensity correction processing on intensity adjustment information to realize quantization of vibration adjustment, so as to obtain target adjustment information.
Optionally, the semantic extraction algorithm may be a text feature information extraction method based on a contextual framework, that is, firstly, extraction elements (sentences, words, characters, symbols, and the like) of text content are determined, and then semantic analysis is merged into a statistical algorithm to extract and process the text content, so as to obtain semantic features of the notification information; the method can be a text feature extraction method based On ontology, namely, an ontology (On-topology) model is used for taking the notification information as input and outputting semantic feature information of the notification information; the method may be a conceptual feature extraction method based on the known network, that is, a feature extraction method based on the conceptual feature, where the notification information is subjected to semantic analysis based on a Vector Space Model (VSM), the semantic information of the vocabulary is obtained by using a database of the known network, the vocabularies with the same semantic are mapped to the same concept, then the clustered words are obtained and used as feature items of text vectors of the VSM Model, and then Model operation and the like are performed. The manner of extracting the semantic features of the notification information is many, and may be one or more of the above fits, which is not limited herein.
In a specific implementation scenario, the device mode information, the notification information, and the intensity adjustment information are input into a trained adjustment correction model, in the specific implementation, semantic features (namely, notification semantic features and mode semantic features) are extracted from the device mode information and the notification information, the semantic features and the intensity adjustment information related to notification dimensions and mode dimensions are input into the trained adjustment correction model, and target adjustment information is output; the adjustment correction model is obtained by training data samples corresponding to a plurality of known labeling equipment modes, known labeling notification information and known labeling strength adjustment information.
In practical application, the adjustment correction model may be an adjustment correction analysis algorithm based on Deep learning, such as a fitting implementation of one or more of a Convolutional Neural Network (CNN) model, a Deep Neural Network (DNN) model, a Recurrent Neural Network (RNN) model, a model, an embedding (embedding) model, a Gradient Boosting Decision Tree (GBDT) model, a Logistic Regression (LR) model, and the like, and an error back propagation algorithm is introduced on the basis of an existing Neural Network model for optimization, so that the vibration correction accuracy of the initial adjustment correction model based on the Neural Network model can be improved.
In practical applications, an initial adjustment modification model may be created based on the neural network model CNN, and the adjustment modification model is configured by densely interconnecting simple nonlinear simulation processing elements of each of a plurality of nodes, and is a system model simulating biological neurons. The neural network model is formed by connecting the input of at least one node with the output of each node, similar to the synaptic connections of real neurons. Each neuron expresses a specific output function, the excitation function, and the connection between each two neurons contains a connection strength, i.e. a weight value acting on the signal passing through the connection.
A large amount of sample data containing a plurality of known labeling equipment modes, known labeling notification information and known labeling strength adjustment information (including sample strength adjustment information and correction vibration parameters) can be obtained in advance, the data in the sample data is preprocessed, key features (such as labeling semantic features corresponding to the known labeling equipment modes and the known labeling notification information) in the sample data are extracted, the key features and the sample strength adjustment information are input to an initial adjustment correction model for training on the basis of the labeled strength adjustment information (namely the correction vibration parameters labeled by adjusting the strength adjustment information, such as vibration values needing to be adjusted) of the sample data, and an adjustment correction model after training is obtained, wherein the adjustment correction model has the capabilities of mode information feature extraction, semantic feature knowledge generalization and learning and memory, typically, the information or knowledge learned by the adjustment correction model is stored on the connection matrix between each unit node.
In a specific implementation scenario, a current vibration adjustment mode may be determined based on the intensity adjustment information;
when the vibration adjusting mode is an intensity gain type, the terminal executes the step of acquiring the current equipment mode information and the notification information in the target time period;
when the vibration adjustment mode is not an intensity gain type, the terminal may directly perform step S103.
The intensity gain type may be understood as a type of adjustment based on the intensity adjustment information, in which intensity boosting is performed on the current vibration intensity. E.g., raise n vibration levels, etc. Through the pre-judgment of the vibration regulation type, the vibration effect is generally required to be improved under the condition that the vibration regulation is of the intensity gain type, the judgment is carried out at the moment of misoperation for avoiding scene misjudgment, and the vibration regulation is further optimized by combining the equipment mode dimension and the notification semantic dimension so as to realize the effect of accurate regulation.
S305: and adjusting the vibration intensity of the equipment by taking the target adjustment information as the intensity adjustment information.
Specifically, refer to step S103, which is not described herein again.
In the embodiment of the application, a terminal detects the relative position state of an entity object, acquires the current environment light parameter, and then determines the current target environment based on the relative position state and the environment light parameter; and then obtaining intensity adjusting information corresponding to the target environment, and adjusting the vibration intensity of the equipment based on the intensity adjusting information. This application is under the condition that does not increase hardware cost and consumption, can avoid the terminal to carry out the during operation with acquiescence vibration intensity, and the not good problem of effect is reminded to not intelligence to vibrations, and the terminal has realized that vibration intensity is based on practical application environment or scene self-adaptation, and the vibration intensity at terminal can be followed scene change and realize self-adaptation regulation, and vibrations are adjusted "intelligence" more, has promoted user's sense of vibration and has experienced.
The vibration adjusting device provided in the embodiment of the present application will be described in detail below with reference to fig. 5. It should be noted that, the vibration adjusting device shown in fig. 5 is used for executing the method of the foregoing embodiment of the present application, and for convenience of description, only the relevant portions of the embodiment of the present application are shown, and specific technical details are not disclosed, please refer to the foregoing embodiment of the present application.
Please refer to fig. 5, which shows a schematic structural diagram of the vibration adjusting device according to the embodiment of the present application. The vibration adjusting apparatus 1 may be implemented as all or a part of a user terminal by software, hardware, or a combination of both. According to some embodiments, the vibration adjusting device 1 includes a parameter obtaining module 11, an environment determining module 12, and an intensity adjusting module 13, and is specifically configured to:
a parameter obtaining module 11, configured to detect a relative position state of the entity object, and obtain a current ambient light parameter;
an environment determining module 12, configured to determine a current target environment based on the relative position state and the ambient light parameter;
and the intensity adjusting module 13 is configured to acquire intensity adjusting information corresponding to the target environment, and adjust the vibration intensity of the device based on the intensity adjusting information.
Optionally, as shown in fig. 6, the parameter obtaining module 11 includes:
a signal detecting unit 111, configured to emit a light detection signal for an entity object to the outside, and collect a light sensing signal corresponding to the light detection signal, where the light sensing signal includes a reflection signal generated when the light detection signal is reflected by the entity object;
a state determining unit 112, configured to determine a relative position state for an entity object based on a signal characteristic parameter corresponding to the light sensing signal; the relative position state includes a position approaching state and a position departing state.
Optionally, as shown in fig. 7, the state determining unit 112 includes:
an intensity obtaining subunit 1121, configured to obtain a signal intensity value of the optical sensing signal;
a state determining subunit 1122, configured to determine that the physical object is in a position proximity state when the signal strength value is greater than a strength threshold;
the state determining subunit 1122 is further configured to determine that the physical object is in a distant state when the signal strength value is smaller than the strength threshold.
Optionally, as shown in fig. 8, the environment determining module 12 includes:
a threshold acquisition unit 121 configured to acquire a light parameter threshold for the ambient light parameter;
an environment determining unit 122, configured to determine a current target environment based on the relative position state, the ambient light parameter, and the light parameter threshold.
Optionally, the ambient light parameter includes a light intensity parameter and a light color temperature parameter, and the light parameter threshold includes an intensity threshold and a color temperature threshold;
the environment determining module 12 is specifically configured to:
when the relative position state is a position approaching state and the light intensity parameter is smaller than a first intensity threshold value, determining that the current target environment is a first type environment;
when the relative position state is a position far state and the light intensity parameter is smaller than a first intensity threshold value, determining that the current target environment is a second type environment;
when the relative position state is a position far state, the light intensity parameter is greater than a second intensity threshold value, and the light color temperature parameter is greater than or equal to a first color temperature threshold value, determining that the current target environment is a third type environment;
when the relative position state is a position far state, the light intensity parameter is greater than a second intensity threshold value, and the light color temperature parameter is greater than or equal to a second color temperature threshold value, determining that the current target environment is a first type environment;
and when the relative position state is a position far state, the light intensity parameter is greater than a third intensity threshold value, and the light color temperature parameter is greater than or equal to a third color temperature threshold value, determining that the current target environment is a third type environment.
Optionally, as shown in fig. 9, the apparatus 1 further includes:
the intensity correction module 14 is configured to obtain current device mode information and notification information in a target time period;
the intensity correction module 14 is further configured to perform intensity correction processing on the intensity adjustment information based on the device mode information and the notification information to obtain target adjustment information;
the intensity adjusting module 13 is further configured to adjust the vibration intensity of the device by using the target adjusting information as the intensity adjusting information.
Optionally, the intensity correction module 14 is specifically configured to:
determining a current vibration adjusting mode based on the intensity adjusting information;
intensity correction when the vibration adjustment manner is an intensity gain type, the step of acquiring the current device mode information and the notification information within the target time period is performed.
Optionally, the intensity correction module 14 is specifically configured to:
inputting the equipment mode information, the notification information and the intensity adjustment information into a trained adjustment correction model, and outputting target adjustment information; and the adjusting and correcting model is obtained by training data samples corresponding to a plurality of known labeling equipment modes, known labeling notification information and known labeling strength adjusting information.
It should be noted that, when the vibration adjusting apparatus provided in the foregoing embodiment executes the vibration adjusting method, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules to complete all or part of the functions described above. In addition, the embodiments of the vibration adjusting device and the vibration adjusting method provided in the above embodiments belong to the same concept, and details of implementation processes thereof are shown in the embodiments of the methods, which are not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description, and do not represent the advantages and disadvantages of the embodiments.
In the embodiment of the application, a terminal detects the relative position state of an entity object, acquires the current environment light parameter, and then determines the current target environment based on the relative position state and the environment light parameter; and then obtaining intensity adjusting information corresponding to the target environment, and adjusting the vibration intensity of the equipment based on the intensity adjusting information. This application can avoid the terminal to carry out the during operation with acquiescence vibration intensity under the condition that does not increase hardware cost and consumption, vibrations are reminded not intelligence and are reminded the not good problem of effect, and the terminal has realized that vibration intensity is based on practical application environment or scene self-adaptation, and the vibration intensity at terminal can be followed scene change and realized self-adaptation adjustment, and vibrations are adjusted "intelligence" more, has promoted user's vibration and has felt and experience.
An embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the vibration adjusting method according to the embodiment shown in fig. 1 to 4, and a specific execution process may refer to specific descriptions of the embodiment shown in fig. 1 to 4, which is not described herein again.
The present application further provides a computer program product, where at least one instruction is stored, and the at least one instruction is loaded by the processor and executes the vibration adjusting method according to the embodiment shown in fig. 1 to 4, where a specific execution process may refer to specific descriptions of the embodiment shown in fig. 1 to 4, and is not described herein again.
Referring to fig. 10, a block diagram of an electronic device according to an exemplary embodiment of the present application is shown. The electronic device in the present application may comprise one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, memory 120, input device 130, and output device 140 may be connected by a bus 150.
Processor 110 may include one or more processing cores. The processor 110 connects various parts within the overall electronic device using various interfaces and lines, and performs various functions of the electronic device 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and calling data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), field-programmable gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
The Memory 120 may include a Random Access Memory (RAM) or a read-only Memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable medium. The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like, and the operating system may be an Android (Android) system, including a system based on Android system depth development, an IOS system developed by apple, including a system based on IOS system depth development, or other systems. The data storage area may also store data created by the electronic device during use, such as phone books, audio and video data, chat log data, and the like.
Referring to fig. 11, the memory 120 may be divided into an operating system space, in which an operating system runs, and a user space, in which native and third-party applications run. In order to ensure that different third-party application programs can achieve a better operation effect, the operating system allocates corresponding system resources for the different third-party application programs. However, the requirements of different application scenarios in the same third-party application program on system resources are different, for example, in a local resource loading scenario, the third-party application program has a higher requirement on the disk reading speed; in an animation rendering scene, the third-party application program has a high requirement on the performance of the GPU. The operating system and the third-party application program are independent from each other, and the operating system cannot sense the current application scene of the third-party application program in time, so that the operating system cannot perform targeted system resource adaptation according to the specific application scene of the third-party application program.
In order to enable the operating system to distinguish a specific application scenario of the third-party application program, data communication between the third-party application program and the operating system needs to be opened, so that the operating system can acquire current scenario information of the third-party application program at any time, and further perform targeted system resource adaptation based on the current scenario.
Taking an operating system as an Android system as an example, programs and data stored in the memory 120 are as shown in fig. 12, and a Linux kernel layer 320, a system runtime library layer 340, an application framework layer 360, and an application layer 380 may be stored in the memory 120, where the Linux kernel layer 320, the system runtime library layer 340, and the application framework layer 360 belong to an operating system space, and the application layer 380 belongs to a user space. The Linux kernel layer 320 provides underlying drivers for various hardware of the electronic device, such as a display driver, an audio driver, a camera driver, a bluetooth driver, a Wi-Fi driver, power management, and the like. The system runtime library layer 340 provides main feature support for the Android system through some C/C + + libraries. For example, the SQLite library provides support for a database, the OpenGL/ES library provides support for 3D drawing, the Webkit library provides support for a browser kernel, and the like. Also provided in the system runtime library layer 340 is an Android runtime library (Android runtime), which mainly provides some core libraries that can allow developers to write Android applications using the Java language. The application framework layer 360 provides various APIs that may be used in building an application, and developers may build their own applications by using these APIs, such as activity management, window management, view management, notification management, content provider, package management, session management, resource management, and location management. At least one application program runs in the application layer 380, and the application programs may be native application programs carried by the operating system, such as a contact program, a short message program, a clock program, a camera application, and the like; or a third-party application developed by a third-party developer, such as a game application, an instant messaging program, a photo beautification program, and the like.
Taking an operating system as an IOS system as an example, programs and data stored in the memory 120 are shown in fig. 13, and the IOS system includes: a Core operating system Layer 420(Core OS Layer), a Core Services Layer 440(Core Services Layer), a Media Layer 460(Media Layer), and a touchable Layer 480(Cocoa Touch Layer). The kernel os layer 420 includes an os kernel, drivers, and underlying program frameworks that provide more hardware-like functionality for use by program frameworks located in the kernel services layer 440. The core services layer 440 provides system services and/or program frameworks, such as a Foundation framework, an account framework, an advertisement framework, a data storage framework, a network connection framework, a geographic location framework, a motion framework, and so forth, as required by the application. The media layer 460 provides audiovisual related interfaces for applications, such as graphics image related interfaces, audio technology related interfaces, video technology related interfaces, audio video transmission technology wireless playback (AirPlay) interfaces, and the like. Touchable layer 480 provides various common interface-related frameworks for application development, and touchable layer 480 is responsible for user touch interaction operations on the electronic device. Such as a local notification service, a remote push service, an advertising framework, a game tools framework, a message User Interface (UI) framework, a User Interface UIKit framework, a map framework, and so forth.
In the framework illustrated in FIG. 13, the framework associated with most applications includes, but is not limited to: a base framework in the core services layer 440 and a UIKit framework in the touchable layer 480. The base framework provides many basic object classes and data types, provides the most basic system services for all applications, and is UI independent. While the class provided by the UIKit framework is a basic library of UI classes for creating touch-based user interfaces, iOS applications can provide UIs based on the UIKit framework, so it provides an infrastructure for applications for building user interfaces, drawing, processing and user interaction events, responding to gestures, and the like.
The Android system can be referred to as a mode and a principle for realizing data communication between the third-party application program and the operating system in the IOS system, and details are not repeated herein.
The input device 130 is used for receiving input instructions or data, and the input device 130 includes, but is not limited to, a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 140 is used for outputting instructions or data, and the output device 140 includes, but is not limited to, a display device, a speaker, and the like. In one example, the input device 130 and the output device 140 may be combined, and the input device 130 and the output device 140 are touch display screens for receiving touch operations of a user on or near the touch display screens by using any suitable object such as a finger, a touch pen, and the like, and displaying user interfaces of various applications. Touch displays are typically provided on the front panel of an electronic device. The touch display screen may be designed as a full-face screen, a curved screen, or a profiled screen. The touch display screen can also be designed to be a combination of a full-face screen and a curved-face screen, and a combination of a special-shaped screen and a curved-face screen, which is not limited in the embodiment of the present application.
In addition, those skilled in the art will appreciate that the configurations of the electronic devices illustrated in the above-described figures are not meant to be limiting, and that the electronic devices may include more or fewer components than those shown, or some components may be combined, or different arrangements of components may be used. For example, the electronic device further includes a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (WiFi) module, a power supply, a bluetooth module, and other components, which are not described herein again.
In the embodiment of the present application, the main body of execution of each step may be the electronic device described above. Optionally, the execution subject of each step is an operating system of the electronic device. The operating system may be an android system, an IOS system, or another operating system, which is not limited in this embodiment of the present application.
The electronic device of the embodiment of the present application may further have a display device installed thereon, and the display device may be various devices capable of implementing a display function, for example: a cathode ray tube display (CR), a light-emitting diode display (LED), an electronic ink panel, a Liquid Crystal Display (LCD), a Plasma Display Panel (PDP), and the like. A user may utilize a display device on the electronic device 101 to view information such as displayed text, images, videos, and the like. The electronic device may be a smartphone, a tablet computer, a gaming device, an AR (Augmented Reality) device, an automobile, a data storage device, an audio playback device, a video playback device, a notebook, a desktop computing device, a wearable device such as an electronic watch, an electronic glasses, an electronic helmet, an electronic bracelet, an electronic necklace, an electronic garment, or the like.
In the electronic device shown in fig. 10, which may be a terminal, the processor 110 may be configured to invoke the network optimization application stored in the memory 120 and specifically perform the following operations:
detecting the relative position state of the entity object, and acquiring the current ambient light parameter;
determining a current target environment based on the relative position state and the ambient light parameter;
and acquiring intensity adjusting information corresponding to the target environment, and adjusting the vibration intensity of the equipment based on the intensity adjusting information.
In one embodiment, when performing the detecting of the relative position state of the entity object, the processor 1001 specifically performs the following operations:
externally emitting a light detection signal aiming at a physical object, and collecting a light induction signal corresponding to the light detection signal, wherein the light induction signal comprises a reflection signal generated when the light detection signal is reflected by the physical object;
determining a relative position state aiming at the entity object based on the signal characteristic parameter corresponding to the light sensing signal; the relative position state includes a position approaching state and a position departing state.
In one embodiment, when the processor 1001 determines the relative position state of the physical object based on the signal characteristic parameter corresponding to the light sensing signal, it specifically performs the following operations:
acquiring a signal intensity value of the light sensing signal;
when the signal intensity value is larger than an intensity threshold value, determining that the entity object is in a position approaching state;
and when the signal intensity value is smaller than the intensity threshold value, determining that the entity object is in a position far state.
In one embodiment, when the processor 1001 determines the current target environment based on the relative position state and the ambient light parameter, specifically performs the following operations:
obtaining a light parameter threshold for the ambient light parameter;
and determining the current target environment based on the relative position state, the ambient light parameter and the light parameter threshold.
In one embodiment, the processor 1001 executes the ambient light parameter to include a light intensity parameter and a light color temperature parameter, and the light parameter threshold includes an intensity threshold and a color temperature threshold;
when determining the current target environment based on the relative position state, the ambient light parameter, and the light parameter threshold, specifically performing the following operations:
when the relative position state is a position approaching state and the light intensity parameter is smaller than a first intensity threshold value, determining that the current target environment is a first type environment;
when the relative position state is a position far state and the light intensity parameter is smaller than a first intensity threshold value, determining that the current target environment is a second type environment;
when the relative position state is a position far state, the light intensity parameter is greater than a second intensity threshold value, and the light color temperature parameter is greater than or equal to a first color temperature threshold value, determining that the current target environment is a third type environment;
when the relative position state is a position far state, the light intensity parameter is greater than a second intensity threshold value, and the light color temperature parameter is greater than or equal to a second color temperature threshold value, determining that the current target environment is a first type environment;
and when the relative position state is a position far state, the light intensity parameter is greater than a third intensity threshold value, and the light color temperature parameter is greater than or equal to a third color temperature threshold value, determining that the current target environment is a third type environment.
In one embodiment, after the obtaining of the intensity adjustment information corresponding to the target environment, the processor 1001 further performs the following operations:
acquiring current equipment mode information and notification information in a target time period;
performing intensity correction processing on the intensity adjustment information based on the device mode information and the notification information to obtain target adjustment information;
adjusting the vibration intensity of the equipment based on the intensity adjusting information comprises:
and adjusting the vibration intensity of the equipment by taking the target adjustment information as the intensity adjustment information.
In an embodiment, when the processor 1001 acquires the current device mode information and the notification information in the target time period, it specifically performs the following operations:
determining a current vibration adjusting mode based on the intensity adjusting information;
and when the vibration adjusting mode is an intensity gain type, executing the step of acquiring the current equipment mode information and the notification information in the target time period.
In one embodiment, the processor 1001, in executing the intensity correction processing on the intensity adjustment information based on the device mode information and the notification information to obtain target adjustment information, includes:
inputting the device mode information, the notification information and the intensity adjustment information into a trained adjustment correction model, and outputting target adjustment information; the adjustment correction model is obtained by training data samples corresponding to a plurality of known labeling equipment modes, known labeling notification information and known labeling strength adjustment information.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory or a random access memory.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (9)

1. A method of shock adjustment, the method comprising:
detecting the relative position state of the entity object, and acquiring the current ambient light parameter;
determining a current target environment based on the relative position state and the ambient light parameter;
obtaining intensity adjusting information corresponding to the target environment, and adjusting the vibration intensity of the equipment based on the intensity adjusting information;
adjusting the vibration intensity of the equipment based on the intensity adjusting information comprises:
acquiring current equipment mode information and notification information in a target time period;
performing intensity correction processing on the intensity adjustment information based on the device mode information and the notification information to obtain target adjustment information;
and adjusting the vibration intensity of the equipment by taking the target adjustment information as the intensity adjustment information.
2. The method of claim 1, wherein the detecting a relative position state for a physical object comprises:
externally emitting a light detection signal aiming at an entity object, and collecting a light induction signal corresponding to the light detection signal, wherein the light induction signal comprises a reflection signal generated when the light detection signal is reflected by the entity object;
determining a relative position state aiming at the entity object based on the signal characteristic parameter corresponding to the light sensing signal; the relative position state includes a position close state and a position distant state.
3. The method of claim 2, wherein the determining a relative position status for a physical object based on a signal characteristic parameter corresponding to the light sensing signal comprises:
acquiring a signal intensity value of the light sensing signal;
when the signal intensity value is larger than the intensity threshold value, determining that the entity object is in a position approaching state;
and when the signal intensity value is smaller than the intensity threshold value, determining that the entity object is in a position far state.
4. The method of claim 1, wherein determining the current target environment based on the relative position status and the ambient light parameter comprises:
obtaining a light parameter threshold for the ambient light parameter;
and determining the current target environment based on the relative position state, the ambient light parameter and the light parameter threshold.
5. The method of claim 4, wherein the ambient light parameters include a light intensity parameter and a light color temperature parameter, and the light parameter thresholds include an intensity threshold and a color temperature threshold;
the determining the current target environment based on the relative position state, the ambient light parameter and the light parameter threshold includes:
when the relative position state is a position approaching state and the light intensity parameter is smaller than a first intensity threshold value, determining that the current target environment is a first type environment;
when the relative position state is a position far state and the light intensity parameter is smaller than a first intensity threshold value, determining that the current target environment is a second type environment;
when the relative position state is a position far state, the light intensity parameter is greater than a second intensity threshold value, and the light color temperature parameter is greater than or equal to a first color temperature threshold value, determining that the current target environment is a third type environment;
when the relative position state is a position far state, the light intensity parameter is greater than a second intensity threshold value, and the light color temperature parameter is greater than or equal to a second color temperature threshold value, determining that the current target environment is a first type environment;
and when the relative position state is a position far state, the light intensity parameter is greater than a third intensity threshold value, and the light color temperature parameter is greater than or equal to a third color temperature threshold value, determining that the current target environment is a third type environment.
6. The method of claim 1, wherein the obtaining the current device mode information and the notification information in the target time period comprises:
determining a current vibration adjusting mode based on the intensity adjusting information;
and when the vibration adjusting mode is an intensity gain type, executing the step of acquiring the current equipment mode information and the notification information in the target time period.
7. The method according to claim 1, wherein performing intensity correction processing on the intensity adjustment information based on the device mode information and the notification information to obtain target adjustment information comprises:
inputting the equipment mode information, the notification information and the intensity adjustment information into a trained adjustment correction model, and outputting target adjustment information; the adjustment correction model is obtained by training data samples corresponding to a plurality of known labeling equipment modes, known labeling notification information and known labeling strength adjustment information.
8. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to carry out the method steps according to any one of claims 1 to 7.
9. An electronic device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1 to 7.
CN202110438451.3A 2021-04-22 2021-04-22 Vibration adjusting method and device, storage medium and electronic equipment Active CN113163055B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110438451.3A CN113163055B (en) 2021-04-22 2021-04-22 Vibration adjusting method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110438451.3A CN113163055B (en) 2021-04-22 2021-04-22 Vibration adjusting method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN113163055A CN113163055A (en) 2021-07-23
CN113163055B true CN113163055B (en) 2022-07-19

Family

ID=76869576

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110438451.3A Active CN113163055B (en) 2021-04-22 2021-04-22 Vibration adjusting method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113163055B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114564080A (en) * 2022-03-21 2022-05-31 Oppo广东移动通信有限公司 Device control method, device, storage medium and electronic device
CN115086479B (en) * 2022-06-30 2024-02-09 深圳传音控股股份有限公司 Terminal control method, intelligent terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013155769A1 (en) * 2012-04-16 2013-10-24 中兴通讯股份有限公司 Profile self-adaption adjustment method and terminal
CN108234738A (en) * 2017-08-18 2018-06-29 广东欧珀移动通信有限公司 volume adjusting method, device, terminal and storage medium
CN111314551A (en) * 2020-02-13 2020-06-19 捷开通讯(深圳)有限公司 Vibration adjusting method and device, storage medium and mobile terminal

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103002151A (en) * 2012-12-03 2013-03-27 广东欧珀移动通信有限公司 Method and device for call reminding for mobile terminal
KR102217336B1 (en) * 2014-04-22 2021-02-19 엘지전자 주식회사 Method for controlling mobile terminal
US10067220B2 (en) * 2014-12-31 2018-09-04 Oath Inc. Positional state identification of mobile devices
CN105472131A (en) * 2015-11-17 2016-04-06 上海斐讯数据通信技术有限公司 Vibration intensity adjusting method, vibration intensity adjusting system and mobile terminal
CN105912114A (en) * 2016-04-05 2016-08-31 广东欧珀移动通信有限公司 Method and device for adjusting vibration grade of mobile terminal
CN105955585A (en) * 2016-05-31 2016-09-21 维沃移动通信有限公司 Display method for mobile terminal and mobile terminal
CN107741888A (en) * 2017-11-03 2018-02-27 广东欧珀移动通信有限公司 Message prompt method, device, storage medium and terminal device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013155769A1 (en) * 2012-04-16 2013-10-24 中兴通讯股份有限公司 Profile self-adaption adjustment method and terminal
CN108234738A (en) * 2017-08-18 2018-06-29 广东欧珀移动通信有限公司 volume adjusting method, device, terminal and storage medium
CN111314551A (en) * 2020-02-13 2020-06-19 捷开通讯(深圳)有限公司 Vibration adjusting method and device, storage medium and mobile terminal

Also Published As

Publication number Publication date
CN113163055A (en) 2021-07-23

Similar Documents

Publication Publication Date Title
US11670302B2 (en) Voice processing method and electronic device supporting the same
US11450315B2 (en) Electronic apparatus and method for operating same
CN109447234A (en) A kind of model training method, synthesis are spoken the method and relevant apparatus of expression
US10811008B2 (en) Electronic apparatus for processing user utterance and server
CN111459586B (en) Remote assistance method, device, storage medium and terminal
CN113163055B (en) Vibration adjusting method and device, storage medium and electronic equipment
CN112788583B (en) Equipment searching method and device, storage medium and electronic equipment
CN110413347A (en) The processing method of advertisement, device, storage medium and terminal in application program
CN112631542A (en) Audio adjusting method and device, storage medium and electronic equipment
CN111986454A (en) Wireless earphone searching method, device, storage medium and terminal
CN110399474A (en) A kind of Intelligent dialogue method, apparatus, equipment and storage medium
CN111918386B (en) Positioning method, positioning device, storage medium and electronic equipment
CN114285936A (en) Screen brightness adjusting method and device, storage medium and terminal
CN113126859A (en) Contextual model control method, contextual model control device, storage medium and terminal
CN111816168A (en) Model training method, voice playing method, device and storage medium
CN113450762B (en) Text reading method, text reading device, terminal and storage medium
CN113595662B (en) Signal prompting method, device, terminal equipment and storage medium
CN112328339B (en) Notification message display method and device, storage medium and electronic equipment
CN115328725A (en) State monitoring method and device, storage medium and electronic equipment
CN112256354A (en) Application starting method and device, storage medium and electronic equipment
CN112150983A (en) Screen brightness adjusting method and device, storage medium and electronic equipment
CN111625025A (en) Parameter calibration method and device, storage medium and electronic equipment
CN111859999A (en) Message translation method, device, storage medium and electronic equipment
CN113691676B (en) Equipment state prompting method and device, storage medium and electronic equipment
CN116662940A (en) Application processing method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant