WO2022110262A1 - 信号转换方法、装置、计算机设备和存储介质 - Google Patents

信号转换方法、装置、计算机设备和存储介质 Download PDF

Info

Publication number
WO2022110262A1
WO2022110262A1 PCT/CN2020/133478 CN2020133478W WO2022110262A1 WO 2022110262 A1 WO2022110262 A1 WO 2022110262A1 CN 2020133478 W CN2020133478 W CN 2020133478W WO 2022110262 A1 WO2022110262 A1 WO 2022110262A1
Authority
WO
WIPO (PCT)
Prior art keywords
segment
signal
target
intensity
duration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2020/133478
Other languages
English (en)
French (fr)
Inventor
秦英明
王修越
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
AAC Technologies Holdings Shenzhen Co Ltd
AAC Microtech Changzhou Co Ltd
Original Assignee
AAC Acoustic Technologies Shenzhen Co Ltd
AAC Microtech Changzhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by AAC Acoustic Technologies Shenzhen Co Ltd, AAC Microtech Changzhou Co Ltd filed Critical AAC Acoustic Technologies Shenzhen Co Ltd
Publication of WO2022110262A1 publication Critical patent/WO2022110262A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/016Input arrangements with force or tactile feedback as computer generated output to the user

Definitions

  • the present invention relates to the technical field of signal processing, and in particular, to a signal conversion method, apparatus, computer equipment and storage medium.
  • Haptics is an important information transmission method for people to perceive the world.
  • tactile feedback in the form of vibration has been widely used in electronic consumer products.
  • vibration feedback for different experiences is mainly due to different excitation signals of actuators.
  • electronic products of mobile terminals can produce different low-end tactile effects and high-end tactile effects according to different excitation signals.
  • low-end haptic effects such as sine waves that can only respond to Android native interfaces
  • high-end haptic effects such as customized Haptics (haptic feedback) effects
  • haptic feedback haptic feedback
  • most current electronic products can only perform low-end haptic effects.
  • the single response of the terminal haptic effect or the high-end haptic effect greatly limits the usage scenarios of electronic products.
  • a signal conversion method comprising:
  • the to-be-converted signal file contains valid data for characterizing the tactile perception signal
  • the at least one tactile sensing signal segment is mapped to a target signal template to obtain a target sine wave signal;
  • the target sine wave signal includes the same tactile sensing signal segment as the at least one tactile sensing signal segment corresponding target signal segments, and the segment intensity, number, and segment duration of the target signal segments are in one-to-one correspondence with segment strengths, numbers, and segment durations of the tactile sensing signal segments in the signal to be converted.
  • a signal conversion device comprising:
  • the file acquisition module is used to acquire the signal file to be converted
  • an information acquisition module configured to acquire segment information of at least one tactile perception signal segment from the to-be-converted signal file when it is detected that the to-be-converted signal file contains valid data for representing a tactile perception signal;
  • the segment Information includes clip strength and clip duration;
  • a segment mapping module configured to map the at least one tactile perception signal segment to a target signal template according to the segment strength and the segment duration, to obtain a target sine wave signal;
  • the target sine wave signal includes the same A target signal segment corresponding to at least one tactile sensing signal segment, and the segment intensity, number and segment duration of the target signal segment are in one-to-one correspondence with segment strength, number and segment duration of the tactile sensing signal segment in the signal to be converted.
  • a computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
  • the to-be-converted signal file contains valid data for characterizing the tactile perception signal
  • the at least one tactile sensing signal segment is mapped to a target signal template to obtain a target sine wave signal;
  • the target sine wave signal includes the same tactile sensing signal segment as the at least one tactile sensing signal segment corresponding target signal segments, and the segment intensity, number, and segment duration of the target signal segments are in one-to-one correspondence with segment strengths, numbers, and segment durations of the tactile sensing signal segments in the signal to be converted.
  • the to-be-converted signal file contains valid data for characterizing the tactile perception signal
  • the at least one tactile sensing signal segment is mapped to a target signal template to obtain a target sine wave signal;
  • the target sine wave signal includes the same tactile sensing signal segment as the at least one tactile sensing signal segment corresponding target signal segments, and the segment intensity, number, and segment duration of the target signal segments are in one-to-one correspondence with segment strengths, numbers, and segment durations of the tactile sensing signal segments in the signal to be converted.
  • the above signal conversion method, device, computer equipment and storage medium after obtaining the signal to be converted, by detecting whether there is valid data for characterizing the tactile perception signal in the obtained signal to be converted
  • the converted signal file contains valid data
  • obtain segment information of at least one tactile sensing signal segment from the signal file to be converted and map the acquired at least one tactile sensing signal segment to the target signal according to the segment strength and segment duration in the segment information
  • the target sine wave signal is obtained, so that the segment intensity, segment number and segment duration of the target signal segment contained in the target sine wave signal are in one-to-one correspondence with the segment intensity, segment number and segment duration of the tactile sensing signal segment in the signal to be converted
  • the method realizes the signal conversion of the excitation signal (such as Haptics signal) that produces high-end haptic effects to the sine wave signal that produces low-end effects through the mapping process between the signal to be converted and the target sine wave signal, so that electronic products can be realized.
  • FIG. 1 is a schematic flowchart of a signal conversion method in one embodiment
  • Fig. 2 is a schematic diagram of customizing Haptics effect and sine wave effect mapping in an application example
  • FIG. 3 is a schematic flowchart of a signal segment mapping step in one embodiment
  • FIG. 5 is a structural block diagram of a signal conversion device in one embodiment
  • FIG. 6 is a diagram of the internal structure of a computer device in one embodiment.
  • a signal conversion method is provided. This embodiment is illustrated by applying the method to a terminal. It can be understood that the method can also be applied to a server, and can also be applied to a terminal. A system including a terminal and a server, and is realized through the interaction of the terminal and the server. In this embodiment, the method includes the following steps:
  • Step S102 acquiring the signal file to be converted.
  • the to-be-converted signal file represents a file of an excitation signal that can generate high-end haptic effects.
  • the to-be-converted signal file may be a custom Haptics effect file.
  • the customized Haptics effect is a high-end haptic effect with various effect forms.
  • the effect form of the Haptics signal can be vibration acceleration, motor vibrator displacement or voltage, etc.
  • Step S104 when it is detected that the signal file to be converted contains valid data for characterizing the tactile sensing signal, obtain segment information of at least one tactile sensing signal segment from the signal file to be converted; the segment information includes segment strength and segment duration.
  • the segment strength represents the signal strength corresponding to the effect form of the tactile perception signal.
  • the effect form of the tactile sensing signal is vibration acceleration
  • the segment strength is the acceleration value
  • the effect form of the tactile sensing signal is motor vibrator displacement
  • the segment strength is the displacement value
  • the effect form of the tactile sensing signal is voltage
  • the fragment intensity is then the voltage value.
  • the detection of whether there is valid data in the signal file to be converted can be determined by the data length and/or bits of the signal file to be converted. condition, it is determined that there is valid data in the signal file to be converted.
  • at least one tactile sensing signal segment is identified from the signal file to be converted, and segment information such as the segment strength and segment duration of the tactile sensing signal segment is obtained, so that the The duration will perform segment mapping processing on the converted signal, and convert the to-be-converted signal into the target signal.
  • the step of judging whether the signal file to be converted contains valid data for characterizing the tactile perception signal includes: acquiring the bits and data length of the signal file to be converted; if the data length of the signal file to be converted is If it is within the data length range corresponding to the bits, it is determined that there is valid data in the signal file to be converted.
  • the bits of the signal file to be converted may be 8 bits or 16 bits, or may be other bits. If the bits are 8 bits, the corresponding data length range is (0, 255). If the bits are 16 bits, the corresponding data length range is (0, 65535). After obtaining the bit bits and data length of the signal file to be converted, the data length of the signal file to be converted is matched with the data length range corresponding to the bit bits. data.
  • the signal to be converted contains valid data for characterizing the tactile sensing signal, so as to avoid the waste of resources and time in performing subsequent processing operations when there is no valid data in the signal to be converted.
  • Step S106 mapping at least one tactile perception signal segment to a target signal template according to the segment strength and segment duration to obtain a target sine wave signal;
  • the target sine wave signal includes a target signal segment corresponding to the at least one tactile perception signal segment, and
  • the segment intensity, number, and segment duration of the target signal segment correspond to the segment intensity, number, and segment duration of the tactile sensing signal segment in the signal to be converted.
  • the target signal template may represent a blank signal template that does not contain any signal data.
  • the total number of acquired tactile sensing signal fragments can be obtained by statistics. According to the total number of tactile sensing signal fragments and the fragment strength and Segment duration, add the corresponding tactile sensing signal segments in the target signal template in turn, so that the segment intensity, number of segments, and segment duration of the signal segments in the target sine wave signal are the same as the segment intensity and segment of the tactile sensing signal segment in the signal to be converted. The number corresponds to the segment duration.
  • FIG. 2 a schematic diagram of mapping between the customized Haptics effect and the sine wave effect is shown.
  • the custom Haptics effect shown in the figure is in the form of voltage, so the segment intensity of each signal segment is the voltage value. It can be seen from the figure that there are 7 tactile perception signal segments in the custom Haptics effect, and there are 7 sine wave segments corresponding to the Android sine wave effect, and the segment duration of each sine wave segment corresponds to that in the custom Haptics effect. Fragments are of equal length.
  • the signal to be converted after the signal to be converted is acquired, it is detected whether there is valid data used to characterize the tactile perception signal in the acquired signal file to be converted, so that it is detected that the signal file to be converted contains valid data.
  • the tactile perception signal segment is obtained from the signal file to be converted, the segment information of at least one tactile perception signal segment is obtained, and the acquired at least one tactile perception signal segment is mapped to the target signal template according to the segment strength and segment duration in the segment information to obtain the target sine wave signal, so that the segment intensity, segment number and segment duration of the target signal segment contained in the target sine wave signal correspond one-to-one with the segment intensity, segment number and segment duration of the tactile sensing signal segment in the signal to be converted.
  • mapping processing between the target sine wave signal and the excitation signal (such as Haptics signal) that produces high-end haptic effects to the sine wave signal that produces low-end effects, so that electronic products can realize low-end haptic effects and high-end haptic effects.
  • Haptic effects respond uniformly.
  • the above step S104 specifically includes: identifying multiple groups of start target moments and end target moments from the signal file to be converted; the start target moment is the moment when the signal value starts to change from 0; the end target moment is The moment when the signal value becomes 0 and the acceleration of signal change is 0; the time difference between the start target moment and the end target moment in each group is obtained as the segment duration of a tactile perception signal segment, and, The signal amplitude is used as the segment strength of a tactile perception signal segment.
  • the to-be-converted signal file includes the signal value of the to-be-converted signal and time information related to the to-be-converted signal.
  • the data in the signal file to be converted can be identified, and the moment when the values of multiple groups of signals change from 0 can be identified from it, as the starting target moment, and the signal
  • the time when the value becomes 0 and the acceleration of the signal change is 0 is the termination target time.
  • the difference between the start target time and the end target time of each group is calculated respectively as the segment duration of each tactile perception signal segment.
  • the amplitude of the excitation signal that generates the high-end haptic effect is a changing value, all the signal values within a segment duration can be obtained, and the signal value with the largest value among the signal values, that is, the signal amplitude value, can be taken as the segment corresponding to the segment duration. fragment intensity.
  • the segment duration and segment intensity of each tactile sensing signal segment are obtained according to the target start time and target end time, so as to further The segment duration and segment intensity of the tactile perception signal segment are mapped to the signal to be converted to obtain the target sine wave signal to realize signal conversion.
  • the above step S106 specifically includes: obtaining the time interval between two adjacent tactile sensing signal segments according to the starting target time and the ending target time of each group; obtaining a preset configuration file; The configuration information is included; based on the configuration file, the time interval, and the segment strength and segment duration of the at least one tactile sensing signal segment, the at least one tactile sensing signal segment is mapped into the corresponding segment of the target signal template to obtain the target sine wave signal.
  • the configuration information may be version information/identification information of the target signal to be converted.
  • the time difference between the previous end target time and the next start target time can also be calculated as the adjacent two The time interval between two tactile sensing signal segments, so that after obtaining the preset configuration file, the The segment strength and segment duration of the at least one tactile sensing signal segment obtained in the file, and the obtained at least one tactile sensing signal segment is mapped to the corresponding segment of the target signal template, so that the obtained target sine wave signal and the signals to be converted are converted.
  • the segment duration, segment intensity, and time interval between adjacent signal segments are all the same, enabling accurate mapping between the signal to be converted and the target signal.
  • the time interval between two adjacent signal segments also has a corresponding relationship.
  • the The tactile sensing signal segment of the signal to be converted is mapped to the corresponding segment of the target signal template, which not only realizes the correspondence between segment duration and segment intensity, but also realizes the correspondence between the time interval between two adjacent signal segments, which improves the relationship between the signal to be converted and the intensity of the segment.
  • the accuracy of the target sine wave signal mapping to meet the needs of electronic products to uniformly respond to low-end haptic effects and high-end haptic effects.
  • the above-mentioned step of mapping at least one tactile sensing signal segment to the corresponding segment of the target signal template includes:
  • Step S302 obtaining the steady-state intensity of the actuator under the rated signal, and determining the maximum segment intensity from the segment intensity of at least one tactile sensing signal segment;
  • Step S304 for each tactile sensing signal segment, obtain the corresponding target segment intensity according to the steady state intensity, the maximum segment intensity and the segment intensity of at least one tactile sensing signal segment.
  • Step S306 according to the intensity of the target segment, map the tactile sensing signal segment into the corresponding signal segment of the target signal template, so that the signal amplitude in the corresponding signal segment is always equal to the intensity of the target segment.
  • step S304 specifically includes: obtaining the ratio of the steady-state intensity to the maximum segment intensity to obtain the intensity ratio; for each tactile sensing signal segment, calculating the product of the segment intensity of the tactile sensing signal segment and the intensity ratio as the corresponding target Fragment intensity.
  • the mapping of the tactile signal segments of the signal to be converted to the target signal template also includes the mapping of the signal strength.
  • the maximum segment intensity, and after obtaining the steady-state intensity of the actuator under the rated signal, the ratio of the steady-state intensity to the maximum segment intensity can be calculated as the intensity ratio.
  • the product of the segment intensity of each tactile sensing signal segment in the signal to be converted and the intensity ratio is calculated to obtain the target segment intensity of the corresponding signal segment in the target sine wave signal.
  • each tactile sensing signal segment in the signal to be converted is mapped into the corresponding segment of the target signal template according to the intensity of the target segment, so that the signal amplitude in the corresponding segment in the obtained target sine wave signal is always the intensity of the target segment.
  • the signal to be converted is a Haptics signal
  • the maximum segment intensity in the Haptics signal is G1max
  • the segment intensity of any tactile sensing signal segment is G1
  • the segment intensity of the corresponding segment of the corresponding target sine wave signal is g
  • the actuator is in The steady-state intensity under the rated signal is gr
  • g g r * G1/ G1max
  • the target intensity of each signal segment in the target signal is obtained by calculating the steady state intensity, the maximum segment intensity, and the segment intensity of each tactile sensing signal segment in the signal to be converted, so that each tactile perception signal segment can be easily calculated according to the target intensity.
  • the signal segment is mapped to the corresponding segment of the target signal template, and the segment intensity is mapped in this unified normalization method, so that the target segment intensity in the corresponding segment in the target sine wave signal and each tactile perception signal in the signal to be converted
  • the fragment intensities of the fragments correspond to each other.
  • the method before obtaining the target sine wave signal, further includes: determining the signal period of the target sine wave signal according to the frequency of the target sine wave signal; according to the signal period, obtaining the period value corresponding to the mapping duration of the target sine wave signal ;
  • the mapping duration is the cumulative sum of the segment duration of each tactile sensing signal segment and the time interval between two adjacent tactile sensing signal segments; if the period value is a non-integral period, the mapping duration is supplemented to an integer period to obtain the target Sine wave signal; wherein, the supplemented duration is less than the signal period of the target sine wave signal.
  • the mapping duration of each tactile sensing signal segment in the signal to be converted and the sum of the durations of two adjacent tactile sensing signal segments can be calculated as the mapping duration of the target sine wave signal, and then the mapping duration is determined according to the signal period of the target sine wave signal. Whether it corresponds to an integer period, if it is a non-integral period, the mapping duration needs to be supplemented to an integer period under the condition that the supplemented duration is less than one signal period of the target sine wave signal.
  • the mapping duration of the target sine wave signal obtained by mapping is 2.14s
  • the period value corresponding to the mapping duration of the target sine wave signal is calculated, so that when the period value is a non-integral period, the added duration can be less than the target sine wave
  • the segment duration of the target sine wave signal is supplemented in time to be a complete cycle, so as to ensure that the sine wave signal obtained by mapping can be completely output.
  • FIG. 4 is a schematic flowchart of a signal conversion method in an application example, The specific process of this method is as follows:
  • the signal duration of the customized Haptics effect file is obtained according to the duration of each clip.
  • a configuration file is a file of conversion instructions that convert a custom Haptics effect file into a sine wave signal.
  • steps in the flowcharts of FIGS. 1 , 3 and 4 are sequentially displayed in accordance with the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in FIG. 1 , FIG. 3 and FIG. 4 may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but may be executed at different times. The order of execution of the sub-steps or phases is also not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or phases of the other steps.
  • a signal conversion apparatus including: a file acquisition module 502, an information acquisition module 504, and a segment mapping module 506, wherein:
  • a file acquisition module 502 configured to acquire the signal file to be converted
  • the information acquisition module 504 is configured to acquire segment information of at least one tactile perception signal segment from the to-be-converted signal file when it is detected that the to-be-converted signal file contains valid data for characterizing the tactile perception signal; the segment information includes segment strength and segment duration;
  • the segment mapping module 506 is configured to map at least one tactile perception signal segment to a target signal template according to segment strength and segment duration to obtain a target sine wave signal; the target sine wave signal includes a target corresponding to at least one tactile perception signal segment signal segments, and the segment intensity, number, and segment duration of the target signal segment correspond to the segment intensity, number, and segment duration of the tactile sensing signal segment in the signal to be converted.
  • the above-mentioned apparatus further comprises:
  • the data acquisition module is used to acquire the bits and data length of the signal file to be converted
  • the judgment module is configured to judge that valid data exists in the signal file to be converted if the data length of the signal file to be converted is within the data length range corresponding to the bits.
  • the above-mentioned information acquisition module 504 is specifically configured to identify multiple groups of start target moments and end target moments from the signal file to be converted; the start target moment is the moment when the signal value changes from 0; The target moment is the moment when the signal value becomes 0 and the acceleration of signal change is 0; the time difference between the start target moment and the end target moment in each group is obtained as the segment duration of a tactile perception signal segment, and the segment duration is The signal amplitude within is used as the segment strength of a tactile perception signal segment.
  • the above-mentioned segment mapping module 506 is specifically configured to obtain the time interval between two adjacent tactile sensing signal segments according to the starting target time and the ending target time of each group; obtain a preset configuration file;
  • the configuration file contains configuration information; based on the configuration file, the time interval, and the segment strength and segment duration of at least one tactile sensing signal segment, the at least one tactile sensing signal segment is mapped to the corresponding signal segment of the target signal template to obtain the target sine wave signal .
  • the above-mentioned segment mapping module 506 is further configured to obtain the steady-state strength of the actuator under the rated signal, and determine the maximum segment strength from the segment strength of at least one haptic sensing signal segment; for each haptic signal Sensing the signal segment, obtaining the corresponding target segment intensity according to the steady state intensity, the maximum segment intensity and the segment intensity of at least one tactile sensing signal segment; and mapping the at least one tactile sensing signal segment to the corresponding signal of the target signal template according to the target segment intensity In the segment, the signal amplitude in the corresponding signal segment is always the target segment intensity.
  • the above-mentioned segment mapping module 506 is further configured to obtain the ratio of the steady-state intensity to the maximum segment intensity to obtain the intensity ratio; for each tactile sensing signal segment, calculate the ratio of the segment intensity of the tactile sensing signal segment to the intensity ratio product, as the corresponding target fragment intensity.
  • the above-mentioned segment mapping module 506 is further configured to determine the signal period of the target sine wave signal according to the frequency of the target sine wave signal; according to the signal period, obtain the period value corresponding to the mapping duration of the target sine wave signal; mapping The duration is the cumulative sum of the segment duration of each tactile sensing signal segment and the time interval between two adjacent tactile sensing signal segments; if the period value is a non-integer period, the mapping duration is supplemented to an integer period to obtain the target sine wave signal; wherein, the supplemented duration is less than the signal period of the target sine wave signal.
  • the signal conversion device of the present invention corresponds to the signal conversion method of the present invention one-to-one.
  • the technical features and beneficial effects described in the above-mentioned embodiments of the signal conversion method are applicable to the embodiments of the signal conversion device.
  • each module in the above-mentioned signal conversion apparatus may be implemented in whole or in part by software, hardware, and combinations thereof.
  • the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
  • a computer device is provided, and the computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 6 .
  • the computer equipment includes a processor, memory, a communication interface, a display screen, and an input device connected by a system bus.
  • the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium, an internal memory.
  • the nonvolatile storage medium stores an operating system and a computer program.
  • the internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium.
  • the communication interface of the computer device is used for wired or wireless communication with an external terminal, and the wireless communication can be realized by WIFI, operator network, NFC (Near Field Communication) or other technologies.
  • the computer program when executed by a processor implements a signal conversion method.
  • the display screen of the computer equipment may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment may be a touch layer covered on the display screen, or a button, a trackball or a touchpad set on the shell of the computer equipment , or an external keyboard, trackpad, or mouse.
  • FIG. 6 is only a block diagram of a partial structure related to the solution of the present invention, and does not constitute a limitation on the computer equipment to which the solution of the present invention is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
  • a computer device including a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
  • a computer device including a memory and a processor, where a computer program is stored in the memory, and the processor implements the steps in the foregoing method embodiments when the processor executes the computer program.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps in the foregoing method embodiments.
  • any reference to memory, storage, database or other media used in the various embodiments provided by the present invention may include at least one of non-volatile and volatile memory.
  • Non-volatile memory may include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory or optical memory, etc.
  • Volatile memory may include random access memory (Random Access Memory) Access Memory, RAM) or external cache memory.
  • RAM may take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (Dynamic Random Access Memory). Access Memory, DRAM), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明涉及一种信号转换方法、装置、计算机设备和存储介质。所述方法包括:获取待转换信号文件;当检测到待转换信号文件中包含用于表征触觉感知信号的有效数据时,从待转换信号文件中获取至少一个触觉感知信号片段的片段信息;片段信息包括片段强度和片段时长;根据片段强度和片段时长,将至少一个触觉感知信号片段映射到目标信号模板中,得到目标正弦波信号;所述目标正弦波信号中包含与至少一个触觉感知信号片段对应的目标信号片段,且目标信号片段的片段强度、数目和片段时长与待转换信号中触觉感知信号片段的片段强度、数目和片段时长一一对应。采用本方法能够实现产生高端触觉效果的激励信号到产生低端效果的正弦波信号的信号转换。

