CN107437967A - Data transmission method based on sound wave, send equipment and receiving device - Google Patents

Data transmission method based on sound wave, send equipment and receiving device Download PDF

Info

Publication number
CN107437967A
CN107437967A CN201710428205.3A CN201710428205A CN107437967A CN 107437967 A CN107437967 A CN 107437967A CN 201710428205 A CN201710428205 A CN 201710428205A CN 107437967 A CN107437967 A CN 107437967A
Authority
CN
China
Prior art keywords
data
acoustic signals
frequency
converted
group
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.)
Pending
Application number
CN201710428205.3A
Other languages
Chinese (zh)
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.)
Shenzhen Step Information Technology Co Ltd
Original Assignee
Shenzhen Step Information Technology 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 Shenzhen Step Information Technology Co Ltd filed Critical Shenzhen Step Information Technology Co Ltd
Priority to CN201710428205.3A priority Critical patent/CN107437967A/en
Publication of CN107437967A publication Critical patent/CN107437967A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B11/00Transmission systems employing sonic, ultrasonic or infrasonic waves

Abstract

The embodiment of the present invention provides a kind of data transmission method based on sound wave, including:Data message to be sent is converted into binary data;The binary data is converted into one group of acoustic signals, wherein, one group of acoustic signals are made up of multiple acoustic signals no more than two frequency bins;Play one group of acoustic signals.It can be used in performing the nonvolatile computer storage media of the above method, transmission equipment and receiving device the invention also discloses a kind of.The embodiment of the present invention can reduce amount of calculation, reduce the performance requirement to equipment, reduce the requirement to spectral bandwidth.

Description

