A vibration method, device, apparatus and storage medium

By using a rotating shaft and a rotating shaft motor to control the angle change between the first and second bodies in an electronic device, the problem of a single vibration mode is solved, a variety of vibration effects are achieved, the design is simplified, and the vibration motor is omitted.

CN115167670BActive Publication Date: 2026-02-27LENOVO (BEIJING) LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210771188.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-30
Publication Date
2026-02-27
Estimated Expiration
2042-06-30

AI Technical Summary

Technical Problem

The vibration of existing terminals relies on vibration motors installed in the terminals, which has the problems of limited vibration modes and high cost.

Method used

By setting a rotating shaft and a rotating shaft motor in an electronic device, and by utilizing the change of at least two relative angles between the first body and the second body, the rotating shaft motor is controlled to provide power, so that the angle between the first body and the second body changes between the relative angles with the vibration frequency, thereby achieving a variety of vibration effects.

Benefits of technology

It simplifies the design of electronic devices, eliminates the need for vibration motors, achieves diverse vibration effects, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115167670B_ABST
    Figure CN115167670B_ABST
Patent Text Reader

Abstract

The application discloses a vibration method, device, equipment and storage medium, wherein the electronic device comprises a first body, a second body, a rotating shaft connected with the first body and the second body, a rotating shaft motor for providing power for the rotating shaft, and the method comprises the following steps: acquiring a vibration instruction, wherein the vibration instruction comprises at least one vibration frequency and at least two relative angles between the first body and the second body; the rotating shaft motor is controlled to provide power for the rotating shaft, so that the angle between the first body and the second body changes between the at least two relative angles at the at least one vibration frequency, and the electronic device generates vibration.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the technical field of electronics, and relate to, but are not limited to, a vibration method, device, equipment and storage medium. BACKGROUND

[0002] The existing terminal vibration depends on the vibration motor arranged in the terminal, and there are problems of single vibration form and cost of setting the vibration motor. SUMMARY

[0003] Therefore, embodiments of the present application provide a vibration method, device, equipment and storage medium.

[0004] The technical scheme of the embodiments of the present application is implemented as follows:

[0005] In a first aspect, the embodiments of the present application provide a vibration method applied to an electronic device, the electronic device comprising a first body, a second body, a rotating shaft connecting the first body and the second body, a rotating shaft motor providing power for the rotating shaft, and the method comprising:

[0006] obtaining a vibration instruction, wherein the vibration instruction comprises at least one vibration frequency and at least two relative angles between the first body and the second body;

[0007] controlling the rotating shaft motor to provide power for the rotating shaft based on the vibration instruction, so that the angle between the first body and the second body changes between the at least two relative angles at the at least one vibration frequency, and the electronic device generates vibration.

[0008] In a second aspect, the embodiments of the present application provide an electronic device, comprising:

[0009] a first body; a second body;

[0010] a rotating shaft for connecting the first body and the second body;

[0011] a rotating shaft motor connected with the rotating shaft;

[0012] a controller configured to obtain a vibration instruction, wherein the vibration instruction comprises at least one vibration frequency and at least two relative angles between the first body and the second body;

[0013] the controller is further configured to control the rotating shaft motor to provide power for the rotating shaft based on the vibration instruction, so that the angle between the first body and the second body changes between the at least two relative angles at the at least one vibration frequency, and the electronic device generates vibration.

[0014] In a third aspect, an embodiment of the present application provides a vibration device, the device comprising:

[0015] an acquisition module configured to acquire a vibration instruction, wherein the vibration instruction comprises at least one vibration frequency and at least two relative angles between the first body and the second body;

[0016] a control module configured to control the rotation shaft motor to provide power for the rotation shaft based on the vibration instruction, so that the angle between the first body and the second body changes between the at least two relative angles at the at least one vibration frequency, and the electronic device generates vibration.

[0017] In a fourth aspect, an embodiment of the present application provides a storage medium storing executable instructions for causing a processor to execute the above method.

[0018] In an embodiment of the present application, the electronic device comprises a first body, a second body, a rotation shaft connecting the first body and the second body, and a rotation shaft motor providing power for the rotation shaft. First, a vibration instruction is acquired, wherein the vibration instruction comprises at least one vibration frequency and at least two relative angles between the first body and the second body. Then, the rotation shaft motor is controlled to provide power for the rotation shaft based on the vibration instruction, so that the angle between the first body and the second body changes between the at least two relative angles at the at least one vibration frequency, and the electronic device generates vibration. In this way, the vibration of the electronic device is achieved by using the change of the at least two relative angles between the first body and the second body in the electronic device, so as to omit the vibration motor in the electronic device, simplify the design of the electronic device, and achieve the effect of diversified vibration of the electronic device. BRIEF DESCRIPTION OF DRAWINGS