Description

信号转换方法、装置、计算机设备和存储介质 技术领域
本发明涉及信号处理技术领域,特别是涉及一种信号转换方法、装置、计算机设备和存储介质。
背景技术
触觉是人们感知世界的一种重要信息传递的方式,随着手机行业、游戏行业、VR行业等市场在触觉领域的不断兴起,振动形式的触觉反馈在电子消费产品中得以广泛应用。其中,实现不同体验的振动反馈主要得益于致动器不同的激励信号,如移动终端的电子产品根据不同的激励信号可产生不同的低端触感效果和高端触感效果。
目前市场上如只能响应安卓原生接口的正弦波的低端触感效果和如定制Haptics(触觉反馈)效果的高端触感效果在电子产品上应用广泛,但是,目前的电子产品多是只能进行低端触感效果或高端触感效果的单一响应,对电子产品的使用场景造成了极大的限制。
有益效果
基于此,有必要针对上述电子产品只能对触感效果进行单一响应,限制电子产品的应用场景的技术问题,提供一种信号转换方法、装置、计算机设备和存储介质。
一种信号转换方法,所述方法包括:
获取待转换信号文件;
当检测到所述待转换信号文件中包含用于表征触觉感知信号的有效数据时,从所述待转换信号文件中获取至少一个触觉感知信号片段的片段信息;所述片段信息包括片段强度和片段时长;
根据所述片段强度和所述片段时长,将所述至少一个触觉感知信号片段映射到目标信号模板中,得到目标正弦波信号;所述目标正弦波信号中包含与所述至少一个触觉感知信号片段对应的目标信号片段,且所述目标信号片段的片段强度、数目和片段时长与所述待转换信号中触觉感知信号片段的片段强度、数目和片段时长一一对应。
一种信号转换装置,所述装置包括:
文件获取模块,用于获取待转换信号文件;
信息获取模块,用于当检测到所述待转换信号文件中包含用于表征触觉感知信号的有效数据时,从所述待转换信号文件中获取至少一个触觉感知信号片段的片段信息;所述片段信息包括片段强度和片段时长;
片段映射模块,用于根据所述片段强度和所述片段时长,将所述至少一个触觉感知信号片段映射到目标信号模板中,得到目标正弦波信号;所述目标正弦波信号中包含与所述至少一个触觉感知信号片段对应的目标信号片段,且所述目标信号片段的片段强度、数目和片段时长与所述待转换信号中触觉感知信号片段的片段强度、数目和片段时长一一对应。
一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:
获取待转换信号文件;
当检测到所述待转换信号文件中包含用于表征触觉感知信号的有效数据时,从所述待转换信号文件中获取至少一个触觉感知信号片段的片段信息;所述片段信息包括片段强度和片段时长;
根据所述片段强度和所述片段时长,将所述至少一个触觉感知信号片段映射到目标信号模板中,得到目标正弦波信号;所述目标正弦波信号中包含与所述至少一个触觉感知信号片段对应的目标信号片段,且所述目标信号片段的片段强度、数目和片段时长与所述待转换信号中触觉感知信号片段的片段强度、数目和片段时长一一对应。
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:
获取待转换信号文件;
当检测到所述待转换信号文件中包含用于表征触觉感知信号的有效数据时,从所述待转换信号文件中获取至少一个触觉感知信号片段的片段信息;所述片段信息包括片段强度和片段时长;
根据所述片段强度和所述片段时长,将所述至少一个触觉感知信号片段映射到目标信号模板中,得到目标正弦波信号;所述目标正弦波信号中包含与所述至少一个触觉感知信号片段对应的目标信号片段,且所述目标信号片段的片段强度、数目和片段时长与所述待转换信号中触觉感知信号片段的片段强度、数目和片段时长一一对应。
上述信号转换方法、装置、计算机设备和存储介质,通过在获取待转换信号后,对所获取的待转换信号文件中是否存在用于表征触觉感知信号的有效数据进行检测,以便于在检测到待转换信号文件中包含有效数据时,从待转换信号文件中获取至少一个触觉感知信号片段的片段信息,根据片段信息中的片段强度和片段时长,将获取的至少一个触觉感知信号片段映射到目标信号模板中,得到目标正弦波信号,使得目标正弦波信号中包含的目标信号片段的片段强度、片段数目和片段时长与待转换信号中触觉感知信号片段的片段强度、片段数目和片段时长一一对应,该方法通过待转换信号和目标正弦波信号之间的映射处理,实现了产生高端触觉效果的激励信号(如Haptics信号)到产生低端效果的正弦波信号的信号转换,从而可实现电子产品对低端触觉效果和高端触觉效果统一响应。
 
