Method, system and related devices for compression and encryption of haptic effect data

By pre-compressing and encrypting the tactile effect data, storage space and security issues are resolved, and efficient data storage and secure playback are achieved.

CN116185172BActive Publication Date: 2025-10-24AAC ACOUSTIC TECH (SHANGHAI) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211574168.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-08
Publication Date
2025-10-24
Estimated Expiration
2042-12-08

AI Technical Summary

Technical Problem

In the prior art, the storage size of haptic effect data increases as the number of preset effect files increases, and there are data security issues.

Method used

The haptic effect data is processed using preset compression and encryption methods, including downsampling compression, encryption, upsampling decompression and decryption. Combined with digital-to-analog conversion, this ensures that the data saves space when stored and is restored to the original data when played back. At the same time, encryption algorithms ensure data security.

Benefits of technology

It saves storage space and improves data security for haptic effect data, ensuring that the playback effect is not affected.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116185172B_ABST
    Figure CN116185172B_ABST
Patent Text Reader

Abstract

The application provides a compression and encryption method, system and related equipment of haptic effect data, and the method comprises the following steps: obtaining haptic effect data; compressing the haptic effect data according to a preset compression method, and encrypting the haptic effect data according to a preset encryption method to obtain haptic storage data; decrypting the haptic storage data according to a preset decryption method, and decompressing the haptic storage data according to a preset decompression method to obtain haptic feedback data; performing digital-to-analog conversion on the haptic feedback data, and inputting the haptic feedback data to a brake unit to play the haptic effect. Compared with the related art, the application respectively adopts the encryption and compression methods to process the data from the acquisition to the playing stage, so that the haptic effect data can save the storage space when being stored, and can be restored to the original data when being played, thereby guaranteeing the playing effect; meanwhile, the encryption algorithm is used for encryption processing when being stored, so that the security of the original haptic effect data can be guaranteed during the storage process.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] The present application relates to a kind of processing methods of haptic effect data, more particularly to a kind of compression and encryption method of haptic effect data, system and related equipment.

[0002] With the development of consumer electronics technology, the brake as carrier of haptic feedback scheme such as vibration motor, voice coil motor, etc. In various consumer electronics products such as mobile phones, tablets, has been widely used.

[0003] In the related art, various haptic effect data are stored in the form of digital signals in the digital end of the haptic feedback scheme, and when the haptic effect is needed, the system calls the digital signal, which is converted into an analog signal through a certain digital-to-analog conversion device, thereby driving the brake to apply the haptic feedback effect. Among them, the generation of haptic effect data has the following two ways:

[0004] One, through the pre-stored designed effect data in the memory, such as the hard disk in PC or the RAM unit in chip, directly call through interface when needed, this way is usually called RAM mode;

[0005] Two, real-time generate the haptic effect data needed through the signal processing link of digital end, this way is usually called RTP mode.

[0006] However, whether it is RAM mode or RTP mode, there are two problems in the storage and generation of haptic effect data, and with the rapid development of haptic feedback technology, these two problems become more and more prominent:

[0007] The first problem is that the storage size of haptic effect data will become larger and larger with the increase of pre-stored effect files;

[0008] The second problem is that since the original haptic effect data is stored in the disk or RAM space that can be read by the user, there is a data security problem.

[0009] Therefore, it is necessary to provide a new haptic effect data processing method to solve the above problems.

[0010] The technical problem to be solved by the present application is to provide a haptic effect data processing method capable of reducing the storage size and encryption requirements of haptic effect data.

[0011] To solve the above technical problems, in a first aspect, the present application provides a compression and encryption method of haptic effect data, comprising the following steps:

[0012] Obtain haptic effect data;​​​

[0013] The haptic effect data is compressed according to a preset compression method, and then encrypted according to a preset encryption method, to obtain haptic storage data, and the preset compression method is that the haptic effect data is down-sampled according to a preset compression frequency.

[0014] The haptic storage data is decrypted according to a preset decryption method, and then decompressed according to a preset decompression method, to obtain haptic feedback data, and the preset decompression method is that the haptic storage data is up-sampled according to a preset playing frequency.

[0015] The haptic feedback data is converted from digital to analog, and input to a braking unit to play the haptic effect.

