[go: up one dir, main page]

CN102832968A - Method for performing communication between mobile phone and equipment by using audio interface - Google Patents

Method for performing communication between mobile phone and equipment by using audio interface Download PDF

Info

Publication number
CN102832968A
CN102832968A CN2012102624496A CN201210262449A CN102832968A CN 102832968 A CN102832968 A CN 102832968A CN 2012102624496 A CN2012102624496 A CN 2012102624496A CN 201210262449 A CN201210262449 A CN 201210262449A CN 102832968 A CN102832968 A CN 102832968A
Authority
CN
China
Prior art keywords
signal
mobile phone
audio
equipment
modular converter
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
Application number
CN2012102624496A
Other languages
Chinese (zh)
Other versions
CN102832968B (en
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.)
Wuhan University WHU
Original Assignee
Wuhan University WHU
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 Wuhan University WHU filed Critical Wuhan University WHU
Priority to CN201210262449.6A priority Critical patent/CN102832968B/en
Publication of CN102832968A publication Critical patent/CN102832968A/en
Application granted granted Critical
Publication of CN102832968B publication Critical patent/CN102832968B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

本发明涉及一种利用音频接口在手机与设备之间进行通讯的方法。包括手机、双向音频连接线、转换模块及设备。在手机内部,先将加密的数字信号打包,加上包头,再经编码后将打包好的数字信号转换成数字音频信号,最后由DA转换将数字音频信号转换成模拟音频信号;传出的模拟音频信号经连接线传输到设备转换模块,该模块连接到设备;转换模块也含有音频接口,接收到音频信号后,该模块通过模块内的控制功能,对接收到的信号进行处理,将得到的模拟音频信号通过AD转换转换成数字音频信号,再解码为数字信号,将得到的数字信号解包后提供给设备。该发明不影响传统的音频功能,成本低廉,便于携带,使用方便。

The invention relates to a method for communicating between a mobile phone and a device by using an audio interface. Including mobile phone, two-way audio cable, conversion module and equipment. Inside the mobile phone, the encrypted digital signal is first packaged, and the header is added, and then the packaged digital signal is converted into a digital audio signal after encoding, and finally the digital audio signal is converted into an analog audio signal by DA conversion; the outgoing analog The audio signal is transmitted to the device conversion module through the connection line, and the module is connected to the device; the conversion module also contains an audio interface. After receiving the audio signal, the module processes the received signal through the control function in the module, and converts the obtained The analog audio signal is converted into a digital audio signal through AD conversion, and then decoded into a digital signal, and the obtained digital signal is unpacked and provided to the device. The invention does not affect the traditional audio function, has low cost, is easy to carry, and is convenient to use.

Description

一种利用音频接口在手机与设备之间进行通讯的方法A method for communicating between a mobile phone and a device using an audio interface

技术领域 technical field

本发明涉及一种手机与设备之间进行通讯的方法,尤其是涉及一种利用音频接口在手机与设备之间进行通讯的方法。 The invention relates to a method for communicating between a mobile phone and a device, in particular to a method for using an audio interface to communicate between the mobile phone and the device.

背景技术 Background technique

随着通讯技术和互联网技术的迅猛发展,手机已经从单一的移动通讯终端逐步即时化、互动化、大众化。手机作为一种新兴媒介,以其独有的媒介特质改变着传统的信息传播方式,正日渐深入人心。手机的配置及外观也在逐步精化和精致,一般的手机USB接口最多只配有一个甚至是没有USB接口或是不配数据线的。当没有USB接口或是USB接口被占用或是此时没有数据线时,要实现文件的传送就显得不方便,因此需要一种USB接口替代的方法来实现手机与其他设备的通讯。当然,这种通讯方法通过USB接口也同样能实现。手机普遍含有音频接口,在模拟和数字信号之间起到了桥梁作用,能够双向传输模拟信号。 With the rapid development of communication technology and Internet technology, mobile phones have gradually become instant, interactive and popular from a single mobile communication terminal. As a new medium, the mobile phone is changing the traditional way of information dissemination with its unique media characteristics, and it is becoming more and more popular among the people. The configuration and appearance of mobile phones are also gradually refined and refined. The general mobile phone has only one USB interface at most, or even no USB interface or no data cable. When there is no USB interface or the USB interface is occupied or there is no data cable at this time, it is inconvenient to realize the transmission of files, so a method for replacing the USB interface is needed to realize the communication between the mobile phone and other devices. Of course, this communication method can also be realized through the USB interface. Mobile phones generally contain an audio interface, which acts as a bridge between analog and digital signals, and can transmit analog signals in both directions.

目前已有的蓝牙功能可以实现手机与特定设备(手机、电脑)之间的信息交互,但是也有它的局限性。通过蓝牙传输文件时的对象是与该手机特定配对的手机或是电脑,并且它们之间的距离在十米以内并保证不能受其他信号的干扰。会造成使用上的不便,同样某些格式的数据也不能及时查看。 The existing bluetooth function can realize the information interaction between mobile phone and specific equipment (mobile phone, computer) at present, but also has its limitation. When transferring files via Bluetooth, the object is the mobile phone or computer that is specifically paired with the mobile phone, and the distance between them is within ten meters and it is guaranteed not to be interfered by other signals. It will cause inconvenience in use, and data in certain formats cannot be viewed in time.