附图说明
图1为一个实施例中信号转换方法的流程示意图;
图2为一个应用实例中定制Haptics效果与正弦波效果映射的示意图;
图3为一个实施例中信号片段映射步骤的流程示意图;
图4为另一个实施例中信号转换方法的流程示意图;
图5为一个实施例中信号转换装置的结构框图;
图6为一个实施例中计算机设备的内部结构图。
 
本发明的实施方式
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
在一个实施例中,如图1所示,提供了一种信号转换方法,本实施例以该方法应用于终端进行举例说明,可以理解的是,该方法也可以应用于服务器,还可以应用于包括终端和服务器的系统,并通过终端和服务器的交互实现。本实施例中,该方法包括以下步骤:
步骤S102,获取待转换信号文件。
其中,待转换信号文件表示可产生高端触觉效果的激励信号的文件,例如,待转换信号文件可以为定制Haptics效果文件。
其中,定制Haptics效果为一种具有多样效果形式的高端触觉效果。其中,Haptics信号的效果形式可以为振动加速度、马达振子位移或电压等。
步骤S104,当检测到待转换信号文件中包含用于表征触觉感知信号的有效数据时,从待转换信号文件中获取至少一个触觉感知信号片段的片段信息;片段信息包括片段强度和片段时长。
其中,片段强度表示与触觉感知信号的效果形式对应的信号强度。当触觉感知信号的效果形式为振动加速度时,则片段强度为加速度值;当触觉感知信号的效果形式为马达振子位移时,则片段强度为位移值;当触觉感知信号的效果形式为电压时,则片段强度为电压值。
具体实现中,检测待转换信号文件中是否存在有效数据可通过待转换信号文件的数据长度和/或比特位来确定,若待转换信号文件的数据长度或比特位中的任一项满足预设的条件,则判定待转换信号文件中存在有效数据。当检测到待转换文件中存在有效数据时,从待转换信号文件中识别出至少一个触觉感知信号片段,并获取触觉感知信号片段的片段强度和片段时长等片段信息,以便于根据片段强度和片段时长将对转换信号进行片段映射处理,将待转换信号转换为目标信号。
进一步地,在一个实施例中,判断待转换信号文件中是否包含用于表征触觉感知信号的有效数据的步骤包括:获取待转换信号文件的比特位和数据长度;若待转换信号文件的数据长度位于比特位对应的数据长度范围内,则判定待转换信号文件中存在有效数据。
具体地,待转换信号文件的比特位可以为8位或16位,也可以为其他位数。若比特位为8位,则对应的数据长度范围为(0,255),若比特位为16位,则对应的数据长度范围为(0,65535)。在获取的待转换信号文件的比特位和数据长度后,通过将待转换信号文件的数据长度与其比特位对应的数据长度范围进行匹配,若两者匹配,则可判定待转换信号文件中存在有效数据。
本步骤通过对待转换信号中是否包含用于表征触觉感知信号的有效数据进行检测,以避免待转换信号中不存在有效数据时执行后续处理操作的资源和时间浪费。
步骤S106,根据片段强度和片段时长,将至少一个触觉感知信号片段映射到目标信号模板中,得到目标正弦波信号;目标正弦波信号中包含与至少一个触觉感知信号片段对应的目标信号片段,且目标信号片段的片段强度、数目和片段时长与待转换信号中触觉感知信号片段的片段强度、数目和片段时长一一对应。
其中,目标信号模板可表示一个不包含任何信号数据的空白信号模板。
具体实现中,从待转换信号文件中获取到触觉感知信号片段后,可统计得到所获取的触觉感知信号片段的总数目,根据触觉感知信号片段的总数目和各个触觉感知信号片段的片段强度和片段时长,在目标信号模板中依次添加对应的触觉感知信号片段,使得到的目标正弦波信号中信号片段的片段强度、片段数目和片段时长与待转换信号中触觉感知信号片段的片段强度、片段数目和片段时长一一对应。
例如,以待转换信号文件为定制Haptics效果文件为例,参考图2,表示定制Haptics效果与正弦波效果映射的示意图。图中所示的定制Haptics效果的形式为电压,故各个信号片段的片段强度为电压值。从图中可看出定制Haptics效果中有7个触觉感知信号片段,对应映射到安卓正弦波效果也便有7个正弦波片段,且每个正弦波片段的片段时长均与定制Haptics效果中对应片段的片段时长相等。
上述信号转换方法中,通过在获取待转换信号后,对所获取的待转换信号文件中是否存在用于表征触觉感知信号的有效数据进行检测,以便于在检测到待转换信号文件中包含有效数据时,从待转换信号文件中获取至少一个触觉感知信号片段的片段信息,根据片段信息中的片段强度和片段时长,将获取的至少一个触觉感知信号片段映射到目标信号模板中,得到目标正弦波信号,使得目标正弦波信号中包含的目标信号片段的片段强度、片段数目和片段时长与待转换信号中触觉感知信号片段的片段强度、片段数目和片段时长一一对应,该方法通过待转换信号和目标正弦波信号之间的映射处理,实现了产生高端触觉效果的激励信号(如Haptics信号)到产生低端效果的正弦波信号的信号转换,从而可实现电子产品对低端触觉效果和高端触觉效果统一响应。
在一个实施例中,上述步骤S104具体包括:从待转换信号文件中识别出多组起始目标时刻和终止目标时刻;起始目标时刻为信号值从0开始发生变化的时刻;终止目标时刻为信号值变为0,且信号变化加速度为0的时刻;获取各组中起始目标时刻与终止目标时刻之间的时间差值,作为一个触觉感知信号片段的片段时长,以及,将片段时长内的信号幅值作为一个触觉感知信号片段的片段强度。
其中,待转换信号文件中包括待转换信号的信号值以及与待转换信号相关的时间信息。
具体实现中,在判定待转换信号文件中存在有效数据后,可对待转换信号文件中的数据进行识别,从中识别出多组信号值从0开始发生变化的时刻,作为起始目标时刻,以及信号值变为0,且信号变化加速度为0的时刻,作为终止目标时刻。分别计算各组起始目标时刻和终止目标时刻之间的差值,作为各个触觉感知信号片段的片段时长。由于产生高端触觉效果的激励信号的幅值为变化值,因此,可获取一个片段时长内的所有信号值,将各个信号值中数值最大的信号值,即信号幅值作为该片段时长所对应片段的片段强度。
本实施例中,通过对待转换信号文件中目标起始时刻和目标终止时刻的识别,以根据目标起始时刻和目标终止时刻获得各个触觉感知信号片段的片段时长和片段强度,以便于进一步根据各个触觉感知信号片段的片段时长和片段强度,对待转换信号进行映射处理,得到目标正弦波信号,实现信号转换。 
在一个实施例中,上述步骤S106具体包括:根据各组起始目标时刻与终止目标时刻,得到两两相邻的触觉感知信号片段之间的时间间隔;获取预设的配置文件;配置文件中包含配置信息;基于配置文件、时间间隔以及至少一个触觉感知信号片段的片段强度和片段时长,将至少一个触觉感知信号片段映射至目标信号模板的对应片段内,得到目标正弦波信号。
其中,配置信息可以为所要转换的目标信号的版本信息/标识信息。
具体实现中,在从待转换文件中识别出多组起始目标时刻和终止目标时刻后,还可计算前一个终止目标时刻与下一个起始目标时刻之间的时间差值,作为相邻两个触觉感知信号片段之间的时间间隔,以便于在获取预设的配置文件后,可根据该配置文件、各两两相邻的两个触觉感知信号片段之间的时间间隔以及从待转换信号文件中获取的至少一个触觉感知信号片段的片段强度和片段时长,将获取的至少一个触觉感知信号片段映射到目标信号模板的对应片段内,以使得到的目标正弦波信号与待转换信号各个信号片段的片段时长、片段强度以及相邻信号片段之间的时间间隔均相同,实现待转换信号与目标信号之间的精确映射。
例如,参考图2,Haptics信号效果图与正弦波信号效果图中,除了各个信号片段的片段时长和片段强度相对应外,相邻两个信号片段之间的时间间隔也具有对应关系。
本实施例中,通过计算两两相邻触觉感知信号片段之间的时间间隔,在获取配置文件后,基于配置文件、相邻片段之间的时间间隔、各个触觉感知信号片段的片段信息,将待转换信号的触觉感知信号片段映射到目标信号模板的对应片段,不仅实现了片段时长和片段强度的对应,还实现了相邻两个信号片段之间时间间隔的对应,提高了待转换信号与目标正弦波信号映射的精确性,以满足电子产品对低端触觉效果和高端触觉效果统一响应的需求。
在一个实施例中, 如图3所示,上述将至少一个触觉感知信号片段映射至目标信号模板的对应片段内的步骤,包括:
步骤S302,获取致动器在额定信号下的稳态强度,以及从至少一个触觉感知信号片段的片段强度中确定出最大片段强度;
步骤S304,针对每个触觉感知信号片段,根据稳态强度、最大片段强度和至少一个触觉感知信号片段的片段强度,得到对应的目标片段强度。
步骤S306,根据目标片段强度,将触觉感知信号片段映射至目标信号模板的对应信号片段内,使得对应信号片段内的信号幅值恒为目标片段强度。
进一步地,上述步骤S304具体包括:获取稳态强度与最大片段强度的比值,得到强度比值;针对每个触觉感知信号片段,计算触觉感知信号片段的片段强度与强度比值的乘积,作为对应的目标片段强度。
具体实现中,将待转换信号的触觉信号片段映射至目标信号模板还包括信号强度的映射,具体地,在获取待转换信号中各个触觉感知信号片段的片段强度后,先从中确定中数值最大的最大片段强度,进而在获取致动器在额定信号下的稳态强度后,便可计算稳态强度与最大片段强度的比值,作为强度比值。由此,计算待转换信号中各个触觉感知信号片段的片段强度与该强度比值的乘积,得到目标正弦波信号中对应信号片段的目标片段强度。进一步根据目标片段强度将待转换信号中各个触觉感知信号片段映射到目标信号模板的对应片段内,使得得到的目标正弦波信号中对应片段内的信号幅值恒为目标片段强度。
例如,若待转换信号为Haptics信号,设Haptics信号中最大片段强度为G1max,任一个触觉感知信号片段的片段强度为G1,对应的目标正弦波信号对应片段的片段强度为g,致动器在额定信号下的稳态强度为gr,则有:g = g r* G1/ G1max,由此可知,目标正弦波信号中各个信号片段的片段强度与待转换信号中对应触觉感知信号片段的片段强度成正比。若已知Haptics信号的最大片段强度对应目标正弦波信号中的最大片段强度,可得到两者的比例,则正弦波信号中的其他信号片段按照该比例进行设定即可。
本实施例中,通过稳态强度、最大片段强度和待转换信号中各个触觉感知信号片段的片段强度的计算处理,得到目标信号中各个信号片段的目标强度,以便于根据目标强度将各个触觉感知信号片段映射至目标信号模板的对应片段内,通过这种统一的归一化的方式进行片段强度的映射,使得目标正弦波信号中对应片段内的目标片段强度与待转换信号中各个触觉感知信号片段的片段强度互相对应。
在一个实施例中,在得到目标正弦波信号之前,还包括:根据目标正弦波信号的频率,确定目标正弦波信号的信号周期;根据信号周期,得到目标正弦波信号的映射时长对应的周期值;映射时长为各个触觉感知信号片段的片段时长与两两相邻的触觉感知信号片段之间的时间间隔的累加和;若周期值为非整周期,则将映射时长补充为整周期,得到目标正弦波信号;其中,所补充的时长小于目标正弦波信号的信号周期。
具体实现中,根据频率和周期的关系式T=1/f,在确定目标正弦波信号的频率后,可计算得到目标正弦波信号的信号周期,例如,若频率为50Hz/s,则对应的信号周期为1/50=0.02s。为了使得到的正弦波信号可以以整周期信号输出,因此,在完成待转换信号与目标正弦波信号的映射后,由于目标正弦波信号与待转换信号的片段时长和时间间隔均对应,因此,可计算待转换信号中各个触觉感知信号片段的片段时长和相邻两个触觉感知信号片段时长的总和,作为目标正弦波信号的映射时长,然后根据目标正弦波信号的信号周期,判定该映射时长是否对应为整周期,若为非整周期,则需在所补充的时长小于目标正弦波信号的一个信号周期的条件下,将该映射时长补充为整周期。
例如,若目标正弦波信号的信号周期T=0.2s,映射得到的目标正弦波信号的映射时长为2.14s,换算得到该映射时长对应的周期值为2.14s/0.2s=10.7T,并非整周期,为了保证目标正弦波信号的完成,可将目标正弦波信号的片段时长补齐至11T,使目标正弦波信号的片段时长与待转换信号的片段时长之间的差值为11T-10.7T=0.3T<T。
本实施例中,通过目标正弦波信号的信号周期,计算得到的目标正弦波信号的映射时长对应的周期值,以便于在周期值为非整周期时,可在所补充的时长小于目标正弦波信号的一个信号周期的条件下,及时补充目标正弦波信号的片段时长为完整周期,以保证映射得到的正弦波信号可以完整输出。
为了更清晰阐明本发明实施例提供的技术方案,以下以待转换信号文件为定制Haptics效果文件为例,结合图4对该方案进行说明,图4为一个应用实例中信号转换方法的流程示意图,该方法的具体流程如下:
(1)读取定制Haptics效果文件。
(2)判断定制Haptics效果文件中是否存在有效数据。通过获取定制Haptics效果文件的比特位和数据长度,判断比特位是否为目标比特位、数据长度是否在预设长度范围内,当判断结果为比特位为目标比特位或数据长度位于预设长度范围内中至少一个条件成立时,则判定定制Haptics效果文件中存在有效数据。
(3)数据处理。从定制Haptics效果文件中识别出多组起始目标时刻和终止目标时刻,获取各组起始目标时刻和终止目标时刻之间的差值,得到片段时长,将片段时长内的信号幅值作为片段强度。
(4)返回信号时长。根据各个片段时长得到定制Haptics效果文件的信号时长。
(5)读取配置文件。配置文件为将定制Haptics效果文件转换为正弦波信号的转换指令的文件。
(6)生成Waveform类型的正弦波。根据各个片段的片段时长和片段强度将定制Haptics效果文件映射到目标信号模板中,生成目标正弦波信号。
(7)电信号输出。输出所生成的目标正弦波信号,产生低端效果的触觉反馈。
应该理解的是,虽然图1、图3和图4的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图1、图3和图4中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。
在一个实施例中,如图5所示,提供了一种信号转换装置,包括:文件获取模块502、信息获取模块504和片段映射模块506,其中:
文件获取模块502,用于获取待转换信号文件;
信息获取模块504,用于当检测到待转换信号文件中包含用于表征触觉感知信号的有效数据时,从待转换信号文件中获取至少一个触觉感知信号片段的片段信息;片段信息包括片段强度和片段时长;
片段映射模块506,用于根据片段强度和片段时长,将至少一个触觉感知信号片段映射到目标信号模板中,得到目标正弦波信号;目标正弦波信号中包含与至少一个触觉感知信号片段对应的目标信号片段,且目标信号片段的片段强度、数目和片段时长与待转换信号中触觉感知信号片段的片段强度、数目和片段时长一一对应。
在一个实施例中,上述装置还包括:
数据获取模块,用于获取待转换信号文件的比特位和数据长度;
判断模块,用于若待转换信号文件的数据长度位于比特位对应的数据长度范围内,则判定待转换信号文件中存在有效数据。
在一个实施例中,上述信息获取模块504,具体用于从待转换信号文件中识别出多组起始目标时刻和终止目标时刻;起始目标时刻为信号值从0开始发生变化的时刻;终止目标时刻为信号值变为0,且信号变化加速度为0的时刻;获取各组中起始目标时刻与终止目标时刻之间的时间差值,作为一个触觉感知信号片段的片段时长,将片段时长内的信号幅值作为一个触觉感知信号片段的片段强度。
在一个实施例中,上述片段映射模块506,具体用于根据各组起始目标时刻与终止目标时刻,得到两两相邻的触觉感知信号片段之间的时间间隔;获取预设的配置文件;配置文件中包含配置信息;基于配置文件、时间间隔以及至少一个触觉感知信号片段的片段强度和片段时长,将至少一个触觉感知信号片段映射至目标信号模板的对应信号片段内,得到目标正弦波信号。
在一个实施例中,上述片段映射模块506,还用于获取致动器在额定信号下的稳态强度,以及从至少一个触觉感知信号片段的片段强度中确定出最大片段强度;针对每个触觉感知信号片段,根据稳态强度、最大片段强度和至少一个触觉感知信号片段的片段强度,得到对应的目标片段强度;根据目标片段强度,将至少一个触觉感知信号片段映射至目标信号模板的对应信号片段内,使得对应信号片段内的信号幅值恒为目标片段强度。
在一个实施例中,上述片段映射模块506,还用于获取稳态强度与最大片段强度的比值,得到强度比值;针对每个触觉感知信号片段,计算触觉感知信号片段的片段强度与强度比值的乘积,作为对应的目标片段强度。
在一个实施例中,上述片段映射模块506,还用于根据目标正弦波信号的频率,确定目标正弦波信号的信号周期;根据信号周期,得到目标正弦波信号的映射时长对应的周期值;映射时长为各个触觉感知信号片段的片段时长与两两相邻的触觉感知信号片段之间的时间间隔的累加和;若周期值为非整周期,则将映射时长补充为整周期,得到目标正弦波信号;其中,所补充的时长小于目标正弦波信号的信号周期。
需要说明的是,本发明的信号转换装置与本发明的信号转换方法一一对应,在上述信号转换方法的实施例阐述的技术特征及其有益效果均适用于信号转换装置的实施例中,具体内容可参见本发明方法实施例中的叙述,此处不再赘述,特此声明。
此外,上述信号转换装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。
在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图6所示。该计算机设备包括通过系统总线连接的处理器、存储器、通信接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的通信接口用于与外部的终端进行有线或无线方式的通信,无线方式可通过WIFI、运营商网络、NFC(近场通信)或其他技术实现。该计算机程序被处理器执行时以实现一种信号转换方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。
本领域技术人员可以理解,图6中示出的结构,仅仅是与本发明方案相关的部分结构的框图,并不构成对本发明方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。 
在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器存储有计算机程序,处理器执行计算机程序时实现以下步骤:
在一个实施例中,还提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现上述各方法实施例中的步骤。 
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述各方法实施例中的步骤。 
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本发明所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-Only Memory,ROM)、磁带、软盘、闪存或光存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。

