CN112637422A - Vibration adjustment method, device, storage medium and electronic equipment - Google Patents

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

Info

Publication number
CN112637422A
CN112637422A CN202011632467.XA CN202011632467A CN112637422A CN 112637422 A CN112637422 A CN 112637422A CN 202011632467 A CN202011632467 A CN 202011632467A CN 112637422 A CN112637422 A CN 112637422A
Authority
CN
China
Prior art keywords
vibration
information
electronic equipment
adjusting
adjustment 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.)
Granted
Application number
CN202011632467.XA
Other languages
Chinese (zh)
Other versions
CN112637422B (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 CN202011632467.XA priority Critical patent/CN112637422B/en
Publication of CN112637422A publication Critical patent/CN112637422A/en
Application granted granted Critical
Publication of CN112637422B publication Critical patent/CN112637422B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides a vibration adjusting method, a device, a storage medium and electronic equipment, wherein the vibration adjusting method is applied to the electronic equipment and comprises the following steps: acquiring vibration adjustment information; if the vibration adjusting information is first vibration adjusting information, acquiring the current vibration state of the electronic equipment; if the electronic equipment is in a vibration state, adjusting the vibration state of the electronic equipment according to the voltage parameter corresponding to the first vibration adjustment information; and if the electronic equipment is in a non-vibration state, vibrating the electronic equipment according to the voltage parameter and the waveform parameter corresponding to the first vibration adjustment information. The vibration adjusting method can adjust the vibration of the electronic equipment when the electronic equipment vibrates and when the electronic equipment does not vibrate, and improves the flexibility of vibration adjustment of the electronic equipment.

Description

Vibration adjustment method, device, storage medium and electronic equipment
Technical Field
The application relates to the field of electronic equipment vibration, a vibration adjusting method and device, a storage medium and electronic equipment.
Background
The vibration function of most present electronic equipment passes through the rotor motor and realizes, and the rotor motor can only realize simple vibration function, for example can only realize single vibration and remind, can not make vibration function diversified, can't satisfy the user to the demand of electronic equipment vibration under the different scenes, and can't carry out nimble regulation to electronic equipment's vibration effect.
Disclosure of Invention
The embodiment of the application provides a vibration adjusting method, a vibration adjusting device, a storage medium and electronic equipment, and can improve the flexibility of vibration adjustment of the electronic equipment.
The embodiment of the application provides a vibration adjusting method, which is applied to electronic equipment and comprises the following steps:
acquiring vibration adjustment information;
if the vibration adjusting information is first vibration adjusting information, acquiring the current vibration state of the electronic equipment;
if the electronic equipment is in a vibration state, adjusting the vibration state of the electronic equipment according to the voltage parameter corresponding to the first vibration adjustment information;
and if the electronic equipment is in a non-vibration state, vibrating the electronic equipment according to the voltage parameter and the waveform parameter corresponding to the first vibration adjustment information.
The embodiment of the present application further provides a vibration adjusting device, including:
the first acquisition module is used for acquiring vibration adjustment information;
the second obtaining module is used for obtaining the current vibration state of the electronic equipment if the vibration adjusting information is the first vibration adjusting information;
the first vibration module is used for adjusting the vibration state of the electronic equipment according to the voltage parameter corresponding to the first vibration adjustment information if the electronic equipment is in the vibration state;
and the second vibration module is used for vibrating the electronic equipment according to the voltage parameter and the waveform parameter corresponding to the first vibration adjustment information if the electronic equipment is in a non-vibration state.
An embodiment of the present application further provides a storage medium having a computer program stored thereon, where the computer program is configured to, when run on a computer, cause the computer to execute the vibration adjustment method as described above.
An embodiment of the present application further provides an electronic device, which includes a processor and a memory, where the memory has a computer program, and the processor is configured to execute the vibration adjustment method as described above by calling the computer program.
The embodiment of the application provides a vibration adjusting method, which includes the steps of judging whether vibration adjusting information is first vibration adjusting information or not by obtaining the vibration adjusting information, if so, obtaining the current vibration state of electronic equipment, adjusting the vibration state of the electronic equipment according to voltage parameters corresponding to the first vibration adjusting information if the electronic equipment is in the vibration state, and enabling the electronic equipment to vibrate according to the voltage parameters and waveform parameters corresponding to the first vibration adjusting information if the electronic equipment is in the non-vibration state. The vibration of the electronic equipment can be adjusted when the electronic equipment vibrates and when the electronic equipment does not vibrate, and the flexibility of vibration adjustment of the electronic equipment is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a first flowchart of a vibration adjustment method according to an embodiment of the present disclosure.
Fig. 2 is a second flowchart of a vibration adjustment method according to an embodiment of the present application.
Fig. 3 is a third flow chart of the vibration adjustment method according to the embodiment of the present application.
Fig. 4 is a first application view of a vibration adjustment method according to an embodiment of the present application.
Fig. 5 is a second application scenario diagram of the vibration adjustment method according to the embodiment of the present application.
Fig. 6 is a schematic structural diagram of a vibration adjusting apparatus according to an embodiment of the present application.
Fig. 7 is a first structural schematic diagram of an electronic device according to an embodiment of the present application.
Fig. 8 is a second schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a first flowchart of a vibration adjusting method according to an embodiment of the present disclosure, where the vibration adjusting method is applied to an electronic device, and the electronic device of the present disclosure may be, but is not limited to, a smart phone, a tablet computer, a Personal Digital Assistant (PDA), and the like, and the vibration adjusting method includes the following steps:
101, obtaining vibration adjustment information.
The electronic device comprises a vibration module, wherein the vibration module can vibrate through a linear motor to enable the electronic device to vibrate, and the vibration adjusting information can adjust the vibration state of the electronic device.
And 102, if the vibration adjusting information is the first vibration adjusting information, acquiring the current vibration state of the electronic equipment.
Judging whether the vibration adjustment information is first vibration adjustment information, wherein the first vibration adjustment information is that the driving voltage parameter corresponding to the vibration adjustment information can be independently adjusted in the vibration process of the electronic equipment, namely the voltage parameter corresponding to the first vibration adjustment information can be independently adjusted in the vibration process of the electronic equipment when meeting a preset condition, for example, the voltage parameter corresponding to the first vibration adjustment information is smaller than a voltage threshold value which is the maximum voltage value that the electronic equipment can give to the vibration module, and when the voltage parameter is smaller than the voltage threshold value, the vibration adjustment information can enable the electronic equipment to be adjusted in the vibration process.
103, if the electronic equipment is in a vibration state, adjusting the vibration state of the electronic equipment according to the voltage parameter corresponding to the first vibration adjustment information;
and acquiring the vibration state of the current electronic equipment, and if the electronic equipment is in the vibration state, adjusting the vibration state of the electronic equipment according to the voltage parameter corresponding to the first vibration adjustment information.
And 104, if the electronic equipment is in a non-vibration state, vibrating the electronic equipment according to the voltage parameter and the waveform parameter corresponding to the first vibration adjustment information.
If the electronic equipment is in a non-vibration state, the electronic equipment is vibrated according to the voltage parameter and the waveform parameter corresponding to the first vibration adjustment information, and when the electronic equipment is vibrated, the vibration waveform is preset, so that when the electronic equipment is vibrated, the vibration state of the electronic equipment can be adjusted by adjusting the driving voltage of the vibration module.
The embodiment of the application provides a vibration adjusting method, which includes the steps of judging whether vibration adjusting information is first vibration adjusting information or not by obtaining the vibration adjusting information, if so, obtaining the current vibration state of electronic equipment, adjusting the vibration state of the electronic equipment according to voltage parameters corresponding to the first vibration adjusting information if the electronic equipment is in the vibration state, and enabling the electronic equipment to vibrate according to the voltage parameters and waveform parameters corresponding to the first vibration adjusting information if the electronic equipment is in the non-vibration state. The vibration of the electronic equipment can be adjusted when the electronic equipment vibrates and when the electronic equipment does not vibrate, and the flexibility of vibration adjustment of the electronic equipment is improved.
Referring to fig. 2, fig. 2 is a second flow chart of the vibration adjusting method according to the embodiment of the present disclosure.
Vibration adjustment information is acquired 201.
For example, the user may input the vibration adjustment information to the electronic device in different scenes, the user may input the vibration adjustment information when the electronic device is in a vibration state, or may input the vibration adjustment information when the electronic device is in a non-vibration state, and the user may input the vibration adjustment information by adjusting the adjustment instructions such as the vibration intensity, the vibration frequency, and the vibration amplitude, so as to perform vibration adjustment on the electronic device.
And 202, if the vibration adjusting information is the first vibration adjusting information, judging whether the first vibration adjusting information has corresponding audio information, video information or character information.
The electronic equipment judges whether the vibration adjustment information is first vibration adjustment information, wherein the first vibration adjustment information is that the driving voltage parameter corresponding to the vibration adjustment information can be independently adjusted in the vibration process of the electronic equipment, that is, the voltage parameter corresponding to the first vibration adjustment information can be individually adjusted in the vibration process of the electronic device when the voltage parameter corresponding to the first vibration adjustment information satisfies a preset condition, for example, the voltage parameter corresponding to the first vibration adjustment information is smaller than a voltage threshold, the voltage threshold is the maximum voltage value that the electronic device can give to the vibration module, and when the voltage information is less than the voltage threshold, the vibration adjustment information can enable the electronic equipment to adjust in the vibration process, if the vibration adjustment information is the first vibration adjustment information, judging whether the first vibration adjusting information has corresponding audio information, video information or character information, wherein a mapping relation can be preset between the first vibration adjusting information and the audio information, the video information or the character information.
The audio information may be, but is not limited to, a ring tone, a song, voice and other files, for example, the ring tone may be a prompt tone for prompting people to call when a call is made, the vibration module of the electronic device may vibrate along with the ring tone, the song may be a song file locally pre-stored in the electronic device, and may include song files of various different formats, and the song may also be a song file of a network.
The video information may be, but is not limited to, a local video or a network video file, for example, the local video may be a video file pre-stored by a user, the network video may be a network video file opened by the user through a network, the video information may also be a game picture file when the game application runs, and the vibration module may vibrate along with the video playing when the electronic device plays the local video, the network video file, or the game picture.
The text message may be, but is not limited to, an instant messaging message or a preset text message. For example, the instant messaging message may be an instant messaging message, such as a short message, received and sent by an instant messaging application, the preset text message may be preset text information corresponding to the preset application, for example, text information preset in the reading software, such as a novel text, and the electronic device may trigger vibration when receiving the instant messaging message or may trigger vibration when opening the preset text message corresponding to the preset application.
And 203, if corresponding audio information, video information or character information exists, acquiring the current vibration state of the electronic equipment.
If the first vibration adjustment information has corresponding audio information, video information or text information, it indicates that the electronic device needs to vibrate along with the corresponding audio information, video information or text information when vibrating, and after acquiring the current vibration state of the electronic device, steps 207 and 208 are executed.
And 204, if the corresponding audio information, video information or character information does not exist, judging whether the vibration duration corresponding to the first vibration adjusting information is less than the preset duration.
And 205, if the vibration duration is less than the preset duration, vibrating the electronic device according to the waveform parameter and/or the voltage parameter corresponding to the first vibration adjustment information.
With respect to steps 204 and 205:
and if the vibration duration corresponding to the first vibration adjustment information is less than the preset duration, namely the vibration state of the electronic equipment corresponding to the first vibration adjustment information is short vibration and does not need to be vibrated along with audio information, video information or character information, vibrating the electronic equipment according to the waveform parameter and/or the voltage parameter corresponding to the first vibration adjustment information.
And 206, if the vibration duration is greater than or equal to the preset duration, judging whether the electronic equipment is in a vibration state.
If the vibration duration is greater than or equal to the preset duration, that is, the vibration state of the electronic device corresponding to the first vibration adjustment information is long vibration, and vibration accompanied with audio information, video information or text information is not needed.
And 207, if the electronic equipment is in the vibration state, adjusting the vibration state of the electronic equipment according to the voltage parameter corresponding to the first vibration adjustment information.
And acquiring the vibration state of the current electronic equipment, and if the electronic equipment is in the vibration state, adjusting the vibration state of the electronic equipment according to the voltage parameter corresponding to the first vibration adjustment information.
And 208, if the electronic equipment is in a non-vibration state, vibrating the electronic equipment according to the voltage parameter and the waveform parameter corresponding to the first vibration adjustment information.
If the electronic equipment is in a non-vibration state, the electronic equipment is vibrated according to the voltage parameter and the waveform parameter corresponding to the first vibration adjustment information, and when the electronic equipment is vibrated, the vibration waveform is preset, so that when the electronic equipment is vibrated, the vibration state of the electronic equipment can be adjusted by adjusting the driving voltage of the vibration module.
The embodiment of the application provides a vibration adjusting method, which includes the steps of judging whether vibration adjusting information is first vibration adjusting information or not by obtaining the vibration adjusting information, judging whether the first vibration adjusting information has corresponding audio information, video information or character information or not if the first vibration adjusting information is the first vibration adjusting information, obtaining the current vibration state of electronic equipment if the first vibration adjusting information has the corresponding audio information, video information or character information, adjusting the vibration state of the electronic equipment according to a voltage parameter corresponding to the first vibration adjusting information if the electronic equipment is in the vibration state, and enabling the electronic equipment to vibrate according to the voltage parameter and a waveform parameter corresponding to the first vibration adjusting information if the electronic equipment is in a non-vibration state. If the corresponding audio information, video information or character information does not exist, judging whether the first vibration adjusting information is short vibration, if so, adjusting the vibration state of the electronic equipment according to the voltage parameter corresponding to the first vibration adjusting information, if not, judging whether the electronic equipment is in the vibration state, if so, adjusting the vibration state of the electronic equipment according to the voltage parameter corresponding to the first vibration adjusting information, and if not, vibrating the electronic equipment according to the voltage parameter and the waveform parameter corresponding to the first vibration adjusting information.
In some embodiments, the vibration adjustment information may further include second vibration adjustment information, please continue to refer to fig. 3, and fig. 3 is a third flowchart of the vibration adjustment method according to the embodiment of the present disclosure.
301, vibration adjustment information is acquired.
For example, the user may input the vibration adjustment information to the electronic device in different scenes, the user may input the vibration adjustment information when the electronic device is in a vibration state, or may input the vibration adjustment information when the electronic device is in a non-vibration state, and the user may input the vibration adjustment information by adjusting the adjustment instructions such as the vibration intensity, the vibration frequency, and the vibration amplitude, so as to perform vibration adjustment on the electronic device.
302, if the vibration adjustment information is the second vibration adjustment information, determining whether the second vibration adjustment information has corresponding audio information, video information or text information.
And judging whether the vibration adjustment information is second vibration adjustment information, wherein the second vibration adjustment information is that the driving voltage parameter corresponding to the vibration adjustment information cannot be independently adjusted in the vibration process of the electronic equipment, namely the voltage parameter corresponding to the second vibration adjustment information can be independently adjusted in the vibration process of the electronic equipment when the voltage parameter does not meet a preset condition, for example, the voltage parameter corresponding to the first vibration adjustment information is greater than a voltage threshold value, and the voltage threshold value is a maximum voltage value which can be given to the vibration module by the electronic equipment. For example, the second vibration adjustment information input by the user is vibration intensity, the driving voltage parameter corresponding to the vibration intensity is greater than the voltage threshold, and the requirement of the user for the vibration intensity of the electronic device cannot be met only by adjusting the driving voltage, so that the vibration intensity of the electronic device needs to be increased in other ways. When the vibration adjustment information is the second vibration adjustment information, whether the second vibration adjustment information has corresponding audio information, video information or character information is judged, and the audio information, the video information or the character information can be the video information, the audio information or the character information.
303, if corresponding audio information, video information or character information exists, acquiring a waveform gain parameter and a target voltage parameter.
And 304, vibrating the electronic equipment according to the waveform gain parameter and the target voltage parameter.
With respect to steps 303 and 304:
and if the corresponding audio information, video information or character information exists, vibrating the electronic equipment according to the waveform gain parameter and the target voltage parameter corresponding to the second vibration adjusting information, wherein the target voltage is the maximum driving voltage which can be provided for the vibration module by the electronic equipment, and the waveform gain parameter is determined according to the vibration intensity corresponding to the second vibration adjusting information input by the user. The waveform gain parameter may cause the vibration of the electronic device to be enhanced based on the maximum driving voltage driving the vibration module.
And 305, if the corresponding audio information, video information or text information does not exist, judging whether the vibration duration corresponding to the second vibration information is less than the preset duration.
And 306, if the vibration duration is less than the preset duration, vibrating the electronic device according to the waveform parameter and/or the voltage parameter corresponding to the second vibration information.
With respect to steps 305 and 306:
and if the vibration duration corresponding to the second vibration adjustment information is less than the preset duration, namely the vibration state of the electronic equipment corresponding to the second vibration adjustment information is short vibration and does not need to be vibrated along with audio information, video information or character information, vibrating the electronic equipment according to the waveform parameter and/or the voltage parameter corresponding to the second vibration adjustment information.
307, if the vibration duration is greater than or equal to the preset duration, determining whether the electronic device is in a vibration state.
And 308, if the electronic equipment is in the vibration state, adjusting the vibration state of the electronic equipment according to the voltage parameter corresponding to the second vibration adjustment information.
And 309, if the electronic equipment is in a non-vibration state, vibrating the electronic equipment according to the voltage parameter and the waveform parameter corresponding to the second vibration adjustment information.
With respect to step 307-:
if the vibration duration is greater than or equal to the preset duration, that is, the electronic device corresponding to the second vibration adjustment information is in a long vibration state, and does not need to vibrate along with audio information, video information or text information. And acquiring the current vibration state of the electronic equipment, and if the electronic equipment is in the vibration state, adjusting the vibration state of the electronic equipment according to the voltage parameter corresponding to the second vibration adjustment information. If the electronic equipment is in a non-vibration state, the electronic equipment is vibrated according to the voltage parameter and the waveform parameter corresponding to the second vibration adjustment information, and when the electronic equipment is vibrated, the vibration waveform is preset, so that when the electronic equipment is vibrated, the vibration state of the electronic equipment can be adjusted by adjusting the driving voltage of the vibration module.
The embodiment of the application provides a vibration adjusting method, which includes the steps of obtaining vibration adjusting information, judging whether the vibration adjusting information is second vibration adjusting information, if so, judging whether the second vibration adjusting information has corresponding audio information, video information or character information, if so, obtaining a waveform gain parameter and a target voltage parameter, and vibrating an electronic device according to the waveform gain parameter and the target voltage parameter. If the corresponding audio information, video information or character information does not exist, judging whether the second vibration information is short vibration, if so, adjusting the vibration state of the electronic equipment according to the voltage parameter corresponding to the second vibration adjustment information, if not, judging whether the electronic equipment is in the vibration state, if so, adjusting the vibration state of the electronic equipment according to the voltage parameter corresponding to the second vibration adjustment information, and if not, vibrating the electronic equipment according to the voltage parameter and the waveform parameter corresponding to the second vibration adjustment information.
Referring to fig. 4, fig. 4 is a first application view of a vibration adjusting method according to an embodiment of the present application.
When the electronic device is in a vibration state, a user can input vibration adjustment information through a key or a display interface, the vibration adjustment information may include vibration intensity, vibration frequency or vibration amplitude, the user can adjust the current vibration state of the electronic device through a status bar, the current vibration state of the electronic device may include, but is not limited to, vibration accompanying when playing a video file, playing an audio file or previewing a text file, for example, the current vibration state of the electronic device may be vibration accompanied by a ringtone, and the user may adjust the vibration intensity or vibration frequency of the current vibration accompanied by the ringtone of the electronic device as required to obtain a satisfactory vibration mode accompanied by the ringtone vibration. In some embodiments, after the user finishes adjusting the vibration, the vibration adjustment information input by the user is used as vibration information of the electronic device for the next time along with ring vibration, so that flexibility of the user in dynamically adjusting the vibration of the electronic device is improved, for example, the current vibration state of the electronic device may be along with vibration of a video file, the user may adjust the vibration intensity or vibration frequency of the electronic device currently along with the playing of the video file according to the content of the video playing, so as to enhance human-computer interaction of the user when the user watches the video, for example, the current vibration state of the electronic device may be along with vibration of a game interface of a game application, and the user may adjust the intensity and vibration frequency of the current game vibration according to requirements, so as to enhance human-computer interaction of the user during the game, and. For another example, the current vibration state of the electronic device may be vibration generated when browsing preset characters, for example, when a user watches a novel, the electronic device may vibrate along with the plot of the novel, and the user may adjust the vibration intensity or the vibration frequency of the current vibration according to the requirement, so as to enhance the human-computer interaction of the user during reading. It is understood that the adjustment of the vibration intensity and the vibration frequency by the progress bar of the present application is only exemplary, and the adjustment of the vibration intensity and the vibration frequency may be performed by other adjustment methods, such as a physical key, an annular adjustment ring, and the like.
Referring to fig. 5, fig. 5 is a second application scenario diagram of the vibration adjusting method according to the embodiment of the present application.
When the electronic equipment is in a non-vibration state, a user can input vibration adjusting information through a key or a display interface, the vibration adjusting information can comprise vibration intensity, vibration frequency and vibration amplitude, and vibration types and the like of the electronic equipment during vibration, for example, the electronic equipment can vibrate along with a ring tone during vibration, and can also vibrate when a notification message is received, or vibrate when preset keys or controls are touched, the user can select different vibration types, and then adjust the vibration adjusting information according with the user requirements according to different vibration types, and the vibration state of the electronic equipment set by the user according to different scenes can be improved.
In some embodiments, the vibration type includes, but is not limited to, vibration accompanying when playing a video file, playing an audio file, or previewing a text file, for example, the vibration state of the electronic device may be vibration accompanying with video playing content, a user may set a vibration intensity, a vibration frequency, or a vibration amplitude of the vibration accompanying with the video playing content of the electronic device according to a requirement to obtain a satisfactory vibration mode of vibration accompanying with the video playing content, and after the user setting is finished, the electronic device may drive the vibration module to vibrate according to vibration adjustment information set by the user, so as to facilitate the user to determine whether the set vibration adjustment information meets the requirement.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a vibration adjusting device according to an embodiment of the present application. The vibration adjusting apparatus 400 may include: a first obtaining module 401, a second obtaining module 402, a first vibrating module 403, and a second vibrating module 404.
The first acquisition module is used for acquiring vibration adjustment information;
the second obtaining module is used for obtaining the current vibration state of the electronic equipment if the vibration adjusting information is the first vibration adjusting information;
the first vibration module is used for adjusting the vibration state of the electronic equipment according to the voltage parameter corresponding to the first vibration adjustment information if the electronic equipment is in the vibration state;
and the second vibration module is used for vibrating the electronic equipment according to the voltage parameter and the waveform parameter corresponding to the first vibration adjustment information if the electronic equipment is in a non-vibration state.
In some embodiments, the second obtaining module 402 may be further configured to:
if the vibration adjustment information is first vibration adjustment information, judging whether the first vibration adjustment information has corresponding audio information, video information or character information;
and if corresponding audio information, video information or character information exists, acquiring the current vibration state of the electronic equipment.
In some embodiments, the second obtaining module 402 is further configured to:
if the corresponding audio information, video information or character information does not exist, judging whether the vibration duration corresponding to the first vibration adjusting information is smaller than a preset duration or not;
the electronic equipment further comprises a third vibration module, wherein the third vibration module is used for vibrating the electronic equipment according to the waveform parameter and/or the voltage parameter corresponding to the first vibration adjustment information if the vibration duration is less than the preset duration;
and if the vibration duration is greater than or equal to the preset duration, judging whether the electronic equipment is in a vibration state.
In some embodiments, the electronic device further comprises a third acquisition module and a fourth vibration module:
the third obtaining module is used for obtaining a waveform gain parameter and a target voltage parameter if the vibration adjusting information is second vibration adjusting information;
and the fourth vibration module is used for vibrating the electronic equipment according to the waveform gain parameter and the target voltage parameter.
In some embodiments, when the waveform gain parameter is obtained if the vibration adjustment information is the second vibration adjustment information, the third obtaining module is further configured to:
if the vibration adjustment information is second vibration adjustment information, judging whether the second vibration adjustment information has corresponding audio information, video information or character information;
and if corresponding audio information, video information or character information exists, acquiring the waveform gain parameter.
In some embodiments, when vibrating the electronic device according to the waveform gain parameter and the target voltage parameter, the fourth vibration module is further configured to: if the corresponding audio information, video information or character information does not exist, judging whether the vibration duration corresponding to the second vibration information is smaller than a preset duration or not;
and if the vibration duration is less than the preset duration, vibrating the electronic equipment according to the waveform parameter and/or the voltage parameter corresponding to the second vibration information.
In some embodiments, when determining whether the electronic device is in a vibration state if the vibration duration is greater than or equal to a preset duration, the first vibration module 403 is further configured to: if the electronic equipment is in a vibration state, adjusting the vibration state of the electronic equipment according to the voltage parameter corresponding to the second vibration adjustment information; the second vibration module 404 is further configured to, if the electronic device is in a non-vibration state, vibrate the electronic device according to the voltage parameter and the waveform parameter corresponding to the second vibration adjustment information.
It should be noted that the vibration adjustment information provided in the embodiment of the present application and the vibration adjustment method in the foregoing embodiment belong to the same concept, and any method provided in the embodiment of the vibration adjustment method may be run on the vibration adjustment device, and a specific implementation process thereof is described in detail in the embodiment of the vibration adjustment method, and is not described herein again.
An electronic device is further provided in the embodiment of the present application, please refer to fig. 7, and fig. 7 is a first structural schematic diagram of the electronic device provided in the embodiment of the present application. The electronic device 500 comprises a processor 501 and a memory 502. The processor 501 is electrically connected to the memory 502.
The processor 501 is a control center of the electronic apparatus 500, connects various parts of the entire electronic apparatus using various interfaces and lines, performs various functions of the electronic apparatus 500 and processes data by running or loading a computer program stored in the memory 502, and calling data stored in the memory 502.
The memory 502 may be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by running the computer programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required for at least one function (such as a sound playing function, an image playing function, a vibration adjustment, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like.
Further, the memory 502 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
In this embodiment, the processor 501 in the electronic device 500 loads instructions corresponding to one or more processes of the computer program into the memory 502, and the processor 501 runs the computer program stored in the memory 502, so as to implement various functions as follows:
acquiring vibration adjustment information;
if the vibration adjusting information is first vibration adjusting information, acquiring the current vibration state of the electronic equipment;
if the electronic equipment is in a vibration state, adjusting the vibration state of the electronic equipment according to the voltage parameter corresponding to the first vibration adjustment information;
and if the electronic equipment is in a non-vibration state, vibrating the electronic equipment according to the voltage parameter and the waveform parameter corresponding to the first vibration adjustment information.
Referring to fig. 8, fig. 8 is a second schematic structural diagram of an electronic device according to an embodiment of the present disclosure, which is different from the electronic device shown in fig. 6 in that the electronic device further includes: a display 503, an audio circuit 504, a vibration circuit 505, and a power supply 506. The display 503, the audio circuit 504, the vibration circuit 505, and the power source 506 are electrically connected to the processor 501.
The display 503 may be used to display information entered by or provided to the user as well as various graphical user interfaces, which may be made up of graphics, text, icons, video, and any combination thereof.
The audio circuitry 504 may be used to provide an audio interface between the user and the electronic device through a speaker, microphone.
The vibration circuit 505 can be used for driving the electronic device to vibrate, and can adjust the vibration state of the electronic device by adjusting the vibration circuit, so as to inform a user of reminding, and carry out special-effect vibration along with a video file, an audio file or a text file, thereby improving the interactive experience of the user and the electronic device. The vibration circuit may include a linear motor, and the flexible adjustment of the vibration of the electronic device may be performed by the vibration adjustment method described above.
The power supply 506 may be used to power various components of the electronic device 500. In some embodiments, power supply 506 may be logically coupled to processor 501 through a power management system, such that functions of managing charging, discharging, and power consumption are performed through the power management system.
It is understood that the electronic device provided in the embodiments of the present application may further include other functional circuits, such as a radio frequency circuit or a camera circuit, etc., the radio frequency circuit may be configured to receive and transmit radio frequency signals to establish wireless communication with a network device or other electronic devices through wireless communication, and the camera circuit may include an Image Processing circuit, which may be implemented by using hardware and/or software components and may include various Processing units defining an Image Signal Processing (Image Signal Processing) pipeline. The image processing circuit may include at least: one or more cameras, an Image Signal Processor (ISP Processor), control logic, and an Image memory, among others. Where each camera may include at least one or more lenses and an image sensor. The image sensor may include an array of color filters (e.g., Bayer filters). The image sensor may acquire light intensity and wavelength information captured with each imaging pixel of the image sensor and provide a set of raw image data that may be processed by an image signal processor.
In this embodiment, the processor 501 in the electronic device 500 loads instructions corresponding to one or more processes of the computer program into the memory 502, and the processor 501 runs the computer program stored in the memory 502, so as to implement various functions as follows:
acquiring vibration adjustment information;
if the vibration adjusting information is first vibration adjusting information, acquiring the current vibration state of the electronic equipment;
if the electronic equipment is in a vibration state, adjusting the vibration state of the electronic equipment according to the voltage parameter corresponding to the first vibration adjustment information;
and if the electronic equipment is in a non-vibration state, vibrating the electronic equipment according to the voltage parameter and the waveform parameter corresponding to the first vibration adjustment information.
In some embodiments, when the current vibration state of the electronic device is obtained if the vibration adjustment information is the first vibration adjustment information, the processor 601 may perform:
if the vibration adjustment information is first vibration adjustment information, judging whether the first vibration adjustment information has corresponding audio information, video information or character information;
and if corresponding audio information, video information or character information exists, acquiring the current vibration state of the electronic equipment.
In some embodiments, processor 601 may also perform:
if the corresponding audio information, video information or character information does not exist, judging whether the vibration duration corresponding to the first vibration adjusting information is smaller than a preset duration or not;
if the vibration duration is less than the preset duration, using the electronic equipment to vibrate according to the waveform parameter and/or the voltage parameter corresponding to the first vibration adjustment information;
and if the vibration duration is greater than or equal to the preset duration, judging whether the electronic equipment is in a vibration state.
In some embodiments, processor 601 may also perform:
if the vibration adjustment information is second vibration adjustment information, acquiring a waveform gain parameter and a target voltage parameter;
and vibrating the electronic equipment according to the waveform gain parameter and the target voltage parameter.
In some embodiments, when obtaining the waveform gain parameter if the vibration adjustment information is the second vibration adjustment information, the processor 601 may further perform:
if the vibration adjustment information is second vibration adjustment information, judging whether the second vibration adjustment information has corresponding audio information, video information or character information;
and if corresponding audio information, video information or character information exists, acquiring the waveform gain parameter.
In some embodiments, when the electronic device is vibrated according to the waveform gain parameter and the target voltage parameter, the processor 601 may further perform:
if the corresponding audio information, video information or character information does not exist, judging whether the vibration duration corresponding to the second vibration information is smaller than a preset duration or not;
and if the vibration duration is less than the preset duration, vibrating the electronic equipment according to the waveform parameter and/or the voltage parameter corresponding to the second vibration information.
In some embodiments, processor 601 may also perform:
if the vibration duration is greater than or equal to a preset duration, judging whether the electronic equipment is in a vibration state;
if the electronic equipment is in a vibration state, adjusting the vibration state of the electronic equipment according to the voltage parameter corresponding to the second vibration adjustment information;
and if the electronic equipment is in a non-vibration state, vibrating the electronic equipment according to the voltage parameter and the waveform parameter corresponding to the second vibration adjustment information.
An embodiment of the present application further provides a storage medium, where the storage medium stores a computer program, and when the computer program runs on a computer, the computer is caused to execute the warm vibration control method in any one of the above embodiments, such as: acquiring vibration adjustment information; if the vibration adjusting information is first vibration adjusting information, acquiring the current vibration state of the electronic equipment; if the electronic equipment is in a vibration state, adjusting the vibration state of the electronic equipment according to the voltage parameter corresponding to the first vibration adjustment information; and if the electronic equipment is in a non-vibration state, vibrating the electronic equipment according to the voltage parameter and the waveform parameter corresponding to the first vibration adjustment information.
In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It should be noted that, for the vibration adjustment method of the embodiment of the present application, it can be understood by a person skilled in the art that all or part of the process of implementing the vibration adjustment method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and during the execution, the process of the embodiment of the vibration adjustment method can be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
In the vibration adjustment device according to the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented as a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium such as a read-only memory, a magnetic or optical disk, or the like.
The foregoing detailed description is directed to a vibration adjustment method, apparatus, storage medium, and electronic device provided in the embodiments of the present application, and specific examples are applied in the present application to explain the principles and implementations of the present application, and the descriptions of the foregoing embodiments are only used to help understand the method and the core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A vibration adjustment method applied to an electronic device is characterized by comprising the following steps:
acquiring vibration adjustment information;
if the vibration adjusting information is first vibration adjusting information, acquiring the current vibration state of the electronic equipment;
if the electronic equipment is in a vibration state, adjusting the vibration state of the electronic equipment according to the voltage parameter corresponding to the first vibration adjustment information;
and if the electronic equipment is in a non-vibration state, vibrating the electronic equipment according to the voltage parameter and the waveform parameter corresponding to the first vibration adjustment information.
2. The method according to claim 1, wherein if the vibration adjustment information is first vibration adjustment information, the obtaining the current vibration state of the electronic device includes:
if the vibration adjustment information is first vibration adjustment information, judging whether the first vibration adjustment information has corresponding audio information, video information or character information;
and if corresponding audio information, video information or character information exists, acquiring the current vibration state of the electronic equipment.
3. The vibration adjustment method according to claim 2, further comprising:
if the corresponding audio information, video information or character information does not exist, judging whether the vibration duration corresponding to the first vibration adjusting information is smaller than a preset duration or not;
if the vibration duration is less than the preset duration, using the electronic equipment to vibrate according to the waveform parameter and/or the voltage parameter corresponding to the first vibration adjustment information;
and if the vibration duration is greater than or equal to the preset duration, judging whether the electronic equipment is in a vibration state.
4. The vibration adjustment method according to claim 1, further comprising:
if the vibration adjustment information is second vibration adjustment information, acquiring a waveform gain parameter and a target voltage parameter;
and vibrating the electronic equipment according to the waveform gain parameter and the target voltage parameter.
5. The method according to claim 4, wherein the obtaining the waveform gain parameter if the vibration adjustment information is the second vibration adjustment information comprises:
if the vibration adjustment information is second vibration adjustment information, judging whether the second vibration adjustment information has corresponding audio information, video information or character information;
and if corresponding audio information, video information or character information exists, acquiring the waveform gain parameter.
6. The vibration adjustment method according to claim 5, wherein the vibrating the electronic device according to the waveform gain parameter and a target voltage parameter includes:
if the corresponding audio information, video information or character information does not exist, judging whether the vibration duration corresponding to the second vibration information is smaller than a preset duration or not;
and if the vibration duration is less than the preset duration, vibrating the electronic equipment according to the waveform parameter and/or the voltage parameter corresponding to the second vibration information.
7. The vibration adjustment method according to claim 6, further comprising:
if the vibration duration is greater than or equal to a preset duration, judging whether the electronic equipment is in a vibration state;
if the electronic equipment is in a vibration state, adjusting the vibration state of the electronic equipment according to the voltage parameter corresponding to the second vibration adjustment information;
and if the electronic equipment is in a non-vibration state, vibrating the electronic equipment according to the voltage parameter and the waveform parameter corresponding to the second vibration adjustment information.
8. A vibration adjusting apparatus applied to an electronic device, the apparatus comprising:
the first acquisition module is used for acquiring vibration adjustment information;
the second obtaining module is used for obtaining the current vibration state of the electronic equipment if the vibration adjusting information is the first vibration adjusting information;
the first vibration module is used for adjusting the vibration state of the electronic equipment according to the voltage parameter corresponding to the first vibration adjustment information if the electronic equipment is in the vibration state;
and the second vibration module is used for vibrating the electronic equipment according to the voltage parameter and the waveform parameter corresponding to the first vibration adjustment information if the electronic equipment is in a non-vibration state.
9. A storage medium having stored thereon a computer program, characterized in that, when the computer program is run on a computer, the computer is caused to execute the vibration adjusting method according to any one of claims 1 to 7.
10. An electronic device comprising a processor, a memory with a computer program, wherein the processor is configured to execute the vibration adjustment method according to any one of claims 1 to 7 by calling the computer program.
CN202011632467.XA 2020-12-31 2020-12-31 Vibration adjustment method, device, storage medium and electronic equipment Active CN112637422B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011632467.XA CN112637422B (en) 2020-12-31 2020-12-31 Vibration adjustment method, device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011632467.XA CN112637422B (en) 2020-12-31 2020-12-31 Vibration adjustment method, device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112637422A true CN112637422A (en) 2021-04-09
CN112637422B CN112637422B (en) 2022-02-22

Family

ID=75289881

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011632467.XA Active CN112637422B (en) 2020-12-31 2020-12-31 Vibration adjustment method, device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112637422B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023016001A1 (en) * 2021-08-12 2023-02-16 荣耀终端有限公司 Vibration output method and related apparatus
WO2023130956A1 (en) * 2022-01-10 2023-07-13 荣耀终端有限公司 Enhanced vibration prompting method and electronic device
WO2024108734A1 (en) * 2022-11-23 2024-05-30 瑞声开泰声学科技(上海)有限公司 Motor control method, terminal device and computer storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572018A (en) * 2010-12-07 2012-07-11 希姆通信息技术(上海)有限公司 Mobile terminal with vibrating motor
CN102724340A (en) * 2012-06-19 2012-10-10 广东欧珀移动通信有限公司 Method for adjusting vibration strength of mobile phone
US20130273490A1 (en) * 2012-04-13 2013-10-17 Bryce A. Way Method and device for increasing bone density in the mouth
US20140148217A1 (en) * 2012-11-28 2014-05-29 Apple Inc. Controlling vibrations from multiple vibrator motors in a mobile communications device
CN105245704A (en) * 2015-09-25 2016-01-13 努比亚技术有限公司 Call reminding method and device for mobile terminal
CN108900688A (en) * 2018-07-09 2018-11-27 Oppo广东移动通信有限公司 Sounding control method, device, electronic device and computer-readable medium
CN109088980A (en) * 2018-07-09 2018-12-25 Oppo广东移动通信有限公司 Sounding control method, device, electronic device and computer-readable medium
CN110445912A (en) * 2019-07-26 2019-11-12 惠州Tcl移动通信有限公司 Vibrate configuration method, system, storage medium and mobile terminal
CN110707982A (en) * 2019-09-05 2020-01-17 Oppo(重庆)智能科技有限公司 Control method, device and equipment of electronic equipment and storage medium
US20200051407A1 (en) * 2017-04-18 2020-02-13 Sony Interactive Entertainment Inc. Vibration control apparatus
CN111552380A (en) * 2020-04-20 2020-08-18 瑞声科技(新加坡)有限公司 Haptic vibration self-adjustment method, apparatus, device, and medium
CN112117953A (en) * 2020-09-01 2020-12-22 上海艾为电子技术股份有限公司 Method for adjusting and driving drive waveform of linear motor and drive control circuit

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572018A (en) * 2010-12-07 2012-07-11 希姆通信息技术(上海)有限公司 Mobile terminal with vibrating motor
US20130273490A1 (en) * 2012-04-13 2013-10-17 Bryce A. Way Method and device for increasing bone density in the mouth
CN102724340A (en) * 2012-06-19 2012-10-10 广东欧珀移动通信有限公司 Method for adjusting vibration strength of mobile phone
US20140148217A1 (en) * 2012-11-28 2014-05-29 Apple Inc. Controlling vibrations from multiple vibrator motors in a mobile communications device
CN105245704A (en) * 2015-09-25 2016-01-13 努比亚技术有限公司 Call reminding method and device for mobile terminal
US20200051407A1 (en) * 2017-04-18 2020-02-13 Sony Interactive Entertainment Inc. Vibration control apparatus
CN108900688A (en) * 2018-07-09 2018-11-27 Oppo广东移动通信有限公司 Sounding control method, device, electronic device and computer-readable medium
CN109088980A (en) * 2018-07-09 2018-12-25 Oppo广东移动通信有限公司 Sounding control method, device, electronic device and computer-readable medium
CN110445912A (en) * 2019-07-26 2019-11-12 惠州Tcl移动通信有限公司 Vibrate configuration method, system, storage medium and mobile terminal
CN110707982A (en) * 2019-09-05 2020-01-17 Oppo(重庆)智能科技有限公司 Control method, device and equipment of electronic equipment and storage medium
CN111552380A (en) * 2020-04-20 2020-08-18 瑞声科技(新加坡)有限公司 Haptic vibration self-adjustment method, apparatus, device, and medium
CN112117953A (en) * 2020-09-01 2020-12-22 上海艾为电子技术股份有限公司 Method for adjusting and driving drive waveform of linear motor and drive control circuit

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023016001A1 (en) * 2021-08-12 2023-02-16 荣耀终端有限公司 Vibration output method and related apparatus
CN115703007A (en) * 2021-08-12 2023-02-17 荣耀终端有限公司 Vibration output method and related device
CN115703007B (en) * 2021-08-12 2024-04-12 荣耀终端有限公司 Vibration output method and related device
WO2023130956A1 (en) * 2022-01-10 2023-07-13 荣耀终端有限公司 Enhanced vibration prompting method and electronic device
WO2024108734A1 (en) * 2022-11-23 2024-05-30 瑞声开泰声学科技(上海)有限公司 Motor control method, terminal device and computer storage medium

Also Published As

Publication number Publication date
CN112637422B (en) 2022-02-22

Similar Documents

Publication Publication Date Title
CN112637422B (en) Vibration adjustment method, device, storage medium and electronic equipment
EP3163748B1 (en) Method, device and terminal for adjusting volume
JP6985339B2 (en) Scene-based vibration feedback method and mobile device
RU2666966C2 (en) Audio playback control method and device
CN104967900A (en) Video generating method and video generating device
CN111083289B (en) Audio playing method and device, storage medium and mobile terminal
CN109062535B (en) Sound production control method and device, electronic device and computer readable medium
CN104853111A (en) Shooting method and terminal
CN111026254A (en) Temperature control method, temperature control device, storage medium and electronic equipment
CN111182236A (en) Image synthesis method and device, storage medium and terminal equipment
JP2003518349A (en) Device input identification method and device
CN104811821A (en) Drawing display frame rate adjusting method and device
CN112492095B (en) System, terminal, method, apparatus and storage medium for controlling terminal
CN112291615A (en) Audio output method and audio output device
CN112394901A (en) Audio output mode adjusting method and device and electronic equipment
CN111081283A (en) Music playing method and device, storage medium and terminal equipment
CN108900688B (en) Sound production control method and device, electronic device and computer readable medium
CN112821508B (en) Charging method, device and storage medium
CN104219372A (en) A method and an apparatus for adjusting backlight brightness of a mobile terminal
CN112702468A (en) Call control method and device
CN110336918B (en) Bright screen control method and device, storage medium and mobile terminal
CN105119984B (en) Send the method and device of file
CN111147730B (en) Shooting control method and device, electronic equipment and storage medium
CN104052872B (en) Electronic device with ringtone recognition function and ringtone recognition method
CN117119260A (en) Video control processing method and device

Legal Events

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