Disclosure of Invention
The application provides a touch control assembly control method and device, a touch control assembly and a terminal, which can solve the technical problem that vibration fed back to a touch control surface by a vibrating piece is uneven after touch is performed on the touch control surface in different areas in the touch control assembly in the related art.
In a first aspect, an embodiment of the present application provides a method for controlling a touch device, where the touch device at least includes a touch pad and a vibrating element, the method including: when the touch operation on the touch pad is monitored, determining a corresponding target area of the touch operation on the touch pad; acquiring an amplitude ratio of a reference area and the target area in the touch pad, and acquiring a reference excitation signal corresponding to the reference area; obtaining a target excitation signal corresponding to the target area according to the amplitude ratio and a reference excitation signal; and sending the target excitation signal to the vibrating piece, wherein the target excitation signal indicates the amplitude of the vibrating piece when the vibrating piece drives the target area to vibrate, and the amplitude of the vibration is the same as the vibration of the vibrating piece when the reference excitation signal indicates the vibrating piece drives the reference area to vibrate.
Since the amplitude ratio of the reference region to the target region represents the relationship between the vibration amplitudes of the reference region and the target region, the relationship between the reference excitation signal corresponding to the reference region and the target excitation signal corresponding to the target region can be obtained according to the relationship between the vibration amplitudes of the reference region and the target region, so that the target excitation signal indicates the amplitude of the vibration member when the vibration member drives the target region to vibrate, and the amplitude is the same as the vibration when the reference excitation signal indicates the vibration member when the vibration member drives the reference region to vibrate, and the effect of consistent amplitude at any position in the pressing touch panel can be realized.
Optionally, the touch pad comprises a plurality of touch partitions, each touch partition comprising a plurality of areas; the determining a target area corresponding to the touch operation on the touch pad includes: determining a target area corresponding to the touch operation on the touch pad, and determining a target touch subarea corresponding to the target area; the obtaining an amplitude ratio of a reference region to the target region in the touch pad includes: and determining a reference area in the target touch subarea, and acquiring an amplitude ratio of the reference area and the target area in the target touch subarea from a database.
The touch panel can be divided into a plurality of touch partitions, and each touch partition is further divided into a plurality of areas, so that a target area where a touch operation is located and a target touch partition corresponding to the target area can be quickly determined, and the amplitude ratio of a reference area and the target area in the target touch partition can be obtained from a database, so that the amplitude of the reference area is taken as the amplitude of the target area according to the amplitude ratio of the reference area and the target area, and the amplitude of the target area is consistent with the amplitude of the reference area.
Optionally, when it is monitored that a touch operation exists on the touch pad, determining that the touch operation is in front of a corresponding target area on the touch pad further includes: sending a test excitation signal to a vibrating piece, wherein the test excitation signal is used for indicating the vibrating piece to generate test vibration, so that the vibrating piece drives the touch pad to generate the test vibration; acquiring the amplitude of each area in each touch subarea when the touch pad generates test vibration through an amplitude measuring device; and acquiring the amplitude ratio of the reference area in each touch subarea to each area in each touch subarea, and storing each amplitude ratio to a database.
The vibration test can be performed on the touch pad in advance to obtain the amplitude ratio between the reference area in each touch partition and each area in each touch partition when the touch pad generates the test vibration, obtain the amplitude ratio between the reference area in each touch partition and each area in each touch partition, and store each amplitude ratio in the database.
Optionally, the obtaining a target excitation signal corresponding to the target region according to the amplitude ratio and a reference excitation signal includes: and taking the product of the amplitude ratio and the reference excitation signal as a target excitation signal corresponding to the target area.
The calculation formula of the target excitation signal corresponding to the target area is as follows:
wherein, V
PP' a target excitation signal corresponding to the target area,
is the amplitude ratio, V
PPIs the reference excitation signal.
The amplitude ratio of the reference area to the target area represents the vibration amplitude relationship between the reference area and the target area, the reference excitation signal is an excitation signal corresponding to the reference area, and since the amplitude of each area in the touch pad is proportional to the excitation signal corresponding to each area, the product of the amplitude ratio and the reference excitation signal is used as the target excitation signal corresponding to the target area, and the target excitation signal indicates the vibration of the vibrating piece, so that the aim of enabling the amplitudes of the target area and the reference area in the touch pad to be consistent can be achieved.
Optionally, the obtaining a target excitation signal corresponding to the target region according to the amplitude ratio and a reference excitation signal may further include: taking the product of a preset coefficient, the amplitude ratio and the reference excitation signal as a target excitation signal corresponding to the target area;
the calculation formula of the target excitation signal corresponding to the target area is as follows:
wherein, V
PP' a target excitation signal corresponding to the target area,
in order to be the said pre-set coefficient,
is the amplitude ratio, V
PPIs the reference excitation signal; wherein the preset coefficient is greater than zero and less than the amplitude ratio of the reference area in the preset touch partition to the reference area in the target touch partition; or the preset coefficient is equal to the amplitude ratio of the reference area in the preset touch partition to the reference area in the target touch partition; or the preset coefficient is larger than the amplitude ratio of the reference area in the preset touch partition to the reference area in the target touch partition.
Because the touch pad can be divided into a plurality of touch partitions, the vibration amplitude of each area in each touch partition can be consistent while different touch partitions can realize different vibration amplitudes of different touch partitions by setting the numerical value of the prediction coefficient, so as to meet the requirements of different users.
Optionally, the vibrating element corresponds to the preset touch partition in the touch pad, and since the position of the touch pad corresponding to the vibrating element is a vibration center of the touch pad, the preset touch partition is used as the vibration center, which is equivalent to using the preset touch partition as a reference touch partition, so that vibration amplitudes of different touch partitions can be determined conveniently and preset coefficients can be calculated conveniently.
In a second aspect, an embodiment of the present application provides a touch device control apparatus, where the touch device at least includes a touch pad and a vibrating element, the apparatus includes: the target area determining module is used for determining a corresponding target area of the touch operation on the touch pad when the touch operation on the touch pad is monitored; the amplitude ratio acquisition module is used for acquiring the amplitude ratio of a reference area and the target area in the touch pad and acquiring a reference excitation signal corresponding to the reference area; a target excitation signal acquisition module, configured to obtain a target excitation signal corresponding to the target area according to the amplitude ratio and a reference excitation signal; the driving module is used for sending the target excitation signal to the vibrating piece, wherein the target excitation signal indicates that the vibrating piece drives the amplitude when the target area vibrates, and the reference excitation signal indicates that the vibrating piece drives the vibration when the reference area vibrates is the same.
Since the amplitude ratio of the reference region to the target region represents the relationship between the vibration amplitudes of the reference region and the target region, the relationship between the reference excitation signal corresponding to the reference region and the target excitation signal corresponding to the target region can be obtained according to the relationship between the vibration amplitudes of the reference region and the target region, so that the target excitation signal indicates the amplitude of the vibration member when the vibration member drives the target region to vibrate, and the amplitude is the same as the vibration when the reference excitation signal indicates the vibration member when the vibration member drives the reference region to vibrate, and the effect of consistent amplitude at any position in the pressing touch panel can be realized.
In a third aspect, an embodiment of the present application provides a touch device, where the touch device at least includes a touch pad and a vibrating element, where the vibrating element receives a target excitation signal in the method according to any one of the above embodiments, and vibrates according to the target excitation signal and drives a target area in the touch pad to vibrate; or, the vibrating element receives a reference excitation signal in the method according to any one of the embodiments, vibrates according to the reference excitation signal, and drives a reference area in the touch pad to vibrate; wherein the amplitude of the vibration when the vibrating member drives the target region to vibrate according to the target excitation signal is the same as the vibration when the vibrating member drives the reference region to vibrate according to the reference excitation signal.
Because the target excitation signal indicates the amplitude of the vibration member when driving the target area to vibrate, and the amplitude of the vibration member when driving the reference area to vibrate is the same as the amplitude of the vibration member when driving the reference area to vibrate, the effect that the amplitudes of any positions in the pressing touch pad are consistent can be realized.
In a fourth aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the steps of the method according to any one of the above embodiments.
In a fifth aspect, an embodiment of the present application provides a terminal, including the touch device in the foregoing embodiments, further including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method in any one of the foregoing embodiments when executing the program.
The beneficial effects brought by the technical scheme provided by some embodiments of the application at least comprise:
the application provides a control method of a touch control assembly, the touch control assembly at least comprises a touch control panel and a vibrating piece, and the method comprises the following steps: when the touch operation on the touch pad is monitored, determining a corresponding target area of the touch operation on the touch pad; acquiring an amplitude ratio of a reference area and a target area in the touch pad, and acquiring a reference excitation signal corresponding to the reference area; obtaining a target excitation signal corresponding to the target area according to the amplitude ratio and the reference excitation signal; and sending a target excitation signal to the vibrating member, wherein the target excitation signal indicates the amplitude of the vibrating member when the vibrating member drives the target area to vibrate, and the target excitation signal indicates the same vibration when the vibrating member drives the reference area to vibrate. Because the amplitude ratio of the reference area to the target area represents the vibration amplitude relationship between the reference area and the target area, the relationship between the reference excitation signal corresponding to the reference area and the target excitation signal corresponding to the target area can be obtained according to the vibration amplitude relationship between the reference area and the target area, so that the target excitation signal indicates the amplitude of the vibrating piece when the vibrating piece drives the target area to vibrate, and the amplitude is the same as the vibration when the reference excitation signal indicates the vibrating piece to drive the reference area to vibrate, and the effect of consistent amplitude at any position in the pressing touch pad can be realized.
Detailed Description
In order to make the features and advantages of the present application more obvious and understandable, 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, and it is apparent that the described embodiments are only a part of the embodiments of the present application, and not all the 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.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
In the description of the embodiments of the present application, it is to be understood that, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Referring to fig. 1, fig. 1 is a system interaction diagram of a touch device control method according to a first embodiment of the present application.
It should be noted that the execution main body in the embodiment of the present application may be, for example, a Central Processing Unit (CPU) or other integrated circuit chip in the terminal in terms of hardware, and may be, for example, a service related to a control method of a touch component in the terminal in terms of software, which is not limited to this. For convenience of description, a system interaction process of a control method of a touch device is described below with an execution main body of the embodiment of the present application as a central processing unit, a touch device is disposed in a terminal, the central processing unit is electrically connected to the touch device, and the touch device at least includes a touch pad and a vibrating element.
As shown in fig. 1, the system interaction in the embodiment of the present application includes:
s101, the touch control assembly detects that touch operation exists on the touch control plate, and information corresponding to the touch operation is sent to the central processing unit.
S102, when the touch operation on the touch pad is monitored, determining a corresponding target area of the touch operation on the touch pad.
Optionally, when it is monitored that the touch operation exists on the touch pad, determining that the touch operation is in front of a corresponding target area on the touch pad, further includes: sending a test excitation signal to the vibrating piece, wherein the test excitation signal is used for indicating the vibrating piece to generate test vibration so that the vibrating piece drives the touch pad to generate the test vibration; acquiring the amplitude of each area in each touch subarea when the touch pad generates test vibration through an amplitude measuring device; and acquiring the amplitude ratio of the reference area in each touch subarea to each area in each touch subarea, and storing each amplitude ratio to a database.
The touch control panel comprises a plurality of touch control subareas, and each touch control subarea comprises a plurality of areas; determining a target area corresponding to the touch operation on the touch pad, including: determining a target area corresponding to the touch operation on the touch pad, and determining a target touch subarea corresponding to the target area; acquiring the amplitude ratio of a reference area and a target area in a touch pad, comprising: and determining a reference area in the target touch subarea, and acquiring the amplitude ratio of the reference area and the target area in the target touch subarea from the database.
S103, acquiring an amplitude ratio of a reference area and a target area in the touch pad, and acquiring a reference excitation signal corresponding to the reference area.
And S104, obtaining a target excitation signal corresponding to the target area according to the amplitude ratio and the reference excitation signal.
Optionally, obtaining a target excitation signal corresponding to the target region according to the amplitude ratio and the reference excitation signal includes: taking the product of the amplitude ratio and the reference excitation signal as a target excitation signal corresponding to the target area; the calculation formula of the target excitation signal corresponding to the target area is as follows:
wherein, V
PP' a target excitation signal corresponding to a target area,
as amplitude ratio, V
PPIs a reference excitation signal. .
Or, obtaining a target excitation signal corresponding to the target region according to the amplitude ratio and the reference excitation signal, including: taking the product of the preset coefficient, the amplitude ratio and the reference excitation signal as a target excitation signal corresponding to the target area; the calculation formula of the target excitation signal corresponding to the target area is as follows:
wherein, V
PP' a target excitation signal corresponding to a target area,
in order to set the coefficients to a predetermined value,
as amplitude ratio, V
PPIs a reference excitation signal; the preset coefficient is larger than zero and smaller than the amplitude ratio of the reference area in the preset touch partition to the reference area in the target touch partition; or the preset coefficient is equal to the amplitude ratio of the reference area in the preset touch partition to the reference area in the target touch partition; or the preset coefficient is larger than the amplitude ratio of the reference area in the preset touch subarea to the reference area in the target touch subarea. The vibrating piece corresponds to a preset touch subarea in the touch pad.
And S105, sending a target excitation signal to the vibrating piece, wherein the target excitation signal indicates the amplitude of the vibrating piece when the vibrating piece drives the target area to vibrate and is the same as the vibration when the reference excitation signal indicates the vibrating piece drives the reference area to vibrate.
In the embodiment of the application, since the amplitude ratio between the reference region and the target region represents the vibration amplitude relationship between the reference region and the target region, the relationship between the reference excitation signal corresponding to the reference region and the target excitation signal corresponding to the target region can be obtained according to the vibration amplitude relationship between the reference region and the target region, so that the target excitation signal indicates the amplitude when the vibrating element drives the target region to vibrate, the amplitude is the same as the vibration when the reference excitation signal indicates the vibrating element to drive the reference region to vibrate, and the effect that the amplitudes at any position in the pressing touch panel are consistent can be achieved.
Referring to fig. 2, fig. 2 is a flowchart illustrating a touch device control method according to a second embodiment of the present application.
As shown in fig. 2, an execution main body of the touch device control method in the embodiment of the present application may be a central processing unit, the central processing unit is electrically connected to the touch device, the touch device at least includes a touch pad and a vibrating element, and the method includes the steps of:
s201, when the touch operation on the touch pad is monitored, determining a corresponding target area of the touch operation on the touch pad.
The touch component may be an electronic component that senses touch, for example, the touch component may be a touch pad in a notebook, and the touch component may also be a touch pad of another electronic terminal.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a touch device according to a second embodiment of the present application.
As shown in fig. 3, the touch assembly 300 at least includes a touch pad 310 and a vibrating element 320, wherein the touch pad 310 may at least include a cover 311 and a sensor 312, the cover 311 has a touch surface for directly contacting with an external operation, the sensor 312 may be disposed on a side of the cover 311 away from the touch surface, and the sensor 312 may be a planar sensor 312 or a multi-point sensor 312, so that the sensor 312 may sense a touch operation on the touch surface in real time and recognize specific position information of the touch operation on the touch surface. The vibrating element 320 may be disposed on a side of the sensor 312 away from the cover 311, and the vibrating element 320 may receive the excitation signal, generate a vibration with a predetermined amplitude based on the magnitude or type of the excitation signal, and drive the touch pad 310 to vibrate together.
When there is a touch operation on the cover 311 of the touch pad 310, for example, when the user touches or clicks the cover 311 of the touch pad 310 with a finger, the sensor 312 of the touch pad 310 may sense the touch operation due to the force transmission relationship, recognize the position information of the touch operation on the cover 311, and transmit the position information of the touch operation on the cover 311 to the cpu.
Optionally, in order to facilitate the central processing unit to identify a specific position of the touch operation on the cover 311 and facilitate subsequent adjustment of vibration amplitudes at different positions on the touch pad 310 uniformly, the touch pad 310 may be divided into a plurality of regions, for example, in fig. 3, the cover 311 in the touch pad is divided into 15 regions, which are respectively labeled as: m1, M2, M3, M4, M5, M6, M7, M8, M9, M10, M11, M12, M13, M14, and M15, the sensors 312 in the touch panel may be correspondingly divided into 15 regions, respectively labeled as M1, M2, M3, M4, M5, M6, M7, M8, M9, M10, M11, M12, M13, M14, and M15, and when the user touches any region on the cover 311, for example, the user touches M1 region on the cover 311, the sensors 312 may sense the touch operation of the user at M1 region corresponding to M1 region, and the sensors 312 generate touch information, wherein the touch information carries the region identifier corresponding to M1 region, and transmit the touch information to the central processor.
After receiving the touch information sent by the sensor in the touch pad, the central processing unit monitors that there is a touch operation on the touch pad, and then determines a target area corresponding to the touch operation on the touch pad based on the area identifier in the touch information, where the target area is an area corresponding to the M1 area on the cover plate of the touch pad.
S202, acquiring an amplitude ratio of a reference area and a target area in the touch pad, and acquiring a reference excitation signal corresponding to the reference area.
Because the vibrating element can receive the excitation signal, generate vibration with preset amplitude based on the magnitude or type of the excitation signal, and drive the touch pad to vibrate together, in order to make the vibration amplitudes of different positions in the touch pad, that is, different areas in the touch pad, the vibration amplitude of one area in the touch pad can be preset as a reference area, that is, the vibration amplitudes of other areas of the touch pad need to be the same as the vibration amplitude of the reference area. The position of the reference area on the touch pad can be set as the position of the vibration center of the vibrating member relative to the touch pad, so as to calculate the amplitude ratio of the reference area to other areas.
Theoretical calculation and experimental tests show that the vibration amplitudes of different areas in the touch pad are in direct proportion to the magnitude of the excitation signal of the vibration piece, so that the ratio of the excitation signal between the target area and the reference area can be determined according to the amplitude ratio of the reference area and the target area in the touch pad, and therefore after the position of the reference area is determined, the amplitude ratio (vibration amplitude ratio) of the reference area and the target area in the touch pad needs to be obtained, so that the amplitude ratios of the reference area and other areas in the touch pad can be obtained in advance when the vibration piece drives the touch pad to vibrate based on the excitation signal under the same excitation signal, and each amplitude ratio is stored in a database, so that the amplitude ratio of the reference area and the target area in the touch pad can be obtained from the database quickly.
After the amplitude ratio between the reference area and the target area in the touch pad is obtained, an excitation signal corresponding to the vibrating element when the reference area generates a preset vibration amplitude (a reference vibration amplitude corresponding to other areas) can be obtained, and the excitation signal is also a reference excitation signal, so that a target excitation signal when the vibrating element drives the target area to vibrate can be obtained subsequently.
And S203, obtaining a target excitation signal corresponding to the target area according to the amplitude ratio and the reference excitation signal.
The vibration amplitudes of different areas in the touch pad are proportional to the magnitude of the excitation signal of the vibrating element, and then the ratio of the excitation signal between the target area and the reference area can be determined according to the amplitude ratio of the reference area and the target area in the touch pad, specifically, the amplitude ratio of the reference area and the target area under the same excitation signal is equal to the signal ratio of the target excitation signal of the target area and the reference excitation signal of the reference area. For example, when the reference area is M8, the target area is M1, and the vibrating elements drive the touch panel to vibrate based on the excitation signal under the same excitation signal, the vibration amplitude of the reference area is M-a8, the vibration amplitude of the target area is M-a1, the excitation signal of the vibrating element corresponding to the reference area is Vpp, and the excitation signal of the vibrating element corresponding to the target area is Vpp-M1, the following methods are provided:
therefore, after the amplitude ratio of the reference area and the target area in the touch pad and the reference excitation signal are obtained, the target excitation signal of the vibrating element corresponding to the target area can be obtained. Similarly, the target area may also be any area on the touch pad, and the excitation signal of the vibrating element corresponding to any area may be obtained by the amplitude ratio of any area to the target area and referring to the excitation signal.
And S204, sending a target excitation signal to the vibrating piece, wherein the target excitation signal indicates the amplitude of the vibrating piece when the vibrating piece drives the target area to vibrate and is the same as the vibration when the reference excitation signal indicates the vibrating piece drives the reference area to vibrate.
The vibrating piece vibrates based on the excitation signal, so that the central processing unit can send the target excitation signal to the vibrating piece after acquiring the target excitation signal corresponding to the target area, the vibrating piece vibrates based on the target excitation signal and drives all areas on the touch pad to vibrate, and the target area is a part of the cover plate in the touch pad, so that the vibrating piece drives the target area to vibrate based on the target excitation signal; similarly, the vibrating element can also drive all areas on the touch pad to vibrate based on the reference excitation signal, and the reference area is also a part of the cover plate in the touch pad, so that the vibrating element can drive the reference area to vibrate based on the reference excitation signal.
Because the target excitation signal corresponding to the target area is obtained according to the amplitude ratio and the reference excitation signal, the target excitation signal indicates the amplitude of the vibration member when driving the target area to vibrate, the amplitude is the same as the vibration when the reference excitation signal indicates the vibration member when driving the reference area to vibrate, the target area can be any area in the touch pad, and the amplitude of any area in the touch pad can be consistent with the amplitude of the reference area in the touch pad.
In the embodiment of the application, when the touch operation on the touch pad is monitored, determining a corresponding target area of the touch operation on the touch pad; acquiring an amplitude ratio of a reference area and a target area in the touch pad, and acquiring a reference excitation signal corresponding to the reference area; obtaining a target excitation signal corresponding to the target area according to the amplitude ratio and the reference excitation signal; and sending a target excitation signal to the vibrating member, wherein the target excitation signal indicates the amplitude of the vibrating member when the vibrating member drives the target area to vibrate, and the target excitation signal indicates the same vibration when the vibrating member drives the reference area to vibrate. Because the amplitude ratio of the reference area to the target area represents the vibration amplitude relationship between the reference area and the target area, the relationship between the reference excitation signal corresponding to the reference area and the target excitation signal corresponding to the target area can be obtained according to the vibration amplitude relationship between the reference area and the target area, so that the target excitation signal indicates the amplitude of the vibrating piece when the vibrating piece drives the target area to vibrate, and the amplitude is the same as the vibration when the reference excitation signal indicates the vibrating piece to drive the reference area to vibrate, and the effect of consistent amplitude at any position in the pressing touch pad can be realized.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a touch pad according to a third embodiment of the present application.
As shown in fig. 4, in the embodiment of the present application, the touch pad may include a plurality of touch partitions. For example, the touch pad may include five touch partitions, and when the touch pad is directly opposite to the touch pad, the five touch partitions are a center touch partition M located at the center of the touch pad, a left touch partition L located at the left side of the center of the touch pad, a right touch partition R located at the right side of the center of the touch pad, an upper touch partition U located at the upper side of the center of the touch pad, and a lower touch partition D located at the lower side of the center of the touch pad, where the number of touch partitions in the touch pad may be set according to the actual size of the touch pad and a user requirement, and the number of touch partitions in this embodiment is not limited.
Further, each touch partition may include a plurality of areas. For example, 15 areas are uniformly arranged in the center touch partition, 27 areas are uniformly arranged in the left touch partition and the right touch partition, respectively, and 15 areas are uniformly arranged in the upper touch partition and the lower touch partition, respectively. The number of the areas in each touch partition may be set according to the actual size of the touch pad and user requirements, and the number of the areas in each touch partition is not limited in the embodiment of the present application.
When the size of the touch pad is large, the touch pad is divided into a plurality of touch partitions, so that vibration of each area in each touch partition is consistent, and the vibration amplitude level differentiation of different touch partitions can be adjusted. Referring to fig. 5, fig. 5 is a flowchart illustrating a touch device control method according to a third embodiment of the present application.
As shown in fig. 5, the method steps include:
s501, when the touch operation on the touch pad is monitored, determining a target area corresponding to the touch operation on the touch pad, and determining a target touch control partition corresponding to the target area.
After receiving the touch information sent by the sensor in the touch pad, the central processing unit monitors that the touch operation exists on the touch pad, and then determines a target area corresponding to the touch operation on the touch pad based on the area identifier in the touch information. For example, when it is determined that the target area corresponding to the touch operation on the touch pad is L1, the target touch partition corresponding to the target area L1 may be determined as the left touch partition.
S502, determining a reference area in the target touch subarea, acquiring an amplitude ratio of the reference area and the target area in the target touch subarea from a database, and acquiring a reference excitation signal corresponding to the reference area.
Optionally, in order to achieve that the amplitudes of the regions in each touch partition are the same, it is necessary to set the amplitude of one region in each touch partition as a reference amplitude, so that the amplitudes of the regions in each touch partition are the same as the reference amplitude, and the region corresponding to the reference amplitude is a target region, that is, each touch partition has one reference region, and the reference region in each touch partition may be located at the center position in each touch partition, for example, the reference region in the left touch partition is L14 located at the center position, so as to calculate the amplitude ratio between the reference region and the target region in the touch panel, and thus after the target touch partition is topped, the reference region in the target touch partition may be determined.
The amplitude ratios of the reference area and other areas in the touch pad can be obtained in advance when the vibrating piece drives the touch pad to vibrate based on the same excitation signal, and the amplitude ratios are stored in a database, so that the amplitude ratio of the reference area and the target area in the touch pad can be obtained from the database quickly.
A method for obtaining an amplitude ratio of a reference area in each touch partition to each area in each touch partition may be: firstly, a test excitation signal is sent to the vibrating piece, and the test excitation signal is used for indicating the vibrating piece to generate test vibration, so that the vibrating piece drives the touch pad to generate the test vibration. And then, acquiring the amplitude of each area in each touch subarea when the touch pad generates test vibration through an amplitude measuring device. And finally, acquiring the amplitude ratio of the reference area in each touch control partition and each area in each touch control partition, and storing each amplitude ratio to a database. Optionally, the database may be obtained by testing before the touch component leaves a factory, and the database is stored in a cloud, so that data in the database can be obtained anytime and anywhere.
S503, the product of the amplitude ratio and the reference excitation signal is used as the target excitation signal corresponding to the target region.
The vibration amplitudes of different areas in the touch pad are proportional to the magnitude of the excitation signal of the vibrating element, and then the ratio of the excitation signal between the target area and the reference area can be determined according to the amplitude ratio of the reference area and the target area in the touch pad, specifically, the amplitude ratio of the reference area and the target area under the same excitation signal is equal to the signal ratio of the target excitation signal of the target area and the reference excitation signal of the reference area. For example, when the reference area is L14, the target area is L1, and the vibrating elements drive the touch panel to vibrate based on the excitation signal under the same excitation signal, the vibration amplitude of the reference area is L-a14, the vibration amplitude of the target area is L-a1, the excitation signal of the vibrating element corresponding to the reference area is Vpp, and the excitation signal of the vibrating element corresponding to the target area is Vpp-L1, the following methods are provided:
therefore, after the amplitude ratio of the reference area and the target area in the touch pad and the reference excitation signal are obtained, the product of the amplitude ratio and the reference excitation signal is used as the target excitation signal corresponding to the target area, and then the calculation formula of the target excitation signal corresponding to the target area can be obtained as follows:
wherein, V
PP' a target excitation signal corresponding to a target area,
as amplitude ratio, V
PPIs a reference excitation signal. The amplitude of the vibration of the target area on the touch pad driven by the vibrating element based on the target excitation signal is the same as the amplitude of the vibration of the reference area on the touch pad driven by the vibrating element based on the reference excitation signal, that is, the amplitude of the area L1 in the left touch sub-area is the same as that of the area L14. Similarly, the target area may also be any area on the left touch partition, and the excitation signal of the vibrating element corresponding to any area on the left touch partition may be obtained by using the amplitude ratio between any area and the target area and the reference excitation signal, so that the same amplitude of any area on the left touch partition may be achieved. Similarly, the amplitude of any one area on each touch partition can be the same.
And S504, taking the product of the preset coefficient, the amplitude ratio and the reference excitation signal as a target excitation signal corresponding to the target area.
Optionally, since the touch pad may include a plurality of touch partitions, on the basis that the amplitudes of any one of the regions on each touch partition are the same, when it is required to implement the vibration amplitude level differentiation of different touch partitions, a preset coefficient may be added in the process of obtaining the target excitation signal in step S503, that is, the product of the preset coefficient, the amplitude ratio and the reference excitation signal is used as the target excitation signal corresponding to the target region, so that the calculation formula of the target excitation signal corresponding to the target region may be obtained as follows:
wherein, V
PP' a target excitation signal corresponding to a target area,
in order to set the coefficients to a predetermined value,
as amplitude ratio, V
PPIs a reference excitation signal. The preset coefficient is larger than zero and smaller than the amplitude ratio of the reference area in the preset touch partition to the reference area in the target touch partition, and at the moment, the uniform amplitude of the reference touch partition is larger than the uniform amplitude of the target touch partition, namely, the amplitude of each area in the reference touch partition is the same, the amplitude of each area in the target touch partition is also the same, but the uniform amplitude of each area in the reference touch partition is larger than the uniform amplitude of each area amplitude in the target touch partition; or the preset coefficient is equal to the amplitude ratio of the reference area in the preset touch partition to the reference area in the target touch partition, and at this time, the uniform amplitude of the reference touch partition is equal to the uniform amplitude of the target touch partition, that is, the amplitude of each area in the reference touch partition is the same, the amplitude of each area in the target touch partition is also the same, but the uniform amplitude of each area in the reference touch partition is equal to the uniform amplitude of each area amplitude in the target touch partition; or the preset coefficient is larger than the amplitude ratio of the reference area in the preset touch partition to the reference area in the target touch partition, and the uniform amplitude of the reference touch partition is smaller than that of the target touch partition, that is, the preset coefficient is larger than the amplitude ratio of the reference area in the preset touch partition to the reference area in the target touch partition, that is, the uniform amplitude of the referenceThe amplitude of each area in the reference touch partition is the same, and the amplitude of each area in the target touch partition is also the same, but the uniform amplitude of each area in the reference touch partition is less than the uniform amplitude of each area amplitude in the target touch partition.
And S505, sending a target excitation signal to the vibrating piece, wherein the target excitation signal indicates the amplitude of the vibrating piece when the vibrating piece drives the target area to vibrate, and the target excitation signal indicates the same vibration as the reference excitation signal indicates the vibrating piece when the vibrating piece drives the reference area to vibrate.
Alternatively, the preset touch partition may be any touch partition in the touch pad, for example, the preset touch partition may be a touch partition corresponding to the vibrating element, for example, the vibrating element is generally disposed at a position corresponding to the center of the touch pad, and then the center touch partition may be set as the preset touch partition.
Optionally, the specific value of the preset coefficient may be set, and the same amplitude of any multiple touch partitions in the touch pad may be further implemented to meet the needs of different users, for example, the preset coefficient may be adjusted to make the uniform amplitudes of the left touch partition and the right touch partition the same.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a touch device control apparatus according to a fourth embodiment of the present application, in which a touch device at least includes a touch pad and a vibrating element.
As shown in fig. 6, the touch device control apparatus 600 includes:
the target area determining module 610 is configured to determine, when it is monitored that a touch operation exists on the touch pad, a target area corresponding to the touch operation on the touch pad.
The amplitude ratio obtaining module 620 is configured to obtain an amplitude ratio between a reference area and a target area in the touch pad, and obtain a reference excitation signal corresponding to the reference area.
A target excitation signal obtaining module 630, configured to obtain a target excitation signal corresponding to the target area according to the amplitude ratio and the reference excitation signal.
And the driving module 640 is used for sending a target excitation signal to the vibrating piece, wherein the target excitation signal indicates the amplitude of the vibrating piece when the vibrating piece drives the target area to vibrate, and the target excitation signal indicates the same vibration as the reference excitation signal indicates the vibrating piece when the vibrating piece drives the reference area to vibrate.
Because the amplitude ratio of the reference area to the target area represents the vibration amplitude relationship between the reference area and the target area, the relationship between the reference excitation signal corresponding to the reference area and the target excitation signal corresponding to the target area can be obtained according to the vibration amplitude relationship between the reference area and the target area, so that the target excitation signal indicates the amplitude of the vibrating piece when the vibrating piece drives the target area to vibrate, and the amplitude is the same as the vibration when the reference excitation signal indicates the vibrating piece to drive the reference area to vibrate, and the effect of consistent amplitude at any position in the pressing touch pad can be realized.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a touch device control apparatus according to a fifth embodiment of the present application, in which a touch device at least includes a touch pad and a vibrating element.
As shown in fig. 7, the touch device control apparatus 700 includes:
the target area determining module 710 is configured to determine, when it is monitored that a touch operation exists on the touch pad, a target area corresponding to the touch operation on the touch pad, and determine a target touch partition corresponding to the target area.
The amplitude ratio obtaining module 720 is configured to determine a reference area in the target touch partition, obtain an amplitude ratio between the reference area and the target area in the target touch partition from the database, and obtain a reference excitation signal corresponding to the reference area.
A first excitation signal obtaining module 730, configured to use a product of the amplitude ratio and the reference excitation signal as a target excitation signal corresponding to the target region; the calculation formula of the target excitation signal corresponding to the target area is as follows:
wherein, V
PP' a target excitation signal corresponding to a target area,
as amplitude ratio, V
PPIs a reference excitation signal.
A second excitation signal obtaining module 740, configured to use a product of the preset coefficient, the amplitude ratio, and the reference excitation signal as a target excitation signal corresponding to the target region; the calculation formula of the target excitation signal corresponding to the target area is as follows:
wherein, V
PP' a target excitation signal corresponding to a target area,
in order to set the coefficients to a predetermined value,
as amplitude ratio, V
PPIs a reference excitation signal; the preset coefficient is larger than zero and smaller than the amplitude ratio of the reference area in the preset touch partition to the reference area in the target touch partition; or the preset coefficient is equal to the amplitude ratio of the reference area in the preset touch partition to the reference area in the target touch partition; or the preset coefficient is larger than the amplitude ratio of the reference area in the preset touch subarea to the reference area in the target touch subarea. The vibrating piece corresponds to a preset touch subarea in the touch pad.
And a driving module 750 for transmitting a target excitation signal to the vibrating member, wherein the target excitation signal indicates an amplitude of the vibrating member when the target region is driven to vibrate, and the amplitude is the same as the vibration when the reference excitation signal indicates the vibrating member to drive the reference region to vibrate.
Referring to fig. 8, fig. 8 is a cross-sectional view of a touch device according to a sixth embodiment of the present application.
As shown in fig. 8, a touch device 800, the touch device 800 at least includes a touch panel 810 and a vibrating element 820, wherein the vibrating element 820 may be any device having a driving force, for example, the vibrating element 820 may be a piezoelectric motor, the vibrating element 820 is disposed on a side of the touch panel 810 away from a touch surface, and the vibrating element 820 may contact the touch panel 810 or may be disposed at a predetermined distance.
The vibrating element 820 receives the target excitation signal in the above embodiment, and vibrates according to the target excitation signal and drives the target area in the touch pad 810 to vibrate; the vibrating element 820 receives the reference excitation signal in the above embodiment, and vibrates according to the reference excitation signal and drives the reference area in the touch pad 810 to vibrate; wherein the amplitude of vibration when vibrating member 820 drives the target region to vibrate according to the target excitation signal is the same as the vibration when vibrating member 820 drives the reference region to vibrate according to the reference excitation signal.
Optionally, the touch assembly 800 may further include a first support 830, a transmitting element 840, a buffering element 850, a cantilever structure 860 and a second support 870. The first supporting member 830 is disposed on a side of the vibrating member 820 away from the touch pad 810, and is used for fixing the vibrating member 820. The transmission member 840 is disposed between the touch pad 810 and the first support 830 for supporting the touch pad 810. The cantilever structure 860 is disposed on a side of the first supporting member 830 away from the vibrating member 820, the second supporting member 870 is disposed on a side of the cantilever structure 860 away from the first supporting member 830, the buffer member 850 is disposed between the first supporting member 830 and the second supporting member 870, and the buffer member 850, the cantilever structure 860 and the second supporting member 870 form a buffer assembly, which can buffer external impacts received by the touch panel 810 while fixing the touch panel 810 and the vibrating member 820, thereby improving the mounting stability of the touch assembly 800.
Embodiments of the present application also provide a computer storage medium, which stores a plurality of instructions, where the instructions are suitable for being loaded by a processor and executing the steps of the method in the foregoing embodiments.
Further, please refer to fig. 9, where fig. 9 is a schematic structural diagram of a terminal according to a seventh embodiment of the present application. As shown in fig. 9, terminal 900 may include: at least one central processor 901, at least one network interface 904, a user interface 903, a memory 905, at least one communication bus 902, and the terminal 900 further includes the touch component 906 of the above embodiments.
Wherein a communication bus 902 is used to enable connective communication between these components.
The user interface 903 may include a screen (Display) and a Camera (Camera), and the optional user interface 903 may also include a standard wired interface and a wireless interface.
The network interface 904 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
The central processor 901 may include one or more processing cores. The central processor 901 connects various parts within the overall terminal 900 using various interfaces and lines, and performs various functions of the terminal 900 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 905, and calling data stored in the memory 905. Optionally, the central Processing unit 901 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The CPU 901 may integrate one or a combination of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the screen; the modem is used to handle wireless communications. It is to be understood that the modem may not be integrated into the central processor 901, and may be implemented by a single chip.
The Memory 905 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 905 includes a non-transitory computer-readable medium. The memory 905 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 905 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described method embodiments, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 905 may optionally be at least one storage device located remotely from the central processor 901. As shown in fig. 9, the memory 905, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a touch assembly control program.
In the terminal 900 shown in fig. 9, the user interface 903 is mainly used for providing an input interface for a user to obtain data input by the user; the central processor 901 may be configured to call a touch component control program stored in the memory 905, and specifically perform the following operations:
when the touch operation on the touch pad is monitored, determining a corresponding target area of the touch operation on the touch pad; acquiring an amplitude ratio of a reference area and a target area in the touch pad, and acquiring a reference excitation signal corresponding to the reference area; obtaining a target excitation signal corresponding to the target area according to the amplitude ratio and the reference excitation signal; and sending a target excitation signal to the vibrating member, wherein the target excitation signal indicates the amplitude of the vibrating member when the vibrating member drives the target area to vibrate, and the target excitation signal indicates the same vibration when the vibrating member drives the reference area to vibrate.
In some embodiments, the touch pad includes a plurality of touch partitions, each touch partition includes a plurality of areas, and the central processor 901 specifically performs the following steps when determining that the touch operation is performed in a corresponding target area on the touch pad: determining a target area corresponding to the touch operation on the touch pad, and determining a target touch subarea corresponding to the target area. When the central processor 901 performs the amplitude ratio between the reference region and the target region in the touch pad, the following steps are specifically performed: and determining a reference area in the target touch subarea, and acquiring the amplitude ratio of the reference area and the target area in the target touch subarea from the database.
In some embodiments, before determining that the touch operation exists on the touch pad and determining that the touch operation is in the corresponding target area on the touch pad when the touch operation is monitored to exist on the touch pad, the central processor 901 further specifically performs the following steps: sending a test excitation signal to the vibrating piece, wherein the test excitation signal is used for indicating the vibrating piece to generate test vibration so that the vibrating piece drives the touch pad to generate the test vibration; acquiring the amplitude of each area in each touch subarea when the touch pad generates test vibration through an amplitude measuring device; and acquiring the amplitude ratio of the reference area in each touch subarea to each area in each touch subarea, and storing each amplitude ratio to a database.
In some embodiments, when the central processor 901 obtains the target excitation signal corresponding to the target region according to the amplitude ratio and the reference excitation signal, the following steps are specifically performed: the product of the amplitude ratio and the reference excitation signal is used as the target excitation signal corresponding to the target region.
In some embodiments, when the central processor 901 obtains the target excitation signal corresponding to the target region according to the amplitude ratio and the reference excitation signal, the following steps are specifically performed: taking the product of the preset coefficient, the amplitude ratio and the reference excitation signal as a target excitation signal corresponding to the target area; the preset coefficient is larger than zero and smaller than the amplitude ratio of the reference area in the preset touch partition to the reference area in the target touch partition; or the preset coefficient is equal to the amplitude ratio of the reference area in the preset touch partition to the reference area in the target touch partition; or the preset coefficient is larger than the amplitude ratio of the reference area in the preset touch subarea to the reference area in the target touch subarea. The vibrating piece corresponds to a preset touch subarea in the touch pad.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules 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 in the form of a software functional module and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above 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.
In view of the above description of the touch device control method, apparatus, touch device and terminal provided by the present application, those skilled in the art will recognize that there are variations in the embodiments and applications of the method and apparatus provided by the present application.