发明内容 Contents of the invention

本发明主要是解决现有技术所存在的技术问题;提供了一种不需要在手机或设备中内置转换芯片,降低了生产及使用成本的一种利用音频接口在手机与设备之间进行通讯的方法。 The present invention mainly solves the technical problems existing in the prior art; it provides a mobile phone and a device that does not need a built-in conversion chip in the mobile phone or equipment, and reduces production and use costs. method.

本发明还有一目的是解决现有技术所存在的技术问题;提供了一种采用的通讯工具手机,便于携带,也没有造成费用上的负担,同时使用起来方便,不需寻找特定的对象并且进行解密配对,实用性强的一种利用音频接口在手机与设备之间进行通讯的方法。 Another purpose of the present invention is to solve the technical problems existing in the prior art; to provide a mobile phone as a communication tool, which is easy to carry, does not cause a burden on the cost, and is convenient to use, without the need to search for a specific object and carry out Decryption pairing, a practical way to use the audio interface to communicate between the mobile phone and the device.

本发明的上述技术问题主要是通过下述技术方案得以解决的: Above-mentioned technical problem of the present invention is mainly solved by following technical scheme:

一种利用音频接口在手机与设备之间进行通讯的方法,其特征在于,包括以下选择步骤: A method for communicating between a mobile phone and a device using an audio interface, comprising the following selection steps:

选择步骤1,用户将手机信息传递至设备的通讯步骤,具体包括: Select step 1, the communication steps for the user to transfer the mobile phone information to the device, including:

步骤1.1,使用双向音频连接线将手机音频接口与转换模块的音频接口 Step 1.1, use a two-way audio cable to connect the audio interface of the mobile phone to the audio interface of the conversion module

相连,选定手机中所要传送的信息,在手机内部将加密并打包并加上包头后的数字信号编码成数字音频信号后再通过DA转换成相应的模拟音频数据经连接线传送给转换模块; Connect, select the information to be transmitted in the mobile phone, encode the digital signal encrypted and packaged and add the header into the digital audio signal inside the mobile phone, and then convert it into corresponding analog audio data through DA and send it to the conversion module through the connecting line;

步骤1.2,将转换模块连接到设备,通过该转换模块内的控制功能识别 Step 1.2, connect the conversion module to the device, identify it by the control function inside the conversion module

信号的包头信息来判断是否对接收到的模拟音频信号做作进一步的转换处理,若不需要,转步骤1.4; The packet header information of the signal is used to determine whether to further convert the received analog audio signal. If not, go to step 1.4;

步骤1.3,转换模块将得到的模拟音频信号通过AD转换成数字音频信号,再通过解码转换成为数字信号; Step 1.3, the conversion module converts the obtained analog audio signal into a digital audio signal through AD, and then converts it into a digital signal through decoding;

步骤1.4,转换模块将最终的信号传送给与其相连的设备; Step 1.4, the conversion module transmits the final signal to the device connected to it;

选择步骤2,用户将设备的信息传递至手机的通讯步骤,具体包括: Select step 2, the communication steps where the user transmits the information of the device to the mobile phone, including:

步骤2.1,使用双向音频连接线将手机音频接口与转换模块的音频接口相连,选定设备中所要传送的信息,在设备内部将加密并打包并加上包头后的数字信号编码成数字音频信号后再通过DA转换成相应的模拟音频数据经连接线传送给转换模块; Step 2.1, use a two-way audio cable to connect the audio interface of the mobile phone to the audio interface of the conversion module, select the information to be transmitted in the device, and encode the encrypted, packaged and header-added digital signal into a digital audio signal inside the device Then it is converted into corresponding analog audio data through DA and sent to the conversion module through the connection line;

步骤2.2,将转换模块连接到手机,通过该转换模块内的控制功能识别信号的包头信息来判断是否对接收到的模拟音频信号做作进一步的转换处理,若不需要,转步骤2.4; Step 2.2, connect the conversion module to the mobile phone, and judge whether to further convert the received analog audio signal through the header information of the control function identification signal in the conversion module. If not, go to step 2.4;

步骤2.3,转换模块将得到的模拟音频信号通过AD转换成数字音频信号,再通过解码转换成为数字信号; Step 2.3, the conversion module converts the obtained analog audio signal into a digital audio signal through AD, and then converts it into a digital signal through decoding;

步骤2.4,转换模块将最终的信号传送给与其相连的手机。 In step 2.4, the conversion module transmits the final signal to the connected mobile phone.

在上述的一种利用音频接口在手机与设备之间进行通讯的方法,所述的选择步骤1或选择步骤2中的转换模块为A/D转换模块 In the above-mentioned method for communicating between a mobile phone and a device using an audio interface, the conversion module in the selection step 1 or selection step 2 is an A/D conversion module

