WO2019047348A1 - 基于音频接口的数据发送方法和接收方法 - Google Patents

基于音频接口的数据发送方法和接收方法 Download PDF

Info

Publication number
WO2019047348A1
WO2019047348A1 PCT/CN2017/108522 CN2017108522W WO2019047348A1 WO 2019047348 A1 WO2019047348 A1 WO 2019047348A1 CN 2017108522 W CN2017108522 W CN 2017108522W WO 2019047348 A1 WO2019047348 A1 WO 2019047348A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
terminal
audio
target
frequency signal
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/CN2017/108522
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Publication of WO2019047348A1 publication Critical patent/WO2019047348A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B11/00Transmission systems employing ultrasonic, sonic or infrasonic waves
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/04Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
    • G10L19/16Vocoder architecture
    • G10L19/18Vocoders using multiple modes
    • G10L19/20Vocoders using multiple modes using sound class specific coding, hybrid encoders or object based coding

Definitions

  • the present application relates to the field of information processing technologies, and in particular, to an audio interface-based data transmitting method, apparatus, storage medium, and computer device, and an audio interface-based data receiving method, apparatus, storage medium, and computer device.
  • the USB interface usually has a very large basic authority in the system of the device, so there will be some virus data when the receiving end transmits the target data to the transmitting end through the USB interface, and the transmission authority transmits and receives the transmission to the receiving terminal.
  • the terminal is transmitted from the receiving end to the transmitting end, which brings a large security risk to the transmitting end or the receiving end.
  • the data transmission based on the audio interface is a simplex transmission mode, and the virus data cannot be simultaneously transmitted from the audio interface while the target data is being transmitted, so that the data transmission is relatively safe.
  • the traditional method of data transmission based on the audio interface because the frequency bands of the audio identifiable by the transmitting end and the receiving end are inconsistent, it is difficult for the receiving end to receive the complete target data.
  • a data transmission method based on an audio interface comprising: acquiring, by a first terminal, target data to be sent; calling an audio interface to send a step hopping signal to a second terminal; and receiving a frequency signal sent by the second terminal, the frequency signal a frequency signal included in the step hopping signal recognized by the second terminal; and converting the target data into audio data corresponding to the received frequency signal, passing the audio data through the audio interface Send to the second terminal.
  • a data receiving method based on an audio interface comprising: receiving, by a second terminal, a step hopping signal sent by a first terminal through an audio interface; identifying a frequency signal included in the step hopping signal, and transmitting the identified frequency signal And to receive the audio data sent by the first terminal through the audio interface, where the audio data is the first terminal converting the first target data into an audio corresponding to the frequency signal received by the first terminal data.
  • An audio interface-based data transmitting device comprising: a target data acquiring module, configured to acquire target data to be sent; and a step hopping signal sending module, configured to call the audio interface to send a step hopping signal to the second terminal; a step hopping signal analysis module, configured to receive a frequency signal included in the identified step hopping signal returned by the second terminal after parsing the step hopping signal; and a target data sending module, configured to The target data is converted into audio data corresponding to the received frequency signal, and transmitted to the second terminal through the audio interface.
  • a data receiving device based on an audio interface comprising: a step hopping signal receiving module, configured to receive a step hopping signal sent by the first terminal through the audio interface; and a second step hopping signal analyzing module to identify the step hopping signal The frequency signal included in the signal is sent to the first terminal; and the audio data receiving module is configured to receive audio data sent by the first terminal through the audio interface, where the audio data is the first terminal A target data is converted into audio data corresponding to the frequency signal received by the first terminal.
  • One or more non-volatile storage media storing computer readable instructions that, when executed by one or more processors, perform the steps of the methods described in the various embodiments of the present application.
  • a computer device comprising a memory and a processor, the memory storing computer readable instructions, the computer readable instructions being executed by the processor, causing the processor to perform the methods described in various embodiments of the present application A step of.
  • 1 is an application environment diagram of a data transmission method and a receiving method based on an audio interface in an embodiment
  • FIG. 2 is a flowchart of a method for transmitting data based on an audio interface in an embodiment
  • FIG. 3 is a schematic diagram of a step hopping signal in one embodiment
  • FIG. 4 is a flow chart of converting audio data into audio data corresponding to a received frequency signal in an embodiment, and transmitting the audio data to the second terminal through an audio interface;
  • FIG. 5 is a flowchart of a data receiving method based on an audio interface in an embodiment
  • FIG. 6 is a timing diagram of a data transmission method based on an audio interface in an embodiment
  • FIG. 7 is a structural block diagram of an audio interface-based data transmitting apparatus in an embodiment
  • FIG. 8 is a structural block diagram of an audio interface-based data transmitting apparatus in another embodiment
  • FIG. 9 is a structural block diagram of an audio interface-based data receiving apparatus in an embodiment
  • FIG. 10 is a structural block diagram of an audio interface-based data receiving apparatus in another embodiment
  • FIG. 11 is a block diagram showing the structure of a data receiving apparatus based on an audio interface in still another embodiment
  • Figure 12 is a diagram showing the internal structure of a terminal in an embodiment.
  • first, second, etc. may be used herein to describe Various components, but these components are not limited by these terms. These terms are only used to distinguish one element from another.
  • a first terminal may be referred to as a second terminal, and similarly, a second terminal may be referred to as a first terminal, without departing from the scope of the present application.
  • Both the first terminal and the second terminal are terminals, but they are not the same terminal.
  • the audio interface-based data transmitting method and receiving method provided by the embodiments of the present application can be applied to an application environment as shown in FIG. 1.
  • the first terminal 110 can be connected to the second terminal 120 through an audio interface transmission device.
  • the first terminal 110 can be the transmitting end of the data, and the corresponding second terminal 120 is the receiving end of the data.
  • the first terminal 110 has an audio interface through which target data can be transmitted to the second terminal.
  • the second terminal 120 can also have an audio interface, and the data sent by the first terminal can be received through the audio interface, and the data is parsed to identify the target data sent by the first terminal.
  • an audio interface-based data transmission method is provided. This embodiment is mainly applied to the first terminal 110 shown in FIG. 1 as an example. This includes:
  • Step S202 Acquire target data to be sent.
  • the target data may be any data, such as audio data, text data, video data, web page links, and the like.
  • the first terminal may receive a selection operation acting on the target data, and the target data for the selection operation is obtained.
  • the target data may include one or more.
  • a selection operation that acts on one or more target data can be received.
  • the sending instruction for the target operation is received, the selected target data is the target data to be sent.
  • the send command may be an instruction to call the audio interface to transmit the target data.
  • Step S204 the audio interface is called to send a step hopping signal to the second terminal.
  • the step hopping signal includes a plurality of frequency signals of different frequencies.
  • the frequency signal may be a frequency signal determined according to a clock frequency identifiable by the first terminal itself.
  • the clock frequency signal identifiable by the first terminal ranges from 20 Hz to 196 kHz, and a frequency signal with a frequency range between 20 Hz and 96 kHz can be generated according to the Shannon sampling theorem.
  • the first terminal may detect a range of clock frequencies identifiable by itself, determine a range of frequency signals identifiable by the first terminal according to the detected clock frequency, and range from the frequency signal. A preset number of different frequencies are selected, a step hopping signal is generated according to the frequency signal of each selected processing frequency, and the audio interface is called to send a step hopping signal to the second terminal.
  • the audio interface can be called by an audio connection communication device (than the audio connection line) to send a step jump signal to the second terminal.
  • the first terminal may select a preset number of discrete values according to the identifiable frequency range, that is, select a plurality of frequency values, according to a certain order, and keep each frequency value for a certain period of time, A frequency signal is formed to form a corresponding step jump signal.
  • Step S206 receiving a frequency signal sent by the second terminal.
  • the frequency signal is a frequency signal included in the step hopping signal recognized by the second terminal.
  • the second terminal may parse the received step hopping signal, identify the frequency signal contained therein, and transmit the identified frequency signal to the first terminal.
  • the first terminal may receive the frequency signal identified by the second terminal after parsing the step hopping signal. By receiving the identified frequency signal returned by the second terminal, a common frequency signal that can be identified by both the first terminal and the second terminal can be determined.
  • the second terminal can recognize the frequency signal in the frequency range of 200 Hz to 90 kHz in the step hopping signal, and The identified frequency signal is sent to the first terminal.
  • the first terminal After receiving the frequency signal information recognized by the second terminal, the first terminal can identify the frequency signal included therein, and if the frequency signal in the frequency range of 200 Hz to 90 kHz is identified, the first terminal and the first terminal can be determined.
  • the frequency range that can be recognized by both terminals is 200 Hz to 90 kHz.
  • Step S208 converting the target data into audio data corresponding to the received frequency signal, and transmitting the audio data to the second terminal through the audio interface.
  • the first terminal may convert the acquired target data into audio data according to a data transmission mode of the audio interface.
  • the frequency range of the converted audio data is the audio data of the frequency range corresponding to the received frequency signal returned by the second terminal, so that the converted audio data can be completely recognized by the second terminal. And calling the audio interface, and transmitting the converted audio data to the second terminal.
  • the first terminal may modulate the target data into audio numbers in a frequency range that is identifiable by both the first terminal and the second terminal according to the received frequency signal returned by the second terminal.
  • audio data of 200 Hz to 90 kHz which can be identified by the frequency range can be adjusted, so that the second receiving terminal can receive the complete audio data and inversely convert it into target data. Achieve complete reception of the target data.
  • the first terminal transmits a step hopping signal to the second terminal; and receives the frequency signal included in the identified step hopping signal after the second terminal parses the step hopping signal. . Therefore, the frequency range identifiable by the first terminal and the second terminal may be determined according to the received frequency signal, and the target data to be sent may be converted into audio data in the frequency range to be sent to the second terminal, so that The second terminal can receive the complete audio data, and can be inversely converted into the target data to be sent by the first terminal according to the complete audio data, thereby realizing complete reception of the target data through the audio interface.
  • the calling the audio interface sends the step hopping signal to the second terminal, including: calling the frequency interface to send the plurality of periodic step hopping signals to the second terminal, where the step hopping signal of each period includes the first terminal identifiable Multiple frequency signals.
  • the first terminal may send a plurality of periodic step hopping signals to the second terminal, where each periodic signal includes an identifiable plurality of frequency signals selected by the first terminal.
  • the selected plurality of frequency signals may be arranged in a certain order or randomly, and the frequency signals of each frequency are maintained for a corresponding duration to constitute the step hopping signal.
  • the corresponding step jump signal can be formed according to the order of arrangement from small to large, or from large to small. Or in a manner as shown in FIG. 3, starting from a frequency signal at a certain frequency in the middle, from small to large to a small arrangement, forming a step jump signal similar to a sine or cosine form, wherein each The frequency signal on a ladder is a single frequency.
  • the second terminal can be made to clarify the frequency range transmitted by the first terminal, and the accuracy of identifying the frequency signals in the step hopping signal is improved.
  • the frequency range recognized by the first terminal is 20 Hz to 96 kHz, and a predetermined number of different frequencies may be selected from the frequency range averagingly or randomly, and each selected frequency may constitute one of the step hopping signals.
  • the frequency signal on the ladder For example, a frequency can be selected every 1 KHz as a frequency signal on a step in the step jump signal.
  • Each frequency signal can be kept at the same or different lengths, such as Both are kept for 1ms.
  • the manner of selecting may be selected in a relatively sparse and densely packed form in the middle region of the frequency range, so as to more accurately reflect the frequency range that the second terminal can receive. For example, in the first 20 Hz to 2 KHz, 10 frequencies are selected, 10 frequencies are selected from 2 KHz to 80 KHz, and 10 frequencies are selected from 80 KHz to 96 KHz, and 30 frequency signals of different frequencies are selected to form a cycle. Ladder jump signal.
  • the method before the step S206, further includes: generating, according to the received frequency signal, a first quantity of channels, and transmitting the generated channel information to the second terminal by using an audio interface, where each channel corresponds to one frequency band.
  • the first terminal may also construct a plurality of audio channels, each channel corresponding to a different range of frequency bands, and the frequency band is a frequency band within a frequency range indicated by the received frequency signal.
  • Each channel is used to transmit audio data of a corresponding range of frequency bands. Further, there is no intersection between the ranges of each frequency band, so that the superimposed transmission of audio data between each channel does not overlap the frequency bands, so that the audio data transmitted under each channel can be completely distinguished. .
  • the number of channels can be either a fixed number or a user-defined number, or an amount automatically determined according to the size and number of target data. For example, when the amount of data of the target data is small or small, a relatively small number of channels can be divided; when the amount of data of the target data is large or large, a relatively large number of channels can be divided.
  • the first terminal may determine, according to the received frequency signal, a frequency range that is identifiable by both the first terminal and the second terminal, and divide the frequency into a first number of frequency bands according to a preset frequency band division model, and Each frequency band is associated with one of them, such that each channel corresponds to a different frequency band.
  • the frequency bands divided therein may be in any form of division. For example, it can be evenly divided to improve the efficiency of division. It can also be divided according to the principle that the frequency range divided by the two regions is larger, the frequency band is close to the middle, and the frequency range is smaller, so as to improve the efficiency of audio data transmission.
  • the first terminal may receive the channel division information input by the user, determine the number of channels according to the channel division information, and the frequency band corresponding to each channel.
  • the channel division information includes the number of divisions of the channel, or may further include corresponding to each of the divided channels.
  • the frequency range when the frequency range is included, the frequency range may be set to the division range of the corresponding channel.
  • each channel When the frequency range is not included, each channel may be calculated according to the preset frequency band division model according to the number of divisions of the channel. Corresponding frequency band.
  • the number of divisions and the identified frequency range (such as 200 Hz to 80 kHz as described above) may be used as an input of the frequency band division model, and after the first terminal calculates the model, the frequency band corresponding to each channel is output.
  • the first terminal may send the generated channel information to the second terminal, where the channel information is used to indicate the frequency band corresponding to each channel, so that the second terminal can learn the channel divided by the first terminal according to the received channel information, thereby The audio data in each subsequent channel is parsed according to the channel.
  • the channel information may include a frequency band corresponding to each divided channel, and may optionally include a starting frequency and/or a ending frequency of each channel, so that each channel correspondingly is learned according to the starting frequency and/or the ending frequency. Frequency band.
  • step S208 includes:
  • Step S402 converting the target data into a second number of target sub-data.
  • the second quantity may be the same as or different from the first quantity, for example, the second quantity may be greater than or equal to the first quantity.
  • the second quantity may also be determined according to the size of the target data to be transmitted, and the second quantity is determined according to the size of the target data.
  • the first terminal may split the target data into a second number of target sub-data, and the size of each target sub-data may be the same or different.
  • the terminal may set corresponding number information for each target sub-data, so that the corresponding area of each target sub-data in the target data is determined according to the number information, so that each target sub-data can be synthesized into the target data.
  • Step S404 assigning a corresponding channel to each target sub-data.
  • the first terminal may allocate one of the channels for each target sub-data so that the target sub-data can be transmitted according to the allocated channel.
  • the first terminal may allocate a channel in an idle state to each target sub-data to be transmitted in real time, so that the target sub-data to which the channel is allocated is transmitted in real time.
  • the channel in the idle state includes a channel that is allocated to transmit data and an available channel that has been transmitted for data to be transmitted.
  • Step S406 converting the target sub-data of the allocated channel into audio sub-data within the frequency range corresponding to the allocated channel.
  • the first terminal may convert the target sub-data of the target sub-data to which the channel has been allocated into the audio sub-data in the frequency band according to the frequency band corresponding to the allocated channel, so that the channel is correct.
  • the audio subdata is used for data transmission.
  • the target sub-data X can be converted into audio sub-data X with a frequency range of 200 Hz to 2 KHz. So that the audio sub-data X is transmitted through the channel.
  • each target sub-data is converted into corresponding audio sub-data, and each audio data includes a frequency band within a frequency range corresponding to one of the channels; and each audio sub-data is allocated to one frequency band in one of the channels. The channel within the corresponding frequency range.
  • Step S408 the audio interface is called to transmit the audio sub data in each frequency band to the second terminal.
  • the first terminal may invoke an audio interface, and send audio sub-data in a frequency range corresponding to each channel to the second terminal according to the divided second number of channels.
  • multiple audio sub-data of different frequency ranges can be simultaneously transmitted.
  • an audio sub-data corresponding to each frequency range can be selected and simultaneously transmitted to improve the transmission efficiency of the target data.
  • the same number of one or more unsent target sub-data may be extracted, and the above steps are performed on the extracted target sub-data.
  • the audio sub-data converted by the target sub-data after the scoring is simultaneously transmitted through the divided plurality of channels, thereby improving the pair.
  • the transmission efficiency of the target data by dividing the number of channels and performing corresponding number splitting on the target data, the audio sub-data converted by the target sub-data after the scoring is simultaneously transmitted through the divided plurality of channels, thereby improving the pair.
  • the method further includes: receiving feedback information of the received audio sub-data by the second terminal, and when the feedback information includes the number of the target sub-data that failed to be transmitted, the target of the failed transmission
  • the data is redistributed to the channel, and the calling audio interface is reconverted into audio subdata according to the reassigned channel and sent to the second terminal.
  • the second terminal may restore each target sub-data according to the corresponding inverse conversion manner, and carry the data according to each target sub-data.
  • the number information is generated to generate the corresponding target data.
  • sending corresponding feedback information to the first terminal where the feedback information may be feedback information about whether the audio subdata is successfully received, and may also be feedback information of whether the corresponding target data is successfully restored.
  • the missing number information may be determined according to the received number information, and the missing number information is carried into the feedback information and sent to the first terminal.
  • the first terminal may determine the target sub-data corresponding to the number information, where the target sub-data is the transmission failure or the second terminal receives the incomplete target sub-sub data.
  • the above steps S404 to S408 may be re-executed according to the target sub-data to improve the probability that the target data is successfully received by the second terminal.
  • the target sub-data to be retransmitted may be allocated to a channel in an idle state, and the target sub-data of the re-allocated channel may be converted into audio sub-data within a frequency range corresponding to the re-allocated channel.
  • the audio interface is called to transmit audio sub-data in each frequency range to the second terminal.
  • the audio target sub-data of the channel is re-allocated, and the re-allocated channel can be different from the previously allocated channel to avoid the problem that the channel assigned to the operation is faulty, and the probability of being successfully received after re-transmission is improved.
  • step S208 includes converting the target data into audio data corresponding to the received frequency signal, and transmitting the audio data to the second terminal via an audio interface.
  • the first terminal may also perform encrypted transmission on the target data, where the encryption mode may be any existing data encryption manner, and may also be an encryption generated by the first terminal according to the user's encryption setting. In the way, the target data is encrypted and transmitted.
  • the encryption mode may be any existing data encryption manner, and may also be an encryption generated by the first terminal according to the user's encryption setting.
  • the target data is encrypted and transmitted.
  • the first terminal may provide a corresponding encryption setting application, and receive an encryption mode selected or customized by the user, and the target data to be transmitted is encrypted and transmitted according to the set encryption mode.
  • the first terminal rod can provide multiple encryption methods, and receive the user's choice of one or several encryption methods, and encrypt and transmit the target data according to the selected one or several encryption methods, or provide corresponding
  • the encryption rule setting interface receives the encryption rule customized by the user on the interface, generates a corresponding encryption method according to the encryption rule set by the customization, and performs encrypted transmission on the target data according to the generated encryption.
  • the first terminal may encrypt any one or more of the target data or the audio data, so that the encrypted data is formed, and the target data is encrypted and transmitted.
  • the target data and the audio data may be encrypted, that is, the target data is first encrypted, the audio data is generated according to the encrypted target data, and the generated audio data is encrypted, and the encrypted audio data is passed through the audio.
  • the interface is sent to the second terminal.
  • the encryption method of the audio data and the target data may be the same or different to further improve the security of data transmission.
  • data on any one or more of the target audio data, the target sub-data, the audio sub-data, and the like may also be encrypted to implement encrypted transmission of the target data to the second terminal.
  • the target data on a certain link is encrypted, the data on the latter link is the data generated on the basis of the previous encrypted data.
  • the target data may be first encrypted, and then split into a second number of target sub-data according to the encrypted target data, and the target sub-data is encrypted, and after the target sub-data is converted into audio sub-data,
  • the audio subdata may be encrypted, and the encrypted audio subdata is encrypted and transmitted to the second terminal through an audio interface.
  • the encryption mode on each link may be the same or different, and further, some or all of the target sub-data and audio sub-data may be encrypted to improve the diversification of the target data encryption.
  • an audio interface based data receiving method is provided. This embodiment is mainly applied to the second terminal 120 shown in FIG. 1 as an example.
  • the method includes:
  • Step S502 Receive a step hopping signal sent by the first terminal through the audio interface.
  • the step hopping signal sent by the first terminal includes a plurality of frequency signals of different frequencies.
  • the frequency signal may be a frequency signal determined according to a clock frequency identifiable by the first terminal itself.
  • Step S504 identifying a frequency signal included in the step hopping signal, and transmitting the identified frequency signal to the first terminal.
  • the second terminal may parse the step hopping signal, identify the frequency signal contained therein, and send the identified frequency signal to the first terminal. Understandably, the frequency that the second terminal can recognize The signal may contain all or part of the frequency signal in the step hopping signal.
  • the first terminal can identify the frequency signal that can be jointly recognized by the first terminal and the second terminal by using the frequency signal sent by the second terminal, and can determine the frequency range that the two terminals can jointly identify according to the frequency signal.
  • the second terminal may generate a step hopping signal of the same or similar form as the received step hopping signal according to the identified frequency signal (the step hopping signal formed by the second terminal is the second step hopping signal) Transmitting the second step hopping signal to the first terminal, so that the first terminal can receive the second step hopping signal, and identify the frequency signal in the same or corresponding form to determine a frequency range that is commonly recognized by the two .
  • Step S506 Receive audio data sent by the first terminal through the audio interface, where the audio data is the first terminal converting the first target data into audio data corresponding to the frequency signal received by the first terminal.
  • the first target data is the target data to be sent acquired by the first terminal.
  • the audio data is: a frequency signal included in the identified step hopping signal returned by the first terminal after receiving the step hopping signal by the second terminal; converting the target data to be transmitted into the received frequency signal Corresponding audio data.
  • the second terminal can receive the audio data sent by the first terminal through its own audio interface.
  • the method further includes inversely converting the audio data into the second target data.
  • the inverse conversion of the audio data into the second target data may be performed after the step S506 described above.
  • the second terminal may restore the target data sent by the first terminal according to an inverse conversion manner corresponding to the conversion manner of the first terminal, where the second target data is the restored target data.
  • the second terminal receives the step hopping signal sent by the first terminal through the audio interface; identifies the frequency signal included in the step hopping signal, and transmits the identified frequency signal to the first terminal, thereby
  • the first terminal is configured to determine a frequency range that can be commonly recognized by both the second terminal and the second terminal, thereby enabling the first terminal to transmit the audio data converted from the target data according to a frequency range that is commonly recognized by the two terminals.
  • the audio data received by the second terminal is within the audio range identifiable by the second terminal, thereby ensuring the integrity of the received audio data, and then converting the second according to the received audio data.
  • Target data to improve the integrity of the target data reception.
  • step S502 includes: receiving, by the first terminal, the frequency interface to send a plurality of periodic step hopping signals to the second terminal.
  • the step hopping signal sent by the first terminal is a plurality of periodic step hopping signals, and the step hopping signal of each period includes the identifiable plurality of frequency signals selected by the first terminal.
  • the step jump signal for each cycle can be as shown in FIG.
  • step S504 includes identifying a frequency signal included in the cycle skip signal of each cycle, and transmitting the identified frequency signal to the first terminal.
  • the second terminal may parse the plurality of periods of the step hopping signal, identify the frequency signal included therein, and generate a second step hopping signal that is the same as or similar to the step hopping signal according to the identified frequency signal. And transmitting a plurality of periodic second step hopping signals to the first terminal, wherein each second step hopping signal may be in the form of a similar one as shown in FIG.
  • the comprehensiveness of the frequency signals recognized by the receiving end of the step hopping signal can be improved.
  • the audio data is audio synthesized data formed by the first terminal converting the first target data into the plurality of audio sub-data; after identifying the frequency signal included in the step hopping signal, the method further includes: receiving the first terminal Channel information transmitted through the audio interface; inversely converting the audio data into the second target data, comprising: identifying a plurality of audio sub-data included in the audio synthesis data according to the channel information; and inversely converting the plurality of audio sub-data into the second target data .
  • the first terminal may send audio data to the second terminal according to step S402 to step S408 described above.
  • the audio data sent by the second terminal received by the first terminal is the audio synthesized data.
  • the audio synthesis data is audio synthesis data formed by a plurality of audio subdata transmitted through an audio interface through corresponding boot synchronization.
  • the second terminal further receives channel information that is sent by the first terminal through the audio interface, where the channel information includes information for identifying a frequency band corresponding to each channel, for example, may include a channel identifier of each channel and a frequency band corresponding to the channel, Or the starting frequency and/or the ending frequency of each channel.
  • the second terminal may parse the audio synthesis data according to the channel information to identify a plurality of audio sub-data forming the audio synthesis data.
  • the frequency band corresponding to each channel may be determined according to the channel information, and then the tone is recognized.
  • the data blocks in each frequency band are synthesized in the frequency data, and each of the identified data blocks is the audio sub-data forming the audio synthesized data.
  • the second terminal may inversely convert the audio sub data into corresponding according to the identified audio sub data according to an inverse conversion manner corresponding to a conversion manner in which the first terminal converts the target sub data into audio sub data.
  • the target sub-data so that the second target data can be generated according to the target sub-data.
  • the first terminal further includes number information of each audio subdata in the audio synthesis data transmitted to the second terminal.
  • the second terminal may determine, according to the number information of the audio sub-data, that the corresponding target sub-data is in a corresponding area in the target data to be sent by the first terminal, so that the generated information is generated according to the number information.
  • the target sub-data synthesizes the second target data.
  • the audio interface-based data receiving method further includes: sending feedback information to the received audio synthesized data to the first terminal; and continuing to receive when the feedback information includes the number of the target data of the failed transmission.
  • the first terminal calls the regenerated audio synthesis data sent by the audio interface; and identifies a plurality of audio subdata included in the re-formed audio synthesis data according to the channel information; and inversely converts the second audio data into the second target data according to all the audio subdata.
  • the second terminal after the second terminal reversely converts the target sub-data corresponding to all the audio sub-data, it can detect whether a complete target data can be formed according to all the received target sub-data, and if so, according to all the target sub- The data generates the second target data. Otherwise, the number information corresponding to the missing target sub-data may be calculated, and the feedback information of the received audio synthesized data is sent to the first terminal, where the feedback information includes the number of the missing target sub-data, that is, the target of the failed transmission The number of the sub data.
  • the first terminal may split the target data to be transmitted into 10 target sub-data, and the split target sub-data may be set to 1 to 10, which is a natural number.
  • the second terminal can complete all the audio data sent by the first terminal and parse all the target sub-data, and check whether the number information carried in all the target sub-data includes the number 1 to 10, that is, whether the to-be-sent can be completely formed.
  • Target data If the missing one or more numbers are detected, the feedback information sent to the second terminal carries the corresponding missing number, so that the first terminal continues to send the target sub-data that failed to receive the target data. Integrity.
  • the audio interface-based data receiving method further includes: decrypting each of the received data or each of the parsed data according to a decryption manner corresponding to the encryption manner of the first terminal. The data is decrypted.
  • the second terminal can detect whether each piece of data received or each piece of data parsed needs to be decrypted, that is, whether it is encrypted.
  • Each of the received data includes: the received audio data or audio synthesis data sent by the first terminal, and the like; each of the parsed data includes: second target data parsed according to the audio data, according to each audio sub-data The parsed target sub-data, the second target data generated from the target sub-data, and the like.
  • the second terminal may restore the data before encryption according to the decryption method corresponding to the encryption mode, and continue to restore the target data sent by the first terminal according to the decrypted data.
  • the second terminal may decrypt each or part of the audio sub-data after identifying the audio sub-data, according to the decrypted audio.
  • the sub data is inversely converted into target sub data, and second target data is generated based on the target sub data. If the first terminal further encrypts the target data to be sent, the second terminal may perform corresponding decryption on the second target data to obtain the target data sent by the first terminal.
  • an audio interface-based data transmission method is provided.
  • the method is applied to the first terminal and the second terminal, and the method includes the following steps:
  • Step S601 the first terminal acquires target data to be sent.
  • the first terminal may acquire one or more audio data, text data, video data, webpage links, and the like as target data to be transmitted. And when detecting the sending instruction for the acquired target data to be transmitted, starting to send the target data to be sent to the second terminal.
  • Step S602 the audio interface is called to send a step hopping signal to the second terminal.
  • the frequency interface can be invoked to send a plurality of periodic ladder jump signals to the second terminal.
  • the cycle skip signal of each cycle includes a plurality of frequency signals identifiable by the first terminal.
  • the plurality of frequency signals may constitute a frequency range identifiable by the first terminal.
  • the first terminal may select a preset number of discrete values from the identifiable frequency range, that is, select multiple frequency values.
  • the first terminal can form a frequency signal according to a certain order of arrangement and keep each frequency value for a certain period of time, thereby forming a corresponding step hopping signal.
  • FIG. 3 a schematic diagram of a cycle skip signal of one cycle can be shown in FIG. 3.
  • Step S603 the second terminal identifies the frequency signal included in the received step hopping signal.
  • Step S604 the identified frequency signal is sent to the first terminal.
  • the second terminal may parse the step hopping signal, identify the frequency signal included therein, and send the identified frequency signal to the first terminal. It can be understood that the frequency signal recognizable by the second terminal may include all or part of the frequency signal in the step hopping signal.
  • Step S605 generating a first number of channels according to the received frequency signal.
  • Step S606 the generated channel information is sent to the second terminal through the audio interface.
  • the channel may be divided according to the principle that the frequency range of the frequency band is larger, the frequency band is close to the middle frequency band, and the frequency band range is smaller, so as to improve the efficiency of audio data transmission.
  • the corresponding channel can be constructed by the following function:
  • y represents the starting and/or ending frequency of the frequency band corresponding to the channel to be constructed
  • x may take n natural numbers [1, 2, 3, ... n], which is the divided channel
  • b can be set to an intermediate value of the number of channels to be divided.
  • the frequency bands in the middle area are divided more densely.
  • y calculated from the function is [y 1 , y 2 , y 3 , ... y n ].
  • the frequency bands corresponding to the first to n-1th channels are y 1 to y 2 , y 2 to y 3 , and y 3 to y 4 ... y n-1 to y n , respectively .
  • y 1 ⁇ y n are respectively located within a frequency range that can be recognized by both the first terminal and the second terminal.
  • the channel information contains information for identifying the frequency band corresponding to each boot.
  • the first terminal may send the calculated n frequency values of y 1 , y 2 , y 3 , . . . y n to the second terminal, so that the second terminal may determine the divided n-1 according to the n frequency values.
  • the frequency bands corresponding to the channels are y 1 y y 2 , y 2 y y 3 , y 3 y y 4 ... y n-1 y y n , respectively .
  • Step S607 converting the target data into a second number of target sub-data.
  • the second number can be greater than or equal to the first number such that each channel can be utilized to transmit one or more target sub-data.
  • Each target sub-data generated may be set with a corresponding number, which may be 1 to m, and m is the second quantity of the generated target sub-data.
  • the first terminal may send the number information and/or the second number to the second terminal before the sending of the target data or during the sending, so that the second terminal can obtain information such as the quantity of the corresponding target sub-data.
  • the first terminal may also convert the number information and/or the second quantity and the like target data split information into audio data, and send the data to the second terminal through the audio interface.
  • Step S608 assigning a corresponding channel to each target sub-data; converting target sub-data of the allocated channel into audio sub-data within a frequency range corresponding to the allocated channel.
  • the first terminal may form the split target sub-data into a data queue to be transmitted, and sequentially extract an audio sub-data to be transmitted from the queue, and allocate the audio sub-data to one of the Channel in idle state.
  • a target sub-data can be allocated to all channels in an idle state in real time for real-time data transmission.
  • the target sub-data to which the channel is assigned it can be converted into audio sub-data within the frequency band corresponding to the channel.
  • Step S609 the audio interface is called to send audio sub-data in each frequency band to form audio synthesis data to the second terminal.
  • each of the plurality of channels can synchronously transmit corresponding audio sub-data, and the audio sub-data that is synchronously transmitted forms the audio synthesis data, so that the data received by the second terminal is formed by multiple audio sub-data. Audio synthesis data.
  • the first terminal may superimpose the audio sub-data transmitted in each frequency band in real time to form audio synthesis data, which is sent to the second terminal. Since the initial phase of each superimposed audio sub-data and/or the associated frequency band are different, the sound can be parsed by a band pass filter The audio subdata in the data is synthesized.
  • Step S610 the second terminal identifies a plurality of audio sub-data included in the audio synthesis data according to the channel information; and inversely converts the plurality of audio sub-data into the second target data.
  • the second terminal may obtain the number information and/or the second quantity of the target sub data therein according to the target data split information sent by the first terminal.
  • the frequency band corresponding to each channel is identified by also identifying the channel information transmitted by the first terminal.
  • the digital band pass filter or the band pass filtering function may be called to perform frequency separation on the received audio synthesized data to obtain a plurality of audio sub-data contained therein, and according to the corresponding inverse conversion manner for each audio sub-data. Reverse conversion to target subdata. Detecting whether the number information and/or the number of target sub-data in each target sub-data is complete. If complete, synthesizing the second target data according to all generated target sub-data to achieve the reception of the target data.
  • an audio interface-based data transmitting apparatus comprising:
  • the target data obtaining module 702 is configured to acquire target data to be sent.
  • the step hopping signal sending module 704 is configured to invoke the audio interface to send the step hopping signal to the second terminal.
  • the first step hopping signal parsing module 706 is configured to receive a frequency signal sent by the second terminal, where the frequency signal is a frequency signal included in the step hopping signal recognized by the second terminal.
  • the target data sending module 708 is configured to convert the target data into audio data corresponding to the received frequency signal, and send the audio data to the second terminal through the audio interface.
  • the step hopping signal sending module 704 is further configured to invoke the frequency interface to send the plurality of periodic step hopping signals to the second terminal, where the step hopping signal of each period includes multiple frequency signals identifiable by the first terminal. .
  • the audio interface-based data transmitting apparatus further includes:
  • the channel dividing module 707 is configured to generate a first quantity of channels according to the received frequency signal, and send the generated channel information to the second terminal by using an audio interface, where each channel corresponds to one frequency band.
  • the target data sending module 708 is further configured to convert the target data into a second quantity of target sub-data; Allocating a corresponding channel for each target sub-data; converting target sub-data of the allocated channel into audio sub-data within a frequency range corresponding to the allocated channel; calling an audio interface to transmit audio sub-data within each frequency band To the second terminal.
  • the audio interface-based data transmitting apparatus further includes: a feedback information receiving module, configured to receive feedback information of the received audio sub-data by the second terminal.
  • the target data sending module 708 is further configured to: when the feedback information includes the number of the target data of the failed transmission, re-allocate the channel to the target sub-data that failed to be transmitted, and call the audio interface to re-convert to the audio sub-data according to the re-allocated channel. To the second terminal.
  • the target data sending module 708 is further configured to convert the target data into audio data corresponding to the received frequency signal, and send the audio data to the second terminal through an audio interface encryption.
  • an audio interface-based data receiving apparatus comprising:
  • the step hopping signal receiving module 902 is configured to receive a step hopping signal sent by the first terminal through the audio interface.
  • the second step hopping signal parsing module 904 is configured to identify the frequency signal included in the step hopping signal, and send the identified frequency signal to the first terminal.
  • the audio data receiving module 906 is configured to receive audio data sent by the first terminal through the audio interface, where the audio data is the first terminal converting the first target data into audio data corresponding to the frequency signal received by the first terminal.
  • the audio interface-based data receiving apparatus further includes:
  • the second target data generating module 908 is configured to inversely convert the audio data into the second target data.
  • the audio interface-based data receiving apparatus further includes:
  • the channel information receiving module 910 is configured to receive channel information that is sent by the second terminal through the audio interface.
  • the second target data generating module 908 is further configured to identify the plurality of audio sub-data included in the audio synthesis data according to the channel information; and inversely convert the plurality of audio sub-data into the second target data.
  • the step hopping signal receiving module 902 is further configured to receive the step hopping signal that the first terminal invokes the frequency interface to send the plurality of cycles to the second terminal.
  • the audio interface-based data receiving apparatus further includes: a feedback information sending module, configured to send, to the first terminal, feedback information about the received audio synthesized data.
  • the audio data receiving module 906 is further configured to: when the feedback information includes the number of the target data of the transmission failure, continue to receive the regenerated audio synthesis data sent by the first terminal to invoke the audio interface; and identify the re-formed audio synthesis data according to the channel information. Multiple audio subdata contained in.
  • the second target data generating module 908 is further configured to inversely convert all the audio sub-data into the second target data.
  • the audio interface-based data receiving apparatus further includes:
  • the decryption module is configured to decrypt, according to the decryption method corresponding to the encryption mode of the first terminal, the decrypted data in each of the received data or each of the parsed data.
  • the respective modules in the data transmitting device of the audio interface and the data receiving device of the audio interface may be implemented in whole or in part by software, hardware, and combinations thereof.
  • the network interface may be an Ethernet card or a wireless network card.
  • Each of the above modules may be embedded in or independent of the processor in the computer device, or may be stored in a memory in the computer device in a software form, so that the processor invokes the operations corresponding to the above modules.
  • the processor can be a central processing unit (CPU), a microprocessor, a microcontroller, or the like.
  • the audio interface-based data transmitting apparatus may be implemented in the form of a computer program executable on a computer device as shown in FIG. 12, the non-volatile of the computer device
  • the storage medium can store various program modules constituting the audio interface-based data transmitting device.
  • the target data acquiring module 702 the step hopping signal transmitting module 704, the first step hopping signal parsing module 706, the target data transmitting module 708, and the channel dividing module 707 in FIG. 8 may be included as shown in FIG.
  • Each of the program modules includes computer readable instructions for causing the computer device to perform the steps in the audio interface based data transmitting method of various embodiments of the present application described in the present specification, for example, the computer device may Obtaining the target data to be transmitted by the target data acquiring module 702 in the audio interface-based data transmitting apparatus shown in FIG. 5; sending the step hopping signal to the second terminal by using the step hopping signal sending module 704 to call the audio interface;
  • the step hopping signal parsing module 706 receives the frequency signal sent by the second terminal, and the frequency signal is a frequency signal included in the step hopping signal recognized by the second terminal;
  • the transmission module 708 converts the target data into audio data corresponding to the received frequency signal, and transmits the audio data to the second terminal through the audio interface.
  • the audio interface-based data receiving apparatus may also be implemented in the form of a computer program, which may also be run on a computer device as shown in FIG. 12, which is not
  • the volatile storage medium can store various program modules constituting the audio interface-based data receiving device.
  • the step hopping signal receiving module 902, the second step hopping signal parsing module 904, the audio data receiving module 906, and the second target data generating module 908 in FIG. 10 and the channel shown in FIG. 11 may be included as shown in FIG. Information receiving module 910.
  • Each of the program modules includes computer readable instructions for causing the computer device to perform the steps in the audio interface based data receiving method of various embodiments of the present application described in the specification, for example, the computer device may
  • the step hopping signal receiving module 902 in the audio interface based data receiving apparatus shown in FIG. 9 receives the step hopping signal transmitted by the first terminal through the audio interface; and the second step hopping signal parsing module 904 identifies the step hopping signal included in the The frequency signal is sent to the first terminal; and the audio data is sent by the first terminal through the audio data receiving module 906, and the audio data is converted into the first target data by the first terminal. Audio data corresponding to a frequency signal received by a terminal.
  • one or more non-transitory computer readable storage media comprising computer readable instructions, when executed by one or more processors, causing the processor to perform the Any of the steps of the audio interface-based data transmitting method and/or the audio interface-based data receiving method provided in the embodiments.
  • a computer apparatus comprising a memory and a processor, the memory storing computer readable instructions that, when executed by the processor, cause the processor to perform any of the audio interface based data transmissions described above Method and/or steps of a data receiving method based on an audio interface.
  • the computer device can include, but is not limited to, a terminal such as a cell phone, tablet, portable notebook, or smart wearable device.
  • a terminal such as a cell phone, tablet, portable notebook, or smart wearable device.
  • FIG. 12 it is a schematic diagram of the internal structure of the terminal in one embodiment.
  • the terminal includes a processor, memory, and network interface connected by a system bus.
  • the processor of the terminal is used to provide calculation and control capabilities to support the operation of the entire terminal.
  • the memory is configured to store data, instruction code, etc., and the memory stores at least one computer readable instruction, the computer can
  • the read command may be executed by the processor to implement the audio interface-based data transmitting method and/or the audio interface-based data receiving method applicable to the terminal provided in the embodiments of the present application.
  • the memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, or a read-only memory (ROM).
  • the memory includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium of the terminal stores an operating system, a database, and computer readable instructions.
  • the database stores data related to an audio interface-based data transmission method and/or an audio interface-based data reception method provided by the above various embodiments.
  • the computer readable instructions are executable by a processor for implementing an audio interface based data transmitting method and/or an audio interface based data receiving method provided by the various embodiments above.
  • the internal memory in the terminal provides a cached operating environment for operating systems, databases, and computer readable instructions in a non-volatile storage medium.
  • the network interface may be an Ethernet card or a wireless network card or the like for communicating with an external terminal or server.
  • the structure shown in FIG. 12 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the terminal to which the solution of the present application is applied.
  • the specific server may include a ratio. More or fewer components are shown in the figures, or some components are combined, or have different component arrangements.
  • the terminal can also include a display connected via a system bus.
  • the display screen can be a touch screen, such as a capacitive screen or an electronic screen, can display information such as target data to be sent, and can also generate corresponding instructions by receiving a click operation of a control applied to the touch screen.
  • Non-volatile memory Any reference to a memory, storage, database, or other medium used herein may include non-volatile memory. Suitable non-volatile memories can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • ROM read only memory
  • PROM programmable ROM
  • EPROM electrically programmable ROM
  • EEPROM electrically erasable programmable ROM
  • flash memory any reference to a memory, storage, database, or other medium used herein may include non-volatile memory.
  • ROM read only memory
  • PROM programmable ROM
  • EPROM electrically programmable ROM
  • EEPROM electrically erasable programmable ROM

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请涉及一种基于音频接口的数据发送方法和接收方法、装置、存储介质和计算机设备,该基于音频接口的数据发送方法包括:第一终端获取待发送的目标数据;调用音频接口向第二终端发送阶梯跳跃信号;接收第二终端发送的频率信号,所述频率信号为所述第二终端识别出的所述阶梯跳跃信号中包含的频率信号;将所述目标数据转换成与接收到的频率信号相对应的音频数据,将所述音频数据通过所述音频接口发送至第二终端。上述的基于音频接口的数据发送和接收方法、装置、存储介质和计算机设备,可提高目标数据发送的完整性。