[0019] Figure 1 An implementation flowchart of a vibration method provided by an embodiment of the present application;

[0020] Figure 2 A schematic diagram of an electronic device provided by an embodiment of the present application;

[0021] Figure 3 An implementation flowchart of a vibration method provided by an embodiment of the present application;

[0022] Figure 4 A schematic diagram of the composition structure of an electronic device provided by an embodiment of the present application;

[0023] Figure 5 A schematic diagram of the composition structure of a vibration device provided by an embodiment of the present application;

[0024] Figure 6 A hardware entity diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the following will further describe the specific technical solutions of the embodiments of the present application with reference to the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but not to limit the scope of the present application.

[0026] In the following description, "some embodiments" are related to a subset of all possible embodiments, but it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict.

[0027] In the following description, the terms "first\second\third" are only to distinguish similar objects, and do not represent a specific order of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence as allowed, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0028] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application, and are not intended to limit the present application.

[0029] The embodiments of the present application provide a vibration method applied to an electronic device, which includes a first body, a second body, a rotating shaft connecting the first body and the second body, a rotating shaft motor providing power for the rotating shaft, as shown in the figure, and the method comprises the following steps: Figure 1

[0030] In step S110, a vibration instruction is obtained, wherein the vibration instruction includes at least one vibration frequency and at least two relative angles between the first body and the second body.

[0031] Figure 2 A schematic diagram of an electronic device provided by the embodiments of the present application includes a first body 21, a second body 22 and a rotating shaft 23, wherein

[0032] The first body 21 and the second body 22 are connected by the rotating shaft 23.

[0033] Here, the vibration instruction can be used to indicate the electronic device to start vibrating, the vibration mode and the vibration duration. In the implementation process, the user can set the vibration instruction based on different vibration needs, so as to meet the user's use demand in different vibration modes.

[0034] ​In some embodiments, the two relative angles can refer to two angle changes between the first body 21 and the second body 22. For example, the two relative angles can be -5 degrees and 5 degrees, which means the angle change between the first body and the second body can be between -5 degrees and 5 degrees, i.e. the angle between the first body and the second body decreases by 5 degrees and increases by 5 degrees.

[0035] In some embodiments, the two relative angles can refer to two angle changes of the first body 21 and the second body 22 respectively. For example, the first relative angle of 5 degrees can refer to an angle change of 5 degrees of the first body, and the second relative angle of 3 degrees can refer to an angle change of 3 degrees of the second body.

[0036] In the implementation process, since the vibration is generated by the rotation of the first body and the second body of the electronic device, at least two relative angles between the first body and the second body are needed to be obtained, so that the first body and the second body can be rotated based on the at least two relative angles. Here, at least one vibration frequency also needs to be determined to determine the frequency of rotation.

[0037] In some embodiments, the electronic device can be a folding terminal, and the first body and the second body can be two parts connected by a rotation shaft of the folding terminal.

[0038] In some embodiments, the electronic device can be a flexible screen electronic device, and the first body and the second body can be two parts of the flexible screen, which can be folded inward or outward based on the rotation shaft in use.

[0039] In step S120, the rotation shaft motor is controlled to provide power to the rotation shaft based on the vibration instruction, so that the angle between the first body and the second body changes between the at least two relative angles at the at least one vibration frequency, and the electronic device generates vibration.

[0040] Here, the vibration instruction can be sent to the controller of the electronic device in the form of a command, so that the controller of the electronic device starts the vibration of the electronic device based on the vibration instruction.

[0041] In some embodiments, the vibration instruction includes a vibration frequency and two relative angles, and then the electronic device can complete the vibration based on the vibration frequency and the two relative angles.

[0042] In some embodiments, the vibration instruction includes multiple vibration frequencies and multiple relative angles, and information such as vibration period, and then the electronic device can complete multiple different forms of vibration based on the vibration instruction combination.

[0043] In the embodiments of the present application, the electronic device comprises a first body, a second body, a rotating shaft connecting the first body and the second body, and a rotating shaft motor for providing power to the rotating shaft. First, a vibration instruction is acquired, wherein the vibration instruction comprises at least one vibration frequency and at least two relative angles between the first body and the second body. Then, the rotating shaft motor is controlled to provide power to the rotating shaft based on the vibration instruction, so that the angle between the first body and the second body changes between the at least two relative angles at the at least one vibration frequency, and the electronic device generates vibration. In this way, the vibration of the electronic device is realized by changing the at least two relative angles between the first body and the second body, so as to omit the vibration motor in the electronic device, simplify the design of the electronic device, and achieve the effect of diversified vibration of the electronic device.