在上述的一种利用音频接口在手机与设备之间进行通讯的方法,所述的步骤1.2或步骤2.2中,所述转换模块转换模块包括编/解码转换模块以及与编/解码转换模块连接的控制模块,所述控制模块用于识别信号的包头信息的具体方法如下:定义不出现在音频信号中的字符串的算法作为包头,控制模块通过检测所传出的信号是否有该特定包头来识别该信号,传统音频信号是没有包头的;当控制模块检测到的包头信号符合非传统音频信号,就需要对其进行编/解码及A/D转换,否则,控制模块直接将其传至设备或手机,不做转换处理。 In the above-mentioned method for communicating between a mobile phone and a device using an audio interface, in the step 1.2 or step 2.2, the conversion module conversion module includes an encoding/decoding conversion module and a device connected to the encoding/decoding conversion module Control module, the concrete method that described control module is used for identifying the Baotou information of signal is as follows: define the algorithm of the character string that does not appear in the audio signal as Baotou, control module is identified by detecting whether the outgoing signal has this specific Baotou This signal, the traditional audio signal has no packet header; when the packet header signal detected by the control module conforms to the non-traditional audio signal, it needs to be coded/decoded and A/D converted, otherwise, the control module directly transmits it to the device or For mobile phones, no conversion processing is performed.

在上述的一种利用音频接口在手机与设备之间进行通讯的方法,其特征在于:所述的包头信息包含两种,其作用是为了更快速的寻找进行数字信号传输的起点,若没有这种包头信息则视作为传统音频信号;另一种则类似传统包头,包含ID,控制信息(如每段音频大小、奇偶校验、是否重传、是否终结传输等),其作用是为了保证数字信号传输的可靠性,例如包头间信号的长度是一定的,若少于这个长度则不是正确的信号。这两种即起始信号包头以及中间内容包头,定义: In the above-mentioned method for communicating between a mobile phone and a device using an audio interface, it is characterized in that: the header information includes two types, and its function is to find the starting point for digital signal transmission more quickly. If there is no such One kind of packet header information is regarded as a traditional audio signal; the other is similar to the traditional packet header, including ID, control information (such as the size of each audio segment, parity check, whether to retransmit, whether to terminate transmission, etc.), its role is to ensure digital The reliability of signal transmission, such as the length of the signal between the headers is certain, if it is less than this length, it is not a correct signal. These two types are the start signal header and the intermediate content header, defined as follows:

起始信号包头:控制模块通过起始信号包头检测数字信号传输的起点,中间内容包头:包含ID,控制信息,控制信息包括每段音频大小、奇 Start signal header: The control module detects the starting point of digital signal transmission through the start signal header, and the middle content header: contains ID, control information, and control information includes the size, odd

偶校验、是否重传、是否终结传输等。 Even parity, whether to retransmit, whether to terminate the transmission, etc.

值得注意的是,所述的步骤1.1或步骤2.1中,所述的数字信号与数字音频信号之间的编解码转换是由适当的算法实现的,使得转换后的音频信号在传递过程中的衰减不致于对先前的数字信号产生丢失。当我们要将一般的数字文件F转换成数字音频信号W进行传输时,必须满足4个要求:1. 能够从W完全恢复F;2. W的频率范围尽量处于一个不容易被环境干扰的区域;3. W不容易被噪声干扰,从而减少重传的概率;4. W的编码大小在统计意义尽量小,以便快捷传输。该编码的过程如下:1. 对F进行变换(可以是FFT、小波等常见的信号变换),使之变换成序列Ti;2. 对Ti进行FM变换使之成为Wi,最终的W为这些Wi的总和。解码过程则是上述过程的逆过程,其变换用的是相应的逆变换。 It is worth noting that in the step 1.1 or step 2.1, the codec conversion between the digital signal and the digital audio signal is realized by an appropriate algorithm, so that the attenuation of the converted audio signal during transmission It will not cause loss of previous digital signals. When we want to convert a general digital file F into a digital audio signal W for transmission, four requirements must be met: 1. F can be completely recovered from W; 2. The frequency range of W should be in an area that is not easily disturbed by the environment ; 3. W is not easily disturbed by noise, thereby reducing the probability of retransmission; 4. The code size of W is statistically as small as possible for fast transmission. The encoding process is as follows: 1. Transform F (it can be a common signal transformation such as FFT, wavelet, etc.) to transform it into a sequence Ti; 2. Perform FM transformation on Ti to make it Wi, and the final W is these Wi Sum. The decoding process is the inverse process of the above process, and the transformation uses the corresponding inverse transformation.

在上述的一种利用音频接口在手机与设备之间进行通讯的方法,所述的双向音频连接线包括能连接手机音频接口或USB接口及设备接口的一种数据线,该连接线传输的是模拟信号。当传输方与接收方之间有其他的传输信号的方式(如话筒和喇叭)时,此连接线可省,即通过空气传输音频信号,手机端的喇叭发送音频信号,设备的话筒端接收音频信号。 In the above-mentioned method for communicating between a mobile phone and a device using an audio interface, the two-way audio connection line includes a data line capable of connecting the audio interface of the mobile phone or the USB interface and the device interface, and the connection line transmits analog signal. When there are other ways of transmitting signals between the transmitting party and the receiving party (such as a microphone and a speaker), this connection line can be saved, that is, the audio signal is transmitted through the air, the speaker on the mobile phone sends the audio signal, and the microphone end of the device receives the audio signal .