Data transmission method based on sound wave, send equipment and receiving device
Technical field
The present invention relates to data transmission method, more particularly to a kind of data transmission method based on sound wave, send equipment and Receiving device.
Background technology
With the development of science and technology, the progress of people's living standard, smart home has come into the life of people.Smart home is Using house as platform, comprehensive wiring technology, the network communications technology, security precautions technology, automatic control technology, audio frequency and video skill are utilized Art integrates the relevant facility of life staying idle at home, builds the management system of efficient housing facilities and family's schedule affairs, lifts house Security, convenience, comfortableness, artistry are occupied, and realizes the living environment of environmental protection and energy saving.
Data transfer of the node device in smart home using loudspeaker and microphone completion to each other at present, but it is existing Data transmission scheme in, the frequency quantity of data message conversion is more, it is necessary to do complete Fourier transformation, therefore amount of calculation Greatly, the requirement for equipment performance is higher, and scheme needs dependent symbols table technology, therefore also has for spectral bandwidth stronger It is required that.
The content of the invention
The embodiment of the present invention provides a kind of data transmission method based on sound wave, sends equipment and receiving device, to solve Certainly computationally intensive, for equipment performance requirement is higher in data transmission procedure in the prior art, also have for spectral bandwidth compared with The defects of strong demand, realize and reduce amount of calculation, reduce the requirement to equipment performance, reduce the requirement to spectral bandwidth.
In a first aspect, the embodiment of the present invention provides a kind of data transmission method based on sound wave, applied to equipment is sent, wrap Include:
Data message to be sent is converted into binary data;
The binary data is converted into one group of acoustic signals, wherein, one group of acoustic signals are by no more than two Multiple acoustic signals composition of frequency;
Play one group of acoustic signals.
Second aspect, the embodiment of the present invention also provide a kind of data transmission method based on sound wave, applied to receiving device, Including:
One group of acoustic signals of collection in real time;Wherein, one group of acoustic signals are by multiple sound waves no more than two frequency bins Signal forms;
One group of acoustic signals are converted into binary data;
The binary data is converted into corresponding data message.
The third aspect, the embodiment of the present application additionally provide a kind of nonvolatile computer storage media, are stored with computer Executable instruction, the computer executable instructions are used to perform transmission side data of the application any of the above-described based on sound wave Method.
Fourth aspect, the embodiment of the present application additionally provide a kind of transmission equipment, including:At least one processor;And deposit Reservoir;Wherein, the memory storage have can by the program of at least one computing device, the instruction by it is described at least One computing device, so that at least one processor is able to carry out the application any of the above-described and is applied to send equipment Data transmission method based on sound wave.
5th aspect, the embodiment of the present application additionally provide a kind of receiving device, including:At least one processor;And deposit Reservoir;Wherein, the memory storage have can by the program of at least one computing device, the instruction by it is described at least One computing device, so that at least one processor is able to carry out the application any of the above-described applied to receiving device Data transmission method based on sound wave.
To sum up, a kind of data transmission method based on sound wave provided in an embodiment of the present invention, transmission equipment and receiving device, Can be by the way that data message be converted into one group of multiple acoustic signals for being no more than two frequency bins, and complete to set by acoustic signals Data transfer between standby.Because the frequency included by the acoustic signals of data message conversion in the embodiment of the present invention is no more than two It is individual, therefore when carrying out the operation of data message converting acoustic waves signal, the energy balane of two frequency bins is only done, so can reduce Amount of calculation during data message converting acoustic waves signal, and then the requirement to equipment performance can be reduced, and data message is changed Be binary data, without symbolization table technology, and then reduce the requirement to spectral bandwidth.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with root Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of step flow chart of the data transmission method embodiment one based on sound wave of the present invention;
Fig. 2 is a kind of step flow chart of the data transmission method embodiment two based on sound wave of the present invention;
Fig. 3 is a kind of step flow chart of the data transmission method specific example based on sound wave of the present invention;
Fig. 4 is a kind of binary system sign picture of the present invention;
Fig. 5 is a kind of step flow chart of the data transmission method embodiment three based on sound wave of the present invention;
Fig. 6 is a kind of step flow chart of the example of the data transmission method based on sound wave of the present invention;
Fig. 7 is a kind of step flow chart of data transmission method schematic diagram based on sound wave of the present invention;
Fig. 8 is a kind of structural representation for sending equipment (receiving device) of one embodiment of the invention;
Fig. 9 is a kind of structural representation for sending equipment (receiving device) of one embodiment of the invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Reference picture 1, a kind of step flow chart of the data transmission method embodiment one based on sound wave of the present invention is shown, its In, specifically include:
Step 101, data message to be sent is converted into binary data;
The embodiment of the present invention can apply to be configured with the equipment of loudspeaker, data message is converted into one group not More than multiple acoustic signals of two frequency bins, and by the data transfer of acoustic signals completion equipment room, because the present invention is implemented The frequency included by acoustic signals that data message is changed in example is no more than two, therefore is carrying out data message converting acoustic waves letter Number operation when, only do the energy balane of two frequency bins, so amount of calculation when can reduce data message converting acoustic waves signal, Therefore the requirement to equipment performance can be reduced, and what is changed is binary data, without symbolization table technology, and then is dropped The low requirement to spectral bandwidth.
Step 102, the binary data is converted into one group of acoustic signals, wherein, one group of acoustic signals are not by Multiple acoustic signals more than two frequency bins form;
In the embodiment of the present invention, each data in above-mentioned binary data can correspondingly be converted to a sound wave letter Number, namely a binary data can correspondingly be converted to one group of acoustic signals including multiple acoustic signals.Wherein, binary system Data include data " 1 " and data " 0 ", the acoustic signals that data " 1 " can be with corresponding conversion into the first frequency, and data " 0 " can be with Corresponding conversion is into the acoustic signals of the second frequency, and above-mentioned first frequency can be higher than the second frequency.
It is described above that the binary data is converted into one group of acoustic signals in a kind of alternative embodiment of the present invention Step, it can specifically include:
Data " 1 " in the binary data are converted to the acoustic signals of the first frequency, by the binary data In data " 0 " be converted to the acoustic signals of the second frequency, wherein first frequency is different from the height of second frequency.
In a kind of alternative embodiment of the present invention, the above-mentioned data " 1 " by the binary data are converted to the first frequency The acoustic signals of point, the step of data " 0 " in the binary data are converted into the acoustic signals of the second frequency, specifically may be used With including:
Contact potential series corresponding to " 1 " is obtained, and contact potential series generates the acoustic signals of the first frequency according to corresponding to " 1 ";
Contact potential series corresponding to " 0 " is obtained, and contact potential series generates the acoustic signals of the second frequency according to corresponding to " 0 ";
Wherein, the contact potential series is one group of voltage according to the frequency pre-generatmg.
In the embodiment of the present invention, binary data can be converted to corresponding contact potential series, and pass through the equipment such as loudspeaker Contact potential series is converted into acoustic signals." 1 " and " 0 " corresponding two different contact potential series in binary data, this two Different contact potential series can according to corresponding to " 1 " and " 0 " different frequent points pre-generatmg, and cache in a device.
In a kind of embodiment of the present invention, included according to the step of frequency pre-generatmg contact potential series:
Step A1, the magnitude of voltage number I of pre-generatmg is determined;
Step A2, the frequency according to corresponding to preset sample rate and the first frequency determines I magnitude of voltage, the I electricity successively Pressure value forms contact potential series corresponding to the first frequency;
Step A3, the frequency according to corresponding to preset sample rate and the second frequency determines I magnitude of voltage, the I electricity successively Pressure value forms contact potential series corresponding to the second frequency.
In the embodiment of the present invention, those skilled in the art can determine pre-generatmg with preset sample rate and preset baud rate Magnitude of voltage number I, wherein, above-mentioned preset sample rate and preset baud rate can be set on demand by those skilled in the art, be kept The ratio of preset sample rate and preset baud rate is integer, such as:It is 16000 to be arranged to sample rate, baud rate 400, The magnitude of voltage number I for then determining to need pre-generatmg is 40;The I magnitude of voltage can generate I sonic wave amplitude by loudspeaker, should I sonic wave amplitude can represent an acoustic signals.
In the embodiment of the present invention, magnitude of voltage corresponding to frequency can be determined by below equation (one):
32767*sin (2*pi*freq*i/samplerate) (formula one)
Wherein, above-mentioned pi can represent pi, and above-mentioned freq can represent the frequency corresponding to frequency, such as:First Frequency corresponding to frequency is 3300, and frequency corresponding to the second frequency is 1600, above-mentioned i represents above-mentioned magnitude of voltage in contact potential series In index (i can successively value be 0 to I-1), above-mentioned samplerate can represent sample rate, typically be determined by hardware, Such as:8k or 16k;In the embodiment of the present invention, when frequency is the first frequency, can according to corresponding to the first frequency frequency according to It is secondary to calculate the I magnitude of voltage that above-mentioned index is 0 to I-1, contact potential series corresponding to the first frequency is formed by the I magnitude of voltage; When frequency is the second frequency, can the frequency according to corresponding to the second frequency calculate successively above-mentioned index be 0 to I-1 I voltage Value, contact potential series corresponding to the second frequency is formed by the I magnitude of voltage.
Step 103, play one group of acoustic signals.
In the embodiment of the present invention, the above-mentioned one group of acoustic signals of loop play, until playing duration reaches preset time period, or After the prompt tone being properly received for receiving receiving device transmission, stop playing above-mentioned one group of acoustic signals.
A kind of data transmission method based on sound wave provided in an embodiment of the present invention, can be by the way that data message be converted to One group of multiple acoustic signals for being no more than two frequency bins, and pass through the data transfer of acoustic signals completion equipment room.Due to this hair The frequency included by acoustic signals that data message is changed in bright embodiment is no more than two, therefore is carrying out data message conversion During the operation of acoustic signals, the energy balane of two frequency bins is only done, so when can reduce data message converting acoustic waves signal Amount of calculation, and then the requirement to equipment performance can be reduced, and data message conversion is binary data, without using symbol Number table technology, and then reduce the requirement to spectral bandwidth.
Reference picture 2, a kind of data transmission method embodiment two based on sound wave of the embodiment of the present invention is shown, specifically may be used With including:
Step 201, according to preset piecemeal rule to the data message carry out piecemeal processing, obtain at least two data Block;
In the embodiment of the present invention, above-mentioned preset piecemeal rule can be determined on demand by those skilled in the art, such as:Will be upper State data message and cut into 64 bit data blocks, when tail end is less than 64, does 64 processing, data message is divided into more numbers According to block.
Step 202, the interpolation data block sum mark before the data message;
In the embodiment of the present invention, above-mentioned data block total number mark can be used for identifying the block number that the data message is cut altogether, Such as:Data message cuts into 6 pieces, then above-mentioned data block total number mark can identify the data message and be cut into 6 pieces.
Step 203, it is that each data block at least adds lead code and rear leading code;
In the embodiment of the present invention, each data block of data message cutting adds lead code and rear leading code, wherein, it is leading Code adds the head end in data block, for the beginning of the data message in identification data block, tail of the rear leading code addition in data block End, the ending for the data message in identification data block.In fact, it can also be inserted between data message in above-mentioned data block Space code, for identifying the boundary of each word.
Step 204, data message to be sent is converted into binary data;
It should be noted that data message in the embodiment of the present invention for the addition of data block total number mark, lead code with And the data message after rear leading code, step 204 is similar to step 103 with above-mentioned steps 101 to step 206 in the embodiment of the present invention Seemingly, the embodiment of the present invention repeats no more to this.
Step 205, the binary data is converted into one group of acoustic signals, wherein, one group of acoustic signals are not by Multiple acoustic signals more than two frequency bins form;
Step 206, play one group of acoustic signals.
The present invention a kind of alternative embodiment in, it is above-mentioned by data message to be sent be converted to binary data it Before, methods described also includes:
Step B1, the data message is cut according to cutting rule, obtains at least one data block;
Step B2, it is that the data message establishes index according at least one data block.
In the embodiment of the present invention, above-mentioned cutting rule can specifically be determined on demand by those skilled in the art, such as:Number According to 64 bit data blocks are cut into, tail end does 64 processing, every piece of index for adding 8 positions less than 64.The data message is established After index, after enabling to receiving device to receive data message, receiving device is arranged the data message of reception according to index information Sequence so that receiving device still being capable of display data information in the correct order.
The present invention a kind of alternative embodiment in, it is above-mentioned by data message to be sent be converted to binary data it Before, methods described can also include:Data message is encrypted, to ensure the security of data transfer.
The present invention a kind of alternative embodiment in, it is above-mentioned by data message to be sent be converted to binary data it Before, methods described can also include:Check code is added in data message, to cause receiving device receives above-mentioned data to believe After breath, data message is verified according to check code, to ensure the accuracy of data transfer.
To make those skilled in the art be better understood from the embodiment of the present invention, below by way of shown in Fig. 3 based on sound wave Data transmission method specific example is illustrated to the embodiment of the present invention:
Step 301, the information that needs are sent are encrypted, the data message after being encrypted.
Step 302, data message is cut into 64 bit data blocks, tail end does 64 processing, every piece plus 8 positions less than 64 Index.If index can be used for ensureing that receiving terminal still can be correctly by suitable after data out of order arrival receiving terminal Sequence display data information.
Step 303, check code is added for data message, whether just check code can cause receiving terminal to be used for verifying data Really.
Step 304, piecemeal processing is carried out to data message, obtain bulk, then bulk is being cut to obtain fritter, bulk Lead code and rear leading code are separately added into, wherein lead code is used for the beginning of mark data;Leading code is used for the ending of mark data afterwards, Space code can be added respectively among fritter, for identifying the boundary of each word.
Step 305, according to sound generating algorithm, certain high frequency is defined as 1, low frequency is defined as 0, and data signal is converted into Acoustic signals.
Step 306, acoustic signals are passed to loudspeaker, loop play, untill time-out, or receive receiving terminal The prompt tone for being properly received data message played.
The embodiment of the present invention is illustrated below by way of another specific example:
Assuming that data message is " hello, world!", 64 are carried out to data and is separated, obtains block [hello, w], [orld!000], wherein for last block less than 64, blank goes out benefit 0.To data add 8 position indexes, obtain [1] [hello, w],[2][orld!000].Identifying code is added, is obtained [1] [checksum] [hello, w], [2] [checksum] [" orld!"].Increase data block total number mark, for describing data block number, obtain [head] [1] [checksum] [hello, w],[2][checksum]["orld!"];Lead code, rear leading code, and space code are added, and changes into 2 binary datas, reference picture Binary system sign picture shown in 4.Binary data is encoded, coding rule how under, 1 changes into the first frequency, and 0 changes into Two frequencies, each bit calculate a conversion points (magnitude of voltage number) according to sample rate and baud rate, for example sample rate is 16000, baud rate is 400, then each bit changes into 16000/400=40 point.The value each put is counted according to formula (one) Calculate;After magnitude of voltage generates, loudspeaker is passed to, after make it that opposite end is collected by microphone, is calculated by Goertzel Method restores binary system (0,1) information, and binary data is reduced into data message.
A kind of data transmission method based on sound wave provided in an embodiment of the present invention, by data before data message is sent Information stripping and slicing, the interpolation data block sum mark before data message, and lead code and rear leading code are added for each data block, so that Data message is converted to when being sent to receiving device after acoustic signals, receiving device can identify according to lead code and rear leading code Go out data block, and the number for determining data block is identified by data block total number, and then allow to by the data block of reception Number determines that whether the data message that receives is accurate, to avoid being to lose data message in the transmittance process of sound wave, causes to count According to information transfer accuracy rate it is low the problem of, and then the accuracy of data transfer can be improved.
Reference picture 5, a kind of data transmission method embodiment three based on sound wave of the embodiment of the present invention is shown, the present invention is in fact Apply example and be applied to receiving device, can specifically include:
Step 501, in real time one group of acoustic signals of collection;Wherein, one group of acoustic signals are by no more than two frequency bins Multiple acoustic signals compositions;
In the embodiment of the present invention, receiving device can be constantly in listening state, have sound wave letter when listening to transmission equipment Number transmission when, can pass through microphone etc. have sound collection function equipment gather one group of acoustic signals in multiple sound waves Signal.
Step 502, one group of acoustic signals are converted into binary data;
, can be by multiple acoustic signals in this group after receiving device receives acoustic signals in the embodiment of the present invention Binary data is converted to successively, wherein it is possible to restore 0,1 information, algorithmic formula such as formula by Goertzel algorithm (2):
S [n]=x [n]+2cos (w0) s [n-1]-s [n-2] (formula two)
Wherein, above-mentioned s [n] can represent the value of energy intensity;X [n] can represent the acoustic signals that microphone collects Sequence;Cos (w0) can represent the frequency coefficient values that needs identify, the frequency coefficient values can pass through calculation formula:2*cos (2*pi*freq/samplerate) is calculated;s[n-1],s[n-2]:It is a part for iteration, when n-1 and n-2 is less than 0 0 processing is done, example is as follows:S [0]=x [0]+2cos (w0) s [- 1]-s [- 2], s [1]=x [1]+2cos (w0) s [0]-s [- 1], s [2]=x [2]+2cos (w0) s [1]-s [0].
In the embodiment of the present invention, an acoustic signals can be reduced to energy intensity value corresponding to one group, according to this group Energy intensity value is that can determine that the binary number of the acoustic signals, such as:If the acoustic signals that one group of energy intensity is formed In the presence of three crests, then it is assumed that the acoustic signals correspond to binary number " 1 ", if the acoustic signals that one group of energy intensity is formed In the presence of two crests, then it is assumed that the acoustic signals correspond to binary number " 0 ".
It is appreciated that above three crest corresponds to binary number " 1 ", it is only this hair that two crests, which correspond to binary number " 0 ", A kind of example of bright embodiment, in fact, the corresponding relation of above-mentioned acoustic signals and binary data can be by art technology Personnel voluntarily determine as desired, such as:Five crests correspond to binary number " 1 ", and six crests correspond to binary number " 0 " etc. Deng the embodiment of the present invention is not specifically limited to this.
Step 503, the binary data is converted into corresponding data message.
In the embodiment of the present invention, the binary data that above-mentioned acoustic signals are changed is converted into corresponding data message.
The present invention a kind of alternative embodiment in, it is above-mentioned by one group of acoustic signals be converted to binary data it Afterwards, methods described can also specifically include:
Step C1, data block total number mark, lead code and the rear leading code in the binary data group are identified;
Step C2, the binary data blocks number received is confirmed according to the lead code and rear leading code;
Step C3, identified data block number phase is identified in the binary data blocks number and the data block total number Meanwhile the index mark carried according to the binary data is ranked up to the binary data group.
In the embodiment of the present invention, above-mentioned lead code and rear leading code are specific binary data sequence, as shown in Figure 4: Lead code is 20bit binary number " 1 ", and rear leading code is 10bit binary number " 0 ".The embodiment of the present invention can pass through number Data block number is determined according to block sum mark.
Data block can be determined by the lead code and rear leading code of identification, and then the number of data block can be determined, in number According to data block number corresponding to number and the data block total number mark of block it is identical when, the data that illustrate to receive be it is complete, now Can according to carried in binary data index mark binary data is resequenced, with ensure data message according to Correct order is shown, and then ensures the accuracy of data message, and the prompt tone that played data is properly received simultaneously, to send out After sending equipment to receive prompt tone, stop the transmission of acoustic signals;It is corresponding with data block total number mark in the number of data block When data block number differs, illustrate that data message there are lost part data in transmitting procedure, therefore the data message received is not Accurately, the binary data is abandoned, continues to acoustic signals.
The embodiment of the present invention can verify after acoustic signals are converted into binary data to binary data, If data have no problem by verification, binary data is reduced to corresponding data message, if data are not over school Test, abandon the data, ensure the accuracy of data with this.
To make those skilled in the art be better understood from the embodiment of the present invention, sound is based on below by way of one kind shown in Fig. 6 The example of the data transmission method of ripple is illustrated to the embodiment of the present invention:
Step 601, receiving device microphone listen to send equipment have acoustic signals send (such as:Receive hair The transmission prompt tone of sending end) when, gather acoustic signals;
Step 602, according to Fast Fourier Transform (FFT) and Goertzel algorithm, analyze frequency corresponding to acoustic signals, also Original goes out original binary data;
Step 603, judge whether the lead code of data signal is consistent with value with our quantity predetermined in advance, if differ Cause, directly abandon, if unanimously, data are constantly received, until encountering rear leading code;
Step 604, start the data signal that verification recovers, if data signal has no problem by verification, continue executing with Step 605, otherwise abandon.
Step 605, start to the data in data signal according to index order, while confirm block number, until data connect Harvest complete.
In the embodiment of the present invention, after acoustic signals are converted into binary data, remove lead code and this portion of rear leading code After dividing voice protocol information, confirm whether data are correct, if correct, data block is ranked up according to index.When incoming number After all correct, system reducing goes out original data message, such as:"hello,world!".
Reference picture 7 shows a kind of schematic diagram of data transmission method based on sound wave of the embodiment of the present invention, specific bag Include:The transmission equipment of sender sends data message to the process of the receiving device of recipient, and the receiving device of recipient and connect The process for the data message that the transmission equipment for the side of transmitting and receiving is sent, with reference to above method embodiment, the embodiment of the present invention exists This is repeated no more.
To sum up, a kind of data transmission method based on sound wave provided in an embodiment of the present invention, can be by receiving one group not More than the acoustic signals of two frequency bins, to complete the data transfer of equipment room by acoustic signals.Due in the embodiment of the present invention Frequency included by the acoustic signals of data message conversion is no more than two, therefore is carrying out acoustic signals change data information During operation, the energy balane of two frequency bins is only done, so amount of calculation when can reduce acoustic signals change data information, And then the requirement to equipment performance can be reduced, and data message conversion is binary data, without symbolization table skill Art, and then reduce the requirement to spectral bandwidth.
The embodiment of the present application provides a kind of nonvolatile computer storage media, and the computer-readable storage medium is stored with Computer executable instructions, the computer executable instructions can perform the data based on sound wave in above-mentioned any means embodiment Transmission method;
As a kind of embodiment, nonvolatile computer storage media of the invention is stored with the executable finger of computer Order, the computer executable instructions are arranged to:
Data message to be sent is converted into binary data;
The binary data is converted into one group of acoustic signals, wherein, one group of acoustic signals are by no more than two Multiple acoustic signals composition of frequency;
Play one group of acoustic signals.
Or the computer executable instructions are arranged to:
One group of acoustic signals of collection in real time;Wherein, one group of acoustic signals are by multiple sound waves no more than two frequency bins Signal forms;
One group of acoustic signals are converted into binary data;
The binary data is converted into corresponding data message.
As a kind of non-volatile computer readable storage medium storing program for executing, available for storage non-volatile software program, non-volatile Property computer executable program and module, the program as corresponding to the data transmission method based on sound wave in the embodiment of the present application Instruction/module.One or more of modules are stored in the non-volatile computer readable storage medium storing program for executing, when processed When device performs, the data transmission method based on sound wave in above-mentioned any means embodiment is performed.
Non-volatile computer readable storage medium storing program for executing can include storing program area and storage data field, wherein, store journey Sequence area can be required for storage program area, at least one function application program;Storage data field can be stored according to memory Send equipment or receiving device uses created data etc..In addition, non-volatile computer readable storage medium storing program for executing can be with Including high-speed random access memory, nonvolatile memory, for example, at least disk memory, a flash memory can also be included Device or other non-volatile solid state memory parts.In certain embodiments, non-volatile computer readable storage medium storing program for executing is optional Including the transmission of network connection to memory can be passed through relative to the remotely located memory of processor, these remote memories Device or reception device.The example of above-mentioned network includes but is not limited to internet, intranet, LAN, mobile communication Net and combinations thereof.
A kind of structural representation for sending equipment (receiving device) provided in an embodiment of the present invention, the specific embodiment of the invention The specific implementation for sending equipment (receiving device) is not limited.As shown in figure 8, the transmission equipment (receiving device) specifically may be used With including:
At least one processor (processor) 810, communication interface (Communications Interface) 820, deposit Reservoir (memory) 830 and communication bus 840.Wherein:
At least one processor 810, communication interface 820 and memory 830 are completed each other by communication bus 840 Communication.
Communication interface 820, for being communicated with the network element of such as client etc..
At least one processor 810, for configuration processor 832, it can specifically perform the correlation in above method embodiment Step.
Specifically, program 832 can include program code, and described program code includes computer-managed instruction.
At least one processor 810 is probably one or more central processor CPUs, or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the one of the embodiment of the present application Individual or multiple integrated circuits.
Fig. 9 is the structural representation for the transmission equipment (receiving device) that the embodiment of the application one provides, as shown in figure 9, should Equipment includes:
One or more processors 910 and memory 920, in Fig. 9 by taking a processor 910 as an example.
Sending equipment (receiving device) can also include:Input unit 930 and output device 940.
Processor 910, memory 920, input unit 930 and output device 940 can pass through bus or other modes Connect, in Fig. 9 exemplified by being connected by bus.
Memory 920 is above-mentioned non-volatile computer readable storage medium storing program for executing.Processor 910 is stored in by operation Non-volatile software program, instruction and module in reservoir 920, so as to the various function application and data of execute server Processing, that is, realize the data transmission method based on sound wave of above method embodiment.
Input unit 930 can receive the numeral or character information of input, and produce with sending equipment (receiving device) The key signals input that user is set and function control is relevant.Output device 940 may include the display devices such as display screen.
The said goods can perform the method that the embodiment of the present application is provided, and possesses the corresponding functional module of execution method and has Beneficial effect.Not ins and outs of detailed description in the present embodiment, reference can be made to the method that the embodiment of the present application is provided.
As a kind of embodiment, above-mentioned transmission equipment includes:At least one processor;And with it is described at least one The memory of processor communication connection;Wherein, the memory storage have can by the instruction of at least one computing device, The instruction is by least one computing device, so that at least one processor can:
Data message to be sent is converted into binary data;
The binary data is converted into one group of acoustic signals, wherein, one group of acoustic signals are by no more than two Multiple acoustic signals composition of frequency;
Play one group of acoustic signals.
As a kind of embodiment, above-mentioned receiving device includes:At least one processor;And with it is described at least one The memory of processor communication connection;Wherein, the memory storage have can by the instruction of at least one computing device, The instruction is by least one computing device, so that at least one processor can:
One group of acoustic signals of collection in real time;Wherein, one group of acoustic signals are by multiple sound waves no more than two frequency bins Signal forms;
One group of acoustic signals are converted into binary data;
The binary data is converted into corresponding data message.
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can To be or may not be physically separate, it can be as the part that unit is shown or may not be physics list Member, you can with positioned at a place, or can also be distributed on multiple NEs.It can be selected according to the actual needs In some or all of module realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying creativeness Work in the case of, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can Realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on such understanding, on The part that technical scheme substantially in other words contributes to prior art is stated to embody in the form of software product, should Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some fingers Make to cause a computer equipment (can be personal computer, server, or network equipment etc.) to perform each implementation Method described in some parts of example or embodiment.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic; And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and Scope.