[0044] In some embodiments, the above step S120 "controlling the rotating shaft motor to provide power to the rotating shaft based on the vibration instruction, so that the angle between the first body and the second body changes between the at least two relative angles at the at least one vibration frequency, and the electronic device generates vibration" can be realized by the following steps:

[0045] Step 121, determining the current angle between the first body and the second body based on the vibration instruction;

[0046] In the implementation process, in the case of determining that the electronic device starts to vibrate, it is necessary to first determine the current angle between the first body and the second body. For example, in the case that the user is using the electronic device, the current angle can be 90 degrees or 180 degrees.

[0047] Step 122, determining the absolute angle corresponding to the at least two relative angles based on the current angle;

[0048] In the implementation process, it is necessary to determine the absolute angle corresponding to the at least two relative angles in the vibration instruction based on the current angle, which is the absolute angle that the first body and / or the second body needs to change.

[0049] For example, in the case of determining that the current angle is 90 degrees, the absolute angle of the first body can be first determined as 0 degrees, and the absolute angle of the second body is 90 degrees.

[0050] In some embodiments, the two relative angles can refer to two angle changes between the first body and the second body, for example, the relative angles can be negative 5 degrees and positive 5 degrees, the angle changes between the first body and the second body can be between negative 5 degrees and positive 5 degrees, that is, the angle between the first body and the second body decreases by 5 degrees and increases by 5 degrees. Then the angle between the first body and the second body can be determined as 85 degrees and 95 degrees, the absolute angle of the first body is between negative 2.5 degrees and positive 2.5 degrees, and the absolute angle of the second body is between 92.5 degrees and 87.5 degrees.

[0051] In some embodiments, the two relative angles can refer to two angle changes corresponding to the first body and the second body respectively, for example, the first relative angle of 5 degrees can refer to the angle change of the first body of 5 degrees, and the second relative angle of 3 degrees can refer to the angle change of the second body of 3 degrees. Then the absolute angle of the first body can be determined as negative 2.5 degrees to positive 2.5 degrees, and the absolute angle of the second body can be determined as 91.5 degrees to 88.5 degrees.

[0052] Step 123, control the rotation shaft motor to provide power for the rotation shaft, so that the angle between the first body and the second body based on the absolute angle, the at least one vibration frequency generates vibration.

[0053] In the embodiments of the present application, first, based on the vibration instruction, the current angle between the first body and the second body is determined; then, based on the current angle, the absolute angle corresponding to the at least two relative angles is determined; finally, the rotation shaft motor is controlled to provide power for the rotation shaft, so that the angle between the first body and the second body based on the absolute angle, the at least one vibration frequency generates vibration. In this way, the absolute angle of vibration can be determined based on the current angle between the first body and the second body, so as to generate vibration without affecting the current use.

[0054] In some embodiments, the above step 123 "control the rotation shaft motor to provide power for the rotation shaft, so that the angle between the first body and the second body based on the absolute angle, the at least one vibration frequency changes between the at least two relative angles, the electronic device generates vibration" can be realized by the following steps:

[0055] Step 1231, determine the working state of the electronic device;

[0056] Here, the working state of the electronic device includes the folding angle of the electronic device, the working state of the first body and the second body. For example, the working state can be the closed state of the folding terminal, and the inner folding / outer folding screen of the folding terminal can also be in the open state.

[0057] determining absolute angles corresponding to the at least two relative angles based on the working state;

[0058] Here, since the vibration is generated in different working states, it is necessary to determine the absolute angles corresponding to the at least two relative angles based on the working state so as to minimize the influence on the normal use of the electronic device.

[0059] For example, in the case of determining that the working state is the closed state, it can be determined that the two relative angles are -5 degrees and +5 degrees, and the angle between the first body and the second body is -5 degrees and +5 degrees.

[0060] In the case of determining that the first body is an output screen, in order to minimize the influence on the user watching the first body, the angle of the second body can be changed to generate vibration, so that the absolute angle of the second body can be determined based on the two relative angles.

[0061] Step 1233, controlling the rotation shaft motor to provide power to the rotation shaft, so that the angle between the first body and the second body is based on the absolute angle, and the vibration is generated at the at least one vibration frequency.