Claims (10)

  1. 一种信号转换方法,其特征在于,所述方法包括:
    获取待转换信号文件;
    当检测到所述待转换信号文件中包含用于表征触觉感知信号的有效数据时,从所述待转换信号文件中获取至少一个触觉感知信号片段的片段信息;所述片段信息包括片段强度和片段时长;
    根据所述片段强度和所述片段时长,将所述至少一个触觉感知信号片段映射到目标信号模板中,得到目标正弦波信号;所述目标正弦波信号中包含与所述至少一个触觉感知信号片段对应的目标信号片段,且所述目标信号片段的片段强度、数目和片段时长与所述待转换信号中触觉感知信号片段的片段强度、数目和片段时长一一对应。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    获取所述待转换信号文件的比特位和数据长度;
    若所述待转换信号文件的数据长度位于所述比特位对应的数据长度范围内,则判定所述待转换信号文件中存在有效数据。
  3. 根据权利要求1所述的方法,其特征在于,所述从所述待转换信号文件中获取至少一个触觉感知信号片段的片段信息,包括:
    从所述待转换信号文件中识别出多组起始目标时刻和终止目标时刻;所述起始目标时刻为信号值从0开始发生变化的时刻;所述终止目标时刻为信号值变为0,且信号变化加速度为0的时刻;
    获取各组中所述起始目标时刻与所述终止目标时刻之间的时间差值,作为一个触觉感知信号片段的片段时长,将所述片段时长内的信号幅值作为所述一个触觉感知信号片段的片段强度。
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述片段强度和所述片段时长,将所述至少一个触觉感知信号片段映射到目标信号模板中,得到目标正弦波信号,包括:
    根据各组所述起始目标时刻与所述终止目标时刻,得到两两相邻的触觉感知信号片段之间的时间间隔;
    获取预设的配置文件;所述配置文件中包含配置信息;
    基于所述配置文件、所述时间间隔以及所述至少一个触觉感知信号片段的片段强度和片段时长,将所述至少一个触觉感知信号片段映射至所述目标信号模板的对应信号片段内,得到目标正弦波信号。
  5. 根据权利要求4所述的方法,其特征在于,所述将所述至少一个触觉感知信号片段映射至所述目标信号模板的对应片段内,包括:
    获取致动器在额定信号下的稳态强度,以及从所述至少一个触觉感知信号片段的片段强度中确定出最大片段强度;
    针对每个触觉感知信号片段,根据所述稳态强度、所述最大片段强度和所述触觉感知信号片段的片段强度,得到对应的目标片段强度;
    根据所述目标片段强度,将所述触觉感知信号片段映射至所述目标信号模板的对应信号片段内,使得所述对应信号片段内的信号幅值恒为所述目标片段强度。
  6. 根据权利要求5所述的方法,其特征在于,所述针对每个触觉感知信号片段,根据所述稳态强度、所述最大片段强度和所述触觉感知信号片段的片段强度,得到对应的目标片段强度,包括:
    获取所述稳态强度与所述最大片段强度的比值,得到强度比值;
    针对每个触觉感知信号片段,计算所述触觉感知信号片段的片段强度与所述强度比值的乘积,作为对应的目标片段强度。
  7. 根据权利要求4所述的方法,其特征在于,在得到目标正弦波信号之前,还包括:
    根据所述目标正弦波信号的频率,确定所述目标正弦波信号的信号周期;
    根据所述信号周期,得到所述目标正弦波信号的映射时长对应的周期值;所述映射时长为各个所述触觉感知信号片段的片段时长与两两相邻的触觉感知信号片段之间的时间间隔的累加和;
    若所述周期值为非整周期,则将所述映射时长补充为整周期,得到所述目标正弦波信号;其中,所补充的时长小于所述目标正弦波信号的信号周期。
  8. 一种信号转换装置,其特征在于,所述装置包括:
    文件获取模块,用于获取待转换信号文件;
    信息获取模块,用于当检测到所述待转换信号文件中包含用于表征触觉感知信号的有效数据时,从所述待转换信号文件中获取至少一个触觉感知信号片段的片段信息;所述片段信息包括片段强度和片段时长;
    片段映射模块,用于根据所述片段强度和所述片段时长,将所述至少一个触觉感知信号片段映射到目标信号模板中,得到目标正弦波信号;所述目标正弦波信号中包含与所述至少一个触觉感知信号片段对应的目标信号片段,且所述目标信号片段的片段强度、数目和片段时长与所述待转换信号中触觉感知信号片段的片段强度、数目和片段时长一一对应。
  9. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至7中任一项所述方法的步骤。
  10. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至7中任一项所述的方法的步骤。