[0016] In a second aspect, the application provides another compression and encryption method of haptic effect data, comprising the following steps:

[0017] Obtaining haptic effect data;

[0018] The haptic effect data is compressed according to a preset compression method, and then encrypted according to a preset encryption method, to obtain haptic storage data, and the preset compression method is that the haptic effect data with an original frequency is compressed according to source coding;

[0019] The haptic storage data is decrypted according to a preset decryption method, and then decompressed according to a preset decompression method, to obtain haptic feedback data, and the preset decompression method is that the haptic storage data is restored to the original frequency;

[0020] The haptic feedback data is converted from digital to analog, and input to a braking unit to play the haptic effect.

[0021] Preferably, the preset encryption method is:

[0022] The haptic effect data is encrypted by a preset key;

[0023] The preset decryption method is:

[0024] The haptic storage data is decrypted by the preset key.

[0025] In a third aspect, the application further provides a compression and encryption system of haptic effect data, comprising:

[0026] A data acquisition module for obtaining haptic effect data;

[0027] The compression and encryption module is configured to compress the haptic effect data according to a preset compression method, and then encrypt the haptic effect data according to a preset encryption method, to obtain haptic storage data, wherein the preset compression method is to perform down-sampling processing on the haptic effect data according to a preset compression frequency.

[0028] The decompression and decryption module is configured to decrypt the haptic storage data according to a preset decryption method, and then decompress the haptic storage data according to a preset decompression method, to obtain haptic feedback data, wherein the preset decompression method is to perform up-sampling processing on the haptic storage data according to a preset playback frequency.

[0029] The haptic effect playback module is configured to perform digital-to-analog conversion on the haptic feedback data, and input the haptic feedback data to a brake unit to play the haptic effect.

[0030] In a fourth aspect, the present application further provides another haptic effect data compression and encryption system, comprising:

[0031] The data acquisition module is configured to acquire haptic effect data.

[0032] The compression and encryption module is configured to compress the haptic effect data according to a preset compression method, and then encrypt the haptic effect data according to a preset encryption method, to obtain haptic storage data, wherein the preset compression method is to perform compression processing on the haptic effect data with a source code according to an original frequency.

[0033] The decompression and decryption module is configured to decrypt the haptic storage data according to a preset decryption method, and then decompress the haptic storage data according to a preset decompression method, to obtain haptic feedback data, wherein the preset decompression method is to restore the haptic storage data to the original frequency.

[0034] The haptic effect playback module is configured to perform digital-to-analog conversion on the haptic feedback data, and input the haptic feedback data to a brake unit to play the haptic effect.

[0035] In a fifth aspect, the present application further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the haptic effect data compression and encryption method according to any one of the above aspects when executing the computer program.

[0036] In a sixth aspect, the present application further provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program implements the steps of the haptic effect data compression and encryption method according to any one of the above aspects when executed by a processor.

[0037] Compared with the related art, in the compression and encryption method of the haptic effect data, the encryption and compression are respectively adopted to process the data from the acquisition to the playing stage, so that the haptic effect data can save the storage space when stored and can be restored to the original data when played, thereby guaranteeing the playing effect; meanwhile, the encryption algorithm is used to encrypt the data when stored, so that the security of the original haptic effect data can be guaranteed during the storage. BRIEF DESCRIPTION OF DRAWINGS