[0062] In the embodiment of the application, the working state of the electronic device is first determined, then the absolute angles corresponding to the at least two relative angles are determined based on the working state, and finally the rotation shaft motor is controlled to provide power to the rotation shaft, so that the angle between the first body and the second body is based on the absolute angle, and the vibration is generated at the at least one vibration frequency. In this way, the vibration can be generated while minimizing the influence on the user using the electronic device.

[0063] In some embodiments, the working state includes that the first body is an output screen,

[0064] The above step 1232 "determining absolute angles corresponding to the at least two relative angles based on the working state" can be implemented by the following steps:

[0065] In the case of determining that the first body is an output screen, at least two absolute angles of the second body are determined based on the at least two relative angles;

[0066] Correspondingly, the above step 1233 "controlling the rotation shaft motor to provide power to the rotation shaft, so that the angle between the first body and the second body is based on the absolute angle, and the vibration is generated at the at least one vibration frequency between the at least two relative angles, and the electronic device generates vibration" can be implemented by the following process:

[0067] The rotation shaft motor is controlled to provide power for the rotation shaft, so that the second body transforms between the at least two absolute angles at the at least one vibration frequency, and the electronic device generates vibration.

[0068] In some embodiments, when it is determined that the second body is an output screen, at least two absolute angles of the first body are also determined, and the rotation shaft motor is controlled to provide power for the rotation shaft, so that the first body transforms between the at least two absolute angles at the at least one vibration frequency, and the electronic device generates vibration.

[0069] In the embodiments of the present application, when it is determined that the first body is an output screen, at least two absolute angles of the second body are determined based on the at least two relative included angles; and the rotation shaft motor is controlled to provide power for the rotation shaft, so that the second body transforms between the at least two absolute angles at the at least one vibration frequency, and the electronic device generates vibration. In this way, when it is determined that the first body is an output screen, only the absolute angles of the second body are transformed to generate vibration, thereby reducing the influence on the user watching the first body.

[0070] In some embodiments, the rotation shaft includes a first rotation shaft and a second rotation shaft, the first rotation shaft is connected with the first body, and the second rotation shaft is connected with the second body. The determination of the absolute angles corresponding to the at least two relative included angles based on the working state includes:

[0071] When it is determined that the first body is an output screen, at least two absolute angles of the second body are determined based on the at least two relative included angles.

[0072] Correspondingly, the control of the rotation shaft motor to provide power for the rotation shaft so that the included angle between the first body and the second body is based on the absolute angles to generate vibration at the at least one vibration frequency includes:

[0073] The rotation shaft motor is controlled to provide power for the second rotation shaft, so that the second body transforms between the at least two absolute angles at the at least one vibration frequency, and the electronic device generates vibration.

[0074] In some embodiments, the rotation shaft motor includes a first rotation shaft motor and a second rotation shaft motor, the first rotation shaft motor is connected with the first rotation shaft, and the second rotation shaft motor is connected with the second rotation shaft. The control of the rotation shaft motor to provide power for the second rotation shaft so that the second body transforms between the at least two absolute angles at the at least one vibration frequency, and the electronic device generates vibration includes:

[0075] controlling the second rotating shaft motor to provide power for the second rotating shaft, so that the second body transforms between the at least two absolute angles at the at least one vibration frequency, and the electronic device generates vibration.

[0076] In the embodiments of the present application, the rotating shaft can be divided into two parts (the first rotating shaft and the second rotating shaft) and connected with the first body and the second body respectively, so as to control the independent rotation of the first body and the second body respectively. The rotating shaft motor is connected with the first rotating shaft and the second rotating shaft respectively by switching, so as to control the rotation of the first rotating shaft and the second rotating shaft respectively; the rotating shaft motor can also include a first rotating shaft motor and a second rotating shaft motor, which are connected with the first rotating shaft and the second rotating shaft respectively, so as to control the rotation of the first rotating shaft and the second rotating shaft respectively. In this way, in different use scenarios, the first body or the second body can be controlled to rotate respectively, so as to generate vibration without affecting the use of the user.

[0077] In some embodiments, the electronic device further includes a touch sensor for detecting whether the electronic device is in contact with the outside world, and the above step S120 "controlling the rotating shaft motor to provide power for the rotating shaft, so that the included angle between the first body and the second body transforms between the at least two relative angles at the at least one vibration frequency, and the electronic device generates vibration" can be realized by the following steps:

[0078] determining that the first body is in contact with an object based on the touch sensor;