Claims (11)

  1. A kind of 1. data transmission method based on sound wave, applied to transmission equipment, it is characterised in that including:
    Data message to be sent is converted into binary data;
    The binary data is converted into one group of acoustic signals, wherein, one group of acoustic signals are by no more than two frequency bins Multiple acoustic signals composition;
    Play one group of acoustic signals.
  2. 2. according to any described method of claim 1, it is characterised in that described that the binary data is converted into one group of sound The step of ripple signal, including:
    Data " 1 " in the binary data are converted to the acoustic signals of the first frequency, by the binary data Data " 0 " are converted to the acoustic signals of the second frequency, wherein first frequency is different from the height of second frequency.
  3. 3. according to the method for claim 2, it is characterised in that the data " 1 " by the binary data are changed For the acoustic signals of the first frequency, the data " 0 " in the binary data are converted to the step of the acoustic signals of the second frequency Suddenly include:
    Contact potential series corresponding to " 1 " is obtained, and contact potential series generates the acoustic signals of the first frequency according to corresponding to " 1 ";
    Contact potential series corresponding to " 0 " is obtained, and contact potential series generates the acoustic signals of the second frequency according to corresponding to " 0 ";
    Wherein, the contact potential series is one group of voltage according to the frequency pre-generatmg.
  4. 4. according to the method for claim 3, it is characterised in that wrapped according to the step of frequency pre-generatmg contact potential series Include:
    Determine the magnitude of voltage number I of pre-generatmg;
    I magnitude of voltage, the I magnitude of voltage composition first are determined according to frequency corresponding to preset sample rate and the first frequency successively Contact potential series corresponding to frequency;
    I magnitude of voltage, the I magnitude of voltage composition second are determined according to frequency corresponding to preset sample rate and the second frequency successively Contact potential series corresponding to frequency.
  5. 5. according to the method for claim 1, it is characterised in that described that data message to be sent is converted into binary number According to before, methods described also includes:
    The data message is cut according to cutting rule, obtains at least one data block;
    It is that the data message establishes index according at least one data block.
  6. 6. according to the method for claim 1, it is characterised in that described that data message to be sent is converted into binary number According to before, methods described also includes:
    Piecemeal processing is carried out to the data message according to preset piecemeal rule, obtains at least two data blocks;
    The interpolation data block sum mark before the data message;
    Lead code and rear leading code are at least added for each data block.
  7. A kind of 7. data transmission method based on sound wave, applied to receiving device, it is characterised in that including:
    One group of acoustic signals of collection in real time;Wherein, one group of acoustic signals are by multiple acoustic signals no more than two frequency bins Composition;
    One group of acoustic signals are converted into binary data;
    The binary data is converted into corresponding data message.
  8. 8. according to the method for claim 7, it is characterised in that described that one group of acoustic signals are converted into binary number According to afterwards, methods described also includes:
    Identify data block total number mark, lead code and the rear leading code in the binary data;
    The binary data blocks number for confirming to receive according to the lead code and rear leading code;
    When the binary data blocks number is identical with the data block number that data block total number mark is identified, according to institute The index mark for stating binary data carrying is ranked up to the binary data group.
  9. 9. a kind of nonvolatile computer storage media, it is stored with computer executable program, the computer executable program For performing the data transmission method according to any one of claim 1-7.
  10. 10. one kind sends equipment, including:At least one processor;And memory;Wherein, have can quilt for the memory storage The program of at least one computing device, described program is by least one computing device, so that described at least one Individual processor is able to carry out the data transmission method any one of claim 1 to 6.
  11. 11. a kind of receiving device, including:At least one processor;And memory;Wherein, have can quilt for the memory storage The program of at least one computing device, described program is by least one computing device, so that described at least one Individual processor is able to carry out the data transmission method any one of claim 7 to 8.