在上述的一种利用音频接口在手机与设备之间进行通讯的方法,所述的设备包括智能手机、计算机、打印机、投影仪中的一种或其任意组合。 In the above-mentioned method for communicating between a mobile phone and a device by using an audio interface, the device includes one of a smart phone, a computer, a printer, a projector or any combination thereof.

因此,本发明具有如下优点:1. 不需要在手机或设备中内置转换芯片,降低了生产及使用成本;2. 采用的通讯工具手机,便于携带,也没有造成费用上的负担,同时使用起来方便,不需寻找特定的对象并且进行解密配对,实用性强。 Therefore, the present invention has the following advantages: 1. There is no need for a built-in conversion chip in the mobile phone or equipment, which reduces production and use costs; 2. The communication tool mobile phone adopted is easy to carry and does not cause a burden on the cost. Convenient, no need to find specific objects and perform decryption pairing, strong practicability.

附图说明 Description of drawings

图1为本发明的系统结构连接示意图。 Fig. 1 is a schematic diagram of system structure connection of the present invention.

图2为本发明的方法流程图。 Fig. 2 is a flow chart of the method of the present invention.

图3为本发明的信息流转换处理的流程图。 FIG. 3 is a flow chart of the information flow conversion process of the present invention.

具体实施方式 Detailed ways

下面通过实施例,并结合附图,对本发明的技术方案作进一步具体的说明。 The technical solutions of the present invention will be further specifically described below through the embodiments and in conjunction with the accompanying drawings.

实施例: Example:

如附图所示,本发明包括手机、双向音频连接线、转换模块及设备。手机含音频接口(话筒与耳机),通过连接线连接到设备的转换模块与其进行信号交互;在手机内部,先将加密的数字信号打包,加上包头,再经编码后将打包好的数字信号转换成数字音频信号,最后由DA转换将数字音频信号转换成模拟音频信号,从数字信号到数字音频信号的编码过程是由适当的算法实现的,使得转换后的音频信号在传递过程中的衰减不至对先前的数字信号产生丢失(例如采用冗余编码,对高频和低频部分的目标码采用更多冗余);传出的模拟音频信号经连接线传输到设备转换模块,该模块连接到设备;转换模块也含有音频接口,接收到音频信号后,该模块通过模块内的控制功能,对接收到的信号进行处理,根据信号的包头信息来判断信号的类别(是需要进行转换的其他信号还是传统的音频信号);需要进行转换时,转换模块将得到的模拟音频信号通过AD转换转换成数字音频信号,再解码为数字信号,将得到的数字信号解包后提供给设备。反过来使用上述处理过程,也可以实现设备端传输数据给手机端。本实施例中设备为投影仪,手机音频接口通过连接线与转换模块的音频接口相连,转换模块与投影仪相连;得到从手机传来的数据后,由于投影仪没有音频接口也不是对接收到的数据进行录音,所以其接收到的信息需转换模块对其进行转换处理,得到对应的数据才能显示于投影仪。 As shown in the drawings, the invention includes a mobile phone, a two-way audio connection line, a conversion module and equipment. The mobile phone contains an audio interface (microphone and earphone), which is connected to the conversion module of the device through a cable for signal interaction; inside the mobile phone, the encrypted digital signal is first packaged, plus a header, and then the packaged digital signal is encoded Converted into a digital audio signal, and finally converted by DA to convert the digital audio signal into an analog audio signal, the encoding process from the digital signal to the digital audio signal is realized by an appropriate algorithm, so that the attenuation of the converted audio signal during transmission The previous digital signal will not be lost (for example, redundant coding is used, and more redundancy is used for the high-frequency and low-frequency target codes); the outgoing analog audio signal is transmitted to the equipment conversion module through the connecting line, and the module is connected to the to the device; the conversion module also contains an audio interface. After receiving the audio signal, the module processes the received signal through the control function in the module, and judges the type of the signal according to the packet header information of the signal (it is other The signal is still a traditional audio signal); when conversion is required, the conversion module converts the obtained analog audio signal into a digital audio signal through AD conversion, and then decodes it into a digital signal, and provides the obtained digital signal to the device after unpacking. Conversely, using the above processing process, it is also possible to transmit data from the device to the mobile phone. In this embodiment, the equipment is a projector, and the audio interface of the mobile phone is connected to the audio interface of the conversion module through a connecting line, and the conversion module is connected to the projector; The data is recorded, so the received information needs to be converted and processed by the conversion module, and the corresponding data can be displayed on the projector.

下面以手机与投影仪间实现图像文件传送至投影仪为例,介绍一下利用音频接口如何来实现手机与投影仪的信息交互, The following takes the transfer of image files between the mobile phone and the projector to the projector as an example, and introduces how to use the audio interface to realize the information interaction between the mobile phone and the projector.

具体包括以下步骤: Specifically include the following steps:

步骤(1).将手机通过双向音频连接线从音频接口连接至转换模块的 Step (1). Connect the mobile phone from the audio interface to the conversion module through the two-way audio cable