[0079] controlling the rotating shaft motor to provide the first body with the first power based on the at least two relative angles to generate vibration at the vibration frequency;

[0080] or,

[0081] determining that the second body is in contact with an object;

[0082] controlling the rotating shaft motor to provide the second body with the second power based on the at least two relative angles to generate vibration at the vibration frequency;

[0083] wherein the directions of the first power and the second power are different.

[0084] For example, in the case of determining that the folding terminal is placed on the desktop based on the touch sensor, i.e., the first body of the folding terminal is in contact with the desktop, the first body can be rotated to generate vibration, so as to more effectively achieve the effect of vibration prompt.

[0085] In the case of determining that the user holds the first body based on the touch sensor, the first body can be rotated to generate vibration, so that the user can more effectively feel the effect of vibration prompt.

[0086] In some embodiments, the vibration instruction further comprises a vibration duration, and the step S120 of "controlling the rotating shaft motor to power the rotating shaft based on the vibration instruction, so that the included angle between the first body and the second body is transformed between the at least two relative included angles at the at least one vibration frequency within the vibration duration, and the electronic device generates vibration" can be implemented by the following steps:

[0087] controlling the rotating shaft motor to power the rotating shaft based on the vibration instruction, so that the included angle between the first body and the second body is transformed between the at least two relative included angles at the at least one vibration frequency within the vibration duration, and the electronic device generates vibration.

[0088] In the embodiments of the present application, the vibration instruction further comprises a vibration duration, and the vibration time of the electronic device can be controlled based on the vibration duration.

[0089] In some embodiments, the vibration instruction comprises a notification vibration instruction and a key vibration instruction, and the step of "controlling the rotating shaft motor to power the rotating shaft based on the vibration instruction, so that the included angle between the first body and the second body is transformed between the at least two relative included angles at the at least one vibration frequency within the vibration duration, and the electronic device generates vibration" comprises:

[0090] In a case where it is determined that the vibration instruction is a notification vibration instruction, the rotating shaft motor is controlled to provide a third power to the rotating shaft, so that the first included angle between the first body and the second body is transformed between the at least two relative included angles at a first frequency within a first vibration duration, so that the electronic device generates vibration;

[0091] In a case where it is determined that the vibration instruction is a key vibration instruction, the rotating shaft motor is controlled to provide a fourth power to the rotating shaft, so that the first included angle between the first body and the second body is transformed between the at least two relative included angles at a second frequency within a second vibration duration, so that the electronic device generates vibration;

[0092] wherein the first frequency is greater than the second frequency, the first vibration duration is greater than the second vibration duration, and the third power and the fourth power are different powers.

[0093] In the embodiments of the present application, different vibration effects can be achieved by setting different vibration frequencies and vibration durations based on different vibration instructions.

[0094] In some embodiments, the electronic device further comprises a vibration motor, and the step S120 of "controlling the rotation shaft motor to power the rotation shaft so that the included angle between the first body and the second body changes between the at least two relative included angles at the at least one vibration frequency based on the vibration instruction, so that the electronic device generates vibration" can be implemented by the following process:

[0095] In the process of controlling the rotation shaft motor to power the rotation shaft so that the included angle between the first body and the second body changes between the at least two relative included angles at the at least one vibration frequency based on the vibration instruction, the vibration motor of the electronic device is controlled to vibrate so that the electronic device generates vibration.

[0096] Here, the rotation of the first body and the second body can realize the up-down vibration of the electronic device, and the vibration motor can realize the left-right vibration of the electronic device. The combination of the up-down vibration and the left-right vibration can bring the user a more diverse vibration experience.

[0097] In the embodiments of the present application, the electronic device further comprises a vibration motor, and the vibration motor, the first body and the second body can be used to realize more diverse vibration effects.

[0098] In some embodiments, the vibration instruction further comprises a target timing, such as Figure 3 As shown, the step S120 of "controlling the rotation shaft motor to power the rotation shaft so that the included angle between the first body and the second body changes between the at least two relative included angles at the at least one vibration frequency based on the vibration instruction, and controlling the vibration motor of the electronic device to vibrate so that the electronic device generates vibration" can be implemented by the following steps:

[0099] Step S310, determining the target timing based on the vibration instruction, wherein the target timing comprises a first timing and a second timing;

[0100] Step S320, controlling the rotation shaft motor to power the rotation shaft so that the included angle between the first body and the second body changes between the at least two relative included angles at the at least one vibration frequency based on the first timing;