Description

基于音频接口的数据发送方法和接收方法
本申请要求于2017年09月11日提交中国专利局,申请号为2017108125583,发明名称为“基于音频接口的数据发送方法和接收方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及信息处理技术领域,特别是涉及一种基于音频接口的数据发送方法、装置、存储介质和计算机设备,以及一种基于音频接口的数据接收方法、装置、存储介质和计算机设备。
背景技术
随着技术的发展,传统普遍的在两个设备之间进行数据传输的方式,都是基于通用串行总线接口(uSB接口)进行的。然而USB接口通常在设备的系统中的基础权限非常大,因而会存在接收端在向发送端通USB接口传输目标数据时,会存在一些病毒数据,利用USB接口的权限,由发送端传输到接收端,或者由接收端传输到发送端,给发送端或者接收端带来较大的安全隐患。
基于音频接口的数据传输是一种单工传输方式,病毒数据无法在目标数据正在传输的过程中从音频接口中同时传输,因而其数据传输较为安全。但传统的基于音频接口的数据传输的方法,由于发送端和接收端可识别的音频的频段并不一致,导致接收端难以接收到完整的目标数据。
发明内容
基于此,有必要针对传统音频数据传输方法中,接收端难以接收到完整的目标数据的技术问题,提供一种基于音频接口的数据发送方法、装置、存储介质和计算机设备,以及一种基于音频接口的数据接收方法、装置、存储介质和计算机设备。
一种基于音频接口的数据发送方法,所述方法包括:第一终端获取待发送的目标数据;调用音频接口向第二终端发送阶梯跳跃信号;接收第二终端发送的频率信号,所述频率信号为所述第二终端识别出的所述阶梯跳跃信号中包含的频率信号;及将所述目标数据转换成与接收到的频率信号相对应的音频数据,将所述音频数据通过所述音频接口发送至第二终端。
一种基于音频接口的数据接收方法,所述方法包括:第二终端接收第一终端通过音频接口发送的阶梯跳跃信号;识别所述阶梯跳跃信号中包含的频率信号,将识别出的频率信号发送至第一终端;及接收第一终端通过音频接口发送的音频数据,所述音频数据为所述第一终端将第一目标数据转换成与所述第一终端接收到的频率信号相对应的音频数据。
一种基于音频接口的数据发送装置,所述装置包括:目标数据获取模块,用于获取待发送的目标数据;阶梯跳跃信号发送模块,用于调用音频接口向第二终端发送阶梯跳跃信号;第一阶梯跳跃信号解析模块,用于接收第二终端对所述阶梯跳跃信号进行解析后,返回的所识别出的所述阶梯跳跃信号中包含的频率信号;及目标数据发送模块,用于将所述目标数据转换成与接收到的频率信号相对应的音频数据,通过所述音频接口发送至第二终端。
一种基于音频接口的数据接收装置,所述装置包括:阶梯跳跃信号接收模块,用于接收第一终端通过音频接口发送的阶梯跳跃信号;第二阶梯跳跃信号解析模块,识别所述阶梯跳跃信号中包含的频率信号,将识别出的频率信号发送至第一终端;及音频数据接收模块,用于接收第一终端通过音频接口发送的音频数据,所述音频数据为所述第一终端将第一目标数据转换成与所述第一终端接收到的频率信号相对应的音频数据。
一个或多个存储有计算机可读指令的非易失性存储介质,所述计算机可读指令被一个或多个处理器执行时执行本申请各实施例描述的方法的步骤。
一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行本申请各实施例描述的方法的步骤。
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的 其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为一个实施例中基于音频接口的数据发送方法和接收方法的应用环境图;
图2为一个实施例中基于音频接口的数据发送方法的流程图;
图3为一个实施例中阶梯跳跃信号的示意图;
图4为一个实施例中将目标数据转换成与接收到的频率信号相对应的音频数据,将音频数据通过音频接口发送至第二终端的流程图;
图5为一个实施例中基于音频接口的数据接收方法的流程图;
图6为一个实施例中基于音频接口的数据传输方法的时序图;
图7为一个实施例中基于音频接口的数据发送装置的结构框图;
图8为另一个实施例中基于音频接口的数据发送装置的结构框图;
图9为一个实施例中基于音频接口的数据接收装置的结构框图;
图10为另一个实施例中基于音频接口的数据接收装置的结构框图;
图11为又一个实施例中基于音频接口的数据接收装置的结构框图;
图12为一个实施例中终端的内部结构图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述 各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一终端称为第二终端,且类似地,可将第二终端称为第一终端。第一终端和第二终端两者都是终端,但其不是同一终端。
本申请实施例所提供的基于音频接口的数据发送方法和接收方法,可应用于如图1所示的应用环境中。参考图1所示,第一终端110可通过音频接口传输设备与第二终端120相连。第一终端110可数据的发送端,相应的第二终端120即为数据的接收端。第一终端110上具有音频接口,可通过该音频接口向第二终端发送目标数据。同样的,第二终端120上也可具有音频接口,可通过该音频接口来接收第一终端发送的数据,并对该数据进行解析,识别出第一终端发送的目标数据。
在一个实施例中,如图2所示,提供了一种基于音频接口的数据发送方法,本实施例主要以该方法应用于如图1所示的第一终端110上为例来说明。该包括:
步骤S202,获取待发送的目标数据。
本实施例中,目标数据可为任意数据,比如可为音频数据、文本数据、视频数据、网页链接等等。第一终端可接收作用于目标数据的选取操作,将获取该选取操作用的目标数据。其中,目标数据可包含一个或多个。比如,可接收作用于一个或多个目标数据的选取操作。进一步地,当接收到对目标操作的发送指令时,则该选取的目标数据即为待发送的目标数据。该发送指令可为调用音频接口进行目标数据的发送的指令。
步骤S204,调用音频接口向第二终端发送阶梯跳跃信号。
本实施例中,阶梯跳跃信号中包含多个不同频率的频率信号。其中,该频率信号可为根据第一终端自身可识别出的时钟频率所确定的频率信号。举例来说,第一终端可识别的时钟频率信号范围为20Hz~196KHz,则可根据香农采样定理,生成频率范围处于20Hz~96KHz之间的频率信号。
在一个实施例中,第一终端可检测自身可识别的时钟频率范围,根据检测出的时钟频率确定第一终端自身可识别的频率信号范围,并从该频率信号范围 中选取出预设数量的不同频率,根据每个选取处理的频率的频率信号生成阶梯跳跃信号,并调用音频接口向第二终端发送阶梯跳跃信号。比如,可通过音频连接通讯设备(比音频连接线)调用该音频接口向第二终端发送阶梯跳跃信号。
可选地,第一终端可根据自身可识别的频率范围,从其中选取预设数量的离散数值,即选取出多个频率数值,按照一定的排列顺序,并保持每个频率数值一定的时长,形成一个频率信号,从而构成相应的阶梯跳跃信号。
步骤S206,接收第二终端发送的频率信号。
本实施例中,频率信号为第二终端识别出的阶梯跳跃信号中包含的频率信号。第二终端可对所接收到的阶梯跳跃信号进行解析,识别其中所包含的频率信号,并将所识别出的频率信号发送至第一终端。其中,第一终端可接收第二终端对该阶梯跳跃信号解析后,所识别出的频率信号。通过接收第二终端返回的所识别出的频率信号,可确定第一终端和第二终端均可识别出的共同频率信号。
举例来说,若第一终端发送的阶梯跳跃信号中包含的频率信号的范围分别为20Hz~96KHz,而第二终端可识别出该阶梯跳跃信号中频率范围为200Hz~90KHz的频率信号,并将所识别出的频率信号发送至第一终端。第一终端在接收到第二终端所识别出的频率信号信息后,可识别出其中包含的频率信号,若识别出其中的频率范围为200Hz~90KHz的频率信号,则可确定第一终端和第二终端均可识别的频率范围为200Hz~90KHz。
步骤S208,将目标数据转换成与接收到的频率信号相对应的音频数据,将音频数据通过音频接口发送至第二终端。
本实施例中,第一终端可按照音频接口的数据传输模式,将获取的目标数据转换成音频数据。其中,所转换成的音频数据的频率范围即为与该接收到的第二终端返回的频率信号相对应的频率范围的音频数据,使得所转换后的音频数据可被第二终端完全识别。并调用该音频接口,将转换后的音频数据发送至第二终端。
在一个实施例中,第一终端可根据所接收到的第二终端返回的频率信号,将目标数据调制成处于第一终端和第二终端均可识别的频率范围内的音频数 据。继续以上述举例来说明,比如可调制成频率范围为两者均可识别的200Hz~90KHz的音频数据,以使得第二接收终端可接收到完整的音频数据,并将其逆转换成目标数据,实现对目标数据的完整接收。
上述的基于音频接口的数据发送方法,第一终端通过向第二终端发送阶梯跳跃信号;并接收第二终端对阶梯跳跃信号进行解析后,返回的所识别出的阶梯跳跃信号中包含的频率信号。从而可根据接收到的频率信号确定第一终端和第二终端可识别出的频率范围,进而可将待发送的目标数据转换成处于该频率范围内的音频数据,以发送至第二终端,使得第二终端可接收到完整的音频数据,进而可根据完整的音频数据逆转换成第一终端待发送的目标数据,实现了通过音频接口进行目标数据完整接收。
在一个实施例中,调用音频接口向第二终端发送阶梯跳跃信号,包括:调用频频接口向第二终端发送多个周期的阶梯跳跃信号,每个周期的阶梯跳跃信号中包含第一终端可识别的多个频率信号。
本实施例中,第一终端可向第二终端发送多个周期的阶梯跳跃信号,其中,每个周期信号包含第一终端所选取出的可识别的多个频率信号。可选地,可按照所选取的多个频率信号按照一定的排列顺序或随机排列,每个频率的频率信号保持相应的时长,以构成该阶梯跳跃信号。比如可按照从小到大,或从大到小的排列顺序,构成相应的阶梯跳跃信号。或者可按照如图3所示的方式,从处于中间的某一频率的频率信号开始,由小到大再到小的排列方式,构成一个类似于正弦或余弦形式的阶梯跳跃信号,其中,每一阶梯上的频率信号为一个单一的频率。
通过发送多个周期的阶梯跳跃信号,可使得第二终端明确第一终端发送的频率范围,提高了对阶梯跳跃信号中的频率信号的识别的准确性。
如图3所示,为一个实施例中阶梯跳跃信号的示意图。以第一终端所识别的频率范围为20Hz~96KHz为例,可从该频率范围中平均或随机选取出预设数量的不同频率,每个选取出的频率可构成该阶梯跳跃信号中的其中一个阶梯上的频率信号。比如,可按照每隔1KHz左右,选取一个频率,作为阶梯跳跃信号中的一个阶梯上的频率信号。每个频率信号可保持相同或不同的时长,比如可 均保持1ms的时长。
在一个实施例中,选取的方式可为处于频率范围的中间区域选取较为稀疏、两端较为密集的形式来选取,以使得更准确地反映出第二终端可接收到的频率范围。比如,可在前20Hz~2KHz中,选取10个频率,在2KHz至80KHz中选取10个频率,在80KHz~96KHz中选取10个频率的方式,选取出30个不同频率的频率信号,构成一个周期的阶梯跳跃信号。
在一个实施例中,在上述步骤S206之前,还包括:根据接收到的频率信号生成第一数量的信道,将生成的信道信息通过音频接口发送至第二终端,每个信道中对应一个频段。
本实施例中,第一终端还可构建多个音频信道,每个信道对应一个不同范围的频段,该频段为处于接收到的频率信号所表示的频率范围之内的一个频段。每个信道用于传输相应范围的频段的音频数据。进一步地,每个频段的范围之间没有交集,这样即可实现每个信道之间对音频数据的叠加传输不会出现频段的重叠,使得每个信道下传输的音频数据可被完整区分开来。
信道的数量既可为固定的数量,也可为用户自定义的数量,还可为根据目标数据的大小和数量所自动确定的数量。比如说,当目标数据的数据量较小或数量较少时,可划分出相对较少的信道;当目标数据的数据量较大或数量较多时,可划分出相对较多的信道。
在一个实施例中,第一终端可根据接收到的频率信号确定出第一终端和第二终端均可识别出的频率范围,按照预设的频段划分模型划分成该第一数量的频段,将每个频段与其中一个之间建立对应关系,使得每个信道对应一个不同频段。其中所划分出的频段可为任意划分的形式。比如可均匀划分,以提高划分的效率。还可为按照靠近两端的区域,划分的频段范围较大,靠近中间的频段,划分的频段范围较小的原则进行划分,以提高音频数据传输的效率。
在一个实施例中,第一终端可接收用户输入的对信道划分信息,根据该信道划分信息确定信道的数量,以及每个信道对应的频段。其中,该信道划分信息中包含对信道的划分数量,或者还可进一步包含对每个划分出的信道对应的 频率范围,当包含该频率范围时,可将该频率范围设置为相应信道的划分范围,当不包含频率范围时,可根据该信道的划分数量,按照预设的频段划分模型计算出每个信道对应的频段。可选地,可将该划分数量和识别出的频率范围(比如上述的200Hz~80KHz)作为该频段划分模型的输入,第一终端对该模型进行计算后,输出每个信道对应的频段。
第一终端可将生成的信道信息发送至第二终端,该信道信息用于表示每个信道对应的频段,使得第二终端可根据接收到的信道信息获知第一终端所划分的信道,从而可按照该信道来解析出后续每个信道中的音频数据。信道信息中可包含每个被划分的信道对应的频段,可选地,可包含每个信道的起始频率和/或终止频率,使得根据该起始频率和/或终止频率获知每个信道对应的频段。
在一个实施例中,如图4所示,步骤S208包括:
步骤S402,将目标数据转换成第二数量的目标子数据。
本实施例中,第二数量与第一数量可相同或者不同,比如第二数量可大于或等于第一数量。可选地,第二数量也可根据待传输的目标数据的大小来确定,根据该目标数据的大小确定该第二数量。
第一终端可将目标数据拆分成第二数量的目标子数据,每份目标子数据的大小可相同或不同。终端可为每份目标子数据设置相应的编号信息,使得根据该编号信息,确定每份目标子数据在目标数据中的相应区域,从而可将每份目标子数据合成该目标数据。
步骤S404,为每份目标子数据分配相应的信道。
本实施例中,第一终端可针对每份目标子数据,分配其中一个信道,使得可根据所分配的信道来对该目标子数据进行传输。
在一个实施例中,第一终端可实时地对每个待传输的目标子数据,分配一个处于空闲状态的信道,以使得对分配了信道的目标子数据进行实时传输。其中,处于空闲状态的信道包括为被分配传输数据的信道和对要传输的数据已经传输完毕的、可用的信道。
步骤S406,将已分配信道的目标子数据转换成处于所分配的信道对应的频段范围内的音频子数据。
本实施例中,第一终端可对已分配了信道的目标子数据,按照该分配的信道对应的频段,将该目标子数据转换成处于该频段范围内的音频子数据,使得该信道可对该音频子数据进行数据的传输。
比如说,存在某一目标子数据X,其分配的信道为信道X,该信道X对应的频段为200Hz~2KHz,则可将目标子数据X转换成频率范围处于200Hz~2KHz的音频子数据X,使得将该音频子数据X通过该信道进行传输。
在一个实施例中,还可上述的步骤S402和步骤S404之前的执行顺序可不做限定。比如还可先确定每份目标子数据转换成对应的音频子数据,每份音频数据包含的频段处于其中一个信道对应的频段范围之内;再将每份音频子数据分配一个频段处于其中一个信道对应的频段范围之内信道。
步骤S408,调用音频接口将每个频段范围内的音频子数据传输至第二终端。
本实施例中,第一终端可调用音频接口,按照所划分的第二数量的信道,将与每个信道对应的频段范围内的音频子数据发送至第二终端。其中,可将多份不同频段范围的音频子数据同时发送,比如可选取与每一个频段范围对应的一份音频子数据,进行同时发送,以提高对目标数据的传输效率。
在一个实施例中,在检测到其中一个或多个信道中的音频子数据传输完毕后,可提取相同数量的一个或多个未发送的目标子数据,针对提取的目标子数据执行上述的步骤S404至步骤S408,使得每个信道中实时被分配了相应的传输数据,并向第二终端进行数据传输,直至目标子数据传输完毕。
本实施例中,通过进行信道的数量的划分,并对目标数据也进行相应数量的拆分,通过该划分的多个信道来同时传输查分后的目标子数据转化的音频子数据,提高了对目标数据的传输效率。
在一个实施例中,在步骤S408之后,还包括:接收第二终端对接收到的音频子数据的反馈信息,当反馈信息中包含传输失败的目标子数据的编号时,对传输失败的目标子数据重新分配信道,调用音频接口根据所重新分配的信道重新转换成音频子数据发送至第二终端。
本实施例中,第二终端可在接收到第一终端发送过来的音频子数据后,可按照对应的逆转换方式还原出每个目标子数据,并根据每个目标子数据中携带 的编号信息,生成相应的目标数据。并向第一终端发送相应的反馈信息,该反馈信息可为对音频子数据的是否成功接收的反馈信息,还可为是否成功还原出相应的目标数据的反馈信息。
当第二终端检测目标数据还原不完整或者还原失败时,可根据该每个接收到的编号信息,确定缺失的编号信息,将该缺失的编号信息携带至反馈信息中,发送至第一终端。
第一终端在接收到反馈信息中包含传输失败的目标子数据的编号信息后,可确定该编号信息对应的目标子数据,该目标子数据即为传输失败或第二终端接收不完整的目标子数据。可根据该目标子数据,重新执行上述的步骤S404至步骤S408,以提高对目标数据被第二终端成功接收的概率。
在一个实施例中,可将该待重新传输的目标子数据,分配至处于空闲状态的信道,将已重新分配信道的目标子数据转换成处于重新分配的信道对应的频段范围内的音频子数据,调用音频接口将每个频段范围内的音频子数据传输至第二终端。进一步地,被重新分配信道的音频目标子数据,所重新分配的信道可与之前所分配的信道不同,以避免是运来分配的信道出现故障的问题,提高重新传输后,被成功接收的概率。
在一个实施例中,步骤S208包括:将目标数据转换成与接收到的频率信号相对应的音频数据,将音频数据通过音频接口加密发送至第二终端。
本实施例中,第一终端还可对目标数据进行加密传输,其中,该加密方式可为已有的任意一种数据加密的方式,还可为第一终端根据用户的加密设置所生成的加密方式,对目标数据进行加密传输。
在一个实施例中,第一终端可提供相应的加密设置应用,接收用户选择或自定义设置的加密方式,对待传输的目标数据按照所设置的加密方式进行加密传输。比如,第一终端杆可提供多种加密方式,并接收用户对其中一种或几种加密方式的选择,根据所选择的一种或几种加密方式对目标数据进行加密传输,或者可提供相应的加密规则设置界面,接收用户在该界面上自定义设置的加密规则,根据该自定义设置的加密规则生成相应的加密方式,根据该生成的加密对目标数据进行加密传输。
在一个实施例中,第一终端可对目标数据或者音频数据中的任意一种或多种进行加密,使得形成加密数据,实现对目标数据进行加密传输。比如,可对目标数据以及音频数据均进行加密,即先对目标数据进行加密,根据加密后的目标数据生成音频数据,再对该生成的音频数据进行加密,通过加密后的音频数据通过该音频接口发送至第二终端。其中,音频数据和目标数据的加密方式还可相同或者不同,以进一步提高数据传输的安全性。
在一个实施例中,还可对目标音频数据、目标子数据、音频子数据等其中的任意一个或多个环节上的数据进行加密,以实现将目标数据加密传输至第二终端。其中,当某一环节上的目标数据被加密后,其后一环节上的数据是在前一加密后的数据的基础上生成的数据。
举例来说,可首先对目标数据进行加密,再根据加密后的目标数据拆分成第二数量的目标子数据,将该目标子数据进行加密,在将目标子数据转化成音频子数据后,可对该音频子数据进行加密,将加密后的音频子数据通过音频接口加密发送至第二终端。其中,每个环节上的加密方式可相同或不同,且进一步地,可对该部分或所有的目标子数据、音频子数据中进行加密,以提高对目标数据加密的多样化。
在一个实施例中,如图5所示,提供了一种基于音频接口的数据接收方法。本实施例主要以该方法应用于如图1所示的第二终端120为例来说明,该方法包括:
步骤S502,接收第一终端通过音频接口发送的阶梯跳跃信号。
本实施例中,第一终端发送的阶梯跳跃信号中包括多个不同频率的频率信号。其中,该频率信号可为根据第一终端自身可识别出的时钟频率所确定的频率信号。
步骤S504,识别阶梯跳跃信号中包含的频率信号,将识别出的频率信号发送至第一终端。
第二终端可对该阶梯跳跃信号进行解析,识别其中所包含的频率信号,将所识别出的频率信号发送至第一终端。可以理解地,第二终端可识别出的频率 信号可能包含该阶梯跳跃信号中的全部或部分频率信号。
第一终端通过第二终端发送的频率信号,并识别,可确定第一终端和第二终端两者可共同识别出的频率信号,进而可根据该频率信号确定两者可共同识别的频率范围。
在一个实施例中,第二终端可根据识别出的频率信号,生成与接收到的阶梯跳跃信号的形式相同或相似的阶梯跳跃信号(记第二终端形成的阶梯跳跃信号为第二阶梯跳跃信号),将该第二阶梯跳跃信号发送至第一终端,使得第一终端可接收该第二阶梯跳跃信号,按照相同或相应的形式识别出其中的频率信号,以确定两者共同识别的频率范围。
步骤S506,接收第一终端通过音频接口发送的音频数据,音频数据为第一终端将第一目标数据转换成与第一终端接收到的频率信号相对应的音频数据。
本实施例中,该第一目标数据即为第一终端获取的待发送的目标数据。该音频数据为:第一终端根据接收第二终端对阶梯跳跃信号进行解析后,返回的所识别出的阶梯跳跃信号中包含的频率信号;将待发送的目标数据转换成与接收到的频率信号相对应的音频数据。
同样地,第二终端可通过自身的音频接口接收第一终端发送的该音频数据。
在一个实施例中,上述方法还包括:将音频数据逆转换成第二目标数据。
其中,可在上述步骤S506之后执行将音频数据逆转换成第二目标数据。
第二终端可按照与第一终端的转换方式相对应的逆转换方式,还原出第一终端发送的目标数据,该第二目标数据即为所还原出的目标数据。
上述的基于音频接口的数据接收方法,第二终端通过接收第一终端通过音频接口发送的阶梯跳跃信号;识别阶梯跳跃信号中包含的频率信号,将识别出的频率信号发送至第一终端,从而使得第一终端可确定其与第二终端两者可共同识别的频率范围,进而使得第一终端可按照两者共同识别的频率范围来传输由目标数据转换成的音频数据。第二终端所接收到的音频数据由于其频率范围均在第二终端可识别的音频范围内,从而保证了接收到的音频数据的完整性,进而可根据接收到的音频数据你转换出第二目标数据,以提高对目标数据接收的完整性。
在一个实施例中,步骤S502包括:接收第一终端调用频频接口向第二终端发送多个周期的阶梯跳跃信号。
本实施例中,第一终端发送的阶梯跳跃信号为多个周期的阶梯跳跃信号,每个周期的阶梯跳跃信号中包含第一终端所选取出的可识别的多个频率信号。比每个周期的阶梯跳跃信号可为如图3所示。
在一个实施例中,步骤S504包括:识别每个周期的阶梯跳跃信号中包含的频率信号,将识别出的频率信号发送至第一终端。
可选地,第二终端可解析该多个周期的阶梯跳跃信号,识别其中所包含的频率信号,并根据识别出的频率信号同样生成与该阶梯跳跃信号相同或相似的第二阶梯跳跃信号,并向第一终端发送多个周期的第二阶梯跳跃信号,其中每个第二阶梯跳跃信号的形式可类似如3所示。
通过接收或发送多个周期的阶梯跳跃信号,可提高阶梯跳跃信号的接收端所识别出其中的频率信号全面性。
在一个实施例中,音频数据为第一终端将第一目标数据转换成的多个音频子数据形成的音频合成数据;在识别阶梯跳跃信号中包含的频率信号之后,还包括:接收第一终端通过音频接口发送的信道信息;将音频数据逆转换成第二目标数据,包括:根据信道信息识别音频合成数据中包含的多个音频子数据;将多个音频子数据逆转换成第二目标数据。
本实施例中,第一终端可按照上述的步骤S402~步骤S408向第二终端发送音频数据。第一终端接收到的第二终端发送的音频数据,即为该音频合成数据。该音频合成数据是由多个音频子数据通过对应引导同步通过音频接口传输所形成的音频合成数据。
第二终端还接收第一终端通过音频接口发送的信道信息,该信道信息中包含用于识别出每个信道对应的频段的信息,比如可包括每个信道的信道标识以及该信道对应的频段,或者每个信道的起始频率和/或终止频率。第二终端可根据该信道信息对该音频合成数据进行解析,以识别出形成该音频合成数据的多个音频子数据。
可选地,可根据该信道信息确定每个信道对应的频段,进而再识别出该音 频合成数据中处于每个频段中的数据块,所识别出的每个数据块即为形成该音频合成数据的音频子数据。
在一个实施例中,第二终端可根据识别出的音频子数据,按照与第一终端将目标子数据转换成音频子数据的转换方式对应的逆转换方式,将该音频子数据逆转换成相应的目标子数据,从而可根据该目标子数据生成第二目标数据。
在一个实施例中,第一终端在发送至第二终端的音频合成数据中,还包括每个音频子数据的编号信息。第二终端在识别出该音频子数据后,可根据该音频子数据的编号信息,确定对应目标子数据处于第一终端待发送的目标数据中的相应区域,从而根据该编号信息将生成的多份目标子数据合成第二目标数据。
在一个实施例中,上述基于音频接口的数据接收方法还包括:向第一终端发送对接收到的音频合成数据的反馈信息;当反馈信息中包含传输失败的目标子数据的编号时,继续接收第一终端调用音频接口发送的再次生成的音频合成数据;根据信道信息识别再次形成的音频合成数据中包含的多个音频子数据;根据所有的音频子数据逆转换成第二目标数据。
本实施例中,第二终端在逆转换出所有音频子数据对应的目标子数据后,可检测是否能根据所有接收到的目标子数据构成一个完整的目标数据,若是,则根据所有的目标子数据生成该第二目标数据。否则,可计算出缺失的目标子数据对应的编号信息,并向第一终端发送对接收到的音频合成数据的反馈信息,该反馈信息中包含缺失的目标子数据的编号,即传输失败的目标子数据的编号。并继续接收第一终端调用音频接口发送的再次生成的音频合成数据,重新识别该接收到的音频合成数据中包含的音频子数据,将其逆转换成目标子数据。并再次检测是否能根据所有接收到的目标子数据构成一个完整的目标数据,直至使得所接收到的所有的目标子数据可构成一个完整的目标数据,实现了对目标数据的成功接收。
举例来说,第一终端可将待发送的目标数据拆分成10份目标子数据,所拆分的目标子数据可设置1~10,这是个自然数的编号。第二终端可在完第一终端发送的所有的音频数据并解析出所有的目标子数据,检测所有目标子数据中携带的编号信息是否包括该编号1~10,即是否可完整构成该待发送的目标数据, 若检测到缺失其中的某一个或几个编号,则可向第二终端发送的反馈信息中携带相应缺失的编号,使得第一终端继续发送接收失败的目标子数据,以保持对目标数据接收的完整性。
在一个实施例中,上述基于音频接口的数据接收方法还包括:根据与第一终端的加密方式对应的解密方式,对所接收到的每份数据或者解析出的每份数据中,需要解密的数据进行解密。
本实施例中,第二终端可检测所接收到的每份数据或者解析出的每份数据是否需要解密,即是否被加密。该接收到的每份数据包括:接收到的第一终端发送的音频数据或音频合成数据等;解析出的每份数据包括:根据音频数据解析出的第二目标数据,根据每份音频子数据解析出的目标子数据,以及根据目标子数据生成的第二目标数据等。
第二终端在识别出相应数据被加密后,可按照与该加密方式对应的解密方式,还原出加密前的数据,并继续根据解密出的数据,实现对第一终端发送的目标数据的还原。
举例来说,若第一终端对每份或部分音频子数据进行了加密,则第二终端可在识别出音频子数据后,对该每份或部分音频子数据进行解密,根据解密后的音频子数据来逆转换成目标子数据,根据该目标子数据生成第二目标数据。若第一终端还直接对待发送的目标数据进行加密,则第二终端可对生成第二目标数据进行相应的解密,以得到第一终端发送的目标数据。
在一个实施例中,如图6所示,提供了一种基于音频接口的数据传输方法,本实施例以该方法应用于第一终端和第二终端,包括以下步骤:
步骤S601,第一终端获取待发送的目标数据。
本实施例中,第一终端可获取一个或多个音频数据、文本数据、视频数据、网页链接等,作为待发送的目标数据。并在检测到对获取的待发送的目标数据的发送指令时,则开始向第二终端发送待发送的目标数据。
步骤S602,调用音频接口向第二终端发送阶梯跳跃信号。
在一个实施例中,可调用频频接口向第二终端发送多个周期的阶梯跳跃信 号,每个周期的阶梯跳跃信号中包含第一终端可识别的多个频率信号。其中,该多个频率信号可构成第一终端可识别的频率范围。可选地,第一终端可根据自身可识别的频率范围,从其中选取预设数量的离散数值,即选取出多个频率数值。第一终端可按照一定的排列顺序,并保持每个频率数值一定的时长,形成一个频率信号,从而构成相应的阶梯跳跃信号。其中,一个周期的阶梯跳跃信号的示意图可如图3所示。
步骤S603,第二终端识别接收到的阶梯跳跃信号中包含的频率信号。
步骤S604,将识别出的频率信号发送至第一终端。
本实施例中,第二终端可对该阶梯跳跃信号进行解析,识别其中所包含的频率信号,将所识别出的频率信号发送至第一终端。可以理解地,第二终端可识别出的频率信号可能包含该阶梯跳跃信号中的全部或部分频率信号。
步骤S605,根据接收到的频率信号生成第一数量的信道。
步骤S606,将生成的信道信息通过音频接口发送至第二终端。
本实施例中,每个信道中对应一个频段,不同信道对应的频段之间没有交集,以保持每个信道之间对音频数据的叠加传输不会出现频段的重叠,使得每个信道下传输的音频数据可被完整区分开来。
在一个实施例中,可按照靠近两端的区域,划分的频段范围较大,靠近中间的频段,划分的频段范围较小的原则来划分信道,以提高音频数据传输的效率。举例来说,可按照以下的函数来构造相应的信道:
y=a(x-b)3-c
其中,y表示待构成的信道对应的频段的起始和/或终止的频率,x可取[1,2,3,...n]这n个自然数,该n-1即为被划分的信道数量,a、b、c分别为固定或可调的参数,a反映每个被划分的信道的频率范围的增长速率,c可反映出x=b或接近b时的频段变化,该频段的变化相对较为缓慢。b可设置为被划分的信道数量的中间数值。使得处于中间区域的频段划分的较为密集。
记x分别取[1,2,3,...n]时,根据该函数计算出的y分别为[y1,y2,y3,…yn]。则第1至第n-1个信道对应的频段分别为y1~y2、y2~y3、y3~y4…yn-1~yn。其中,y1~yn均分别位于第一终端和第二终端均可识别的频率范围之内。
信道信息中包含了用于识别每个引导对应的频段的信息。第一终端可将计算出的y1、y2、y3、…yn这n个频率数值发送至第二终端,使得第二终端可根据该n个频率数值,确定被划分的n-1个信道对应的频段分别为为y1~y2、y2~y3、y3~y4…yn-1~yn
步骤S607,将目标数据转换成第二数量的目标子数据。
在一个实施例中,第二数量可大于或等于第一数量,从而使得每个信道中均可被利用来传输一个或多个目标子数据。生成的每份目标子数据可被设置相应的编号,该编号可为1~m,m即为生成的目标子数据的第二数量。第一终端可在进行目标数据的发送之前或在发送的过程中,向第二终端发送该编号信息和/或第二数量,使得第二终端可获知相应的目标子数据的数量等信息。可选地,第一终端可同样将该编号信息和/或第二数量等目标数据拆分信息转换成音频数据,通过音频接口发送至第二终端。
步骤S608,为每份目标子数据分配相应的信道;将已分配信道的目标子数据转换成处于所分配的信道对应的频段范围内的音频子数据。
在一个实施例中,第一终端可将所拆分的目标子数据形成待传输的数据队列,从该队列中按顺序提取一个待传输的音频子数据,将该音频子数据分配至其中一个处于空闲状态的信道。可选地,可对所有处于空闲状态的信道均实时分配一个目标子数据,使其进行数据的实时传输。
针对被分配了信道的目标子数据,可将其转换成处于该信道对应的频段内的音频子数据。
步骤S609,调用音频接口将每个频段范围内的音频子数据形成音频合成数据发送至第二终端。
本实施例中,每个该多个信道可同步传输对应的音频子数据,同步传输的音频子数据即形成了该音频合成数据,使得第二终端接收到的数据为多个音频子数据形成的音频合成数据。
在一个实施例中,第一终端可将每个频段范围内所传输的音频子数据进行实时叠加,以形成音频合成数据,将其发送至第二终端。由于被叠加的各个音频子数据的初始相位和/或所属的频段不同,使得可通过带通滤波器解析出该音 频合成数据中的各个音频子数据。
步骤S610,第二终端根据信道信息识别音频合成数据中包含的多个音频子数据;将多个音频子数据逆转换成第二目标数据。
在一个实施例中,第二终端可根据识别出第一终端发送的目标数据拆分信息,获取其中的目标子数据的编号信息和/或第二数量。通过还识别出第一终端发送的信道信息,以识别每个信道对应的频段。进而可调用数字带通滤波器或者带通滤波功能,对接收到的音频合成数据进行频段的分离,以获取其中包含的多个音频子数据,并对每个音频子数据按照对应的逆转换方式逆转换成目标子数据。检测每个目标子数据中的编号信息和/或目标子数据的数量是否完整,若完整,则根据生成的所有的目标子数据合成该第二目标数据,以实现对目标数据的接收。
在一个实施例中,如图7所示,提供了一种基于音频接口的数据发送装置,该装置包括:
目标数据获取模块702,用于获取待发送的目标数据。
阶梯跳跃信号发送模块704,用于调用音频接口向第二终端发送阶梯跳跃信号。
第一阶梯跳跃信号解析模块706,用于接收第二终端发送的频率信号,频率信号为第二终端识别出的阶梯跳跃信号中包含的频率信号。
目标数据发送模块708,用于将目标数据转换成与接收到的频率信号相对应的音频数据,将音频数据通过音频接口发送至第二终端。
在一个实施例中,阶梯跳跃信号发送模块704还用于调用频频接口向第二终端发送多个周期的阶梯跳跃信号,每个周期的阶梯跳跃信号中包含第一终端可识别的多个频率信号。
在一个实施例中,如图8所示,该基于音频接口的数据发送装置还包括:
信道划分模块707,用于根据接收到的频率信号生成第一数量的信道,将生成的信道信息通过音频接口发送至第二终端,每个信道中对应一个频段。
目标数据发送模块708还用于将目标数据转换成第二数量的目标子数据; 为每份目标子数据分配相应的信道;将已分配信道的目标子数据转换成处于所分配的信道对应的频段范围内的音频子数据;调用音频接口将每个频段范围内的音频子数据传输至第二终端。
在一个实施例中,上述基于音频接口的数据发送装置还包括:反馈信息接收模块,用于接收第二终端对接收到的音频子数据的反馈信息。
目标数据发送模块708还用于当反馈信息中包含传输失败的目标子数据的编号时,对传输失败的目标子数据重新分配信道,调用音频接口根据所重新分配的信道重新转换成音频子数据发送至第二终端。
在一个实施例中,目标数据发送模块708还用于将目标数据转换成与接收到的频率信号相对应的音频数据,将音频数据通过音频接口加密发送至第二终端。
在一个实施例中,如图9所示,提供了一种基于音频接口的数据接收装置,该装置包括:
阶梯跳跃信号接收模块902,用于接收第一终端通过音频接口发送的阶梯跳跃信号。
第二阶梯跳跃信号解析模块904,用于识别阶梯跳跃信号中包含的频率信号,将识别出的频率信号发送至第一终端。
音频数据接收模块906,用于接收第一终端通过音频接口发送的音频数据,音频数据为第一终端将第一目标数据转换成与第一终端接收到的频率信号相对应的音频数据。
在一个实施例中,如图10所示,上述基于音频接口的数据接收装置还包括:
第二目标数据生成模块908,用于将音频数据逆转换成第二目标数据。
在一个实施例中,如图11所示,上述基于音频接口的数据接收装置还包括:
信道信息接收模块910,用于接收第二终端通过音频接口发送的信道信息。
第二目标数据生成模块908还用于根据信道信息识别音频合成数据中包含的多个音频子数据;将多个音频子数据逆转换成第二目标数据。
在一个实施例中,阶梯跳跃信号接收模块902还用于接收第一终端调用频频接口向第二终端发送多个周期的阶梯跳跃信号。
在一个实施例中,上述基于音频接口的数据接收装置还包括:反馈信息发送模块,用于向第一终端发送对接收到的音频合成数据的反馈信息。
音频数据接收模块906还用于当反馈信息中包含传输失败的目标子数据的编号时,继续接收第一终端调用音频接口发送的再次生成的音频合成数据;根据信道信息识别再次形成的音频合成数据中包含的多个音频子数据。
第二目标数据生成模块908还用于根据所有的音频子数据逆转换成第二目标数据。
在一个实施例中,上述基于音频接口的数据接收装置还包括:
解密模块,用于根据与第一终端的加密方式对应的解密方式,对所接收到的每份数据或者解析出的每份数据中,需要解密的数据进行解密。
上述音频接口的数据发送装置以及音频接口的数据接收装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。其中,网络接口可以是以太网卡或无线网卡等。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。该处理器可以为中央处理单元(CPU)、微处理器、单片机等。
在一个实施例中,本申请提供的基于音频接口的数据发送装置可以实现为一种计算机程序的形式,该计算机程序可在如图12所示的计算机设备上运行,该计算机设备的非易失性存储介质可存储组成该基于音频接口的数据发送装置的各个程序模块。比如可包括如图7所示的目标数据获取模块702、阶梯跳跃信号发送模块704、第一阶梯跳跃信号解析模块706、目标数据发送模块708以及图8中的信道划分模块707等。各个程序模块中包括计算机可读指令,该计算机可读指令用于使所述计算机设备执行本说明书中描述的本申请各个实施例的基于音频接口的数据发送方法中的步骤,例如,计算机设备可以通过如图5所示的基于音频接口的数据发送装置中的目标数据获取模块702获取待发送的目标数据;通过阶梯跳跃信号发送模块704调用音频接口向第二终端发送阶梯跳跃信号;通过第一阶梯跳跃信号解析模块706接收第二终端发送的频率信号,频率信号为第二终端识别出的阶梯跳跃信号中包含的频率信号;及通过目标数 据发送模块708将目标数据转换成与接收到的频率信号相对应的音频数据,将音频数据通过音频接口发送至第二终端。
在一个实施例中,本申请提供的基于音频接口的数据接收装置也可以实现为一种计算机程序的形式,该计算机程序也可在如图12所示的计算机设备上运行,该计算机设备的非易失性存储介质可存储组成该基于音频接口的数据接收装置的各个程序模块。比如可包括如图9所示的阶梯跳跃信号接收模块902、第二阶梯跳跃信号解析模块904、音频数据接收模块906以及图10中的第二目标数据生成模块908和图11中所示的信道信息接收模块910。各个程序模块中包括计算机可读指令,该计算机可读指令用于使所述计算机设备执行本说明书中描述的本申请各个实施例的基于音频接口的数据接收方法中的步骤,例如,计算机设备可以通过如图9所示的基于音频接口的数据接收装置中的阶梯跳跃信号接收模块902接收第一终端通过音频接口发送的阶梯跳跃信号;通过第二阶梯跳跃信号解析模块904识别阶梯跳跃信号中包含的频率信号,将识别出的频率信号发送至第一终端;及通过音频数据接收模块906接收第一终端通过音频接口发送的音频数据,音频数据为第一终端将第一目标数据转换成与第一终端接收到的频率信号相对应的音频数据。
在一个实施例中,提供了一个或多个包含计算机可读指令的非易失性计算机可读存储介质,当该计算机可读指令被一个或多个处理器执行时,使得该处理器执行上述各实施例中所提供的任意一种基于音频接口的数据发送方法和/或基于音频接口的数据接收方法的步骤。
在一个实施例中,提供了一种计算机设备,包括存储器及处理器,存储器中储存有计算机可读指令,该指令被处理器执行时,使得处理器执行上述任意一种基于音频接口的数据发送方法和/或基于音频接口的数据接收方法的步骤。
在一个实施例中,该计算机设备可包括但不限于手机、平板电脑、便携式笔记本或智能穿戴设备等终端。如图12所示,为一个实施例中终端的内部结构示意图。该终端包括通过系统总线连接的处理器、存储器和网络接口。其中,该终端的处理器用于提供计算和控制能力,支撑整个终端的运行。存储器用于存储数据、指令代码等,存储器上存储至少一个计算机可读指令,该计算机可 读指令可被处理器执行,以实现本申请实施例中提供的适用于终端的基于音频接口的数据发送方法和/或基于音频接口的数据接收方法。存储器可包括磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等非易失性存储介质。例如,在一个实施例中,存储器包括非易失性存储介质及内存储器。终端的非易失性存储介质存储有操作系统、数据库和计算机可读指令。该数据库中存储有用于实现以上各个实施例所提供的一种基于音频接口的数据发送方法和/或基于音频接口的数据接收方法相关的数据。该计算机可读指令可被处理器所执行,以用于实现以上各个实施例所提供的一种基于音频接口的数据发送方法和/或基于音频接口的数据接收方法。终端中的内存储器为非易失性存储介质中的操作系统、数据库和计算机可读指令提供高速缓存的运行环境。网络接口可以是以太网卡或无线网卡等,用于与外部的终端或服务器进行通信。
本领域技术人员可以理解,图12中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的终端的限定,具体的服务器可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。比如该终端还可包括通过系统总线连接的显示屏。该显示屏可以是触摸屏,比如为电容屏或电子屏,可展示待发送的目标数据等信息,还可通过接收作用于该触摸屏上显示的控件的点击操作,生成相应的指令。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成。该计算机可读指令可存储在存储器上,比如存储于一非易失性计算机可读取存储介质中。该指令被执行时,可实现包括如上述各方法的实施例的流程。
本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性存储器。合适的非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。

