Linear motor vibration sense calibration method, device and equipment, storage medium and computer program product
By obtaining and modifying the waveform file of the linear motor drive capacitor pen, the problem of vibration sensing difference caused by the difference in linear motor single unit in the writing of capacitor pen is solved, and a more realistic and consistent writing experience is achieved.
Patent Information
- Application Number
- CN202411598784.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2025-02-28
AI Technical Summary
In the prior art, there is a problem of vibration sensitivity difference in writing of capacitor pens due to the difference in linear motor singles.
By obtaining the initial waveform file of the linear motor drive capacitance pen vibration, collecting the actual waveform curve of the capacitance pen vibration, comparing it with the standard waveform curve, modifying the initial waveform file according to the comparison results, obtaining the driving waveform file, which is used to drive the capacitance pen to vibrate to calibrate the vibration sense.
Through this method, the vibration inconsistency problem due to the difference in linear motor singles can be compensated, and a more realistic writing effect can be obtained, which improves the vibration instrument consistency of the capacitor pen.
Smart Images

Figure CN119533643A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of capacitive stylus technology, and in particular to a linear motor vibration calibration method, device, equipment, storage medium and computer program product. Background Art
[0002] An active capacitive pen is an input tool for touch screen devices that communicates with the screen through built-in electronic components. Currently, users have an increasing demand for the writing experience of active capacitive pens. Active capacitive pens often incorporate linear motors, which simulate the actual feel of the user writing through the vibration of the linear motor, such as the feel of a pencil or pen writing on paper. However, due to factors such as the process and materials used in the production of linear motors, there are often differences in the consistency between linear motor units, resulting in differences in the vibration felt by users when the product reaches their hands.
[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present application is to provide a linear motor vibration calibration method, device, equipment, storage medium and computer program product, aiming to solve the technical problem in the prior art that there are differences in vibration when writing with a capacitive pen due to differences in linear motor units.
[0005] To achieve the above objectives, the present application proposes a linear motor vibration calibration method, the linear motor vibration calibration method comprising:
[0006] Get the initial waveform file of the linear motor driving the capacitive pen to vibrate;
[0007] Driving the capacitive stylus to vibrate according to the initial driving file, and collecting an actual waveform curve of the vibration of the capacitive stylus;
[0008] Using the actual waveform curve to compare with the standard waveform curve of capacitive stylus vibration;
[0009] The initial waveform file is modified according to the comparison result to obtain a driving waveform file, and the driving waveform file is used to drive the capacitive stylus to vibrate.
[0010] In one embodiment, the step of driving the capacitive stylus pen to vibrate according to the initial driving file and collecting an actual waveform curve of the vibration of the capacitive stylus pen comprises:
[0011] driving the capacitive stylus to vibrate according to the initial driving file;
[0012] Collect the actual energy amplitude corresponding to more than one frequency point within the preset frequency domain;
[0013] The actual energy amplitudes and the corresponding frequency points are mapped to obtain the actual waveform curve within the preset frequency domain range.
[0014] In one embodiment, the step of comparing the actual waveform curve with a standard waveform curve of capacitive stylus vibration includes:
[0015] Collect the standard waveform curve written by the capacitive pen;
[0016] Acquire the standard energy amplitude of each frequency point within the preset frequency domain according to the standard waveform curve;
[0017] The actual energy amplitude of each frequency point is compared with the standard energy amplitude.
[0018] In one embodiment, the step of modifying the initial waveform file according to the comparison result to obtain a driving waveform file, and using the driving waveform file to drive the capacitive stylus to vibrate includes:
[0019] According to the comparison result, the comparison difference between the actual energy amplitude and the standard energy amplitude of each frequency point is obtained;
[0020] Acquire a vibration compensation value according to the comparison difference;
[0021] The initial waveform file is modified according to the vibration compensation value to obtain a driving waveform file, and the driving waveform file is used to drive the capacitive stylus to vibrate.
[0022] In one embodiment, the step of modifying the initial waveform file according to the vibration compensation value to obtain a driving waveform file, and using the driving waveform file to drive the capacitive stylus to vibrate includes:
[0023] Modify the initial waveform file according to the vibration compensation value until the vibration compensation value of each frequency point is within a preset error range;
[0024] The driving waveform file obtained by modifying the initial waveform file with the vibration compensation value at this time is used to drive the capacitive stylus to vibrate.
[0025] In one embodiment, before the step of obtaining the initial waveform file of the linear motor driving the capacitive stylus pen to vibrate, the method further includes:
[0026] Collect the standard waveform curve written by the capacitive pen;
[0027] An initial waveform file is obtained according to the standard waveform curve for storage.
[0028] In addition, to achieve the above-mentioned purpose, the present application also proposes a linear motor vibration calibration device, the linear motor vibration calibration device comprising:
[0029] The initial sampling module is used to obtain the initial waveform file of the linear motor driving the capacitive pen vibration;
[0030] An error acquisition module, used for driving the capacitive pen to vibrate according to the initial drive file, and acquiring an actual waveform curve of the vibration of the capacitive pen;
[0031] An error comparison module, used for comparing the actual waveform curve with a standard waveform curve of capacitive pen vibration;
[0032] The error calibration module modifies the initial waveform file according to the comparison result to obtain a driving waveform file, and uses the driving waveform file to drive the capacitive stylus to vibrate.
[0033] In addition, to achieve the above-mentioned purpose, the present application also proposes a linear motor vibration calibration device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the linear motor vibration calibration method described above.
[0034] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the linear motor vibration calibration method described above are implemented.
[0035] In addition, to achieve the above-mentioned purpose, the present application also proposes a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the linear motor vibration calibration method described above are implemented.
[0036] The present application provides a linear motor vibration calibration method, which first obtains the initial waveform file of the linear motor driving the capacitive pen to vibrate; drives the capacitive pen to vibrate according to the initial drive file, and collects the actual waveform curve of the capacitive pen vibration; uses the actual waveform curve to compare with the standard waveform curve of the capacitive pen vibration; modifies the initial waveform file according to the comparison result to obtain the drive waveform file, and uses the drive waveform file to drive the capacitive pen to vibrate. First, the initial waveform file is written into the capacitive pen, and the vibration waveform when writing according to the initial waveform file is collected, and then compared and modified with the standard waveform to compensate for the inconsistent vibration due to the difference in linear motor monomers, so that a more realistic simulation of the actual writing effect can be obtained according to the characteristics of the motor. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0039] Figure 1 This is a flow chart of a first embodiment of a linear motor vibration calibration method of the present application;
[0040] Figure 2 A flow chart of the second embodiment of the linear motor vibration calibration method provided in the present application;
[0041] Figure 3 A schematic diagram of a vibration compensation process provided in Example 2 of the linear motor vibration calibration method of the present application;
[0042] Figure 4 This is a schematic diagram of the module structure of the linear motor vibration calibration device according to an embodiment of the present application;
[0043] Figure 5 Schematic diagram of the structure of a linear motor vibration calibration device in the hardware operating environment involved in the linear motor vibration calibration method in the embodiment of the present application.
[0044] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0045] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0046] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0047] The main solution of the embodiment of the present application is: obtain the initial waveform file of the linear motor driving the capacitive pen to vibrate; drive the capacitive pen to vibrate according to the initial driving file, and collect the actual waveform curve of the capacitive pen vibration; use the actual waveform curve to compare with the standard waveform curve of the capacitive pen vibration; modify the initial waveform file according to the comparison result to obtain the driving waveform file, and use the driving waveform file to drive the capacitive pen to vibrate.
[0048] Due to the influence of factors such as process and materials in the linear motor production process in the existing technology, there are often differences in the consistency between linear motor units, resulting in differences in the vibration feeling experienced by users when the product reaches the hands.
[0049] The present application provides a solution, which first writes an initial waveform file in a capacitive pen, collects the vibration waveform when writing according to the initial waveform file, and then compares and modifies it with the standard waveform, thereby compensating for the inconsistent vibration caused by the differences in linear motor units, and can obtain a more realistic simulation of the actual writing effect based on the characteristics of the motor.
[0050] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or a linear motor vibration calibration device that can realize the above functions. The following takes the linear motor vibration calibration device as an example to illustrate this embodiment and the following embodiments.
[0051] Based on this, the present application embodiment provides a linear motor vibration sense calibration method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the linear motor vibration calibration method of the present application.
[0052] In this embodiment, the linear motor vibration calibration method includes steps S10 to S40:
[0053] Step S10: obtaining an initial waveform file of the linear motor driving the capacitive pen to vibrate.
[0054] It should be noted that the initial waveform file may be a file that uses a specific driving waveform to drive the linear motor to simulate a specific vibration effect, such as simulating the writing effect of a pen, pencil, etc. Different from other scenarios where linear motors are used, such as mobile phones, the motor driving waveform is usually not a single-frequency sine wave, but a composite driving waveform containing a wide range of frequency components. Such a driving waveform can more realistically simulate the actual writing effect according to the characteristics of the motor.
[0055] It should be understood that during the vibration of a linear motor, strong energy will be generated in the frequency spectrum from tens of Hz to 20k Hz. The motor calibration method in traditional capacitive pens only calibrates the vibration amount at a specific frequency point, which has limited improvement in the overall motor vibration consistency. If the frequency response curve of a linear motor unit is calibrated as a whole, the algorithm is complex, the requirements for the computing performance of the product hardware are high, and the engineering implementation is difficult.
[0056] Furthermore, in order to simulate the real vibration effect of an active pen, the writing vibration effect of an actual pencil, pen, etc. on real paper can be collected through microphone or accelerometer measurement, and a standard waveform curve for capacitive pen writing can be constructed. The standard waveform curve is written into an array to obtain an initial waveform file for storage.
[0057] Step S20: driving the capacitive pen to vibrate according to the initial driving file, and collecting an actual waveform curve of the vibration of the capacitive pen.
[0058] It should be noted that, similar to the above-mentioned method of acquiring the standard waveform curve, a microphone or accelerometer measurement method can be used to collect the vibration waveform when the capacitive pen uses the initial drive file to write, which is the actual waveform curve.
[0059] Step S30: using the actual waveform curve to compare with the standard waveform curve of the capacitive stylus vibration.
[0060] Step S40: modifying the initial waveform file according to the comparison result to obtain a driving waveform file, and using the driving waveform file to drive the capacitive stylus to vibrate.
[0061] It should be noted that the standard waveform curve is a waveform collected based on the vibration effect of writing with an actual pencil, pen, etc. on real paper. According to the result of comparing the actual waveform curve generated when each linear motor drives the capacitive pen to run with the standard waveform curve, it is possible to determine the value of energy (or amplitude) that the linear motor needs to increase or decrease in a certain frequency domain. Then, the initial waveform file is modified to obtain a driving waveform file, which can be a file of the linear motor driving the capacitive pen to vibrate after consistency calibration.
[0062] It should be understood that after the initial waveform file is modified into a driving waveform file, the vibration effect error generated by driving different linear motors is within a preset difference range, so as to improve the vibration consistency of the active capacitive stylus.
[0063] In this embodiment, the initial waveform file of the linear motor driving the capacitive pen to vibrate is obtained; the capacitive pen is driven to vibrate according to the initial driving file, and the actual waveform curve of the capacitive pen vibration is collected; the actual waveform curve is compared with the standard waveform curve of the capacitive pen vibration; the initial waveform file is modified according to the comparison result to obtain the driving waveform file, and the capacitive pen is driven to vibrate using the driving waveform file. The initial waveform file is first written into the capacitive pen, and the vibration waveform when writing according to the initial waveform file is collected, and then compared and modified with the standard waveform to compensate for the inconsistent vibration feeling due to the difference in linear motor monomers, so that a more realistic simulation of the actual writing effect can be obtained according to the characteristics of the motor.
[0064] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 , Figure 2 A flow chart of the second embodiment of the linear motor vibration calibration method of the present application is provided. In step S20, the linear motor vibration calibration method includes:
[0065] Step S201: driving the capacitive stylus to vibrate according to the initial driving file.
[0066] Step S202: collecting actual energy amplitudes corresponding to more than one frequency point within a preset frequency domain.
[0067] It should be noted that a measuring device such as a microphone or an accelerometer can construct an energy distribution curve in response to the vibration of the capacitive pen when writing, that is, obtain the energy amplitude of the capacitive pen at different frequency points. The preset frequency domain range can be a preset frequency domain range (e.g., 0-20kHz) for the linear motor to work. The actual energy amplitude can be the actual energy amplitude at different frequency points generated in response to the initial drive file.
[0068] Step S203: Mapping each of the actual energy amplitudes and the corresponding frequency points to obtain an actual waveform curve in the preset frequency domain range.
[0069] It should be noted that the actual waveform curve may be a curve in which the independent variable is each frequency point in the frequency domain and the dependent variable is the actual energy amplitude corresponding to the frequency point.
[0070] Furthermore, similar to the above-mentioned actual waveform curve, a standard waveform curve written by a capacitive pen can also be collected; the standard energy amplitude of each frequency point within the preset frequency domain range is obtained according to the standard waveform curve; and the actual energy amplitude of each frequency point is compared with the standard energy amplitude.
[0071] Reference Figure 3 , Figure 3 A schematic diagram of a vibration compensation process provided in Embodiment 2 of the linear motor vibration calibration method of the present application. The step S40 further includes:
[0072] Step S301: Obtain the comparison difference between the actual energy amplitude and the standard energy amplitude of each frequency point according to the comparison result.
[0073] It should be noted that the average error can be calculated through multiple vibration measurements to obtain a more accurate relative error result.
[0074] Step S302: obtaining a vibration compensation value according to the comparison difference.
[0075] The calculation formula for the vibration compensation value of each frequency point is as follows:
[0076] ΔS f =(∑di / n) / S*100%
[0077] Among them, ΔS f It represents the vibration compensation value calculated at a specific frequency point, di is the difference between the corresponding actual energy amplitude and the standard energy amplitude for each vibration, n is the number of tests, and S is the absolute value of the standard energy amplitude.
[0078] Step S303: modifying the initial waveform file according to the vibration compensation value to obtain a driving waveform file, and using the driving waveform file to drive the capacitive stylus to vibrate.
[0079] The compensation formula for compensating the initial waveform file to obtain the driving waveform file according to the vibration compensation value is as follows:
[0080] S d1 =(1+ΔS f )*S d
[0081] Among them, S d Indicates the amplitude of the standard driving waveform at the corresponding frequency point, S d1 Indicates the amplitude of the compensated driving waveform at the corresponding frequency point.
[0082] Furthermore, the initial waveform file is modified according to the vibration compensation value until the vibration compensation value of each frequency point is within a preset error range (for example, 3%); the driving waveform file obtained by modifying the initial waveform file with the vibration compensation value at this time is obtained, and the driving waveform file is used to drive the capacitive pen to vibrate.
[0083] It should be understood that the above calculation is only an example. In actual operation, other algorithms, such as the root mean square error method, the correlation coefficient method, etc., can be added to make the calculated error range more accurate, which is not specifically limited here.
[0084] In this embodiment, the capacitive pen is driven to vibrate according to the initial drive file; the actual energy amplitude corresponding to more than one frequency point in the preset frequency domain is collected; each of the actual energy amplitudes and the corresponding frequency points are mapped to obtain the actual waveform curve in the preset frequency domain. The standard waveform curve written by the capacitive pen is collected; the standard energy amplitude of each frequency point in the preset frequency domain is obtained according to the standard waveform curve; the actual energy amplitude of each frequency point is compared with the standard energy amplitude. According to the comparison result, the comparison difference between the actual energy amplitude and the standard energy amplitude of each frequency point is obtained; the vibration compensation value is obtained according to the comparison difference; according to the vibration compensation value, the initial waveform file is modified to obtain the drive waveform file, and the drive waveform file is used to drive the capacitive pen to vibrate. At the same time, the active capacitive pen can be repeatedly calibrated multiple times so that the vibration effect of the active capacitive pen in a specific scenario is highly consistent with the expected standard vibration feel.
[0085] This application also provides a linear motor vibration calibration device, please refer to Figure 4 , the linear motor vibration calibration device comprises:
[0086] An initial sampling module 10 is used to obtain an initial waveform file of the linear motor driving the capacitive pen to vibrate;
[0087] The error acquisition module 20 is used to drive the capacitive pen to vibrate according to the initial drive file, and to acquire an actual waveform curve of the vibration of the capacitive pen;
[0088] An error comparison module 30 is used to compare the actual waveform curve with a standard waveform curve of the capacitance pen vibration;
[0089] The error calibration module 40 modifies the initial waveform file according to the comparison result to obtain a driving waveform file, and uses the driving waveform file to drive the capacitive stylus to vibrate.
[0090] Optionally, the error acquisition module 20 is also used to drive the capacitive pen to vibrate according to the initial drive file; collect the actual energy amplitudes corresponding to each frequency point exceeding one frequency point within a preset frequency domain range; map each of the actual energy amplitudes and the corresponding frequency points to obtain an actual waveform curve within the preset frequency domain range.
[0091] Optionally, the error comparison module 30 is also used to collect a standard waveform curve written by a capacitive pen; obtain a standard energy amplitude of each frequency point within the preset frequency domain range according to the standard waveform curve; and compare the actual energy amplitude of each frequency point with the standard energy amplitude.
[0092] Optionally, the error calibration module 40 is also used to obtain the comparison difference between the actual energy amplitude and the standard energy amplitude of each frequency point according to the comparison result; obtain the vibration compensation value according to the comparison difference; modify the initial waveform file according to the vibration compensation value to obtain a driving waveform file, and use the driving waveform file to drive the capacitive pen to vibrate.
[0093] Optionally, the error calibration module 40 is also used to modify the initial waveform file according to the vibration compensation value until the vibration compensation value of each frequency point is within a preset error range; the driving waveform file obtained by modifying the initial waveform file with the vibration compensation value at this time is obtained, and the driving waveform file is used to drive the capacitive pen to vibrate.
[0094] Optionally, the initial sampling module 10 is also used to collect a standard waveform curve written by a capacitive pen; and obtain an initial waveform file according to the standard waveform curve for storage.
[0095] The linear motor vibration calibration device provided by the present application adopts the linear motor vibration calibration method in the above embodiment, which can solve the technical problem that the vibration difference caused by the difference of linear motor monomers when writing with a capacitive pen. Compared with the prior art, the beneficial effects of the linear motor vibration calibration device provided by the present application are the same as the beneficial effects of the linear motor vibration calibration method provided by the above embodiment, and the other technical features of the linear motor vibration calibration device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0096] The present application provides a linear motor vibration calibration device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the linear motor vibration calibration method in the above-mentioned embodiment one.
[0097] Reference below Figure 5 , which shows a schematic structural diagram of a linear motor vibration calibration device suitable for implementing an embodiment of the present application. Figure 5 The linear motor vibration calibration device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0098] like Figure 5As shown, the linear motor vibration calibration device may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the linear motor vibration calibration device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the linear motor vibration calibration device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a linear motor vibration calibration device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.
[0099] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0100] The linear motor vibration calibration device provided by the present application adopts the linear motor vibration calibration method in the above embodiment, which can solve the technical problem that the vibration difference caused by the difference of linear motor monomers when writing with a capacitive pen. Compared with the prior art, the beneficial effects of the linear motor vibration calibration device provided by the present application are the same as the beneficial effects of the linear motor vibration calibration method provided by the above embodiment, and the other technical features of the linear motor vibration calibration device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0101] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0102] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0103] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the linear motor vibration calibration method in the above-mentioned embodiment.
[0104] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0105] The computer-readable storage medium may be included in the linear motor vibration calibration device; or may exist independently without being assembled into the linear motor vibration calibration device.
[0106] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0107] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0108] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0109] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned linear motor vibration calibration method, and can solve the technical problem that the vibration difference caused by the difference in linear motor monomers when writing with a capacitive pen. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the linear motor vibration calibration method provided by the above-mentioned embodiment, and will not be repeated here.
[0110] The present application also provides a computer program product, including a computer program, which implements the steps of the linear motor vibration calibration method as described above when executed by a processor.
[0111] The computer program product provided by the present application can solve the technical problem that the vibration sense difference of the capacitive pen writing is caused by the difference of the linear motor monomer. Compared with the prior art, the beneficial effect of the computer program product provided by the present application is the same as the beneficial effect of the linear motor vibration sense calibration method provided by the above embodiment, which will not be repeated here.
[0112] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A linear motor vibration calibration method, characterized in that: The linear motor vibration calibration method comprises: Get the initial waveform file of the linear motor driving the capacitive pen to vibrate; Driving the capacitive stylus to vibrate according to the initial driving file, and collecting an actual waveform curve of the vibration of the capacitive stylus; Using the actual waveform curve to compare with the standard waveform curve of capacitive stylus vibration; The initial waveform file is modified according to the comparison result to obtain a driving waveform file, and the driving waveform file is used to drive the capacitive stylus to vibrate.
2. The linear motor vibration calibration method according to claim 1, wherein: The step of driving the capacitive pen to vibrate according to the initial driving file and collecting an actual waveform curve of the vibration of the capacitive pen comprises: driving the capacitive stylus to vibrate according to the initial driving file; Collect the actual energy amplitude corresponding to more than one frequency point within the preset frequency domain; The actual energy amplitudes and the corresponding frequency points are mapped to obtain the actual waveform curve within the preset frequency domain range.
3. The linear motor vibration calibration method according to claim 2, wherein: The step of comparing the actual waveform curve with the standard waveform curve of the capacitance pen vibration includes: Collect the standard waveform curve written by the capacitive pen; Acquire the standard energy amplitude of each frequency point within the preset frequency domain according to the standard waveform curve; The actual energy amplitude of each frequency point is compared with the standard energy amplitude.
4. The linear motor vibration calibration method according to claim 3, wherein: The step of modifying the initial waveform file according to the comparison result to obtain a driving waveform file, and using the driving waveform file to drive the capacitive stylus to vibrate comprises: According to the comparison result, the comparison difference between the actual energy amplitude and the standard energy amplitude of each frequency point is obtained; Acquire a vibration compensation value according to the comparison difference; The initial waveform file is modified according to the vibration compensation value to obtain a driving waveform file, and the driving waveform file is used to drive the capacitive stylus to vibrate.
5. The linear motor vibration calibration method according to claim 4, characterized in that: The step of modifying the initial waveform file according to the vibration compensation value to obtain a driving waveform file, and using the driving waveform file to drive the capacitive stylus to vibrate comprises: Modify the initial waveform file according to the vibration compensation value until the vibration compensation value of each frequency point is within a preset error range; The driving waveform file obtained by modifying the initial waveform file with the vibration compensation value at this time is used to drive the capacitive stylus to vibrate.
6. The linear motor vibration calibration method according to claim 1, wherein: Before the step of obtaining the initial waveform file of the linear motor driving the capacitive pen to vibrate, the method further includes: Collect the standard waveform curve written by the capacitive pen; An initial waveform file is obtained according to the standard waveform curve for storage.
7. A linear motor vibration calibration device, characterized in that: The device comprises: The initial sampling module is used to obtain the initial waveform file of the linear motor driving the capacitive pen vibration; An error acquisition module, used for driving the capacitive pen to vibrate according to the initial drive file, and acquiring an actual waveform curve of the vibration of the capacitive pen; An error comparison module, used for comparing the actual waveform curve with a standard waveform curve of capacitive pen vibration; The error calibration module modifies the initial waveform file according to the comparison result to obtain a driving waveform file, and uses the driving waveform file to drive the capacitive stylus to vibrate.
8. A linear motor vibration calibration device, characterized in that: The linear motor vibration calibration device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the linear motor vibration calibration method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the linear motor vibration calibration method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the linear motor vibration calibration method as described in any one of claims 1 to 6 are implemented.