[0101] Step S330, controlling the vibration motor of the electronic device to vibrate based on the second timing, so that the electronic device generates vibration.

[0102] Here, the vibration generated based on the first timing and the second timing can be simultaneous or interleaved.

[0103] In the embodiments of the present application, the vibration motor and the rotating shaft vibration can be combined in time sequence to realize simultaneous vibration or interleaved vibration, form more diverse vibration effects, and meet different vibration needs of users.

[0104] The embodiments of the present application provide an electronic device, such as Figure 4 as shown, comprising:

[0105] a first body 41;

[0106] a second body 42;

[0107] a rotating shaft 43 for connecting the first body and the second body;

[0108] a rotating shaft motor 44 connected with the rotating shaft;

[0109] a controller 45 for obtaining a vibration instruction, wherein the vibration instruction includes at least one vibration frequency and at least two relative angles between the first body and the second body;

[0110] The controller 45 is further configured to control the rotating shaft motor to provide power to the rotating shaft based on the vibration instruction, so that the angle between the first body and the second body changes between the at least two relative angles at the at least one vibration frequency, and the electronic device generates vibration.

[0111] In the embodiments of the present application, the electronic device includes a first body, a second body, a rotating shaft connecting the first body and the second body, and a rotating shaft motor providing power to the rotating shaft. First, a vibration instruction is obtained, wherein the vibration instruction includes at least one vibration frequency and at least two relative angles between the first body and the second body. Then, the rotating shaft motor is controlled to provide power to the rotating shaft based on the vibration instruction, so that the angle between the first body and the second body changes between the at least two relative angles at the at least one vibration frequency, and the electronic device generates vibration. In this way, the vibration of the electronic device is realized by using the change of the at least two relative angles between the first body and the second body in the electronic device, so as to omit the vibration motor in the electronic device, simplify the design of the electronic device, and achieve the effect of diversified vibration of the electronic device.

[0112] Based on the foregoing embodiments, the embodiments of the present application provide a vibration device, which includes included modules, each module includes sub-modules, and can be implemented by a processor in an electronic device; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor unit (MPU), a digital signal processing (Digital Signal Process, DSP) or a field programmable gate array (Field Programmable Gate Array, FPGA) and the like.

[0113] Figure 5 The composition structure diagram of the vibration device provided by the embodiments of the present application is shown in Figure 5 As shown, the device 500 includes:

[0114] The acquisition module 510 is configured to acquire a vibration instruction, wherein the vibration instruction includes at least one vibration frequency and at least two relative angles between the first body and the second body.

[0115] The control module 520 is configured to control the shaft motor to provide power for the shaft based on the vibration instruction, so that the angle between the first body and the second body changes between the at least two relative angles at the at least one vibration frequency, and the electronic device generates vibration.

[0116] In some embodiments, the control module 520 includes a first determination sub-module, a second determination sub-module and a first control sub-module, wherein the first determination sub-module is configured to determine the current angle between the first body and the second body based on the vibration instruction; the second determination sub-module is configured to determine the absolute angle corresponding to the at least two relative angles based on the current angle; and the first control sub-module is configured to control the shaft motor to provide power for the shaft, so that the angle between the first body and the second body generates vibration based on the absolute angle at the at least one vibration frequency.

[0117] In some embodiments, the control module 520 includes a third determination sub-module, a fourth determination sub-module and a second control sub-module, wherein the third determination sub-module is configured to determine the working state of the electronic device; the fourth determination sub-module is configured to determine the absolute angle corresponding to the at least two relative angles based on the working state; and the second control sub-module is configured to control the shaft motor to provide power for the shaft, so that the angle between the first body and the second body generates vibration based on the absolute angle at the at least one vibration frequency.

[0118] In some embodiments, the working state includes that the first body is an output screen, the fourth determining sub-module is further configured to determine at least two absolute angles of the second body based on the at least two relative angles in a case that the first body is the output screen; and the second control sub-module is further configured to control the rotation shaft motor to provide power for the rotation shaft, so that the second body transforms between the at least two absolute angles at the at least one vibration frequency, and the electronic device generates vibration.

[0119] In some embodiments, the electronic device further includes a vibration motor, and the control module 520 is further configured to control the vibration motor of the electronic device to vibrate while controlling the rotation shaft motor to provide power for the rotation shaft so that the angle between the first body and the second body transforms between the at least two relative angles at the at least one vibration frequency according to the vibration instruction, so that the electronic device generates vibration.