Claims (20)

  1. 一种基于音频接口的数据发送方法,其特征在于,所述方法包括:
    第一终端获取待发送的目标数据;
    调用音频接口向第二终端发送阶梯跳跃信号;
    接收第二终端发送的频率信号,所述频率信号为所述第二终端识别出的所述阶梯跳跃信号中包含的频率信号;及
    将所述目标数据转换成与接收到的频率信号相对应的音频数据,将所述音频数据通过所述音频接口发送至第二终端。
  2. 根据权利要求1所述的方法,其特征在于,在所述将所述目标数据转换成与接收到的频率信号相对应的音频数据,通过所述音频接口发送至第二终端之前,还包括:
    根据接收到的频率信号生成第一数量的信道,将生成的信道信息通过音频接口发送至第二终端,每个信道对应一个频段;
    所述将所述目标数据转换成与接收到的频率信号相对应的音频数据,所述音频数据通过所述音频接口发送至第二终端,包括:
    将所述目标数据转换成第二数量的目标子数据;
    为每份目标子数据分配相应的信道;
    将已分配信道的目标子数据转换成处于所分配的信道对应的频段范围内的音频子数据;及
    调用音频接口将每个频段范围内的音频子数据传输至第二终端。
  3. 根据权利要求1所述的方法,其特征在于,所述调用音频接口向第二终端发送阶梯跳跃信号,包括:
    调用频频接口向第二终端发送多个周期的阶梯跳跃信号,每个周期的所述阶梯跳跃信号中包含第一终端可识别的多个频率信号。
  4. 根据权利要求2所述的方法,其特征在于,在所述调用音频接口将每个频段范围内的音频子数据传输至第二终端之后,还包括:
    接收所述第二终端对接收到的音频子数据的反馈信息,当所述反馈信息 中包含传输失败的目标子数据的编号时,对传输失败的目标子数据重新分配信道,调用音频接口根据所重新分配的信道重新转换成音频子数据发送至第二终端。
  5. 根据权利要求1所述的方法,其特征在于,所述将所述音频数据通过所述音频接口发送至第二终端,包括:
    将音频数据通过音频接口加密发送至第二终端。
  6. 一种基于音频接口的数据接收方法,其特征在于,所述方法包括:
    第二终端接收第一终端通过音频接口发送的阶梯跳跃信号;
    识别所述阶梯跳跃信号中包含的频率信号,将识别出的频率信号发送至第一终端;及
    接收第一终端通过音频接口发送的音频数据,所述音频数据为所述第一终端将第一目标数据转换成与所述第一终端接收到的频率信号相对应的音频数据。
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:
    将所述音频数据逆转换成第二目标数据。
  8. 根据权利要求7所述的方法,其特征在于,所述音频数据为所述第一终端将第一目标数据转换成的多个音频子数据形成的音频合成数据;
    在所述识别所述阶梯跳跃信号中包含的频率信号之后,还包括:
    接收第二终端通过音频接口发送的信道信息;
    所述将所述音频数据逆转换成第二目标数据,包括:
    根据所述信道信息识别所述音频合成数据中包含的多个音频子数据;及
    将所述多个音频子数据逆转换成第二目标数据。
  9. 根据权利要求8所述的方法,其特征在于,在所述将所述多个音频子数据逆转换成第二目标数据之后,还包括:
    向第一终端发送对接收到的音频合成数据的反馈信息;
    当反馈信息中包含传输失败的目标子数据的编号时,继续接收第一终端调用音频接口发送的再次生成的音频合成数据;
    根据信道信息识别再次形成的音频合成数据中包含的多个音频子数据;及
    根据所有的音频子数据逆转换成第二目标数据。
  10. 根据权利要求6所述的方法,其特征在于,在所述接收第一终端通过音频接口发送的音频数据之后,还包括:
    根据与第一终端的加密方式对应的解密方式,对所接收到的每份数据或者解析出的每份数据中,需要解密的数据进行解密。
  11. 一种基于音频接口的数据发送装置,其特征在于,所述装置包括:
    目标数据获取模块,用于获取待发送的目标数据;
    阶梯跳跃信号发送模块,用于调用音频接口向第二终端发送阶梯跳跃信号;
    第一阶梯跳跃信号解析模块,用于接收第二终端发送的频率信号,所述频率信号为所述第二终端识别出的所述阶梯跳跃信号中包含的频率信号;及
    目标数据发送模块,用于将所述目标数据转换成与接收到的频率信号相对应的音频数据,将所述音频数据通过所述音频接口发送至第二终端。
  12. 一种基于音频接口的数据接收装置,其特征在于,所述装置包括:
    阶梯跳跃信号接收模块,用于接收第一终端通过音频接口发送的阶梯跳跃信号;
    第二阶梯跳跃信号解析模块,识别所述阶梯跳跃信号中包含的频率信号,将识别出的频率信号发送至第一终端;及
    音频数据接收模块,用于接收第一终端通过音频接口发送的音频数据,所述音频数据为所述第一终端将第一目标数据转换成与所述第一终端接收到的频率信号相对应的音频数据。
  13. 一个或多个存储有计算机可读指令的计算机可读非易失性存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
    获取待发送的目标数据;
    调用音频接口向第二终端发送阶梯跳跃信号;
    接收第二终端发送的频率信号,所述频率信号为所述第二终端识别出的所述阶梯跳跃信号中包含的频率信号;及
    将所述目标数据转换成与接收到的频率信号相对应的音频数据,将所述音频数据通过所述音频接口发送至第二终端。
  14. 根据权利要求13所述的存储介质,其特征在于,所述计算机可读指令被一个或多个处理器执行时,还使得所述一个或多个处理器执行以下步骤:
    根据接收到的频率信号生成第一数量的信道,将生成的信道信息通过音频接口发送至第二终端,每个信道对应一个频段;
    将所述目标数据转换成第二数量的目标子数据;
    为每份目标子数据分配相应的信道;
    将已分配信道的目标子数据转换成处于所分配的信道对应的频段范围内的音频子数据;及
    调用音频接口将每个频段范围内的音频子数据传输至第二终端。
  15. 一个或多个存储有计算机可读指令的计算机可读非易失性存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
    接收第一终端通过音频接口发送的阶梯跳跃信号;
    识别所述阶梯跳跃信号中包含的频率信号,将识别出的频率信号发送至第一终端;及
    接收第一终端通过音频接口发送的音频数据,所述音频数据为所述第一终端将第一目标数据转换成与所述第一终端接收到的频率信号相对应的音频数据。
  16. 根据权利要求15所述的存储介质,其特征在于,所述计算机可读指令被一个或多个处理器执行时,还使得所述一个或多个处理器执行以下步骤:
    将所述音频数据逆转换成第二目标数据。
  17. 一种计算机设备,包括存储器及处理器,所述存储器中储存有计算 机可读指令,所述指令被所述处理器执行时,使得所述处理器执行以下步骤:
    获取待发送的目标数据;
    调用音频接口向第二终端发送阶梯跳跃信号;
    接收第二终端发送的频率信号,所述频率信号为所述第二终端识别出的所述阶梯跳跃信号中包含的频率信号;及
    将所述目标数据转换成与接收到的频率信号相对应的音频数据,将所述音频数据通过所述音频接口发送至第二终端。
  18. 根据权利要求17所述的计算机设备,其特征在于,所述指令被所述处理器执行时,还使得所述处理器执行以下步骤:
    根据接收到的频率信号生成第一数量的信道,将生成的信道信息通过音频接口发送至第二终端,每个信道对应一个频段;
    将所述目标数据转换成第二数量的目标子数据;
    为每份目标子数据分配相应的信道;
    将已分配信道的目标子数据转换成处于所分配的信道对应的频段范围内的音频子数据;及
    调用音频接口将每个频段范围内的音频子数据传输至第二终端。
  19. 一种计算机设备,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述指令被所述处理器执行时,使得所述处理器执行以下步骤:
    接收第一终端通过音频接口发送的阶梯跳跃信号;
    识别所述阶梯跳跃信号中包含的频率信号,将识别出的频率信号发送至第一终端;及
    接收第一终端通过音频接口发送的音频数据,所述音频数据为所述第一终端将第一目标数据转换成与所述第一终端接收到的频率信号相对应的音频数据。
  20. 根据权利要求19所述的计算机设备,其特征在于,所述指令被所述处理器执行时,还使得所述处理器执行以下步骤:
    将所述音频数据逆转换成第二目标数据。