音频接口,选定所要传送到投影仪的图像文件,该文件通过加密后以打包的数字信号形式存于手机内存,由手机内部的软件将其编码成了数字音频信号,再由数字DA转换成为模拟音频信号,通过音频接口发送到转换模块。 步骤(2).将转换模块连接到投影仪,转换模块接收到传来的模拟音频信号,通过控制功能识别信号的包头信息来判断是否需要对其进行转换。由于具体设备为投影仪,该设备不使用传统的录音功能,需要对得到的信号进行转换。步骤(3). 转换模块将得到的模拟音频信号通过AD转换转换成数字音频信号,再通过解码转换成为数字信号,提供给投影仪,以作后续分析(如观赏图片或是分析医疗图像)。 Audio interface, select the image file to be transmitted to the projector, the file is encrypted and stored in the mobile phone memory in the form of a packaged digital signal, encoded into a digital audio signal by the software inside the mobile phone, and then converted into a digital audio signal by digital DA The analog audio signal is sent to the conversion module through the audio interface. Step (2). Connect the conversion module to the projector. The conversion module receives the incoming analog audio signal, and judges whether it needs to be converted by identifying the packet header information of the signal through the control function. Since the specific device is a projector, the device does not use the traditional recording function, and the obtained signal needs to be converted. Step (3). The conversion module converts the obtained analog audio signal into a digital audio signal through AD conversion, and then converts it into a digital signal through decoding, and provides it to the projector for subsequent analysis (such as watching pictures or analyzing medical images).

其中步骤(1)中编解码的一种具体实施方式如下(可以类推更复杂的方式): A specific implementation of encoding and decoding in step (1) is as follows (more complex methods can be analogized):

1)  对F简单加窗变换(矩形窗,长度为2),如果用E表示结束位,我们得 1) For F simple window transformation (rectangular window, length 2), if E is used to represent the end bit, we have

到的数字片段Ti共7种—— 00, 01, 10, 11, 0E, 1E以及E; There are 7 types of digital fragments Ti - 00, 01, 10, 11, 0E, 1E and E;

2)  用三种频率将Ti调制成Wi,采用的频率为200Hz,300Hz和500Hz,具 2) Modulate Ti into Wi with three frequencies, the frequencies used are 200Hz, 300Hz and 500Hz, with

体调制方法如下:200Hz表示00,300Hz表示01,500Hz表示E,200Hz+300Hz表示10,200Hz+500Hz表示0E,300Hz+500Hz表示1E,200Hz+300Hz+500Hz表示11。 Volume modulation method is as follows: 200Hz means 00, 300Hz means 01, 500Hz means E, 200Hz+300Hz means 10, 200Hz+500Hz means 0E, 300Hz+500Hz means 1E, 200Hz+300Hz+500Hz means 11.

上述编码结果的音频信号频率范围位于200Hz至3000Hz,非常适宜进行音频传输。如果结合包头的定义,则可以节省上述编码的结束位E,使得编码效率更高。解码过程是上述过程的一个简单的逆过程。 The audio signal frequency range of the above encoding result is 200Hz to 3000Hz, which is very suitable for audio transmission. If combined with the definition of the packet header, the end bit E of the above encoding can be saved, making the encoding efficiency higher. The decoding process is a simple inverse of the above process.

应当强调的是,本编码方式仅仅是本领域的技术人员可以采用的诸多编码方式中的一种,不排除可以采用其它编码方式进行信息的编码。 It should be emphasized that this encoding method is only one of many encoding methods that can be adopted by those skilled in the art, and it does not rule out that other encoding methods can be used to encode information.

步骤(2)中我们采用的加包头信号以及检测包头信号的一种实施方案如下:分为两种:1. 对于非传统音频信号的包头的定义,是在数字信号包前加2K个静音信号0,每段信号为2K个0信号值加上特征值。当控制模块开始检测信号时,第一个遇到非0信号,说明是传统的音频,不作转换直接送至设备;若第一个遇到0信号,则有可能是我们以非传统方式进行传输信号的起点,继续往后检测K个或多于K个信号,若都为0,则该信号是我们所要传输的非传统音频信号;2.对于已经处在非传统传输方式的信号的包头,我们对其进行类似传统包头的定义,包含ID,控制信息(如每段音频大小、奇偶校验位、是否重传、是否终结传输等),根据该包头信息,得知传输中的信号每段大小,形成一个中断,继续往后检测包头,当包头的控制信息中含有终结传输信息(如很长一段静音片段),则停止传输。这种方法不需要检测所有的信号,而是跳跃性检测,实现了快速检测的目标。 In the step (2), an implementation scheme of adding the header signal and detecting the header signal is as follows: it is divided into two types: 1. For the definition of the header of the non-traditional audio signal, it is to add 2K mute signals before the digital signal packet 0, each signal is 2K 0 signal values plus eigenvalues. When the control module starts to detect the signal, the first one encounters a non-zero signal, indicating that it is a traditional audio, which is sent directly to the device without conversion; if the first one encounters a 0 signal, it may be that we are transmitting in a non-traditional way The starting point of the signal, continue to detect K or more than K signals, if they are all 0, then the signal is the non-traditional audio signal we want to transmit; 2. For the header of the signal that is already in the non-traditional transmission mode, We define it similar to the traditional header, including ID, control information (such as the size of each segment of audio, parity bit, whether to retransmit, whether to terminate the transmission, etc.), according to the header information, we know that each segment of the signal in transmission size, form an interruption, continue to detect the packet header, and stop the transmission when the control information of the packet header contains termination transmission information (such as a long segment of silence). This method does not need to detect all signals, but skip detection, which achieves the goal of rapid detection.