PCT/CN2020/133478 2020-11-27 2020-12-03 信号转换方法、装置、计算机设备和存储介质 Ceased WO2022110262A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011358873.1 2020-11-27
CN202011358873.1A CN112416477B (zh) 2020-11-27 2020-11-27 信号转换方法、装置、计算机设备和存储介质

Publications (1)

Publication Number Publication Date
WO2022110262A1 true WO2022110262A1 (zh) 2022-06-02

Family

ID=74843700

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/133478 Ceased WO2022110262A1 (zh) 2020-11-27 2020-12-03 信号转换方法、装置、计算机设备和存储介质

Country Status (2)

Country Link
CN (1) CN112416477B (zh)
WO (1) WO2022110262A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140017641A1 (en) * 2012-07-13 2014-01-16 David J. Nowacki Method and system for monitoring, verifying, measuring, reporting, rating and ranking company, industry and individual training, education, licensing, certification, or other trade, professional designations, or regulatory requirements.
CN104395866A (zh) * 2012-11-30 2015-03-04 松下知识产权经营株式会社 触觉提示装置及触觉提示方法
CN108874144A (zh) * 2012-08-31 2018-11-23 意美森公司 使用映射的声音-触觉效应转换系统
CN111381707A (zh) * 2018-12-27 2020-07-07 意美森公司 触觉信号转换系统

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9558637B2 (en) * 2013-09-10 2017-01-31 Immersion Corporation Systems and methods for performing haptic conversion
KR102251353B1 (ko) * 2014-11-25 2021-05-12 삼성전자주식회사 근접 네트워크 구성 방법 및 그 전자 장치
EP3844597A1 (en) * 2018-08-29 2021-07-07 Ecole Polytechnique Federale De Lausanne (Epfl) Multisensory haptic system and method
CN111076807B (zh) * 2019-12-18 2022-03-04 瑞声科技(新加坡)有限公司 振动信号的处理方法、装置、设备及可读介质
CN111552377B (zh) * 2020-03-30 2024-05-17 瑞声科技(新加坡)有限公司 振动信号的生成方法、装置、设备及存储介质
CN111679735A (zh) * 2020-05-20 2020-09-18 瑞声科技(新加坡)有限公司 激励信号的生成方法、装置、终端及存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140017641A1 (en) * 2012-07-13 2014-01-16 David J. Nowacki Method and system for monitoring, verifying, measuring, reporting, rating and ranking company, industry and individual training, education, licensing, certification, or other trade, professional designations, or regulatory requirements.
CN108874144A (zh) * 2012-08-31 2018-11-23 意美森公司 使用映射的声音-触觉效应转换系统
CN104395866A (zh) * 2012-11-30 2015-03-04 松下知识产权经营株式会社 触觉提示装置及触觉提示方法
CN111381707A (zh) * 2018-12-27 2020-07-07 意美森公司 触觉信号转换系统