PCT/CN2017/108522 2017-09-11 2017-10-31 基于音频接口的数据发送方法和接收方法 Ceased WO2019047348A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710812558.3A CN107682095B (zh) 2017-09-11 2017-09-11 基于音频接口的数据发送方法和接收方法
CN201710812558.3 2017-09-11

Publications (1)

Publication Number Publication Date
WO2019047348A1 true WO2019047348A1 (zh) 2019-03-14

Family

ID=61134806

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/108522 Ceased WO2019047348A1 (zh) 2017-09-11 2017-10-31 基于音频接口的数据发送方法和接收方法

Country Status (2)

Country Link
CN (1) CN107682095B (zh)
WO (1) WO2019047348A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111756741B (zh) * 2020-06-24 2023-06-13 安徽听见科技有限公司 一种数据传输方法、装置、设备及存储介质
CN118869684A (zh) * 2024-09-27 2024-10-29 之江实验室 一种串口文件传输系统、方法、存储介质及设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594382A (zh) * 2012-02-10 2012-07-18 钱袋网(北京)信息技术有限公司 通信频率调整方法及终端设备
US20130108083A1 (en) * 2011-11-02 2013-05-02 Quanta Computer Inc. Audio processing system and adjusting method for audio signal buffer
CN106028219A (zh) * 2016-07-06 2016-10-12 歌尔股份有限公司 信号转换电路以及电子设备
CN106209314A (zh) * 2016-07-06 2016-12-07 歌尔股份有限公司 数据传输方法、设备及音频设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130108083A1 (en) * 2011-11-02 2013-05-02 Quanta Computer Inc. Audio processing system and adjusting method for audio signal buffer
CN102594382A (zh) * 2012-02-10 2012-07-18 钱袋网(北京)信息技术有限公司 通信频率调整方法及终端设备
CN106028219A (zh) * 2016-07-06 2016-10-12 歌尔股份有限公司 信号转换电路以及电子设备
CN106209314A (zh) * 2016-07-06 2016-12-07 歌尔股份有限公司 数据传输方法、设备及音频设备