以上步骤是介绍的从手机向设备的信息传输过程,本发明也可实现从设备向手机的信息传输过程,即上述步骤的逆过程,步骤一致,在此就不在赘述。 The above steps are the information transmission process from the mobile phone to the device introduced, and the present invention can also realize the information transmission process from the device to the mobile phone, that is, the reverse process of the above steps, the steps are the same, and will not be repeated here.

采用本方法后,1.不需要在手机或设备中内置转换芯片,降低了生产及使用成本;且手机是大众的通讯工具,基本上人手必备,每个手机都自带有音频接口,更便于推广该方法。2.本方法采用的通讯工具手机,便于携带,也没有造成费用上的负担,同时使用起来方便,不需像蓝牙那样寻找特定的对象并且进行解密配对,使得各色人群都能够及时收集所需数据存于手机,再送至所需设备,实用性强。3.本方法采用的设备转换模块,是我们的创新所在,该模块作转换信号之用,包含控制模块,通过该模块对接收到的信号进行识别 (是需要进行转换还是传统的音频信号),既提供了一种手机与设备间通讯的新方法,又不影响传统的数据传输方式。4.本方法特别适合手机接口不足的使用者, 当他们需要用到多个接口传送文件到某设备时,利用音频接口进行手机与设备通讯的方法就提供了新的一条通讯路径,同时在使用中又不需要具备专业知识,使得手机的使用更高效,价值更高,面向人群更广。  After adopting this method, 1. there is no need to build a conversion chip in the mobile phone or equipment, which reduces production and use costs; It is easy to promote this method. 2. The communication tool mobile phone used in this method is easy to carry and does not cause a burden on the cost. At the same time, it is convenient to use. It does not need to find a specific object like Bluetooth and perform decryption and pairing, so that all kinds of people can collect the required data in time. Stored in the mobile phone and then sent to the required device, it is very practical. 3. The equipment conversion module adopted in this method is our innovation. This module is used for converting signals and includes a control module. Through this module, the received signal is identified (whether it needs to be converted or a traditional audio signal), It not only provides a new method of communication between the mobile phone and the device, but also does not affect the traditional data transmission method. 4. This method is especially suitable for users with insufficient mobile phone interfaces. When they need to use multiple interfaces to transfer files to a certain device, the method of using the audio interface to communicate between the mobile phone and the device provides a new communication path. It does not require professional knowledge, making the use of mobile phones more efficient, of higher value, and for a wider audience. the

本文中所描述的具体实施例仅仅是对本发明精神作举例说明。本发明所属技术领域的技术人员可以对所描述的具体实施例做各种各样的修改或补充或采用类似的方式替代,但并不会偏离本发明的精神或者超越所附权利要求书所定义的范围。 The specific embodiments described herein are merely illustrative of the spirit of the invention. Those skilled in the art to which the present invention belongs can make various modifications or supplements to the described specific embodiments or adopt similar methods to replace them, but they will not deviate from the spirit of the present invention or go beyond the definition of the appended claims range.

Claims (6)