Also Published As

Publication number Publication date
CN112416477A (zh) 2021-02-26
CN112416477B (zh) 2022-04-26

Similar Documents

Publication Publication Date Title
JP2019139747A (ja) 演算装置、演算実行設備及び演算実行方法
CN112445729B (zh) 操作地址确定方法、PCIe系统、电子设备及存储介质
CN104392174B (zh) 应用程序动态行为的特征向量的生成方法及装置
CN113778515B (zh) 确定程序包变更信息的方法和装置
CN110597564A (zh) 一种安装包构建和业务组件加载方法、装置、终端设备
CN111814106A (zh) 时序数据滞后性处理方法、装置、电子设备及存储介质
CN111142659A (zh) 触感信号的实现方法、装置、终端及存储介质
CN110674083A (zh) 工作流迁移方法、装置、设备及计算机可读存储介质
CN110458285A (zh) 数据处理方法、装置、计算机设备和存储介质
CN108170425B (zh) 一种程序代码的修改方法、修改装置及终端设备
CN110717050A (zh) 一种知识图谱数据库的访问方法及装置
CN111158465A (zh) 一种力触觉振动反馈方法及系统
CN106227664A (zh) 一种测试应用程序的方法及装置
CN117706410A (zh) 一种电子负载电路、电流控制方法、设备及存储介质
CN110458286B (zh) 数据处理方法、装置、计算机设备和存储介质
CN115062571B (zh) 应用于集成电路器件的数据区域动态选取方法、系统、设备和计算机可读存储介质
CN112416477B (zh) 信号转换方法、装置、计算机设备和存储介质
CN115933514B (zh) 基于软plc的控制方法、装置、终端及存储介质
CN112924854B (zh) 任意波形格式生成方法、装置、测试设备和存储介质
CN105335657B (zh) 一种程序漏洞检测方法及装置
CN115546356A (zh) 动画生成方法、装置、计算机设备及存储介质
WO2023273621A1 (zh) 脚本生成方法、装置、设备及介质
CN110888045B (zh) 抖动确定方法及装置、存储介质和电子设备
JP2003014784A (ja) デジタルデータ処理方法、処理装置および処理プログラム
CN107193322A (zh) 一种波形数据加载方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20963150

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20963150

Country of ref document: EP

Kind code of ref document: A1