Playing control method, electronic equipment and chip
By configuring playback mechanism priority in the haptic control system, the haptic actuator is driven based on the high-priority playback source first, which solves the problem of cumbersome interaction between the haptic control system and the CPU, realizes more flexible and richer haptic feedback effects, simplifies the playback process and reduces the CPU load.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-20
- Publication Date
- 2026-04-14
AI Technical Summary
In existing technologies, the interaction process between the haptic control system and the CPU is cumbersome, resulting in an inflexible playback control process and difficulty in achieving rich haptic feedback effects.
By pre-configuring the priorities of different playback mechanisms in the haptic control system, the haptic actuator is driven to play based on the high-priority playback source, simplifying the insertion process, reducing interaction with the CPU, and reducing bus dependence by adopting FIFO, burst and real-time playback mechanisms.
It improves the flexibility and richness of playback control, simplifies the playback process, reduces the CPU management burden and bus data transmission volume, and enhances the continuity and effect of haptic feedback.
Smart Images

Figure CN121865016A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic information technology, and in particular to a playback control method, electronic device, and chip. Background Technology
[0002] The tactile control system on the driver chip can drive the corresponding tactile actuator (e.g., motor) to vibrate according to the driving waveform, so as to achieve the tactile effect of the tactile actuator.
[0003] To achieve richer tactile feedback effects, during the process of the tactile control system controlling the vibration of the tactile actuator, additional specific vibration waveforms can be inserted for playback.
[0004] Currently, related technologies involve developing software to adapt to various application scenarios, enabling haptic control systems to drive haptic actuators for interstitial playback. For example, if an electronic device needs to play a ringtone, the Central Processing Unit (CPU) controls the haptic actuator via a haptic control system on a driver chip to play the vibration waveform of a dance sequence according to a real-time playback mechanism. If, during the playback of the dance vibration waveform, the CPU detects that it needs to control the playback of the vibration waveform corresponding to a recently received notification message using a burst playback mechanism, the CPU will send an instruction to the haptic control system to stop playing the dance vibration waveform. Then, it will send another instruction to the haptic control system to play the vibration waveform corresponding to the notification message using the burst playback mechanism, so that the haptic control system plays the notification message vibration waveform only after controlling the haptic actuator to stop playing the dance vibration waveform. Furthermore, the CPU also needs to send an instruction to the haptic control system to resume playing the previous ringtone waveform after the notification message vibration waveform ends.
[0005] This process requires a lot of interaction between the CPU and the haptic control system, making it quite complicated. Summary of the Invention
[0006] To address the aforementioned issues, this application provides a playback control method, electronic device, and chip, enabling greater flexibility in controlling the playback of haptic actuators and resulting in richer effects.
[0007] In a first aspect, this application provides a playback control method applied to a tactile control system. The method includes: when a first playback source and a second playback source are received simultaneously, driving a tactile actuator to play based on the second playback source is prioritized; when a second playback source is received during playback based on the first playback source, driving the tactile actuator to play based on the second playback source is also specified; wherein the playback mechanism corresponding to the second playback source has a higher priority than the playback mechanism corresponding to the first playback source.
[0008] Understandably, the haptic control system pre-configures the priorities corresponding to different playback mechanisms. When simultaneously receiving a first playback source and a second playback source with different playback mechanisms, the haptic actuator is driven to play based on the higher-priority second playback source. If the second playback source is received while playback is being performed based on the first playback source, i.e., an interlude is needed, the haptic actuator can be driven based on the second playback source since its playback mechanism is higher than the first. Based on this, it avoids the need for software-based control of the haptic actuator for interludes, reduces interaction between the haptic control system and the CPU, and simplifies the playback process. Furthermore, it improves playback flexibility and results in richer effects.
[0009] In one possible implementation of the first aspect, the playback mechanism corresponding to the first playback source and the playback mechanism corresponding to the second playback source are any of the following: FIFO playback mechanism, burst playback mechanism, and real-time playback mechanism.
[0010] In one possible implementation of the first aspect, when the playback mechanism corresponding to the first playback source is a FIFO playback mechanism, the first playback source is received based on the first protocol interface, and the first playback source is parsed to obtain at least one frame of data. Each frame of data includes an instruction header and instruction parameters. After storing each frame of data in sequence, each frame of data is obtained in sequence according to the storage order, and the haptic actuator is driven to play.
[0011] Understandably, when the playback mechanism is FIFO, the haptic control system parses the playback source to obtain multiple frames of data, including the instruction header and instruction parameters. This means that the content of the playback source transmitted by the bus corresponding to the first protocol interface is an instruction rather than waveform data. In this case, the amount of data transmitted by the bus corresponding to the first protocol interface can be reduced, as can the FIFO playback mechanism's dependence on the CPU bus, thus reducing the burden on CPU management.
[0012] In one possible implementation of the first aspect, when the playback mechanism of the first playback source is a burst playback mechanism, the first playback source is received based on the first protocol interface, and the configuration parameters of the first specific register are obtained by parsing the first playback source. The playback parameters are determined from the first specific register according to the configuration parameters, and the haptic actuator is driven to play according to the playback parameters.
[0013] In one possible implementation of the first aspect, the first protocol interface includes an integrated inter-line bus (I2C) interface or a serial peripheral (SPI) interface.
[0014] In one possible implementation of the first aspect, when the playback mechanism of the first playback source is a burst playback mechanism, the first playback source is received based on the first pin, and the trigger signal is obtained by parsing the first playback source, wherein the first pin is associated with a first specific register; playback parameters are determined from the first specific register based on the trigger signal, and the haptic actuator is driven to play according to the playback parameters.
[0015] In one possible implementation of the first aspect, when the playback mechanism of the first playback source is a real-time playback mechanism, the first playback source is received based on the second protocol interface, and the first playback source is parsed to obtain at least one frame of data. Each frame of data includes an instruction header and instruction parameters. After storing each frame of data in sequence, each frame of data is obtained in sequence according to the storage order and the haptic actuator is driven to play. The second protocol interface includes an inter-integrated circuit audio bus I2S protocol interface or a time division multiplexing TDM protocol interface.
[0016] Understandably, when the playback mechanism is real-time, parsing the first playback source yields multiple frames of data, including the instruction header and instruction parameters. This indicates that the content of the playback source transmitted to the bus corresponding to the second protocol interface is instruction data, not waveform data. This reduces the amount of data transmitted on the bus corresponding to the second protocol interface, decreases the real-time playback mechanism's dependence on the CPU bus, and also reduces the CPU management burden.
[0017] In one possible implementation of the first aspect, when the playback mechanism of the first playback source is a real-time playback mechanism, the first playback source is received based on the second protocol interface, the first playback source is parsed to obtain the first waveform data, and the haptic actuator is driven to play based on the first waveform data. The second protocol interface includes an inter-integrated circuit audio bus I2S protocol interface or a time division multiplexing TDM protocol interface.
[0018] In one possible implementation of the first aspect, the length of the instruction header is a fixed first preset value, and the total length of the instruction header and instruction parameters is less than or equal to the frame length.
[0019] In one possible implementation of the first aspect, when the total length of the instruction header and instruction parameters is less than the frame length, the empty parts in each frame of data are invalid fields.
[0020] In one possible implementation of the first aspect, if a second playback source is received during playback based on the first playback source, driving the haptic actuator to play based on the second playback source further includes: playing a switching waveform at the zero-crossing point of the vibration waveform corresponding to the playback content of the first playback source; playing the vibration waveform corresponding to the second playback source after the switching waveform playback ends; and replaying the switching waveform after the vibration waveform corresponding to the second playback source playback ends.
[0021] Understandably, using switching waveforms to connect playback content corresponding to playback sources with different playback mechanisms is beneficial for maintaining the continuity of the playback effect.
[0022] In one possible implementation of the first aspect, after the replay of the switching waveform ends, it is determined whether to play the playback content corresponding to the first playback source based on the preset playback duration of the playback content corresponding to the first playback source: if the preset playback duration of the first playback source is greater than the total playback duration, the playback content corresponding to the first playback source continues to play based on the remaining playback duration of the preset playback duration; if the preset playback duration of the first playback source is less than or equal to the total playback duration, it is determined that the playback content corresponding to the first playback source has ended playback; wherein, the total playback duration is the duration from the start of playback of the playback content of the first playback source to the end of playback of the replay of the switching waveform; the remaining playback duration of the preset playback duration is the difference between the preset playback duration and the total playback duration.
[0023] In one possible implementation of the first aspect, the waveform is switched to a braking waveform.
[0024] Understandably, braking waveforms can be used to stop haptic actuators, reducing damage to them. Furthermore, they allow the haptic actuator to vibrate subsequently without affecting the vibration of the waveform corresponding to the inserted playback content.
[0025] In a second aspect, a chip is provided, including a tactile control system, the tactile control system including a playback mechanism module, the playback mechanism module including a FIFO playback controller, a burst playback controller and a real-time playback controller; and a main control module, used to execute any of the playback control methods described in the first aspect and various possible implementations of the first aspect based on a first playback source and a second playback source received by the playback mechanism module.
[0026] Thirdly, an electronic device is provided, including a memory for storing one or more instructions; a processor for executing one or more instructions; and a tactile control system for receiving instructions from the processor, causing the electronic device to implement any of the playback control methods described in the first aspect and various possible implementations of the first aspect. Attached Figure Description
[0027] Figure 1 According to some embodiments, a usage scenario of mobile phone 100 is shown.
[0028] Figure 2 According to some embodiments of this application, a schematic diagram of a playback control method is shown.
[0029] Figure 3A According to some embodiments of this application, a schematic diagram of playing a brake waveform is shown.
[0030] Figure 3B According to some embodiments of this application, a schematic diagram of an insertion sequence is shown.
[0031] Figure 4A According to some embodiments of this application, a schematic diagram of a playback control method based on a playback source is shown, which corresponds to a FIFO playback mechanism.
[0032] Figure 4B According to some embodiments of this application, a schematic diagram of one frame of data is shown.
[0033] Figure 4C According to some embodiments of this application, a schematic diagram of 3 frames of data is shown.
[0034] Figure 4D According to some embodiments of this application, a schematic diagram of another type of N-frame data is shown.
[0035] Figure 5A According to some embodiments of this application, a schematic diagram of a playback control method in which a haptic control system plays based on a playback source when a burst playback mechanism is provided is shown.
[0036] Figure 5B According to some embodiments of this application, a schematic diagram of the specific process of a playback control method based on a playback source is shown when another burst playback mechanism is used.
[0037] Figure 6A According to some embodiments of this application, a schematic diagram of a playback control method in which a haptic control system plays based on a playback source when corresponding to a real-time playback mechanism is shown.
[0038] Figure 6B According to some embodiments of this application, a schematic diagram of receiving 100 frames of data sent from a CPU is shown.
[0039] Figure 6C According to some embodiments of this application, a schematic diagram of the specific process of a playback control method based on a playback source is shown when another real-time playback mechanism is implemented.
[0040] Figure 7 According to some embodiments of this application, a schematic diagram of the architecture of a tactile control system is shown.
[0041] Figure 8 According to some embodiments of this application, a schematic diagram of the architecture of an electronic device is shown. Detailed Implementation
[0042] The illustrative embodiments of this application include, but are not limited to, a playback control method, an electronic device, and a chip.
[0043] For example, Figure 1 According to some embodiments of this application, a usage scenario of a mobile phone 100 is illustrated. The mobile phone 100 can play a vibration waveform corresponding to dancing. When the mobile phone 100 suddenly receives a notification message, the mobile phone 100 needs the vibration waveform corresponding to the notification message.
[0044] As described in the background section, current methods involve developing software to drive haptic control systems for insertion. This approach requires frequent interaction between the central processing unit (CPU) and the haptic control system within the driver chip, which is quite cumbersome.
[0045] Therefore, in order to solve the above problems, this application proposes a playback control method. In this method, when a first playback source and a second playback source are received simultaneously, the haptic actuator is driven to play based on the second playback source first. When the second playback source is received during playback based on the first playback source, the haptic actuator is driven to play based on the second playback source. The playback mechanism corresponding to the second playback source has a higher priority than the playback mechanism corresponding to the first playback source.
[0046] Understandably, the haptic control system pre-configures the priorities corresponding to different playback mechanisms. When simultaneously receiving a first playback source and a second playback source with different playback mechanisms, the haptic actuator is driven to play based on the higher-priority second playback source. If the second playback source is received during playback based on the first playback source, i.e., an interruption is needed, the haptic actuator can be driven to play based on the second playback source since the second playback source's playback mechanism is higher than the first. This avoids the need for software-based control of the haptic actuator for interruption, reduces interaction between the haptic control system and the CPU, and simplifies the playback process. Furthermore, it improves playback flexibility and results in richer effects.
[0047] For example, when the haptic control system in mobile phone 100 receives a first playback source corresponding to the real-time playback mechanism from the CPU, and the playback content corresponding to the first playback source is a vibration waveform of a dance, the haptic actuator is driven to vibrate according to the vibration waveform of the dance to generate haptic feedback. While playing the vibration waveform of the dance, mobile phone 100 suddenly receives a notification message. Based on the notification message, the CPU of mobile phone 100 determines that mobile phone 100 needs to play a new vibration waveform. The CPU then sends a second playback source corresponding to the burst playback mechanism to the haptic control system. After receiving the second playback source, the haptic control system in mobile phone 100, with the burst playback mechanism having a higher priority than the real-time playback mechanism, drives the haptic actuator to play the vibration waveform corresponding to the second playback source.
[0048] Figure 2 According to some embodiments of this application, a schematic diagram of a playback control method is shown. Using a haptic control system as the execution entity, the specific process is as follows:
[0049] S201, when both the first playback source and the second playback source are received simultaneously, the haptic actuator is driven to play based on the second playback source first; when the second playback source is received during playback based on the first playback source, the haptic actuator is driven to play based on the second playback source.
[0050] Understandably, in some embodiments, when there is no playback currently, the haptic control system may prioritize the second playback source to drive the haptic actuator to play when it receives both a first playback source and a second playback source simultaneously.
[0051] In other embodiments, the haptic control system may first receive a first playback source and drive the haptic actuator to play based on the first playback source. Furthermore, while driving the haptic actuator to play based on the first playback source, a second playback source may be received, at which point the haptic actuator may be driven to play based on the second playback source.
[0052] For example, a haptic control system can receive a first playback source and a second playback source from a host (e.g., a CPU), thereby driving a haptic actuator (e.g., a motor) to play the playback content corresponding to the first or second playback source based on the first or second playback source. The host will be described below using a CPU as an example.
[0053] The first playback source can be triggered by user actions or automatically generated by the CPU based on specific conditions or rules. For example, a user clicking a button may generate a haptic effect playback source, or the CPU may automatically generate a playback source based on information such as the loudness of sound in an audio or video clip.
[0054] S202, wherein the playback mechanism corresponding to the second playback source has a higher priority than the playback mechanism corresponding to the first playback source.
[0055] Understandably, the haptic control system determines the priority of the playback mechanism corresponding to the second playback source and the priority of the playback mechanism corresponding to the first playback source. If it is determined that the priority of the playback mechanism corresponding to the second playback source is higher than the priority of the playback mechanism corresponding to the first playback source, the system determines that the priority of the second playback source is higher than the priority of the first playback source, and thus drives the haptic actuator to play based on the second playback source.
[0056] In some embodiments, when the haptic control system is not playing anything at present, it determines that the priority of the playback mechanism corresponding to the second playback source is higher than the priority of the playback mechanism corresponding to the first playback source, and prioritizes driving the haptic actuator to play based on the second playback source.
[0057] In other embodiments, if a second playback source is received during playback based on a first playback source, it is determined that the playback mechanism corresponding to the second playback source has a higher priority than the playback mechanism corresponding to the first playback source, and the haptic actuator is driven to play based on the second playback source.
[0058] In some embodiments, the playback mechanism corresponding to the first playback source and the playback mechanism corresponding to the second playback source can be any of the following: FIFO playback mechanism, burst playback mechanism, or real-time playback mechanism. Priorities can be pre-set for these three different playback mechanisms. For example, the burst playback mechanism can be configured with the highest priority, the FIFO playback mechanism with the second highest priority, and the real-time playback mechanism with the lowest priority. When the playback mechanism corresponding to the first playback source is a FIFO playback mechanism and the playback mechanism corresponding to the second playback source is a burst playback mechanism, the priority of the playback mechanism corresponding to the second playback source is determined to be higher than the priority of the FIFO playback mechanism based on the priorities of the FIFO and burst playback mechanisms, driving the haptic actuator to play the playback content corresponding to the second playback source. The specific content played by the FIFO playback mechanism, burst playback mechanism, and real-time playback mechanism will be described below. Figure 4A , Figure 5A and Figure 5B , Figure 6A as well as Figure 6C This will be elaborated in detail later.
[0059] Furthermore, in some embodiments, when the haptic control system needs to switch from playing the vibration waveform corresponding to the playback content of the first playback source to playing the playback content corresponding to the second playback source, it can also play a switching waveform at the zero-crossing point of the vibration waveform corresponding to the playback content of the first playback source; after the switching waveform finishes playing, play the vibration waveform corresponding to the second playback source; after the vibration waveform corresponding to the second playback source finishes playing, replay the switching waveform.
[0060] Understandably, when the content from the second playback source finishes playing, a switching waveform that needs to be replayed can be automatically generated. Using switching waveforms to connect playback content from different playback sources with different playback mechanisms is beneficial for maintaining the continuity of the playback effect.
[0061] Furthermore, in some embodiments, after the replay switching waveform playback ends, it is determined whether to play the playback content corresponding to the first playback source based on the preset playback duration of the playback content corresponding to the first playback source: if the preset playback duration of the first playback source is greater than the total playback duration, the playback content corresponding to the first playback source continues to play based on the remaining playback duration of the preset playback duration; if the preset playback duration of the first playback source is less than or equal to the total playback duration, it is determined that the playback content corresponding to the first playback source has ended playback; wherein, the total playback duration is the duration from the start of playback of the playback content of the first playback source to the end of playback of the replay switching waveform; the remaining playback duration of the preset playback duration is the difference between the preset playback duration and the total playback duration.
[0062] Understandably, the duration from the start of playback of the content from the first playback source to the end of playback of the switching waveform is actually the sum of the playback duration of the content corresponding to the first playback source before switching to the second playback source, the playback duration of the two switching waveforms, and the playback duration of the content corresponding to the second playback source.
[0063] Understandably, if the preset playback duration of the first playback source is longer than the total playback duration, the playback content corresponding to the first playback source will still have remaining playback duration. At this time, playback can be resumed from the point where the vibration waveform of the playback content corresponding to the first playback source crosses zero, so that the playback content of the first playback source plays until the end according to the remaining playback duration.
[0064] In some implementations, the switching waveform can be a braking waveform. Understandably, while the haptic actuator is playing the braking waveform, the playback operation continues; it's simply a matter of switching from the vibration waveform corresponding to the content from the first playback source to the braking waveform. The braking waveform can be used to stop the haptic actuator, reducing damage caused by residual vibrations, and ensuring that subsequent vibrations from the haptic actuator do not affect the vibration sensation of the waveform corresponding to the inserted playback content.
[0065] For example, Figure 3A This diagram illustrates the insertion of a braking waveform when the vibration waveform transitions from playing content from a first playback source to playing content from a second playback source. Figure 3A As shown in the figure, vibration waveform 1 is the vibration waveform corresponding to the playback content of the first playback source, and it is switched to a braking waveform at the zero-crossing point. Vibration waveform 2 is played at the zero-crossing point of the braking waveform, and vibration waveform 2 is the vibration waveform corresponding to the playback content of the second playback source.
[0066] Figure 3B According to some embodiments of this application, a schematic diagram of the insertion sequence is shown. The following example illustrates a FIFO playback mechanism corresponding to the first playback source and a burst playback mechanism corresponding to the second playback source. It can be understood that the playback content corresponding to the first playback source is the vibration waveform corresponding to the FIFO playback mechanism, and the playback content corresponding to the second playback source is the vibration waveform corresponding to the burst playback mechanism. Specifically, after the playback content corresponding to the first playback source (corresponding to the FIFO playback mechanism) finishes playing, the vibration waveform corresponding to the FIFO playback mechanism can end at the zero-crossing point, and then a braking waveform is inserted. After the braking waveform finishes playing, the vibration waveform corresponding to the burst playback mechanism, i.e., the playback content corresponding to the second playback source, starts playing from the zero-crossing point of the braking waveform. After the vibration waveform corresponding to the burst playback mechanism finishes playing, the braking waveform can be automatically generated. Furthermore, after the braking waveform finishes playing, if it is detected that the vibration waveform corresponding to the FIFO playback mechanism still needs to be played, the vibration waveform corresponding to the FIFO playback mechanism (i.e., the playback content corresponding to the first playback source) is resumed from the zero-crossing point.
[0067] The FIFO playback mechanism, burst playback mechanism, and real-time playback mechanism are introduced below.
[0068] Understandably, the FIFO playback mechanism is a "continuous asynchronous" playback method. "Continuous" means that the haptic control system can continuously receive several frames of data from the CPU and continuously execute the playback requests corresponding to each frame. "Asynchronous" means that receiving and playback can be asynchronous. For example, if the CPU sends out N frames of data within 0.1 seconds, the haptic control system can receive all N frames of data from the CPU and spend 10 seconds sequentially executing the playback requests corresponding to each of the N frames.
[0069] Figure 4A According to some embodiments of this application, a schematic diagram of a playback control method in which a tactile control system performs playback based on a playback source when corresponding to a FIFO playback mechanism is shown. The process is specifically described using the example of the tactile control system driving a tactile actuator to play based on a first playback source. The specific process is as follows:
[0070] S401, the first playback source is received based on the first protocol interface, and the first playback source is parsed to obtain at least one frame of data. Each frame of data in the at least one frame includes an instruction header and instruction parameters.
[0071] In some embodiments, the first protocol interface can be a general-purpose serial protocol interface such as an integrated inter-line bus (I2C) interface or a serial peripheral (SPI) interface. For example, the haptic control system can receive a playback source containing N (N≥1) frames of data sent from the CPU via general-purpose serial protocols such as I2C or SPI, and each frame of data can include an instruction header and instruction parameters.
[0072] In some embodiments, a single frame of data can represent a playback request, and each frame may include a command header and command parameters. The command header length can be a fixed value (e.g., a fixed first preset value), while the command parameters length can be variable. The total length of the command header and command parameters is less than or equal to the frame length, which is not required to be fixed. When the total length of the command header and command parameters is less than the frame length, the empty portions in each frame are invalid fields.
[0073] For example, Figure 4B The diagram illustrates a single frame of data. In this diagram, the frame length is 32 bits, the instruction header is 8 bits, the instruction parameters are 16 bits, and the invalid field is 8 bits.
[0074] Figure 4CThe diagram illustrates receiving three frames of data sent from the CPU. The instruction headers for the three frames are fixed at 8 bits, the frame length is 32 bits, and the instruction parameter lengths vary. The first frame has 16 bits of instruction parameters and 8 bits of invalid fields; the second frame has 16 bits of instruction parameters and 24 bits of invalid fields; and the third frame has 8 bits of instruction parameters and 16 bits of invalid fields.
[0075] In some implementations, the code value of the instruction header can be used to define the playback mode of the frame. For example, waveform modes include playback according to a pre-stored waveform mode, playback according to a real-time waveform mode, playback according to a DC waveform mode, playback according to a sine wave mode, playback according to a shaped square wave mode, playback according to a brake waveform mode, and playback according to a triangular waveform mode. Furthermore, the code value of the instruction header can also be used to map the frame length. For example, the instruction header carries a field corresponding to the frame length to indicate the frame length. Understandably, if the frame length is fixed, each frame of data can be read at a fixed frame length, thereby improving data reading efficiency. Instruction parameters can be used to define more specific playback content. For example, instruction parameters can include information such as the waveform index, amplitude, gain, duration, and frequency of the corresponding pre-stored waveform. Instruction parameters can also include playback conditions related to chip control, for example, whether to boost, clock frequency adjustment, low-power mode, etc. Understandably, based on the instruction parameters, the haptic control system can play pre-stored waveforms, automatically generated waveforms, or waveform values directly derived from the instruction parameters in the frame data.
[0076] For example, Figure 4D This diagram illustrates another type of N (N≥1) frame data. N frames represent N playback requests. Each frame includes a header and parameters. The first frame corresponds to a 100ms, 200Hz, 2V playback of an automatically generated Sine waveform. The second frame corresponds to a 50ms playback of a pre-stored waveform (waveform #1). The Nth frame corresponds to a 30ms playback of an automatically generated braking waveform.
[0077] S402 stores each frame of data sequentially, retrieves each frame of data in the order of storage, and drives the haptic actuator to play.
[0078] In some embodiments, after storing each frame of data in the received N frames of data in sequence, a frame of data is read in the order of storage and the haptic actuator is driven to play the playback content corresponding to that frame of data. Then the next frame of data is read and the haptic actuator is driven to play the playback content corresponding to the next frame of data, and so on.
[0079] For example, N frames of data can be stored sequentially, resulting in the stored N frames being frame 1, frame 2, ..., frame N. The frames 1, 2, ..., N can then be played in that order.
[0080] Understandably, the above Figure 4A This explanation uses the first playback source as an example. The haptic control system drives the haptic actuator to play based on the second playback source in the same way. For example, if the playback mechanism corresponding to the second playback source is a FIFO playback mechanism, the system receives the second playback source based on the first protocol interface, parses the second playback source to obtain at least one frame of data, and each frame of data includes an instruction header and instruction parameters. After storing each frame of data sequentially, when it is determined that the second playback source needs to be played first, each frame of data is retrieved in the storage order and the haptic actuator is driven to play.
[0081] Understandably, when the playback mechanism is FIFO, the haptic control system parses the playback source to obtain multiple frames of data, including the instruction header and instruction parameters. This means that the content of the playback source transmitted by the bus corresponding to the first protocol interface is an instruction rather than waveform data. In this case, the amount of data transmitted by the bus corresponding to the first protocol interface can be reduced, as can the FIFO playback mechanism's dependence on the CPU bus, thus reducing the burden on CPU management.
[0082] Understandably, the burst playback mechanism is a single-time asynchronous playback. "Single-time" means that only one playback request is played each time it is triggered. A playback request can be equivalent to the playback request corresponding to one frame of data in a FIFO playback mechanism. "Asynchronous" means that receiving the trigger information and playback are not simultaneous. The following section will combine... Figure 5A and Figure 5B To elaborate further.
[0083] Figure 5A According to some embodiments of this application, a schematic diagram of a playback control method in which a tactile control system performs playback based on a playback source when corresponding to a burst playback mechanism is shown. The process is specifically described using the example of the tactile control system driving a tactile actuator to play based on a first playback source. The specific process is as follows:
[0084] S501 receives the first playback source based on the first protocol interface and parses the first playback source to obtain the configuration parameters of the first specific register.
[0085] Understandably, the CPU can pre-configure specific registers via integrated inter-line bus (I2C) interfaces or serial peripheral (SPI) interfaces, allowing these registers to store necessary playback parameters. For example, pre-stored waveforms, waveform indices, amplitudes, and frequencies can be written into the registers.
[0086] In some embodiments, the haptic control system can receive the first playback source from the CPU through a universal serial protocol such as an integrated inter-line bus (I2C) interface or a serial peripheral (SPI) interface, and parse the first playback source to obtain the configuration parameters of the first specific register.
[0087] S502 determines the playback parameters from the first specific register according to the configuration parameters, and drives the haptic actuator to play according to the playback parameters.
[0088] In some embodiments, the haptic control system retrieves pre-stored playback parameters from a first specific register based on configuration parameters of the first specific register. These playback parameters can be used directly as playback content, or playback content can be automatically generated based on the playback parameters, thereby driving the haptic actuator to play the playback content corresponding to the playback parameters. For example, when the playback parameter is a vibration waveform, the haptic actuator is driven to play the vibration waveform corresponding to the playback parameter. Alternatively, when the playback parameter is a vibration parameter, a vibration waveform is automatically generated based on the vibration parameter, and the haptic actuator is driven to play the vibration waveform corresponding to the playback parameter.
[0089] Understandably, the above Figure 5A This explanation uses the first playback source as an example. The haptic control system drives the haptic actuator to play based on the second playback source in the same way. For example, the system receives the second playback source through the first protocol interface, parses the second playback source to obtain the configuration parameters of the first specific register, and when it is determined that the second playback source needs to be played first, the system determines the playback parameters from the first specific register according to the configuration parameters, and drives the haptic actuator to play according to the playback parameters.
[0090] Figure 5B According to some embodiments of this application, a schematic diagram of a playback control method based on a playback source in response to another burst playback mechanism is shown. This process is illustrated using the haptic control system playing a first playback source as an example. The specific process is as follows:
[0091] S511 receives the first playback source based on the first pin and parses the first playback source to obtain the trigger signal, wherein the first pin is associated with the first specific register.
[0092] Understandably, trigger signals can include level status information. Specifically, this can include high, low, rising edge, falling edge, and other level status information.
[0093] S512 determines playback parameters from a first specific register based on a trigger signal, and drives the haptic actuator to play according to the playback parameters.
[0094] In some embodiments, at the edge of the level state (triggered by rising / falling edge), the haptic control system reads preset playback parameters from a first specific register and then drives the haptic actuator to perform the corresponding vibration playback.
[0095] In other embodiments, during the high-level duration of the level state or the low-level duration of the level state, the haptic control system reads preset playback parameters from a first specific register and then drives the haptic actuator to perform corresponding vibration playback.
[0096] It is understandable that obtaining playback parameters from the first specific register to drive the haptic actuator to play is the same as the steps in S502 above, and will not be repeated here.
[0097] Understandably, the above Figure 5B This explanation uses the first playback source as an example. The haptic control system drives the haptic actuator to play based on the second playback source in the same way. For example, the system receives the second playback source based on the first pin and parses the second playback source to obtain the trigger signal. The first pin is associated with a first specific register. When it is determined that the second playback source needs to be played first, the playback parameters are determined from the first specific register based on the trigger signal, and the haptic actuator is driven to play according to the playback parameters.
[0098] Understandably, for a real-time playback mechanism, the haptic control system can receive waveform data, or instruction headers and instruction parameters.
[0099] Figure 6A According to some embodiments of this application, a schematic diagram of a playback control method based on a data source is shown, corresponding to a real-time playback mechanism. This process is illustrated using the example of the haptic control system receiving a command header and command parameters, and playing content from a first playback source. The specific process is as follows:
[0100] S601, receives the first playback source based on the second protocol interface, and parses the first playback source to obtain at least one frame of data, each frame of data including an instruction header and instruction parameters.
[0101] In some embodiments, the second protocol interface includes an Inter-Integrated Circuit Audio Bus (I2S) protocol interface or a Time Division Multiplexing (TDM) protocol interface. For example, the haptic control system can receive a first playback source sent by the CPU via protocols such as I2S or TDM. This first playback source includes N frames of data, and each frame of data can include an instruction header and instruction parameters. The N frames of data can be obtained by parsing the first playback source.
[0102] The format and content of the instruction header and instruction parameters can be referred to in Figure S401 above, and will not be repeated here. Compared to the instruction header and instruction parameters corresponding to the FIFO playback mechanism described in S401, the playback duration in the real-time playback mechanism is not defined by instruction parameters. The CPU repeatedly sends frames for a certain duration, and the haptic control system will parse the same data frame within that duration; this duration is the playback duration represented by that data frame.
[0103] For example, Figure 6B This diagram illustrates receiving 100 frames of data sent from a CPU. The 100 frames represent the same playback requirement. Each frame includes a header and command parameters. In the diagram, frames 1 through 100 correspond to playing a 200Hz, 2V, square wave waveform. The duration for which the haptic control system drives the haptic actuator to play the square wave waveform is the playback duration of all 100 frames.
[0104] S602 stores each frame of data sequentially, retrieves each frame of data in the order of storage, and drives the haptic actuator to play.
[0105] For example, drive the haptic actuator to play the playback content corresponding to 100 frames of data in sequence.
[0106] Understandably, the above Figure 6A This explanation uses the first playback source as an example. The haptic control system drives the haptic actuator to play based on the second playback source in the same way. For example, the system receives the second playback source through the second protocol interface and parses it to obtain at least one frame of data. Each frame of data includes an instruction header and instruction parameters. When it is determined that the second playback source needs to be played first, the system determines the playback parameters from the first specific register based on the trigger signal and drives the haptic actuator to play according to the playback parameters.
[0107] Understandably, when the playback mechanism is real-time, the haptic control system parses the first playback source to obtain multiple frames of data, including the instruction header and instruction parameters. This indicates that the content of the playback source transmitted by the bus corresponding to the second protocol interface is instruction data, not waveform data. In this case, the amount of data transmitted by the bus corresponding to the second protocol interface can be reduced, as can the real-time playback mechanism's dependence on the CPU bus, thus reducing the burden on CPU management.
[0108] Figure 6C According to some embodiments of this application, a schematic diagram of a playback control method based on a data source is shown, corresponding to a real-time playback mechanism. This process is illustrated using the haptic control system receiving waveform data and playing data from a first playback source as examples. The specific process is as follows:
[0109] S611 receives the first playback source based on the second protocol interface and parses the first playback source to obtain the first waveform data.
[0110] S612 drives the haptic actuator to play based on the first waveform data.
[0111] Understandably, the above Figure 6C This explanation uses the first playback source as an example. The haptic control system drives the haptic actuator to play based on the second playback source in the same way. For example, the system receives the second playback source through the second protocol interface, parses the first playback source to obtain the second waveform data, and when it is determined that the second playback source needs to be played first, the haptic actuator is driven to play based on the second waveform data.
[0112] In some embodiments, this application also provides a chip, the chip including a tactile control system, the tactile control system including: a playback mechanism module, including a FIFO playback controller, a burst playback controller, and a real-time playback controller; and a main control module, used to execute the playback control method described above based on a first playback source and a second playback source received by the playback mechanism module. For example, the above can be executed. Figure 2 , Figure 4A , Figure 5A , Figure 5B , Figure 6A and Figure 6C The playback control method shown.
[0113] For example, the following is combined with Figure 7 To elaborate in detail. Figure 7 According to some embodiments of this application, a schematic diagram of the architecture of a tactile control system is shown. As shown in the figure, the tactile control system may include, but is not limited to, a playback mechanism module, a waveform generator, a main control module, and an output stage. The playback mechanism module includes a FIFO controller, a burst controller, a real-time controller, and a memory.
[0114] Specifically, the FIFO controller is used to parse the playback source of the first protocol interface to obtain at least one frame of data, and each frame of data includes an instruction header and instruction parameters.
[0115] The burst controller is used to parse the playback source of the first protocol interface to obtain the configuration parameters of the first specific register. Alternatively, it can parse the data source of the first pin to obtain the trigger signal.
[0116] The real-time controller is used to parse the playback source of the second protocol interface to obtain at least one frame of data. Each frame of data includes an instruction header and instruction parameters, or waveform data.
[0117] The memory is used to store data, such as pre-stored waveform data and content parsed by the playback mechanism module based on the playback source, such as instruction headers and instruction parameters, configuration parameters, trigger signals, or waveform data.
[0118] Waveform generators are used to automatically generate waveforms.
[0119] In some embodiments, the main control module is configured to prioritize driving the haptic actuator to play based on the second playback source when simultaneously receiving both a first playback source and a second playback source; and to drive the haptic actuator to play based on the second playback source when receiving the second playback source while playing based on the first playback source; wherein the playback mechanism corresponding to the second playback source has a higher priority than the playback mechanism corresponding to the first playback source. For example, when the main control module determines that the second playback source has a higher priority than the first playback source, it obtains the content parsed from the second playback source by the playback mechanism module, obtains playback parameters based on the parsed content, and automatically generates a waveform using a waveform generator based on the playback parameters; alternatively, it directly obtains waveform data based on the parsed content of the second playback source and uses the output stage control to drive the haptic actuator to vibrate according to the waveform data.
[0120] Figure 8 According to some embodiments of this application, a schematic diagram of the architecture of an electronic device is shown. As shown, the electronic device may include a memory, a central processing unit (CPU), a haptic control system, an audio control system, a haptic actuator, a speaker, and other components. The haptic control system can be the haptic control system in any electronic device (such as mobile phone 100).
[0121] In some embodiments, the CPU may include one or more processing units, wherein different processing units may be independent devices or integrated into one or more processors. In some embodiments, the CPU generates playback sources corresponding to different playback mechanisms according to playback requirements, such as the first playback source and the second playback source mentioned above, and sends the playback sources to the haptic control system via a serial protocol interface.
[0122] The memory can be used to store data and software programs, and can be volatile memory, such as random-access memory (RAM); or non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD); or a combination of the above types of memory, or it can be a removable storage medium, such as a secure digital storage (SD) card. In some embodiments of the application, the memory can store the program used by the CPU to generate the playback source and the generated playback source.
[0123] The haptic control system is used to drive a haptic actuator (e.g., a motor) to vibrate based on a playback command received from the CPU. In some embodiments of this application, the haptic control system can perform the above-described actions. Figure 2 , Figure 4A , Figure 5A , Figure 5B , Figure 6A or Figure 6C The playback control method shown.
[0124] The audio control system is used to drive the speakers to play audio based on the playback source received from the CPU.
[0125] In the accompanying drawings, some structural or methodological features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be necessary. Rather, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. Furthermore, the inclusion of structural or methodological features in a particular figure does not imply that such features are required in all embodiments, and in some embodiments, these features may be omitted or may be combined with other features.
[0126] It should be noted that all units / modules mentioned in the device embodiments of this application are logical units / modules. Physically, a logical unit / module can be a physical unit / module, a part of a physical unit / module, or a combination of multiple physical units / modules. The physical implementation of these logical units / modules themselves is not the most important factor; the combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed in this application. Furthermore, to highlight the innovative aspects of this application, the above-described device embodiments of this application have not introduced units / modules that are not closely related to solving the technical problems proposed in this application. This does not mean that the above-described device embodiments do not contain other units / modules.
[0127] It should be noted that in the examples and description of this patent, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one" does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0128] Although this application has been illustrated and described with reference to certain preferred embodiments thereof, those skilled in the art should understand that various changes in form and detail may be made thereto without departing from the spirit and scope of this application.
Claims
1. A playback control method applied to a tactile control system, characterized in that, The method includes: When both a first playback source and a second playback source are received simultaneously, the haptic actuator is driven to play based on the second playback source first. If the second playback source is received during playback based on the first playback source, the haptic actuator is driven to play based on the second playback source. The playback mechanism corresponding to the second playback source has a higher priority than the playback mechanism corresponding to the first playback source.
2. The method according to claim 1, characterized in that, The playback mechanism corresponding to the first playback source and the playback mechanism corresponding to the second playback source are either of the following: FIFO playback mechanism, burst playback mechanism, real-time playback mechanism.
3. The method according to claim 2, characterized in that, When the playback mechanism corresponding to the first playback source is a FIFO playback mechanism, the first playback source is received based on the first protocol interface, and the first playback source is parsed to obtain at least one frame of data. Each frame of data in the at least one frame includes an instruction header and instruction parameters. After storing each frame of data sequentially, the data is retrieved in the order of storage and the haptic actuator is driven to play.
4. The method according to claim 2, characterized in that, When the playback mechanism of the first playback source is a burst playback mechanism, the first playback source is received based on the first protocol interface, and the configuration parameters of the first specific register are obtained by parsing the first playback source. Playback parameters are determined from the first specific register according to the configuration parameters, and the haptic actuator is driven to play according to the playback parameters.
5. The method according to claim 3 or 4, characterized in that, The first protocol interface includes an integrated inter-line bus (I2C) interface or a serial peripheral (SPI) interface.
6. The method according to claim 2, characterized in that, When the playback mechanism of the first playback source is a burst playback mechanism, the trigger signal is obtained by receiving the first playback source based on the first pin and parsing the first playback source, wherein the first pin is associated with the first specific register; Based on the trigger signal, playback parameters are determined from the first specific register, and the haptic actuator is driven to play according to the playback parameters.
7. The method according to claim 2, characterized in that, When the playback mechanism of the first playback source is a real-time playback mechanism, the first playback source is received based on the second protocol interface, and the first playback source is parsed to obtain at least one frame of data. Each frame of data includes an instruction header and instruction parameters. After storing each frame of data sequentially, the data is retrieved in the order of storage and used to drive the haptic actuator to play the data. The second protocol interface includes an inter-integrated circuit audio bus (I2S) protocol interface or a time-division multiplexing (TDM) protocol interface.
8. The method according to claim 2, characterized in that, When the playback mechanism of the first playback source is a real-time playback mechanism, the first playback source is received based on the second protocol interface, and the first waveform data is obtained by parsing the first playback source. The haptic actuator is driven to play based on the first waveform data. The second protocol interface includes an inter-integrated circuit audio bus (I2S) protocol interface or a time-division multiplexing (TDM) protocol interface.
9. The method according to claim 3 or 7, characterized in that, The length of the instruction header is a fixed first preset value, and the total length of the instruction header and the instruction parameters is less than or equal to the frame length.
10. The method according to claim 9, characterized in that, When the total length of the instruction header and the instruction parameters is less than the frame length, the empty parts in each frame of data are invalid fields.
11. The method according to claim 1, characterized in that, The step of receiving a second playback source during playback based on the first playback source, and then driving the haptic actuator to play based on the second playback source, further includes: At the zero-crossing point of the vibration waveform corresponding to the playback content of the first playback source, the playback switching waveform is switched. After the switching waveform playback ends, the vibration waveform corresponding to the second playback source is played; After the vibration waveform corresponding to the second playback source finishes playing, the switching waveform is replayed.
12. The method according to claim 11, characterized in that, After the replay of the switched waveform ends, based on the preset playback duration of the playback content corresponding to the first playback source, it is determined whether to play the playback content corresponding to the first playback source: If the preset playback duration of the first playback source is greater than the total playback duration, the playback content corresponding to the first playback source will continue to be played according to the remaining playback duration of the preset playback duration. If the preset playback duration of the first playback source is less than or equal to the total playback duration, it is determined that the playback content corresponding to the first playback source has ended. Wherein, the total playback duration is the duration from the start of playback of the content from the first playback source to the end of playback of the switched waveform during replay; The remaining playback time of the preset playback duration is the difference between the preset playback duration and the total playback time.
13. The method according to claim 11, characterized in that, The switching waveform is a braking waveform.
14. A chip, characterized in that, Includes a tactile control system, the tactile control system comprising: The playback mechanism module includes a FIFO playback controller, a burst playback controller, and a real-time playback controller; The main control module is used to execute the playback control method according to any one of claims 1-13 based on the first playback source and the second playback source received by the playback mechanism module.
15. An electronic device, characterized in that, Includes memory for storing one or more instructions; Processor, for executing one or more instructions, The tactile control system is used to receive the data source from the processor, enabling the electronic device to implement the playback control method according to any one of claims 1-13.