1. a method of utilizing COBBAIF between mobile phone and equipment, to carry out communication is characterized in that, comprises following selection step:
Select step 1, the user is passed to the communication step of equipment with cellphone information, specifically comprises:
Step 1.1 is used the COBBAIF of two way audio connecting line with handset audio interface and modular converter
Link to each other, in the selected mobile phone the information that will transmit, convert corresponding analog audio data to through DA again after the digital signal encoding after will encrypting and pack and add packet header in mobile phone inside becomes digital audio and video signals and send modular converter to through connecting line;
Step 1.2 is connected to equipment with modular converter, discerns through the controlled function in this modular converter
The header packet information of signal judges whether the affected further conversion process of the simulated audio signal that receives, if do not need, changes step 1.4;
Step 1.3, modular converter converts the simulated audio signal that obtains to digital sound through AD
Frequently signal is converted into digital signal through decoding again;
Step 1.4, modular converter sends final signal to coupled equipment;
Select step 2, the user is passed to the communication step of mobile phone with the information of equipment, specifically comprises:
Step 2.1; Use the two way audio connecting line that the handset audio interface is linked to each other with the COBBAIF of modular converter; In the selected equipment the information that will transmit, convert corresponding analog audio data to through DA again after the digital signal encoding after device interior will be encrypted and pack and add packet header becomes digital audio and video signals and send modular converter to through connecting line;
Step 2.2 is connected to mobile phone with modular converter, and the header packet information through the controlled function identification signal in this modular converter judges whether the affected further conversion process of the simulated audio signal that receives, if do not need, changes step 2.4;
Step 2.3, modular converter converts the simulated audio signal that obtains to digital audio and video signals through AD, is converted into digital signal through decoding again;
Step 2.4, modular converter sends final signal to coupled mobile phone.
2. a kind of method of utilizing COBBAIF between mobile phone and equipment, to carry out communication according to claim 1 is characterized in that, the modular converter in described selection step 1 or the selection step 2 is the A/D modular converter.
3. a kind of method of utilizing COBBAIF between mobile phone and equipment, to carry out communication according to claim 1; It is characterized in that; In described step 1.2 or the step 2.2; It is following that said control module is used for the concrete grammar of header packet information of identification signal: definition does not appear at the algorithm of character string of audio signal as packet header, and whether control module has this specific packet header to discern this signal through detecting the signal that is spread out of, and the conventional audio signal does not have packet header; Signal meets non-traditional audio signal when the detected packet header of control module, just need carry out coding/decoding and A/D conversion to it, otherwise control module directly reaches equipment or mobile phone with it, does not do conversion process.
4. a kind of method of utilizing COBBAIF between mobile phone and equipment, to carry out communication according to claim 3, it is characterized in that: described header packet information comprises two kinds of header packet informations, i.e. initial signal packet header and medium content packet header, definition:
Initial signal packet header: control module is through the starting point of initial signal packet header detection digital data transmission, medium content packet header: comprise ID, control information.
5. a kind of method of utilizing COBBAIF between mobile phone and equipment, to carry out communication according to claim 1; It is characterized in that; Described two way audio connecting line comprises a kind of data wire that can connect mobile phone COBBAIF or USB interface and equipment interface, and what this connecting line transmitted is analog signal.
6. a kind of method of utilizing COBBAIF between mobile phone and equipment, to carry out communication according to claim 1 is characterized in that described equipment comprises a kind of or its combination in any in smart mobile phone, computer, printer, the projecting apparatus.
CN201210262449.6A 2012-07-27 2012-07-27 Method for performing communication between mobile phone and equipment by using audio interface Expired - Fee Related CN102832968B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210262449.6A CN102832968B (en) 2012-07-27 2012-07-27 Method for performing communication between mobile phone and equipment by using audio interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210262449.6A CN102832968B (en) 2012-07-27 2012-07-27 Method for performing communication between mobile phone and equipment by using audio interface

Publications (2)

Publication Number Publication Date
CN102832968A true CN102832968A (en) 2012-12-19
CN102832968B CN102832968B (en) 2014-07-02

Family

ID=47335957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210262449.6A Expired - Fee Related CN102832968B (en) 2012-07-27 2012-07-27 Method for performing communication between mobile phone and equipment by using audio interface

Country Status (1)