Also Published As

Publication number Publication date
CN107682095B (zh) 2019-12-13
CN107682095A (zh) 2018-02-09

Similar Documents

Publication Publication Date Title
US11086825B2 (en) Telemetry system for a cloud synchronization system
US20180270046A1 (en) Dynamic Channels in Secure Queries and Analytics
TW201730784A (zh) 資料同步方法、裝置及系統
CN110147685B (zh) 数据验证方法、系统、装置及设备
CN110245518B (zh) 一种数据存储方法、装置及设备
US11360737B2 (en) Method and apparatus for providing speech service
CN110162523B (zh) 数据存储方法、系统、装置及设备
CN105516139A (zh) 一种网络数据的传输方法、装置及系统
CN112306872A (zh) 在生产环境中定位源代码的方法、装置及计算机设备
CN113242244B (zh) 数据传输方法、装置和系统
WO2019047348A1 (zh) 基于音频接口的数据发送方法和接收方法
CN113467989A (zh) 快照创建与读取方法、设备及存储介质
US11678092B2 (en) Method, apparatus and system for transmitting OMCI messages
CN116401683A (zh) 一种模型训练方法、装置、存储介质以及电子设备
CN109254994B (zh) 一种数据同步的方法和装置
CN108964786A (zh) 一种声波信号编码、解码的方法及装置
CN117376344B (zh) 数据传输方法、电子设备和计算机可读存储介质
CN113572611B (zh) 密钥处理方法、装置及电子装置
CN117032706A (zh) 一种基于Jenkins的代码动态集成方法及装置
CN113204344B (zh) 前端开发的信息获取方法及装置
US20260003817A1 (en) Communication method, system, and apparatus, and electronic device
CN112307010B (zh) 一种数据存储方法、装置及设备
HK40047904A (zh) 数据验证方法、系统及设备
CN121957534A (zh) 随机数生成方法、系统、电子设备、可读存储介质及芯片
HK40044733B (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: 17924005

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 25.09.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17924005

Country of ref document: EP

Kind code of ref document: A1