[0120] In some embodiments, the vibration instruction further includes a target timing, and the control module 520 includes a fifth determining sub-module, a third control sub-module, and a fourth control sub-module, wherein the fifth determining sub-module is configured to determine a target timing based on the vibration instruction, the target timing includes a first timing and a second timing; the third control sub-module is configured to control the rotation shaft motor to provide power for the rotation shaft, so that the angle between the first body and the second body transforms between the at least two relative angles at the at least one vibration frequency based on the first timing; and the fourth control sub-module is configured to control the vibration motor of the electronic device to vibrate based on the second timing, so that the electronic device generates vibration.

[0121] The above description of the device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the device embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.

[0122] It should be noted that, in the embodiments of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of a software product in essence or the part that contributes to the related art, and the computer software product is stored in a storage medium, including a plurality of instructions for causing an electronic device (which can be a mobile phone, a tablet computer, a notebook computer, a desktop computer, etc.) to execute all or part of the method described in the embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (Read Only Memory, ROM), a magnetic disk or an optical disk, and various media that can store program codes. Thus, the embodiments of the present application are not limited to any specific hardware and software combination.

[0123] Correspondingly, the embodiments of the present application provide a storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the vibration method provided in the above embodiments.

[0124] Correspondingly, the embodiments of the present application provide an electronic device, Figure 6 A hardware entity schematic diagram of the electronic device provided in the embodiments of the present application is shown in FIG. 6, which includes a memory 601 and a processor 602. The memory 601 stores a computer program executable on the processor 602, and the processor 602 implements the steps of the vibration method provided in the above embodiments when executing the program. Figure 6

[0125] The memory 601 is configured to store instructions and applications executable by the processor 602, and can also cache data (for example, image data, audio data, voice communication data and video communication data) to be processed by the processor 602 and each module in the electronic device 600, which can be implemented by a flash memory (FLASH) or a random access memory (Random Access Memory, RAM).

[0126] It should be noted that the above description of the storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects to the method embodiments. For technical details not disclosed in the storage medium and device embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.

[0127] ​It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely descriptive and do not represent the superiority or inferiority of the embodiments.

[0128] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0129] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.

[0130] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.

[0131] In addition, each functional unit in the various embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0132] Those skilled in the art can understand that all or part of the steps of the above-mentioned method embodiments can be completed by program instruction related hardware, and the foregoing program can be stored in a computer readable storage medium, and the program performs the steps of the above-mentioned method embodiments when executed; and the foregoing storage medium includes a mobile storage device, a read only memory (ROM), a magnetic disc or an optical disc, and various storage medium that can store program codes.

[0133] Alternatively, the integrated units of the present application can be stored in a computer readable storage medium if they are realized in the form of software function modules and sold or used as independent products. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of software products, and the computer software products are stored in a storage medium, including a plurality of instructions for making an electronic device (which can be a mobile phone, a tablet computer, a notebook computer, a desktop computer, etc.) execute all or part of the methods described in the embodiments of the present application. The foregoing storage medium includes a mobile storage device, a ROM, a magnetic disc or an optical disc, and various storage medium that can store program codes.

[0134] The methods disclosed in the several method embodiments provided by the present application can be combined arbitrarily without conflict to obtain new method embodiments.

[0135] The features disclosed in the several product embodiments provided by the present application can be combined arbitrarily without conflict to obtain new product embodiments.

[0136] The features disclosed in the several method or device embodiments provided by the present application can be combined arbitrarily without conflict to obtain new method embodiments or device embodiments.