Country Link
CN (1) CN102832968B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200006A (en) * 2013-02-18 2013-07-10 飞天诚信科技股份有限公司 Communication method and communication device between terminal and external equipment
CN103473023A (en) * 2013-09-17 2013-12-25 广州宽度信息技术有限公司 Printing method and printing system transmitting data by using analog signals
CN104679454A (en) * 2013-12-03 2015-06-03 三纬国际立体列印科技股份有限公司 Printing system and data transmission method thereof
CN105024719A (en) * 2014-04-23 2015-11-04 深圳市微机电艺科技有限公司 Data transmission method through USB audio channel and system thereof
CN105653237A (en) * 2016-02-01 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Audio playing control method and system and terminal
CN105763291A (en) * 2014-12-17 2016-07-13 天彩电子(深圳)有限公司 High-speed digital communication method based on cellphone audio signal
CN109788118A (en) * 2017-11-13 2019-05-21 北京小米移动软件有限公司 Information transceiving method and device
CN109788117A (en) * 2017-11-13 2019-05-21 北京小米移动软件有限公司 Information transceiving method and device storage medium
CN111192596A (en) * 2020-03-10 2020-05-22 香港科技大学深圳研究院 Transmission system and transmission method using audio as digital signal codec
CN112954673A (en) * 2021-02-03 2021-06-11 深圳市长丰影像器材有限公司 Encryption method for wireless microphone channel
CN114004246A (en) * 2021-12-06 2022-02-01 上海中通吉网络技术有限公司 Mobile terminal equipment provided with portable bar code recognizer
CN114554384A (en) * 2022-04-11 2022-05-27 深圳市得自在科技有限公司 Anti-interference performance test system for Bluetooth headset

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000134371A (en) * 1998-08-20 2000-05-12 Victor Co Of Japan Ltd Digital audio signal transmitting system
US20080133249A1 (en) * 2006-11-30 2008-06-05 Hashiguchi Kohei Audio data transmitting device and audio data receiving device
CN102063908A (en) * 2010-10-15 2011-05-18 上海华勤通讯技术有限公司 Audio data transmission method between PC and mobile phone
CN102355523A (en) * 2011-07-04 2012-02-15 上海分点科技有限公司 Electronic signal processing device, equipment, system and information processing method thereof
CN102394979A (en) * 2011-11-07 2012-03-28 武汉天喻信息产业股份有限公司 Method for performing high-speed data transmission through communication earphone interface

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000134371A (en) * 1998-08-20 2000-05-12 Victor Co Of Japan Ltd Digital audio signal transmitting system
US20080133249A1 (en) * 2006-11-30 2008-06-05 Hashiguchi Kohei Audio data transmitting device and audio data receiving device
CN102063908A (en) * 2010-10-15 2011-05-18 上海华勤通讯技术有限公司 Audio data transmission method between PC and mobile phone
CN102355523A (en) * 2011-07-04 2012-02-15 上海分点科技有限公司 Electronic signal processing device, equipment, system and information processing method thereof
CN102394979A (en) * 2011-11-07 2012-03-28 武汉天喻信息产业股份有限公司 Method for performing high-speed data transmission through communication earphone interface

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200006B (en) * 2013-02-18 2015-11-04 飞天诚信科技股份有限公司 Communication means between a kind of terminal and external equipment and device
CN103200006A (en) * 2013-02-18 2013-07-10 飞天诚信科技股份有限公司 Communication method and communication device between terminal and external equipment
CN103473023A (en) * 2013-09-17 2013-12-25 广州宽度信息技术有限公司 Printing method and printing system transmitting data by using analog signals
CN104679454A (en) * 2013-12-03 2015-06-03 三纬国际立体列印科技股份有限公司 Printing system and data transmission method thereof
CN105024719B (en) * 2014-04-23 2019-07-12 深圳市高盛科物联技术有限公司 A kind of method and system by usb audio channel transmission data
CN105024719A (en) * 2014-04-23 2015-11-04 深圳市微机电艺科技有限公司 Data transmission method through USB audio channel and system thereof
CN105763291A (en) * 2014-12-17 2016-07-13 天彩电子(深圳)有限公司 High-speed digital communication method based on cellphone audio signal
CN105653237A (en) * 2016-02-01 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Audio playing control method and system and terminal
CN105653237B (en) * 2016-02-01 2019-03-22 宇龙计算机通信科技(深圳)有限公司 Audio play control method, audio broadcasting control system and terminal
CN109788118A (en) * 2017-11-13 2019-05-21 北京小米移动软件有限公司 Information transceiving method and device
CN109788117A (en) * 2017-11-13 2019-05-21 北京小米移动软件有限公司 Information transceiving method and device storage medium
CN111192596A (en) * 2020-03-10 2020-05-22 香港科技大学深圳研究院 Transmission system and transmission method using audio as digital signal codec
CN111192596B (en) * 2020-03-10 2024-11-22 香港科技大学深圳研究院 Using audio as a transmission method for digital signal encoding and decoding
CN112954673A (en) * 2021-02-03 2021-06-11 深圳市长丰影像器材有限公司 Encryption method for wireless microphone channel
CN112954673B (en) * 2021-02-03 2023-08-01 深圳市长丰影像器材有限公司 Encryption method for wireless microphone channel
CN114004246A (en) * 2021-12-06 2022-02-01 上海中通吉网络技术有限公司 Mobile terminal equipment provided with portable bar code recognizer
CN114554384A (en) * 2022-04-11 2022-05-27 深圳市得自在科技有限公司 Anti-interference performance test system for Bluetooth headset
CN114554384B (en) * 2022-04-11 2024-03-12 深圳市得自在科技有限公司 Bluetooth headset anti-interference performance test system

Also Published As

Publication number Publication date
CN102832968B (en) 2014-07-02

Similar Documents

Publication Publication Date Title
CN102832968B (en) Method for performing communication between mobile phone and equipment by using audio interface
US8966131B2 (en) System method for bi-directional tunneling via user input back channel (UIBC) for wireless displays
CN101566940B (en) Method and device for realizing audio transmission of universal serial bus of wireless data terminal
US20150170666A1 (en) Audio fingerprint differences for end-to-end quality of experience measurement
CN105790854B (en) A kind of short range data transmission method and device based on sound wave
CN104079351A (en) Method and device for transmitting visible light communication data
CN104717601B (en) Wireless monitoring equipment logs in the method and system of wireless network
CN103560836A (en) Sound wave wireless communication method and device
EP4398242A1 (en) Encoding and decoding methods and apparatus, device, storage medium, and computer program
CN108847248B (en) Bluetooth device audio processing method, system, readable storage medium and Bluetooth device
CN102394979A (en) Method for performing high-speed data transmission through communication earphone interface
TWI476759B (en) Devices for encoding and decoding a watermarked signal
CN102111617B (en) Streaming media decoding method and device
CN113225644B (en) Low-delay Bluetooth audio system and audio source end and audio receiving end thereof
CN110880949B (en) Bluetooth communication method, device and system
CN111885412A (en) HDMI signal screen transmission method and wireless screen transmission device
CN102884834A (en) System and method of encoding and decoding control information in a medium access control protocol data unit
TW201624998A (en) Multimedia device and video communication method
CN110189511B (en) Signal receiving device, wireless transmission system and signal switching method
WO2024001138A1 (en) Apparatus and method for transmitting audio data, and electronic device
CN109286922B (en) Bluetooth prompt tone processing method, system, readable storage medium and Bluetooth device
CN103220410B (en) Frequency modulation (FM) broadcasting sharing method on mobile intelligent devices utilizing Bluetooth
CN105635903A (en) Wireless connection and control method and system for wireless speaker
CN106656353B (en) Information transmission method and device applied to intelligent robot
Prtvar et al. Voice over BLE case study: Using bluetooth LE remote controller inside Google's Voice search framework

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140702

Termination date: 20160727

CF01 Termination of patent right due to non-payment of annual fee