CN201710428205.3A 2017-06-08 2017-06-08 Data transmission method based on sound wave, send equipment and receiving device Pending CN107437967A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710428205.3A CN107437967A (en) 2017-06-08 2017-06-08 Data transmission method based on sound wave, send equipment and receiving device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710428205.3A CN107437967A (en) 2017-06-08 2017-06-08 Data transmission method based on sound wave, send equipment and receiving device

Publications (1)

Publication Number Publication Date
CN107437967A true CN107437967A (en) 2017-12-05

Family

ID=60458410

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710428205.3A Pending CN107437967A (en) 2017-06-08 2017-06-08 Data transmission method based on sound wave, send equipment and receiving device

Country Status (1)

Country Link
CN (1) CN107437967A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108988959A (en) * 2018-09-20 2018-12-11 深圳市卓翼科技股份有限公司 Sound wave communication method and device
CN109379162A (en) * 2018-08-02 2019-02-22 安徽森力汽车电子有限公司 A method of passing through sonic transmissions digital signal
CN110535536A (en) * 2019-09-02 2019-12-03 李志功 A kind of wireless computer data transmission realizing method based on sound wave modulation /demodulation
CN111930697A (en) * 2020-07-09 2020-11-13 北京皮尔布莱尼软件有限公司 Data transmission method, computing device and system based on 3D information

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103138807A (en) * 2011-11-28 2013-06-05 深圳市财付通科技有限公司 Implement method and system for near field communication (NFC)
CN105450312A (en) * 2014-08-07 2016-03-30 福建天晴数码有限公司 Sending method and device for acoustic wave communication
US20170063471A1 (en) * 2015-08-28 2017-03-02 Red Sunrise Co., Ltd. Audio signal transmission system with enhanced audio signal recognition and data processing method for the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103138807A (en) * 2011-11-28 2013-06-05 深圳市财付通科技有限公司 Implement method and system for near field communication (NFC)
CN105450312A (en) * 2014-08-07 2016-03-30 福建天晴数码有限公司 Sending method and device for acoustic wave communication
US20170063471A1 (en) * 2015-08-28 2017-03-02 Red Sunrise Co., Ltd. Audio signal transmission system with enhanced audio signal recognition and data processing method for the same

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109379162A (en) * 2018-08-02 2019-02-22 安徽森力汽车电子有限公司 A method of passing through sonic transmissions digital signal
CN108988959A (en) * 2018-09-20 2018-12-11 深圳市卓翼科技股份有限公司 Sound wave communication method and device
CN110535536A (en) * 2019-09-02 2019-12-03 李志功 A kind of wireless computer data transmission realizing method based on sound wave modulation /demodulation
CN111930697A (en) * 2020-07-09 2020-11-13 北京皮尔布莱尼软件有限公司 Data transmission method, computing device and system based on 3D information
CN111930697B (en) * 2020-07-09 2023-09-19 北京皮尔布莱尼软件有限公司 Data transmission method, computing equipment and system based on 3D information

