CN105790854A - Short distance data transmission method and device based on sound waves - Google Patents
Short distance data transmission method and device based on sound waves Download PDFInfo
- Publication number
- CN105790854A CN105790854A CN201610114176.9A CN201610114176A CN105790854A CN 105790854 A CN105790854 A CN 105790854A CN 201610114176 A CN201610114176 A CN 201610114176A CN 105790854 A CN105790854 A CN 105790854A
- Authority
- CN
- China
- Prior art keywords
- sound wave
- module
- data
- data transmission
- transmission method
- 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.)
- Granted
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 50
- 238000000034 method Methods 0.000 title claims abstract description 49
- 239000000284 extract Substances 0.000 claims abstract description 10
- 238000013507 mapping Methods 0.000 claims abstract description 7
- 238000000605 extraction Methods 0.000 claims description 13
- 238000012795 verification Methods 0.000 claims description 13
- 238000012937 correction Methods 0.000 claims description 12
- 230000015572 biosynthetic process Effects 0.000 claims description 6
- 238000003786 synthesis reaction Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 claims description 5
- 238000009499 grossing Methods 0.000 claims description 3
- 238000004891 communication Methods 0.000 abstract description 7
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 238000000060 site-specific infrared dichroism spectroscopy Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 238000001914 filtration Methods 0.000 description 4
- 238000004590 computer program Methods 0.000 description 3
- 238000010606 normalization Methods 0.000 description 3
- 230000007547 defect Effects 0.000 description 2
- 230000002238 attenuated effect Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000010187 selection method Methods 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
- 230000002194 synthesizing effect Effects 0.000 description 1
- 238000011426 transformation method Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B11/00—Transmission systems employing sonic, ultrasonic or infrasonic waves
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Circuit For Audible Band Transducer (AREA)
- Telephonic Communication Services (AREA)
Abstract
本发明涉及一种基于声波的短距离数据传输方法及装置。该方法,包括以下步骤:输入待传输的数据;根据需要传输数据符号的种类确定频段总数量及抽取频段数量;制作码本,将数据符号映射到码本中对应的码字;根据传入的码字,合成声波;播放合成的声波;获取播放的声波;在获取的声波中提取目标频段内的声波;将提取的声波进行映射,通过码字与数据符号之间的映射关系解码出数据符号;通过解码出的数据符号进行数据连接,得到连续的数据串。本发明的有益效果是:实现了具有拾音器和扬声器的设备间的高质量数据传输,有较强的抗噪性能,对不同设备麦克风特性和扬声器特性具有很强适应性,操作简单,对通信设备要求低。
The invention relates to a short-distance data transmission method and device based on sound waves. The method comprises the following steps: inputting data to be transmitted; determining the total number of frequency bands and the number of extracted frequency bands according to the types of data symbols to be transmitted; making a codebook, and mapping the data symbols to corresponding codewords in the codebook; according to the incoming Code word, synthesized sound wave; play the synthesized sound wave; obtain the played sound wave; extract the sound wave in the target frequency band from the acquired sound wave; map the extracted sound wave, and decode the data symbol through the mapping relationship between the code word and the data symbol ; Perform data connection through the decoded data symbols to obtain continuous data strings. The beneficial effects of the present invention are: realizing high-quality data transmission between devices with pickups and loudspeakers, strong anti-noise performance, strong adaptability to microphone characteristics and speaker characteristics of different devices, simple operation, and high reliability for communication devices Low requirements.
Description
(一)技术领域(1) Technical field
本发明属于无线通信技术领域,特别涉及一种基于声波的短距离数据传输方法及装置。The invention belongs to the technical field of wireless communication, and in particular relates to a short-distance data transmission method and device based on sound waves.
(二)背景技术(2) Background technology
有线网络传输方法,如双绞线、同轴电缆、光纤等,传输可靠且高速。但是随着设备向小型化和移动化发展,通过无线传输信息则体现出较大优势,例如在无线网络摄像机、智能手机、穿戴设备等,必须使用无线传输方法。Wired network transmission methods, such as twisted pair, coaxial cable, optical fiber, etc., are reliable and high-speed. However, with the development of miniaturization and mobility of equipment, wireless transmission of information has shown great advantages. For example, in wireless network cameras, smart phones, wearable devices, etc., wireless transmission methods must be used.
传统无线网络传输方法,如WiFi,Bluetooth,ZigBee,NFC等都需要专用硬件模块支撑,在传输少量数据方面成本较高,并且每种通信方式都存在缺陷:例如,WiFi方式必须有一个热点装置,而且在交互过程中,热点附近较大范围可以截获数据包,存在安全隐患;WiFi直连方式需要设备独占WiFi,断开原有WiFi链接,用户体验很差;Bluetooth方式则需要经过手动搜索,连接确认,匹配连接等一系列操作,在少量数据传输过程中用户操作太复杂。Traditional wireless network transmission methods, such as WiFi, Bluetooth, ZigBee, NFC, etc., all require dedicated hardware modules to support, and the cost of transmitting a small amount of data is high, and each communication method has defects: for example, the WiFi method must have a hotspot device, Moreover, during the interaction process, data packets can be intercepted in a large area near the hotspot, which poses a security risk; the WiFi direct connection method requires the device to monopolize the WiFi, disconnecting the original WiFi link, and the user experience is poor; the Bluetooth method requires manual search and connection. A series of operations such as confirmation and matching connections are too complicated for users to operate during a small amount of data transmission.
为了补充有线传输方法和传统的无线传输方法的不足,出现了一种利用声波传输数据的方法,但是目前的声波传输方法也有如下缺陷:声波频率固定,一般为人耳感知不到的超声波频段或次声波频段;声波调制信息存在严重频率泄露,严重干扰非目标声波频段频率;声波编码有明显的起始位置和结束位置,不利于信息保护;不同设备端的扬声器特性不同,导致扬声器发送声波存在不同程度的失真和拖尾,现有的声波传输方案没有解决扬声器特性兼容问题。In order to supplement the deficiencies of the wired transmission method and the traditional wireless transmission method, a method of transmitting data using sound waves has emerged, but the current sound wave transmission method also has the following defects: the frequency of the sound wave is fixed, and it is generally an ultrasonic frequency band or infrasonic wave that cannot be perceived by the human ear. frequency band; sound wave modulation information has serious frequency leakage, which seriously interferes with the frequency of non-target sound wave bands; sound wave encoding has obvious starting and ending positions, which is not conducive to information protection; the characteristics of speakers on different devices are different, resulting in different degrees of sound waves sent by speakers Distortion and tailing, the existing sound wave transmission scheme does not solve the compatibility problem of speaker characteristics.
申请号为201110277536.4、发明名称为“一种基于多频声波的高可靠性数据传输方法及装置”的发明专利申请公开了一种声波传输方法,该方法通过频率滤波,用不同频率值来标定数字0至9,使用了15kHz到22kHz之间的不同频宽,在每个数据包周期内包含了不同频率的波形,传输的数据到达接收端后,被还原的不同频率的波形用来表示不同的数字。这种方法虽然降低了数据还原的错误率,但是,数据传输的速率相对固定,传输数据采用2进制、4进制、8进制、10进制、或16进制方式中的一种定义,数据传输不灵活。The invention patent application with the application number 201110277536.4 and the title of the invention "a high-reliability data transmission method and device based on multi-frequency sound waves" discloses a sound wave transmission method, which uses frequency filtering to calibrate digital data with different frequency values. 0 to 9, using different bandwidths between 15kHz and 22kHz. Each data packet cycle contains waveforms of different frequencies. After the transmitted data reaches the receiving end, the restored waveforms of different frequencies are used to represent different number. Although this method reduces the error rate of data restoration, the rate of data transmission is relatively fixed, and the transmission data adopts a definition in binary, quaternary, octal, decimal, or hexadecimal. , the data transmission is not flexible.
申请号为201210058106.8、发明名称为“基于音频或超声波的数据通讯方法和系统”的发明专利申请公开了一种声波传输方法,该方法通过重复发送数据包,叠加和除噪在一定程度上会提高数据还原正确率,但是该发明要求重复发送次数N为正整数且N大于1,这也导致数据传输速率较低;而且该发明在解析数据过程中需要归一化处理,通过门限值解析出数据,门限值的选择直接影响解析数据正确性,在不同设备、不同噪声环境下很难找出一个最佳门限值。The invention patent application with the application number 201210058106.8 and the invention title "Audio or Ultrasonic Based Data Communication Method and System" discloses a sound wave transmission method. By repeatedly sending data packets, superposition and noise removal can be improved to a certain extent. The accuracy of data restoration, but the invention requires that the number of repeated transmissions N be a positive integer and N is greater than 1, which also leads to a low data transmission rate; and the invention needs normalization processing in the process of parsing data, and the threshold value is used to analyze Data, the selection of the threshold value directly affects the correctness of the analyzed data, and it is difficult to find an optimal threshold value under different equipment and different noise environments.
另外,不同设备的扬声器发送能力和麦克风接收能力的一致性不同,比如,不同麦克风对不同频率声音的接收响应灵敏度和还原性是有显著不同的,不同扬声器的频率响应也存在明显的差异,某些扬声器可能存在“频率拖尾”现象。因此,以上方法很难保证发送端对不同频率的声波信号发出的准确性以及接收端对信号还原的精准性。In addition, the consistency of the speaker sending ability and microphone receiving ability of different devices is different. For example, the sensitivity and reduction of different microphones to different frequency sounds are significantly different, and the frequency response of different speakers is also significantly different. Some speakers may exhibit "frequency tailing". Therefore, it is difficult for the above method to guarantee the accuracy of the sending end for the sound wave signals of different frequencies and the accuracy of the receiving end for signal restoration.
(三)发明内容(3) Contents of the invention
本发明为了弥补现有技术的不足,提供了一种基于声波的短距离数据传输方法及装置,实现了具有拾音器和扬声器的设备间的高质量数据传输,有较强的抗噪性能,对不同设备麦克风特性和扬声器特性具有很强适应性,操作简单,对通信设备要求低。In order to make up for the shortcomings of the prior art, the present invention provides a short-distance data transmission method and device based on sound waves, which realizes high-quality data transmission between devices with pickups and speakers, and has strong anti-noise performance. The characteristics of the microphone and speaker of the device are highly adaptable, the operation is simple, and the requirements for communication equipment are low.
本发明是通过如下技术方案实现的:The present invention is achieved through the following technical solutions:
一种基于声波的短距离数据传输方法,其特征是:包括以下步骤:A kind of short distance data transmission method based on sound wave, it is characterized in that: comprise the following steps:
(1)、输入待传输的数据;(1) Input the data to be transmitted;
(2)、根据需要传输数据符号的种类确定频段总数量F_total及抽取频段数量F_select;(2) Determine the total number of frequency bands F_total and the number of extracted frequency bands F_select according to the type of data symbols to be transmitted;
(3)、根据确定的频段总数量F_total及抽取频段数量F_select制作码本,将数据符号映射到码本中对应的码字;(3) Make a codebook according to the determined total number of frequency bands F_total and the number of extracted frequency bands F_select, and map the data symbols to the corresponding codewords in the codebook;
(4)、根据传入的码字,合成声波;(4) Synthesize sound waves according to the incoming codewords;
(5)、播放合成的声波;(5) Play the synthesized sound wave;
(6)、获取播放的声波;(6) Obtain the sound wave played;
(7)、在获取的声波中提取目标频段内的声波;(7) Extract the sound waves in the target frequency band from the acquired sound waves;
(8)、将提取的声波进行映射,通过码字与数据符号之间的映射关系解码出数据符号;(8) Map the extracted sound waves, and decode the data symbols through the mapping relationship between codewords and data symbols;
(9)、通过解码出的数据符号进行数据连接,得到连续的数据串。(9) Perform data connection through the decoded data symbols to obtain continuous data strings.
优选的,在步骤(1)中,待传输的数据添加有加密信息。Preferably, in step (1), encrypted information is added to the data to be transmitted.
优选的,在步骤(1)中,待传输的数据添加有校验纠错信息。Preferably, in step (1), verification and error correction information is added to the data to be transmitted.
优选的,在步骤(2)中,根据需要传输数据符号的种类确定调制频率F_base及频率间隔F_distance。Preferably, in step (2), the modulation frequency F_base and the frequency interval F_distance are determined according to the type of data symbols to be transmitted.
优选的,在步骤(4)中,通过正弦或余弦生成函数生成频率波形后加平滑窗处理。Preferably, in step (4), the frequency waveform is generated by a sine or cosine generating function, followed by smoothing window processing.
优选的,在步骤(4)中,在整个合成波形前或后添加静音信号。Preferably, in step (4), a mute signal is added before or after the entire synthesized waveform.
优选的,在步骤(7)中,提取目标声波选择滑动窗按帧提取,帧长小于每段声波时长。Preferably, in step (7), the target sound wave is extracted by selecting a sliding window to extract by frame, and the frame length is less than the duration of each sound wave.
一种用于实现基于声波的短距离数据传输方法的装置,包括声波发送设备和智能网络接收设备,声波发送设备上设有扬声器,智能网络接收设备上设有拾音器,其特征是:所述声波发送设备内依次连接设有信息输入模块、声波编码模块和调制合成声波模块,智能网络接收设备内依次连接设有目标声波提取模块、声波解码模块、信息提取模块和连接模块。A device for implementing a short-distance data transmission method based on sound waves, including sound wave sending equipment and intelligent network receiving equipment, the sound wave sending equipment is provided with a speaker, and the intelligent network receiving equipment is provided with a pickup, characterized in that: the sound wave The sending device is sequentially connected with an information input module, sound wave encoding module and modulated synthetic sound wave module, and the intelligent network receiving device is sequentially connected with a target sound wave extraction module, a sound wave decoding module, an information extraction module and a connection module.
所述信息输入模块与声波编码模块之间设有加密模块和校验纠错生成模块,声波解码模块和信息提取模块之间设有校验纠错模块和解密模块。An encryption module and a verification and error correction generation module are arranged between the information input module and the sound wave encoding module, and a verification and error correction module and a decryption module are arranged between the sound wave decoding module and the information extraction module.
所述调制合成声波模块与扬声器之间设有发送增益控制模块,拾音器与目标声波提取模块之间设有接收增益控制模块。A sending gain control module is arranged between the modulated synthetic sound wave module and the loudspeaker, and a receiving gain control module is arranged between the pickup and the target sound wave extraction module.
本发明的有益效果是:抗噪性能较强,且信息传输速率较高并且通过选择F_total和F_select传输速率可调,编码方式用户可以自定义,占用起始频段可通过F_base可调,在不同使用环境中可以选择F_base从而避免与环境噪音频段重合,提高了声波信噪比;The beneficial effects of the present invention are: strong anti-noise performance, high information transmission rate and adjustable transmission rate by selecting F_total and F_select, user-defined coding mode, adjustable starting frequency band occupied by F_base, and in different applications In the environment, F_base can be selected to avoid overlapping with the environmental noise frequency band and improve the acoustic signal-to-noise ratio;
由于在合成声波过程中每个频率波形后都增加了静音帧,扬声器的频率拖尾会被静音帧吸收,使得对频率拖尾较严重扬声器具有较好的适应性,对不同设备扬声器适应性高;Since a silent frame is added after each frequency waveform in the process of synthesizing sound waves, the frequency tail of the speaker will be absorbed by the silent frame, which makes it better adaptable to speakers with severe frequency tail and high adaptability to speakers of different devices ;
不需要归一化处理,不需要固定门限值提取解码信息,而是使用在F_total个频带中抽取F_select个频带最大值的方法,比归一化方法和固定门限值方法具有更高的抗噪性能;No normalization processing is required, no fixed threshold value is required to extract decoding information, but the method of extracting the maximum value of F_select frequency bands from F_total frequency bands is used, which is more resistant than normalization method and fixed threshold value method noise performance;
方法操作简单且对通信设备要求低,适用于所有具有拾音器和扬声器设备间的通信。The method is simple to operate and has low requirements on communication equipment, and is suitable for communication between all devices with pickups and loudspeakers.
(四)附图说明(4) Description of drawings
下面结合附图对本发明作进一步的说明。The present invention will be further described below in conjunction with the accompanying drawings.
附图1为本发明的工作流程图;Accompanying drawing 1 is work flow diagram of the present invention;
附图2为本发明的结构框图;Accompanying drawing 2 is structural block diagram of the present invention;
(五)具体实施方式(5) Specific implementation methods
附图为本发明的一种具体实施例。该实施例包括如下步骤:1、输入待传输的数据:待传输的数据可以是任意数据,可以是单纯信息,也可以是添加了校验纠错信息或加密信息的数据,也可以是增加了数据长度信息的数据,一般情况是增加了开始信息和结束信息的数据,也可以是WiFi获取、二维码信息、字符识别、手动输入、语音输入的数据。2、根据需要传输数据符号的种类确定频段总数量F_total,抽取频段数量F_select,例如,若需要传输数据的种类有256种,F_total可以选择11,F_select可以选择4;F_total决定了编码所需要的占用频段总数量,F_select决定每个数据符号需要占用的频段数量;调制频率F_base则是频率开始位置,频率间隔F_distance是每个频段的间隔:例如,选择F_base=10000Hz,F_distance=200Hz,F_total=11,则声波传输需要占用的频带范围为10000Hz-12000Hz,使用频段10000Hz、10200Hz、10400Hz、10600Hz、10800Hz、11000Hz、11200Hz、11400Hz、11600Hz、11800Hz、12000Hz传输数据。3、根据F_total和F_select制作码本,将数据符号映射到码本中对应的码字;例如F_total=11,F_select=4,则可以制作11bit长度的码本,每个数据符号需要4个bit表示,bit位1有效或者0有效均可;例如,若bit位1有效,则第一个数据符号可以表示为00000001111,第二个数据表示为00000010111,依次类推,直到所有数据符号完全映射到码字;把数据符号映射到对应的码字。4、根据传入的码字,合成声波:例如采用例如F_total=11,F_select=4,bit位1有效,码表低位对应F_base=10000Hz,则00000001111对应的频段为10000Hz、10200Hz、10400Hz、10600Hz,则通过正弦或余弦生成函数生成频率波形,长度为frame_length,然后加平滑窗处理,生成一段静音信号追加在频率波形后,例如追加长度为frame_length/2静音信号;按时间顺序生成所有合成声波,通常情况也可在整个合成波形前或后添加一定时长的静音信号。5、通过设备扬声器播放合成的声波。6、通过设备拾音器获取播放的声波。7、通过Goertzel算法提取设定的目标频段内的声波,包括且不限于频域变换方法或时域滤波方法提取;提取目标声波选择滑动窗按帧提取,帧长一般选择要求要小于frame_length,首次获取拾音声波的前N帧用来估计声波传输占用频段的背景噪声,第N+1帧开始提取目标声波,在F_base频段开始的F_total数量的频段中通过一定方法选择能量最大的F_select个频段,该选择方法可以是增益或衰减的方式,且不限于此。8、通过选择的F_select个频段进行二进制映射,例如bit位1有效情况下,选择F_select个频段为10000Hz、10200Hz、10400Hz、10600Hz,则二进制映射为00000001111,即为码本中的某个码字,通过码字与数据符号之间的映射关系可以进一步解码出数据符号。9、通过解码出的数据符号进行数据连接,得到连续的数据串。Accompanying drawing is a kind of specific embodiment of the present invention. This embodiment comprises the following steps: 1. Input the data to be transmitted: the data to be transmitted can be any data, can be simple information, can also be the data that has added verification error correction information or encryption information, also can be increased The data of the data length information is generally the data with the start information and the end information added, and it can also be the data of WiFi acquisition, QR code information, character recognition, manual input, and voice input. 2. Determine the total number of frequency bands F_total according to the type of data symbols to be transmitted, and extract the number of frequency bands F_select. For example, if there are 256 types of data to be transmitted, F_total can be selected as 11, and F_select can be selected as 4; F_total determines the occupation required for encoding The total number of frequency bands, F_select determines the number of frequency bands that each data symbol needs to occupy; the modulation frequency F_base is the frequency start position, and the frequency interval F_distance is the interval of each frequency band: for example, select F_base=10000Hz, F_distance=200Hz, F_total=11, The frequency band that needs to be occupied by sound wave transmission is 10000Hz-12000Hz, and the frequency bands 10000Hz, 10200Hz, 10400Hz, 10600Hz, 10800Hz, 11000Hz, 11200Hz, 11400Hz, 11600Hz, 11800Hz, 12000Hz are used to transmit data. 3. Make a codebook according to F_total and F_select, and map the data symbols to the corresponding codewords in the codebook; for example, if F_total=11 and F_select=4, you can make a codebook with a length of 11 bits, and each data symbol needs 4 bits to represent , bit 1 is valid or 0 is valid; for example, if bit 1 is valid, the first data symbol can be expressed as 00000001111, the second data can be expressed as 00000010111, and so on, until all data symbols are completely mapped to codewords ; Map data symbols to corresponding codewords. 4. According to the incoming code word, synthesize the sound wave: for example, if F_total=11, F_select=4, bit 1 is valid, the low bit of the code table corresponds to F_base=10000Hz, then the frequency band corresponding to 00000001111 is 10000Hz, 10200Hz, 10400Hz, 10600Hz, The frequency waveform is generated by the sine or cosine generating function, the length is frame_length, and then smoothing window processing is added to generate a segment of mute signal appended to the frequency waveform, for example, the additional length is frame_length/2 mute signal; all synthetic sound waves are generated in time order, usually It is also possible to add a certain duration of silence signal before or after the entire synthesized waveform. 5. Play the synthesized sound waves through the device speakers. 6. Obtain the sound waves played through the device pickup. 7. Extract the sound waves in the set target frequency band through the Goertzel algorithm, including but not limited to the frequency domain transformation method or time domain filtering method; extract the target sound waves and select the sliding window to extract by frame, and the frame length is generally required to be less than frame_length, the first time The first N frames of the picked-up sound wave are obtained to estimate the background noise in the frequency band occupied by the sound wave transmission. The target sound wave is extracted from the N+1 frame, and the F_select frequency bands with the largest energy are selected by a certain method in the F_total number of frequency bands starting from the F_base frequency band. The selection method may be gain or attenuation, and is not limited thereto. 8. Perform binary mapping through the selected F_select frequency bands. For example, when bit 1 is valid, select F_select frequency bands as 10000Hz, 10200Hz, 10400Hz, and 10600Hz, then the binary mapping is 00000001111, which is a certain codeword in the codebook. Data symbols can be further decoded through the mapping relationship between codewords and data symbols. 9. Perform data connection through the decoded data symbols to obtain continuous data strings.
采用本发明的基于声波的短距离数据传输方法及装置,将目标WiFi的SSID和密码输入到声波发送设备的信息输入模块,通过加密模块对SSID和密码进行加密,使得未授权的用户即使获得了已加密的信息,仍然无法获取信息的内容,此模块保证用户传输信息安全性,并且通过校验纠错生成模块添加校验纠错信息,然后数据按Byte为单位输入声波编码模块,且声波编码模块输出11bit信息,调制合成声波模块按11bit编码信息进行声波合成,合成频率为15000Hz、15200Hz、15400Hz、15600Hz、15800Hz、16000Hz、16200Hz、16400Hz、16600Hz、16800Hz、17000Hz。发送增益控制模块按需求对合成声波调整发送增益,通过扬声器将声波发送出去。Using the sound wave-based short-distance data transmission method and device of the present invention, input the SSID and password of the target WiFi into the information input module of the sound wave sending device, and encrypt the SSID and password through the encryption module, so that even if an unauthorized user obtains The encrypted information is still unable to obtain the content of the information. This module ensures the security of the user's transmission information, and adds the verification and error correction information through the verification error correction generation module, and then the data is input into the sound wave encoding module in units of Byte, and the sound wave encoding The module outputs 11bit information, and the modulation and synthesis sound wave module performs sound wave synthesis according to 11bit coded information. The synthesis frequency is 15000Hz, 15200Hz, 15400Hz, 15600Hz, 15800Hz, 16000Hz, 16200Hz, 16400Hz, 16600Hz, 16800Hz, 17000Hz. The sending gain control module adjusts the sending gain of the synthesized sound wave as required, and sends the sound wave through the speaker.
智能网络接收设备的拾音器接收到声波信号,通过接收增益控制模块按需求调整接收声波信号的增益,目标声波提取模块通过频域滤波方法或时域滤波方法提取11bit的目标声波信号,声波解码模块对目标声波信号进行解码还原为以Byte为单位的数据,校验纠错模块按照事先约定的校验纠错方法对解码后数据校验纠错,若校验不通过则丢弃,校验通过的数据进入解密模块进行解码,信息提取模块提取目标WiFi的SSID和密码信息,连接模块通过提取SSID和密码连接目标WiFi。The pickup of the intelligent network receiving device receives the sound wave signal, adjusts the gain of the received sound wave signal through the receiving gain control module as required, and the target sound wave extraction module extracts the 11-bit target sound wave signal through the frequency domain filtering method or time domain filtering method, and the sound wave decoding module The target sound wave signal is decoded and restored to data in units of Bytes. The verification and error correction module verifies and corrects the decoded data according to the pre-agreed verification and error correction method. If the verification fails, it is discarded, and the data that passes the verification is discarded. Enter the decryption module to decode, the information extraction module extracts the SSID and password information of the target WiFi, and the connection module connects to the target WiFi by extracting the SSID and password.
为确保声波传输的保密性,可以适当减小发送增益控制模块的增益,增加接收增益控制模块的增益,同时还可以减小声波发送设备扬声器和智能网络接收设备拾音器的空间直线距离,确保在一定的小范围内可以获取声波,远距离传输和物体阻挡会导致声波能量大幅衰减而无法获取。In order to ensure the confidentiality of the sound wave transmission, the gain of the sending gain control module can be appropriately reduced, and the gain of the receiving gain control module can be increased. At the same time, the space linear distance between the speaker of the sound wave sending device and the pickup of the intelligent network receiving device can be reduced to ensure a certain Sound waves can be obtained in a small range, but long-distance transmission and object obstruction will cause the sound wave energy to be greatly attenuated and cannot be obtained.
为避免声波信号受到干扰和失真,导致校验纠错模块校验纠错失败而丢弃数据,可发送多遍目标WiFi的SSID和密码信息,同时使声波发送设备扬声器和智能网络接收设备拾音器保持合理的空间直线距离。In order to avoid the interference and distortion of the sound wave signal, which will cause the error correction module to fail to verify and correct the error and discard the data, it can send the SSID and password information of the target WiFi multiple times, and at the same time keep the speaker of the sound wave sending device and the pickup of the intelligent network receiving device reasonable space linear distance.
采用本发明的基于声波的短距离数据传输方法及装置,可以解决智能网络摄像机初始化过程中的WiFi配置问题。可以解决智能家居领域中智能设备认证连接问题,所有智能设备需要接入智能家居控制终端,智能家居控制终端以WiFi接入为例,用户只需将网络终端SSID和密码合成为声波,并通过扬声器播放,所有收到声波信息的智能设备便可解析出网络终端SSID和密码,然后认证连接智能家居控制终端。由于墙体可以阻挡声波,可以确保邻居家设备不会受到干扰。By adopting the sound wave-based short-distance data transmission method and device of the present invention, the WiFi configuration problem in the initialization process of the intelligent network camera can be solved. It can solve the problem of authentication and connection of smart devices in the smart home field. All smart devices need to be connected to the smart home control terminal. The smart home control terminal takes WiFi access as an example. The user only needs to synthesize the network terminal SSID and password into sound waves, and pass through the speaker Play, all smart devices that receive the sound wave information can parse out the network terminal SSID and password, and then authenticate and connect to the smart home control terminal. Since the walls can block sound waves, you can ensure that neighbors' equipment will not be disturbed.
本发明所列出的一系列的详细说明,仅仅是对本发明的可行性实施方式的具体说明,并非用以限制本发明的保护范围,在不背离本发明精神或基本特征的情况下,以其他的具体形式、等效方式、变更方式实现本发明,均应包含在本发明的保护范围之内。A series of detailed descriptions listed in the present invention are only specific descriptions of the feasible implementation modes of the present invention, and are not intended to limit the protection scope of the present invention. Without departing from the spirit or basic characteristics of the present invention, other The implementation of the present invention in specific forms, equivalent manners, and modified manners shall all be included within the protection scope of the present invention.
本发明按照实施例的方式描述,但并不是每个实施方式仅包含一个独立的技术方案,还应当将说明书作为一个整体,各实施例中的技术方案也可以经适当组合,形成本领域技术人员可以理解的其他实施方式。The present invention is described according to the embodiments, but not each embodiment only includes an independent technical solution, and the description should be taken as a whole, and the technical solutions in each embodiment can also be properly combined to form a technical solution for those skilled in the art. Other implementations can be understood.
此外,本发明实施例是用流程图和/或方框图来描述的,计算机程序指令实现流程图和/或方框图,除了可提供方法、系统(装置)或计算机程序产品外,还可提供计算机程序指令到计算机嵌入式处理机或者其他可编程数据处理设备中,使其产生流程图和/或方框图中的功能。In addition, the embodiments of the present invention are described with flowcharts and/or block diagrams, and computer program instructions implement the flowcharts and/or block diagrams. In addition to providing methods, systems (device) or computer program products, computer program instructions can also be provided into a computer embedded processor or other programmable data processing equipment to make it generate the functions in the flowchart and/or block diagram.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610114176.9A CN105790854B (en) | 2016-03-01 | 2016-03-01 | A kind of short range data transmission method and device based on sound wave |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610114176.9A CN105790854B (en) | 2016-03-01 | 2016-03-01 | A kind of short range data transmission method and device based on sound wave |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105790854A true CN105790854A (en) | 2016-07-20 |
CN105790854B CN105790854B (en) | 2018-11-20 |
Family
ID=56386773
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610114176.9A Active CN105790854B (en) | 2016-03-01 | 2016-03-01 | A kind of short range data transmission method and device based on sound wave |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105790854B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106531193A (en) * | 2016-10-31 | 2017-03-22 | 济南中维世纪科技有限公司 | Abnormal sound detection method and system of background noise adaption |
CN108075837A (en) * | 2016-11-14 | 2018-05-25 | 佛山市顺德区美的电热电器制造有限公司 | Hexadecimal code, coding/decoding method and the device of ultrasonic communication |
CN108718460A (en) * | 2018-06-19 | 2018-10-30 | 广东美的制冷设备有限公司 | Communication means, communication device and the intelligent electronic device of WLAN |
CN109830242A (en) * | 2019-03-20 | 2019-05-31 | 蔡冠业 | A kind of method and system carrying out code communication using audio |
CN110730448A (en) * | 2019-09-18 | 2020-01-24 | 华为技术有限公司 | Method and electronic device for establishing connection between devices |
CN111313979A (en) * | 2020-01-21 | 2020-06-19 | 北京达佳互联信息技术有限公司 | Data transmission method and device, electronic equipment and storage medium |
CN112177116A (en) * | 2020-09-09 | 2021-01-05 | 杭州洁驰数控科技有限公司 | Ultrasonic intelligent induction flushing system based on intelligent public toilet and induction method thereof |
CN112911558A (en) * | 2021-01-18 | 2021-06-04 | 猫岐智能科技(上海)有限公司 | Data communication system, data transmitting apparatus and data receiving apparatus |
WO2021115305A1 (en) * | 2019-12-09 | 2021-06-17 | 明格(上海)信息技术有限公司 | Method and system for processing received ultrasonic data, and computer readable medium |
CN113938215A (en) * | 2021-09-10 | 2022-01-14 | 猫岐智能科技(上海)有限公司 | Data sending module, data receiving module, multi-channel duplex sound wave communication system and method |
Citations (25)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5630016A (en) * | 1992-05-28 | 1997-05-13 | Hughes Electronics | Comfort noise generation for digital communication systems |
US6098037A (en) * | 1998-05-19 | 2000-08-01 | Texas Instruments Incorporated | Formant weighted vector quantization of LPC excitation harmonic spectral amplitudes |
US20020138256A1 (en) * | 1998-08-24 | 2002-09-26 | Jes Thyssen | Low complexity random codebook structure |
EP1521241A1 (en) * | 2003-10-01 | 2005-04-06 | Siemens Aktiengesellschaft | Transmission of speech coding parameters with echo cancellation |
US20070124141A1 (en) * | 2004-09-17 | 2007-05-31 | Yuli You | Audio Encoding System |
CN101174876A (en) * | 2006-11-02 | 2008-05-07 | 华为技术有限公司 | Space division multiple access codebook construction method and scheduling method |
US20080186894A1 (en) * | 2006-03-14 | 2008-08-07 | International Business Machines Corporation | Method and Apparatus for Automatic Power Saving Mode Insertion When an Unknown or an Offensive Receiver Detected in a Wireless Access System |
US20080227495A1 (en) * | 2007-03-16 | 2008-09-18 | Kotecha Jayesh H | Reference signaling scheme using compressed feedforward codebooks for MU-MIMO systems |
CN101689962A (en) * | 2007-04-20 | 2010-03-31 | 交互数字技术公司 | Method and apparatus for efficient precoding information validation for mimo communications |
WO2010042348A1 (en) * | 2008-10-08 | 2010-04-15 | Motorola, Inc. | Arithmetic encoding for celp speech encoders |
CN101960765A (en) * | 2008-02-29 | 2011-01-26 | 夏普株式会社 | Systems and methods for generating a codebook to encode embedded information |
WO2013025478A1 (en) * | 2011-08-12 | 2013-02-21 | Interdigital Patent Holdings, Inc. | Providing feedback for multiple downlink multiple-input- multiple-output (mimo) streams |
CN103312419A (en) * | 2012-03-07 | 2013-09-18 | 苏州汉朗光电有限公司 | Method and system for data communication based on audio or ultrasonic |
CN103327300A (en) * | 2013-06-03 | 2013-09-25 | 济南中维世纪科技有限公司 | Audio/video transmission system and method based on USB 2.0 protocol |
CN103645462A (en) * | 2013-11-26 | 2014-03-19 | 清华大学 | Acoustic wave positioning method and terminal |
CN103905149A (en) * | 2012-12-27 | 2014-07-02 | 联发科技(新加坡)私人有限公司 | Methods for designing codebook, communication device and codebook training method |
CN104079358A (en) * | 2014-06-25 | 2014-10-01 | 福建联迪商用设备有限公司 | Sound wave communication synchronous method and system and receiving end |
CN104125022A (en) * | 2013-11-27 | 2014-10-29 | 腾讯科技(成都)有限公司 | Audio transmission delay measuring method and system |
CN104202118A (en) * | 2009-03-17 | 2014-12-10 | 华为技术有限公司 | Pre-coding codebook and feedback expression |
CN104601251A (en) * | 2014-12-14 | 2015-05-06 | 奉化市宇创产品设计有限公司 | Information interaction technology for media and mobile device |
CN104602364A (en) * | 2014-12-31 | 2015-05-06 | 歌尔声学股份有限公司 | Method for connecting wireless device to wireless access point and wireless device, intelligent terminal |
CN104700837A (en) * | 2013-12-09 | 2015-06-10 | 国民技术股份有限公司 | Method and device for sending and receiving audio signals |
CN104702344A (en) * | 2015-03-05 | 2015-06-10 | 成都零点六一八科技有限公司 | Near field acoustic wave communication method |
CN105281842A (en) * | 2014-07-24 | 2016-01-27 | 福建星网视易信息系统有限公司 | Coding and decoding methods and devices of sound wave communicaiton |
CN105323032A (en) * | 2014-06-18 | 2016-02-10 | 中国移动通信集团公司 | Method for generating three-dimensional precoding matrix, terminal and base station |
-
2016
- 2016-03-01 CN CN201610114176.9A patent/CN105790854B/en active Active
Patent Citations (25)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5630016A (en) * | 1992-05-28 | 1997-05-13 | Hughes Electronics | Comfort noise generation for digital communication systems |
US6098037A (en) * | 1998-05-19 | 2000-08-01 | Texas Instruments Incorporated | Formant weighted vector quantization of LPC excitation harmonic spectral amplitudes |
US20020138256A1 (en) * | 1998-08-24 | 2002-09-26 | Jes Thyssen | Low complexity random codebook structure |
EP1521241A1 (en) * | 2003-10-01 | 2005-04-06 | Siemens Aktiengesellschaft | Transmission of speech coding parameters with echo cancellation |
US20070124141A1 (en) * | 2004-09-17 | 2007-05-31 | Yuli You | Audio Encoding System |
US20080186894A1 (en) * | 2006-03-14 | 2008-08-07 | International Business Machines Corporation | Method and Apparatus for Automatic Power Saving Mode Insertion When an Unknown or an Offensive Receiver Detected in a Wireless Access System |
CN101174876A (en) * | 2006-11-02 | 2008-05-07 | 华为技术有限公司 | Space division multiple access codebook construction method and scheduling method |
US20080227495A1 (en) * | 2007-03-16 | 2008-09-18 | Kotecha Jayesh H | Reference signaling scheme using compressed feedforward codebooks for MU-MIMO systems |
CN101689962A (en) * | 2007-04-20 | 2010-03-31 | 交互数字技术公司 | Method and apparatus for efficient precoding information validation for mimo communications |
CN101960765A (en) * | 2008-02-29 | 2011-01-26 | 夏普株式会社 | Systems and methods for generating a codebook to encode embedded information |
WO2010042348A1 (en) * | 2008-10-08 | 2010-04-15 | Motorola, Inc. | Arithmetic encoding for celp speech encoders |
CN104202118A (en) * | 2009-03-17 | 2014-12-10 | 华为技术有限公司 | Pre-coding codebook and feedback expression |
WO2013025478A1 (en) * | 2011-08-12 | 2013-02-21 | Interdigital Patent Holdings, Inc. | Providing feedback for multiple downlink multiple-input- multiple-output (mimo) streams |
CN103312419A (en) * | 2012-03-07 | 2013-09-18 | 苏州汉朗光电有限公司 | Method and system for data communication based on audio or ultrasonic |
CN103905149A (en) * | 2012-12-27 | 2014-07-02 | 联发科技(新加坡)私人有限公司 | Methods for designing codebook, communication device and codebook training method |
CN103327300A (en) * | 2013-06-03 | 2013-09-25 | 济南中维世纪科技有限公司 | Audio/video transmission system and method based on USB 2.0 protocol |
CN103645462A (en) * | 2013-11-26 | 2014-03-19 | 清华大学 | Acoustic wave positioning method and terminal |
CN104125022A (en) * | 2013-11-27 | 2014-10-29 | 腾讯科技(成都)有限公司 | Audio transmission delay measuring method and system |
CN104700837A (en) * | 2013-12-09 | 2015-06-10 | 国民技术股份有限公司 | Method and device for sending and receiving audio signals |
CN105323032A (en) * | 2014-06-18 | 2016-02-10 | 中国移动通信集团公司 | Method for generating three-dimensional precoding matrix, terminal and base station |
CN104079358A (en) * | 2014-06-25 | 2014-10-01 | 福建联迪商用设备有限公司 | Sound wave communication synchronous method and system and receiving end |
CN105281842A (en) * | 2014-07-24 | 2016-01-27 | 福建星网视易信息系统有限公司 | Coding and decoding methods and devices of sound wave communicaiton |
CN104601251A (en) * | 2014-12-14 | 2015-05-06 | 奉化市宇创产品设计有限公司 | Information interaction technology for media and mobile device |
CN104602364A (en) * | 2014-12-31 | 2015-05-06 | 歌尔声学股份有限公司 | Method for connecting wireless device to wireless access point and wireless device, intelligent terminal |
CN104702344A (en) * | 2015-03-05 | 2015-06-10 | 成都零点六一八科技有限公司 | Near field acoustic wave communication method |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106531193A (en) * | 2016-10-31 | 2017-03-22 | 济南中维世纪科技有限公司 | Abnormal sound detection method and system of background noise adaption |
CN108075837A (en) * | 2016-11-14 | 2018-05-25 | 佛山市顺德区美的电热电器制造有限公司 | Hexadecimal code, coding/decoding method and the device of ultrasonic communication |
CN108075837B (en) * | 2016-11-14 | 2021-04-27 | 佛山市顺德区美的电热电器制造有限公司 | Hexadecimal coding and decoding method and device for ultrasonic communication |
CN108718460B (en) * | 2018-06-19 | 2020-09-08 | 广东美的制冷设备有限公司 | Communication method and communication device of wireless local area network and intelligent electronic equipment |
CN108718460A (en) * | 2018-06-19 | 2018-10-30 | 广东美的制冷设备有限公司 | Communication means, communication device and the intelligent electronic device of WLAN |
CN109830242A (en) * | 2019-03-20 | 2019-05-31 | 蔡冠业 | A kind of method and system carrying out code communication using audio |
CN110730448A (en) * | 2019-09-18 | 2020-01-24 | 华为技术有限公司 | Method and electronic device for establishing connection between devices |
WO2021115305A1 (en) * | 2019-12-09 | 2021-06-17 | 明格(上海)信息技术有限公司 | Method and system for processing received ultrasonic data, and computer readable medium |
CN111313979A (en) * | 2020-01-21 | 2020-06-19 | 北京达佳互联信息技术有限公司 | Data transmission method and device, electronic equipment and storage medium |
CN111313979B (en) * | 2020-01-21 | 2021-09-17 | 北京达佳互联信息技术有限公司 | Data transmission method and device, electronic equipment and storage medium |
CN112177116A (en) * | 2020-09-09 | 2021-01-05 | 杭州洁驰数控科技有限公司 | Ultrasonic intelligent induction flushing system based on intelligent public toilet and induction method thereof |
CN112911558A (en) * | 2021-01-18 | 2021-06-04 | 猫岐智能科技(上海)有限公司 | Data communication system, data transmitting apparatus and data receiving apparatus |
CN112911558B (en) * | 2021-01-18 | 2023-01-06 | 佳格科技(浙江)股份有限公司 | Data communication system, data transmitting apparatus and data receiving apparatus |
CN113938215A (en) * | 2021-09-10 | 2022-01-14 | 猫岐智能科技(上海)有限公司 | Data sending module, data receiving module, multi-channel duplex sound wave communication system and method |
CN113938215B (en) * | 2021-09-10 | 2023-10-03 | 佳格科技(浙江)股份有限公司 | Multipath duplex acoustic wave communication system |
Also Published As
Publication number | Publication date |
---|---|
CN105790854B (en) | 2018-11-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105790854B (en) | A kind of short range data transmission method and device based on sound wave | |
CN107645343B (en) | Data sending/receiving method based on sound wave and data transmission system | |
CN104602364B (en) | The method and wireless device, intelligent terminal of wireless device connection wireless access point | |
CN104796888A (en) | Method for connecting WI-FI network by intelligent hardware terminal based on sound waves and system for realizing same | |
CN104883720A (en) | Object network access method, object network access guiding and control methods, and corresponding terminals | |
CN105846911A (en) | Data transmission method, device and system based on sound wave | |
CN104955044A (en) | Target network access method and target network access guiding method thereof and corresponding terminal | |
CN103000181B (en) | System and implement method thereof for secret communications based on public communication network voice channel | |
CN102832968A (en) | Method for performing communication between mobile phone and equipment by using audio interface | |
CN103347229A (en) | Audio signal processing device | |
KR101597657B1 (en) | Mobile device and method for outputting sound wave including network access information | |
CN103209269B (en) | Zigbee-technology-based digital wireless multi-channel audio conference method and device | |
CN108289037A (en) | A kind of equipment wireless parameter configuration method based on sound wave | |
RU2015156799A (en) | SYSTEM AND METHOD FOR CREATING A WIRELESS TUBE FOR STATIONARY PHONES USING A HOME GATEWAY AND A SMARTPHONE | |
CN105722183A (en) | Sharing method and apparatus for Wi-Fi (wireless fidelity) link information | |
CN107733896A (en) | A kind of data safe transmission method based on sound wave | |
CN104702373A (en) | Device and method for using acoustic code to perform network configuration for equipment | |
CN109346092A (en) | The system and method for voice encryption communication is carried out between a kind of communication terminal | |
US11870501B2 (en) | Method and system for improved acoustic transmission of data | |
CN105636023A (en) | Smart device binding method and system | |
CN105120012B (en) | Smart machine and its networking cut-in method, message receiving method and device | |
CN105337670A (en) | Wireless sound wave communication method and device thereof | |
CN104883535A (en) | Monitoring system and operation method thereof | |
CN212086458U (en) | Noise reduction earphone with safety communication function | |
US10778479B1 (en) | Systems and methods for wireless transmission of audio information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: Room 1201, building 3, Aosheng building, 1166 Xinluo street, Jinan area, China (Shandong) pilot Free Trade Zone, Jinan City, Shandong Province Patentee after: Shandong Zhongwei Century Technology Co.,Ltd. Country or region after: China Address before: No.4-1101, Yinhe building, 2008 Xinluo street, high tech Zone, Jinan City, Shandong Province Patentee before: JOVISION TECHNOLOGY Co.,Ltd. Country or region before: China |
|
CP03 | Change of name, title or address |