[0137] The above is only an implementation of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical range disclosed in the present application, which should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method for vibrating an electronic device, the electronic device comprising a first body, a second body, a rotation shaft connecting the first body and the second body, a rotation shaft motor powering the rotation shaft, the method comprising: controlling the rotation shaft motor to power the rotation shaft such that the first body and the second body change an angle based on the rotation shaft to form an angle between the first body and the second body, the angle between the first body and the second body belonging to an open state of the electronic device; obtaining a vibration instruction, wherein the vibration instruction comprises at least one vibration frequency and at least two relative angles between the first body and the second body; and controlling the rotation shaft motor to power the rotation shaft based on the vibration instruction such that the angle between the first body and the second body changes between the at least two relative angles at the at least one vibration frequency, and the electronic device generates vibration. 2.The method of claim 1, wherein the controlling the rotation shaft motor to power the rotation shaft based on the vibration instruction such that the angle between the first body and the second body changes between the at least two relative angles at the at least one vibration frequency, and the electronic device generates vibration comprises: determining a current angle between the first body and the second body based on the vibration instruction; determining absolute angles corresponding to the at least two relative angles based on the current angle; and controlling the rotation shaft motor to power the rotation shaft such that the angle between the first body and the second body changes based on the absolute angles at the at least one vibration frequency, and the electronic device generates vibration. 3.The method of claim 1, wherein the controlling the rotation shaft motor to power the rotation shaft such that the angle between the first body and the second body changes between the at least two relative angles at the at least one vibration frequency, and the electronic device generates vibration comprises: determining a working state of the electronic device; determining absolute angles corresponding to the at least two relative angles based on the working state; and controlling the rotation shaft motor to power the rotation shaft such that the angle between the first body and the second body changes based on the absolute angles at the at least one vibration frequency, and the electronic device generates vibration. 4.The method of claim 3, wherein the working state comprises that the first body is an output screen, and the determining absolute angles corresponding to the at least two relative angles based on the working state comprises: determining at least two absolute angles of the second body based on the at least two relative angles, based on that the first body is the output screen; and correspondingly, the controlling the rotation shaft motor to power the rotation shaft such that the angle between the first body and the second body changes based on the absolute angles at the at least one vibration frequency, and the electronic device generates vibration comprises: controlling the rotation shaft motor to power the rotation shaft such that the second body changes between the at least two absolute angles at the at least one vibration frequency, and the electronic device generates vibration. ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ 5.The method of claim 1, wherein the electronic device further comprises a vibration motor, and the controlling the rotation motor to power the rotation shaft such that the included angle between the first body and the second body is transformed between the at least two relative included angles at the at least one vibration frequency, the electronic device generates a vibration, comprises: controlling the vibration motor of the electronic device to vibrate such that the electronic device generates a vibration, while the rotation motor is controlled to power the rotation shaft such that the included angle between the first body and the second body is transformed between the at least two relative included angles at the at least one vibration frequency based on the vibration instruction. 6.The method of claim 5, wherein the vibration instruction further comprises a target timing, and the controlling the vibration motor of the electronic device to vibrate such that the electronic device generates a vibration, while the rotation motor is controlled to power the rotation shaft such that the included angle between the first body and the second body is transformed between the at least two relative included angles at the at least one vibration frequency based on the vibration instruction, comprises: determining the target timing based on the vibration instruction, wherein the target timing comprises a first timing and a second timing; controlling the rotation motor to power the rotation shaft such that the included angle between the first body and the second body is transformed between the at least two relative included angles at the at least one vibration frequency based on the first timing; and controlling the vibration motor of the electronic device to vibrate based on the second timing such that the electronic device generates a vibration. 7.An electronic device, comprising: a first body; a second body; a rotation shaft for connecting the first body and the second body; a rotation motor connected to the rotation shaft; a controller configured to control the rotation motor to power the rotation shaft such that the first body and the second body are angularly transformed based on the rotation shaft to form an included angle between the first body and the second body, the included angle between the first body and the second body belonging to an open state of the electronic device; the controller configured to obtain a vibration instruction, wherein the vibration instruction comprises at least one vibration frequency and at least two relative included angles between the first body and the second body; and the controller further configured to control the rotation motor to power the rotation shaft such that the included angle between the first body and the second body is transformed between the at least two relative included angles at the at least one vibration frequency based on the vibration instruction, the electronic device generates a vibration. 8.The electronic device of claim 7, further comprising: a vibration motor; and the controller further configured to control the vibration motor of the electronic device to vibrate such that the electronic device generates a vibration, while the rotation motor is controlled to power the rotation shaft such that the included angle between the first body and the second body is transformed between the at least two relative included angles at the at least one vibration frequency based on the vibration instruction. 9.A vibration device, comprising: ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ A control module controls the rotation shaft motor to provide power to the rotation shaft, so that the first body and the second body change angles based on the rotation shaft to form an included angle between the first body and the second body, and the included angle between the first body and the second body belongs to an open state of the electronic device. An acquisition module is configured to acquire a vibration instruction, wherein the vibration instruction includes at least one vibration frequency and at least two relative included angles between the first body and the second body. A control module is configured to control the rotation shaft motor to provide power to the rotation shaft based on the vibration instruction, so that the included angle between the first body and the second body changes between the at least two relative included angles at the at least one vibration frequency, and the electronic device generates vibration.

10. A storage medium, characterized in that, Executable instructions are stored in the memory, and when the processor executes the executable instructions, the steps in the method of any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Controller apparatus, controller apparatus controlling method, and program

    CN112891925A

  • Interactive computing system and control device

    US11137830B1