Similar Documents

Publication Publication Date Title
CN110415686B (en) Voice processing method, device, medium and electronic equipment
CN107437967A (en) Data transmission method based on sound wave, send equipment and receiving device
CN106328126B (en) Far field voice recognition processing method and device
CN107516510A (en) A kind of smart machine automated voice method of testing and device
CN109951743A (en) Barrage information processing method, system and computer equipment
CN104598502A (en) Method, device and system for obtaining background music information in played video
CN104091478A (en) Answering-while-questioning learning machine and network learning system
CN103347070B (en) Push method, terminal, server and the system of speech data
CN107749296A (en) Voice translation method and device
CN113436609B (en) Voice conversion model, training method thereof, voice conversion method and system
CN107241681A (en) The implementation method and device of simultaneous interpretation
CN108922528A (en) Method and apparatus for handling voice
CN107395742A (en) Network communication method and intelligent sound box based on intelligent sound box
CN112037800A (en) Voiceprint nuclear model training method and device, medium and electronic equipment
CN109509472A (en) Method, apparatus and system based on voice platform identification background music
CN107665703A (en) The audio synthetic method and system and remote server of a kind of multi-user
CN109543154A (en) Method for converting types, device, storage medium and the electronic equipment of list data
CN109524004A (en) The voice interaction device and system of a kind of method of parallel transmission that realizing MCVF multichannel voice frequency and data, circumscribed
CN105636023B (en) The binding method and system of smart machine
CN109147801A (en) voice interactive method, system, terminal and storage medium
CN102750126B (en) Pronunciation inputting method and terminal
CN109215688A (en) With scene audio processing method, device, computer readable storage medium and system
CN107291676B (en) Method for cutting off voice file, terminal equipment and computer storage medium
CN106878018A (en) Operation demonstration method and device
CN110413667A (en) Interface selection method and device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20171205

RJ01 Rejection of invention patent application after publication