[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments description. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained from these drawings without creative labor.

[0039] Figure 1 is a step flow block diagram of the compression and encryption method of the haptic effect data provided by the embodiment of the present application;

[0040] Figure 2 is a step flow block diagram of another compression and encryption method of the haptic effect data provided by the embodiment of the present application

[0041] Figure 3 is a structure schematic diagram of the compression and encryption system of the haptic effect data provided by the embodiment of the present application;

[0042] Figure 4 is a structure schematic diagram of the computer device provided by the embodiment of the present application.

DETAILED DESCRIPTION

[0043] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all the other embodiments obtained by those skilled in the art without creative labor are within the protection scope of the present application.

[0044] Embodiment one

[0045] Please refer to Figure 1 , Figure 1 is a step flow block diagram of the compression and encryption method of the haptic effect data provided by the embodiment of the present application, which specifically includes the following steps:

[0046] S1, acquiring haptic effect data.

[0047] Preferably, the method for obtaining the haptic effect data can be obtained by audio recording device for environment collection, or the haptic effect data can be obtained by editing in computer software. The application does not make specific limitation on the obtaining method.

[0048] S2, compressing the haptic effect data according to a preset compression method, and then encrypting the haptic effect data according to a preset encryption method to obtain haptic storage data, wherein the preset compression method is that the haptic effect data is down-sampled according to a preset compression frequency.

[0049] S3, decrypting the haptic storage data according to a preset decryption method, and then decompressing the haptic storage data according to a preset decompression method to obtain haptic feedback data, wherein the preset decompression method is that the haptic storage data is up-sampled according to a preset playing frequency.

[0050] Specifically, the preset compression frequency and the preset playing frequency are based on the rate change of data. For example, in an embodiment, since the frequency range of human haptic feedback is within 500 Hz, and the frequency range of most haptic feedback data will not exceed 500 Hz, but in order to improve the feedback quality of the haptic effect, it is usually required that no additional noise is generated. Since the human ear is more sensitive to noise around 5 kHz to 8 kHz, the playing rate is usually increased to 24 kHz to 96 kHz when playing the haptic feedback data. In the embodiment of the application, in order to compress the storage space of the haptic effect data, a low-rate digital signal such as 4 kHz is used in step S2, and a high-rate digital signal such as 48 kHz is used in step S3 for decompression.

[0051] Preferably, the preset encryption method is that:

[0052] the haptic effect data is encrypted by a preset key;

[0053] the preset decryption method is that:

[0054] the haptic storage data is decrypted by the preset key.

[0055] Specifically, for the pre-stored or generated haptic feedback data, it is necessary to encrypt the haptic feedback data by a certain method based on the security requirement. In the actual implementation of the embodiment of the application, various existing encryption algorithms can be used to balance the encryption complexity and security. Preferably, when the execution subjects of steps S1 and S2 are inconsistent with the execution subjects of steps S3 and S4, the preset key needs to be synchronized from the encryption end to the decryption end, so that the decryption operation can be completed before the haptic feedback signal is decompressed and played.

[0056] S4, digital-to-analog conversion is performed on the haptic feedback data, and the haptic feedback data is input to a brake unit to play the haptic effect.

[0057] Compared with the related art, in the haptic effect data compression and encryption method, the data is processed by encryption and compression respectively from the data acquisition to the playing stage, so that the storage space of the haptic effect data is saved during storage, and the original data can be restored during playing to ensure the playing effect; meanwhile, the original haptic effect data is encrypted by using an encryption algorithm during storage, so that the security of the original haptic effect data is ensured during storage.

[0058] Embodiment Two

[0059] Please refer to Figure 2 , Figure 2 is a step flow block diagram of another haptic effect data compression and encryption method provided by the embodiment of the application, and the method specifically includes the following steps: S1, acquiring haptic effect data.

[0060] S2, compressing the haptic effect data according to a preset compression method, and then encrypting the haptic effect data according to a preset encryption method to obtain haptic storage data, wherein the preset compression method is that the haptic effect data with an original frequency is compressed according to source coding.

[0061] S3, decrypting the haptic storage data according to a preset decryption method, and then decompressing the haptic storage data according to a preset decompression method to obtain haptic feedback data, wherein the preset decompression method is that the haptic storage data is restored to the original frequency.

[0062] Specifically, the compression method based on source coding is based on the characteristics of occasionality and low frequency of data, and the redundant information in the data is often more, in the embodiment of the application, the redundant frequency in the haptic effect data is compressed and coded according to source coding in step S2, and the compressed part of the data is restored by using source coding in step S3, so that the haptic feedback data with the original frequency is obtained to ensure the quality of the haptic feedback.

[0063] S4, digital-to-analog conversion is performed on the haptic feedback data, and the haptic feedback data is input to a brake unit to play the haptic effect.

[0064] Embodiment Three

[0065] The embodiment of the application further provides a haptic effect data compression and encryption system, please refer to Figure 3 , Figure 3 is a structure schematic diagram of the haptic effect data compression and encryption system provided by the embodiment of the application, and the haptic effect data compression and encryption system 200 includes:

[0066] The data acquisition module 201 is configured to acquire haptic effect data.

[0067] The compression and encryption module 202 is configured to compress the haptic effect data according to a preset compression method, and then encrypt the haptic effect data according to a preset encryption method, to obtain haptic storage data.

[0068] The decompression and decryption module 203 is configured to decrypt the haptic storage data according to a preset decryption method, and then decompress the haptic storage data according to a preset decompression method, to obtain haptic feedback data.

[0069] The haptic effect playing module 204 is configured to perform digital-to-analog conversion on the haptic feedback data, and input the haptic feedback data to a brake unit to play the haptic effect.

[0070] Embodiment Four

[0071] In another possible embodiment, the compression method used by the compression and encryption module 202 and the decompression and decryption module 203 is different, wherein:

[0072] The compression and encryption module 202 is configured to compress the haptic effect data according to a preset compression method, and then encrypt the haptic effect data according to a preset encryption method, to obtain haptic storage data.

[0073] The decompression and decryption module 203 is configured to decrypt the haptic storage data according to a preset decryption method, and then decompress the haptic storage data according to a preset decompression method, to obtain haptic feedback data.

[0074] The compression and encryption system 200 of the haptic effect data can implement the steps in the compression and encryption method of the haptic effect data in the above-described embodiments, and can achieve the same technical effects. For details, refer to the descriptions in the above-described embodiments, which will not be described here again.

[0075] Embodiment Five

[0076] The embodiment of the present application further provides a computer device, please refer to Figure 3 , Figure 3 is a structural schematic diagram of the computer device provided by the embodiment of the present application, the computer device 300 comprises a memory 302, a processor 301 and a computer program stored on the memory 302 and capable of running on the processor 301.

[0077] The processor 301 invokes the computer program stored in the memory 302 to perform the steps in the compression and encryption method of haptic effect data provided by the embodiments of the application. Please refer to Figure 1 and Figure 2 for details.

[0078] S1, obtaining haptic effect data.

[0079] S2, compressing the haptic effect data according to a preset compression method, and then encrypting the haptic effect data according to a preset encryption method to obtain haptic storage data, wherein the preset compression method is to down-sample the haptic effect data according to a preset compression frequency.

[0080] S3, decrypting the haptic storage data according to a preset decryption method, and then decompressing the haptic storage data according to a preset decompression method to obtain haptic feedback data, wherein the preset decompression method is to up-sample the haptic storage data according to a preset playback frequency.

[0081] Preferably, the preset encryption method is:

[0082] encrypting the haptic effect data by using a preset key;

[0083] The preset decryption method is:

[0084] decrypting the haptic storage data by using the preset key.

[0085] S4, performing digital-to-analog conversion on the haptic feedback data, and inputting the haptic feedback data to a brake unit to play the haptic effect.

[0086] Or:

[0087] S1, obtaining haptic effect data.

[0088] S2, compressing the haptic effect data according to a preset compression method, and then encrypting the haptic effect data according to a preset encryption method to obtain haptic storage data, wherein the preset compression method is to compress the haptic effect data with an original frequency according to source coding.

[0089] S3, decrypting the haptic storage data according to a preset decryption method, and then decompressing the haptic storage data according to a preset decompression method to obtain haptic feedback data, wherein the preset decompression method is to restore the haptic storage data to the original frequency.

[0090] S4, performing digital-to-analog conversion on the haptic feedback data, and inputting the haptic feedback data to a brake unit to play the haptic effect.

[0091] The computer device 300 provided by the embodiment of the present application can realize the steps in the compression and encryption method of the haptic effect data in the above embodiment, and can realize the same technical effects. For details, refer to the description in the above embodiment, which will not be repeated here.

[0092] Embodiment six

[0093] The embodiment of the present application also provides a computer readable storage medium, which stores a computer program. The computer program is executed by a processor to realize each process and step in the compression and encryption method of the haptic effect data provided by the embodiment of the present application, and can realize the same technical effects. To avoid repetition, details will not be repeated here.

[0094] The above only describes the embodiments of the present application. It should be pointed out that, for those skilled in the art, improvements can be made without departing from the concept of the present application, but these all belong to the protection scope of the present application.

Claims

1. A method of compression and encryption of haptic effect data, characterized by, The method comprises the following steps: Obtaining haptic effect data; Compressing the haptic effect data according to a preset compression method, and then encrypting the haptic effect data according to a preset encryption method to obtain haptic storage data, wherein the preset compression method is to perform down-sampling processing on the haptic effect data according to a preset compression frequency; Decrypting the haptic storage data according to a preset decryption method, and then decompressing the haptic storage data according to a preset decompression method to obtain haptic feedback data, wherein the preset decompression method is to perform up-sampling processing on the haptic storage data according to a preset playback frequency; Performing digital-to-analog conversion on the haptic feedback data, and inputting the haptic feedback data to a brake unit to play the haptic effect.

2. A method of compression and encryption of haptic effect data, characterized by, The method comprises the following steps: Obtaining haptic effect data; Compressing the haptic effect data according to a preset compression method, and then encrypting the haptic effect data according to a preset encryption method to obtain haptic storage data, wherein the preset compression method is to compress the haptic effect data with a frequency of an original frequency according to source coding, and wherein the source coding is used to compress redundant frequencies in the haptic effect data; Decrypting the haptic storage data according to a preset decryption method, and then decompressing the haptic storage data according to a preset decompression method to obtain haptic feedback data, wherein the preset decompression method is to restore the haptic storage data to the original frequency, and wherein the compressed part of the haptic storage data is restored by using source coding; Performing digital-to-analog conversion on the haptic feedback data, and inputting the haptic feedback data to a brake unit to play the haptic effect.

3. The compression and encryption method of haptic effect data according to claim 1 or 2, characterized in that, The preset encryption method comprises the following steps: Encrypting the haptic effect data by using a preset key; The preset decryption method comprises the following steps: Decrypting the haptic storage data by using the preset key.

4. A system for compression and encryption of haptic effect data, characterized by The method comprises the following steps: A data acquisition module is configured to obtain haptic effect data; A compression and encryption module is configured to compress the haptic effect data according to a preset compression method, and then encrypt the haptic effect data according to a preset encryption method to obtain haptic storage data, wherein the preset compression method is to perform down-sampling processing on the haptic effect data according to a preset compression frequency; A decompression and decryption module is configured to decrypt the haptic storage data according to a preset decryption method, and then decompress the haptic storage data according to a preset decompression method to obtain haptic feedback data, wherein the preset decompression method is to perform up-sampling processing on the haptic storage data according to a preset playback frequency; A haptic effect playing module is configured to perform digital-to-analog conversion on the haptic feedback data, and input the haptic feedback data to a brake unit to play the haptic effect.

5. A system for compression and encryption of haptic effect data, characterized by The method comprises the following steps: A data acquisition module is configured to obtain haptic effect data; A compression and encryption module is configured to compress the haptic effect data according to a preset compression method, and then encrypt the haptic effect data according to a preset encryption method to obtain haptic storage data, wherein the preset compression method is to compress the haptic effect data with a frequency of an original frequency according to source coding, and wherein the source coding is used to compress redundant frequencies in the haptic effect data; The decompression and decryption module is configured to decrypt the haptic storage data according to a preset decryption method and decompress the haptic storage data according to a preset decompression method to obtain haptic feedback data, and the preset decompression method is to restore the haptic storage data to the original frequency, wherein the compression part of the haptic storage data is restored by using source coding. The haptic effect playing module is configured to perform digital-to-analog conversion on the haptic feedback data and input the haptic feedback data to a brake unit to play the haptic effect.

6. A computer device, comprising: The method comprises: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the haptic effect data compression and encryption method according to any one of claims 1 to 3 when executing the computer program.

7. A computer-readable storage medium, characterized in that The computer program is stored on the computer readable storage medium, and the computer program is executed by the processor to implement the steps of the haptic effect data compression and encryption method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Synchronization of haptic effect data in a media transport stream

    CN101292211A

  • Method and system for touch data encoding and stream transfer

    CN109876431A

  • Transmission device, transmission method, reception device and reception method

    CN113196790A