CN103402007A - Audio interface-based data transmission method between intelligent terminal and operating handle - Google Patents

Audio interface-based data transmission method between intelligent terminal and operating handle Download PDF

Info

Publication number
CN103402007A
CN103402007A CN2013103165919A CN201310316591A CN103402007A CN 103402007 A CN103402007 A CN 103402007A CN 2013103165919 A CN2013103165919 A CN 2013103165919A CN 201310316591 A CN201310316591 A CN 201310316591A CN 103402007 A CN103402007 A CN 103402007A
Authority
CN
China
Prior art keywords
data
intelligent terminal
control handle
audio interface
audio
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
CN2013103165919A
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.)
ANHUI CHANGGAN NETWORK TECHNOLOGY CO., LTD.
Original Assignee
GUANGZHOU STARPLAN NETWORK 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 GUANGZHOU STARPLAN NETWORK TECHNOLOGY Co Ltd filed Critical GUANGZHOU STARPLAN NETWORK TECHNOLOGY Co Ltd
Priority to CN2013103165919A priority Critical patent/CN103402007A/en
Publication of CN103402007A publication Critical patent/CN103402007A/en
Priority to PCT/CN2014/074593 priority patent/WO2015010481A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses an audio interface-based data transmission method between an intelligent terminal and an operating handle. The data transmission method specifically comprises the following steps: receiving a key value signal emitted by the operating handle to be packed into a data frame; coding the data frame into a differential Manchester analog signal according to a specific serial communication protocol to be transmitted to an audio interface of the intelligent terminal; converting the received differential Manchester signal into a handle key value signal by the intelligent terminal to control an executed game; when an instruction is transmitted to the operating handle by the intelligent terminal, coding the instruction into the differential Manchester analog signal to be transmitted to the operating handle; and executing the instruction emitted by the intelligent terminal after decoding the received differential Manchester signal by the operating handle. The data transmission method is based on the audio interface of the intelligent terminal, realizes data transmission between each intelligent terminal and the game operating handle, is low in development cost, has high universality and guarantees the stability of data transmission.

Description

Based on the intelligent terminal of audio interface and the data transmission method between control handle
Technical field
The present invention relates to a kind of Intelligent terminal data transmission technology, particularly a kind of conventional data of intelligent terminal based on audio interface transmission technology.
Background technology
Along with popularizing of smart mobile phone and various intelligent terminals, the particularly appearance of 3G smart mobile phone, in smart mobile phone, the operation system functions such as the iPhone of setting-in, Android are all comparatively powerful, the application function of smart mobile phone exceeds the category of telephone communication already, the exploitation of various mobile applications has demonstrated fully the advantage of smart mobile phone, wherein mobile phone games are wherein and important entertainment way, the operation of mobile phone games at present only is based on the mode of operation of touch-screen, the steer mode of this game is simple, can not really embody play games happy.Control mobile phone games by control handle and meet the demand of vast game user, possess wide application prospect.
In the intelligent Application of mobile phone, mobile phone generally has two approach if read external equipment information: wire transmission pattern and bluetooth transmission.Wherein: the wire transmission pattern generally will be by special-purpose data-interface.The problem of existence is at present, and the data-interface of each mobile phone producer is different, and external equipment is difficult to compatible one by one; Some producers are for various commercial objects, and the opening of restricting data interface, perhaps will collect high mandate expense; Some also has strict qualification requirement to the producer of peripheral hardware for the cell phone manufacturer of leading position, has artificially increased the threshold that enters.All restrictions, cause the external equipment exploitation of mobile phone difficult, and cost is higher.The second, bluetooth transmission, for applications such as the exigent handle controls of real-time response, unavoidably has delay phenomenon, and the hardware cost of bluetooth is relative also higher in addition, and the poor reliability that also has Bluetooth pairing is also to affect the significant obstacle that the user experiences.In the hardware art of various intelligent terminals, the earphone interface of each producer is open, and interface standard is unified, if can realize by earphone interface the transfer of data of intelligent terminal and control handle, just can greatly reduce development cost.
Summary of the invention
The technical problem that the present invention solves is to provide a kind of data transmission method based on audio interface,, to realize the transfer of data between each intelligent terminal and game control handle, further reduces development cost.
For solving the problems of the technologies described above, the technical solution used in the present invention is as follows.
Based on the intelligent terminal of audio interface and the data transmission method between control handle, described method specifically comprises the following steps:
A. receive the key assignments signal that control handle sends, the processing of encoding, and the key assignments signal that will encode after processing is packaged into Frame; Frame is encoded into the Difference Manchester analog signal according to the particular serial communications protocol by audio signal wire, is sent to the intelligent terminal audio interface;
B. intelligent terminal, to the Difference Manchester signal that the receives processing of decoding, converts the handle key assignments signal that intelligent terminal can be identified to, and performed game is controlled;
C. when intelligent terminal sends instruction to control handle, at first instruction is encoded to the Difference Manchester analog signal according to the particular serial communications protocol and sends by audio interface, through audio signal wire, be sent to control handle; The Difference Manchester signal that control handle will receive is carried out the instruction that intelligent terminal sends after decoding and processing.
Improvement of the present invention is: described data transfer mode adopts duplex mode, from the data of intelligent terminal output, by the audio output signal line, transfers to control handle, from the data of control handle output, by the audio input signal line, transfers to intelligent terminal.
Improvement of the present invention is: described particular serial communications protocol adopts Differential Manchester Encoding, and in communication signal, one of every transmission has individual saltus step at least, and in the middle of adopting, the saltus step in the moment represents to send 0 or 1.
Improvement of the present invention is: described particular serial communications protocol before sending data, should make audio signal wire be in idle condition; While sending data, adopt the frame beginning flag to carry out synchronously; When the transmission data are completed, adopt frame end mark to represent that data send end, and make audio signal wire be in idle condition.
Data verification method of the present invention is: the data frame format of described audio signal wire transmission uses CRC1 and CRC2 to carry out verification.
Intelligent terminal of the present invention adopts three threads to realize the reception of voice data, send and carry out, and three threads comprise watcher thread, main thread and business procedure, specifically comprise:
At first, set up the audible communication receiving or sending thread in main thread, be used for coordinating reception and the transmission of voice data;
Secondly, whether the audio interface that creates a monitoring intelligent terminal has the thread of data input, is used for the audio signal to from audio interface, collecting, and carries out the Difference Manchester decoding, and the data of decoding output receive the buffer memory of data; After watcher thread was received the valid data frame, by triggering the call back function in the external business program, notice external business program was obtained the data of importing into, and carries out;
Simultaneously, main thread circular wait data deposit event in, when the external business program, when having data to send, when the data that will send are put into shared transmission data buffer, namely have data to deposit event in and occur; Main thread is got the data that will send, and carries out Differential Manchester Encoding, then calls Differential Manchester Encoding that the audio frequency control interface function will deposit event in and send to audio interface and export to control handle.
Owing to having adopted above technical scheme, the invention technological progress is as follows.
Data transmission method of the present invention is based on the audio interface of intelligent terminal, realize the transfer of data between each intelligent terminal and game control handle, the high sampling rate of intelligent terminal audio decoder is 44.1kHz, the limit transmission rate of audio signal can reach 22.05kHz, remove the redundancy overhead in communication protocol, more than the valid data of system transmission have 11kHz at least, this speed is greater than the communication baud rate of common serial ports, controlling in real time of control handle can be guaranteed, obvious time delay can be do not produced.
Audio interface due to the intelligent terminal of each manufacturer production is open in addition, interface standard is unified, realize the transfer of data of mobile phone and control handle by it, development cost is low, highly versatile, in the little still application that requirement of real-time is very high of transmitted data amount, has very large compatible advantage.The present invention adopts the Difference Manchester analog signal to carry out transfer of data, meets the synchronous requirement of serial communication, has ensured the stability of transfer of data.
Description of drawings
Fig. 1 is the structured flowchart of data transmission system of the present invention.
Fig. 2 is the flow chart of data processing figure of intelligent terminal of the present invention.
Fig. 3 is the main control module circuit diagram in data transmission system of the present invention.
Fig. 4 is the Difference Manchester change-over circuit circuit diagram in data transmission system of the present invention.
Fig. 5 is the power module circuitry figure in data transmission system of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is further elaborated.
A kind of intelligent terminal based on audio interface and the data transmission method between control handle, the method is used for utilizing the audio interface of intelligent terminal and the transfer of data between audio signal wire realization game control handle and intelligent terminal, data transfer mode adopts duplex mode, transfer to control handle from the data of intelligent terminal output by the audio output signal line, from the data of control handle output, by the audio input signal line, transfer to intelligent terminal.
Specifically comprise the following steps based on the intelligent terminal of audio interface and the data transmission method between control handle:
A. receive the key assignments signal that control handle sends, the processing of encoding, and the key assignments signal that will encode after processing is packaged into Frame; Frame is encoded into the Difference Manchester analog signal according to the particular serial communications protocol by audio signal wire, is sent to the intelligent terminal audio interface.
B. intelligent terminal, to the Difference Manchester signal that the receives processing of decoding, converts the handle key assignments signal that intelligent terminal can be identified to, and performed game is controlled.
C. when intelligent terminal sends instruction to control handle, at first instruction is encoded to the Difference Manchester analog signal according to the particular serial communications protocol and sends by audio interface, through audio signal wire, be sent to control handle; The Difference Manchester signal that control handle will receive is carried out the instruction that intelligent terminal sends after decoding and processing.
Described particular serial communications protocol normative reference synchronous serial communication agreement, adopt Differential Manchester Encoding, and in communication signal, one of every transmission has individual saltus step at least, to adapt to, can only transmit the voice band line transmitting data of interchange; And in the middle of adopting, constantly saltus step represents to send 0 or 1.
For example: set positive transition and represent 1, negative saltus step represents 0, and when first saltus step was positive transition, difference was carried out in saltus step afterwards and previous saltus step so, by the result of comparing, determines it is 1 or 0; , if present bit saltus step direction is identical with the saltus step direction of last position, is expressed as 0, otherwise is expressed as 1.Adopt Differential Manchester Encoding, the synchronous tolerance of communicating pair is half bit time, and the data that receive in synchronization discrepancy half bit time are unaffected.
Before sending data, should make audio signal wire be in idle condition according to the particular serial communications protocol, the prompting recipient carries out data receiver and prepares; The idle preparation of bus can adopt continuous transmission 0 more than 8 to represent.
While sending data, adopt the frame beginning flag to carry out synchronously; Frame is initial can be from any one, the frame beginning flag of described serial communication adopt with the standard serial port communication synchronization in the same sign, namely send continuously 61, namely send character 0x7e and represent to have sent the frame beginning flag.
When the transmission data are completed, adopt frame end mark to represent that data send end, and make audio signal wire be in idle condition.Frame end mark adopts continuously and sends 71, namely sends character 0x7f and represents to have sent frame end.
In employing particular serial communications protocol was carried out the process of data transmission, the unit that the audio signal circuit is uploaded defeated data was position, at first sends highest order while sending byte, sends finally lowest order, there is no interval between byte during the transmission data.
Yet when sending data, in data be likely also continuous 61, this is identical with frame beginning flag and frame end mark, can cause the communication ambiguity.For disambiguation, stipulate in the particular serial communications protocol, in the process when sending data, after sending 51 continuously, must send one invalid 0, more then send other data; And after receiving continuous 51, need that deletion then receives 0.These continuous 51 not one fix in a byte, for example, two byte 0x0f and 0xc0, each byte does not have continuous 51, but first sends after 0x0f while sending 0xc0, has just had continuous 51, need to dynamically insert, delete one 0.
It is as follows that the audio signal circuit is uploaded defeated data format:
Figure 2013103165919100002DEST_PATH_IMAGE002
The data format of audio signal wire transmission uses CRC1 and CRC2 to carry out verification.The CRC algorithm that adopts is as follows:
const unsigned short GusFcsTab[256] = {
0x0000, 0x1189, 0x2312, 0x329b, 0x4624, 0x57ad, 0x6536, 0x74bf,
0x8c48, 0x9dc1, 0xaf5a, 0xbed3, 0xca6c, 0xdbe5, 0xe97e, 0xf8f7,
0x1081, 0x0108, 0x3393, 0x221a, 0x56a5, 0x472c, 0x75b7, 0x643e,
0x9cc9, 0x8d40, 0xbfdb, 0xae52, 0xdaed, 0xcb64, 0xf9ff, 0xe876,
0x2102, 0x308b, 0x0210, 0x1399, 0x6726, 0x76af, 0x4434, 0x55bd,
0xad4a, 0xbcc3, 0x8e58, 0x9fd1, 0xeb6e, 0xfae7, 0xc87c, 0xd9f5,
0x3183, 0x200a, 0x1291, 0x0318, 0x77a7, 0x662e, 0x54b5, 0x453c,
0xbdcb, 0xac42, 0x9ed9, 0x8f50, 0xfbef, 0xea66, 0xd8fd, 0xc974,
0x4204, 0x538d, 0x6116, 0x709f, 0x0420, 0x15a9, 0x2732, 0x36bb,
0xce4c, 0xdfc5, 0xed5e, 0xfcd7, 0x8868, 0x99e1, 0xab7a, 0xbaf3,
0x5285, 0x430c, 0x7197, 0x601e, 0x14a1, 0x0528, 0x37b3, 0x263a,
0xdecd, 0xcf44, 0xfddf, 0xec56, 0x98e9, 0x8960, 0xbbfb, 0xaa72,
0x6306, 0x728f, 0x4014, 0x519d, 0x2522, 0x34ab, 0x0630, 0x17b9,
0xef4e, 0xfec7, 0xcc5c, 0xddd5, 0xa96a, 0xb8e3, 0x8a78, 0x9bf1,
0x7387, 0x620e, 0x5095, 0x411c, 0x35a3, 0x242a, 0x16b1, 0x0738,
0xffcf, 0xee46, 0xdcdd, 0xcd54, 0xb9eb, 0xa862, 0x9af9, 0x8b70,
0x8408, 0x9581, 0xa71a, 0xb693, 0xc22c, 0xd3a5, 0xe13e, 0xf0b7,
0x0840, 0x19c9, 0x2b52, 0x3adb, 0x4e64, 0x5fed, 0x6d76, 0x7cff,
0x9489, 0x8500, 0xb79b, 0xa612, 0xd2ad, 0xc324, 0xf1bf, 0xe036,
0x18c1, 0x0948, 0x3bd3, 0x2a5a, 0x5ee5, 0x4f6c, 0x7df7, 0x6c7e,
0xa50a, 0xb483, 0x8618, 0x9791, 0xe32e, 0xf2a7, 0xc03c, 0xd1b5,
0x2942, 0x38cb, 0x0a50, 0x1bd9, 0x6f66, 0x7eef, 0x4c74, 0x5dfd,
0xb58b, 0xa402, 0x9699, 0x8710, 0xf3af, 0xe226, 0xd0bd, 0xc134,
0x39c3, 0x284a, 0x1ad1, 0x0b58, 0x7fe7, 0x6e6e, 0x5cf5, 0x4d7c,
0xc60c, 0xd785, 0xe51e, 0xf497, 0x8028, 0x91a1, 0xa33a, 0xb2b3,
0x4a44, 0x5bcd, 0x6956, 0x78df, 0x0c60, 0x1de9, 0x2f72, 0x3efb,
0xd68d, 0xc704, 0xf59f, 0xe416, 0x90a9, 0x8120, 0xb3bb, 0xa232,
0x5ac5, 0x4b4c, 0x79d7, 0x685e, 0x1ce1, 0x0d68, 0x3ff3, 0x2e7a,
0xe70e, 0xf687, 0xc41c, 0xd595, 0xa12a, 0xb0a3, 0x8238, 0x93b1,
0x6b46, 0x7acf, 0x4854, 0x59dd, 0x2d62, 0x3ceb, 0x0e70, 0x1ff9,
0xf78f, 0xe606, 0xd49d, 0xc514, 0xb1ab, 0xa022, 0x92b9, 0x8330,
0x7bc7, 0x6a4e, 0x58d5, 0x495c, 0x3de3, 0x2c6a, 0x1ef1, 0x0f78,
};
/*******************************************************************
** Function name: crc16Cal
* Descriptions: calculate crc16, expression formula is x^16+x^12+x^5+x^0
* input parameters:usFcs: initial crcr value, one's complement representation, be generally 0xffff.
* pucData: data
* iLen: data length
** output parameters: none
* Returned value: result of calculation, one's complement representation
***************************************************************/
unsigned short crc16Cal(unsigned short usFcs,const unsigned char *pucData,int iLen)
{
while (iLen--) {
usFcs=(unsigned short)((usFcs >>8)^GusFcsTab[(usFcs^*pucData++) & 0xff]);
}
return (usFcs);
}
The code that calculates CRC1 and CRC2 is as follows:
usCrc16 = crc16Cal(0xffff, pucData, uiLen);
CRC1 = usCrc16 / 0x100;
CRC2 = usCrc16 % 0x100。
In the present embodiment, described intelligent terminal based on audio interface and the data transmission method between control handle, the data transmission system that forms based on the mobile phone with audio interface, game control handle and audio signal wire realizes.
The structured flowchart of data transmission system as shown in Figure 1, comprises the mobile phone that is provided with audio interface and is used for the control handle of assisting the mobile phone games to complete, carrying out transfer of data by audio signal wire between the audio interface of mobile phone and control handle.
Control handle comprises shell, is provided with master control borad in shell, is provided with audio signal line jack and one group of handle button of being connected with master control borad on shell; Be provided with push button signalling processing module, main control module, power module and Difference Manchester change-over circuit on master control borad; The handle button is connected with the input of push button signalling processing module by wire, the output of push button signalling processing module connects main control module, main control module is communicated by letter mutually with the Difference Manchester change-over circuit, and power module is connected with push button signalling processing module, main control module and Difference Manchester change-over circuit respectively.
Power module possesses charging/discharging function, gives whole circuit supply, and power module is selected rechargeable lithium battary in the present embodiment, and the circuit diagram of power module as shown in Figure 5.
The push button signalling processing module is for the treatment of the action command that the handle button sends, and is transferred to main control module after changing the key assignments signal that main control module can identify into.
The digitlization serial signal that the Difference Manchester change-over circuit is used for main control module is sent is converted to according to the particular serial communications protocol Difference Manchester analog signal that audio signal wire can transmit; And the Difference Manchester analog signal conversion that will receive from mobile phone is the digitlization serial signal that main control module can be identified.The circuit diagram of Difference Manchester change-over circuit as shown in Figure 4.
Main control module carries out the digitized processing of encoding and decoding to two-way signaling: 1) main control module key assignments information that the push button signalling processing module is imported into is through the key assignments coding, protocol packing by agreement becomes communication data packet, again by IO mouth output packet, the serial data of IO output is encoded to the Difference Manchester analog signal through the Difference Manchester change-over circuit, is sent to passing through on audio signal wire of connection mobile audio interface; 2) main control module will receive the analog signal through Difference Manchester change-over circuit decoding, be decoded into digitized protocol package by the rule of Differential Manchester Encoding, then by protocol-decoding, obtain the effective communication data signal that mobile phone sends.In the present embodiment, main control module is selected the LPC1111 of the microcontroller based on ARM Cortex-M0 of low-power consumption, and the circuit diagram of main control module as shown in Figure 3.
Mobile phone adopts three threads to realize the reception of voice data, send and carry out, and three threads comprise watcher thread, main thread and business procedure, and its flow chart as shown in Figure 2, specifically comprises:
At first, set up the audible communication receiving or sending thread in main thread, be used for coordinating reception and the transmission of voice data; Secondly, whether the audio interface that creates a monitoring mobile phone has the thread of data input, is used for the audio signal to from audio interface, collecting, and carries out the Difference Manchester decoding, and the data of decoding output receive the buffer memory of data; After watcher thread was received the valid data frame, by triggering the call back function in the external business program, notice external business program was obtained the data of importing into, and carries out; Simultaneously, main thread circular wait data deposit event in, when the external business program, when having data to send, when the data that will send are put into shared transmission data buffer, namely have data to deposit event in and occur; Main thread is got the data that will send, and carries out Differential Manchester Encoding, then calls Differential Manchester Encoding that the audio frequency control interface function will deposit event in and send to audio interface and export to control handle.
The concrete data transmission method of the present embodiment is: when the user presses game while controlling handle button on shell, the push button signalling processing module of master control borad receives action command, and is converted into the key assignments signal that main control module can identify and is transferred to main control module; The key assignments signal that main control module will the receive processing of encoding, and the key assignments signal after processing of encoding is packaged into protocol data frame and is transferred to the Difference Manchester change-over circuit, the Difference Manchester change-over circuit converts Frame to the Difference Manchester analog signal according to above-mentioned particular serial communications protocol, send to mobile phone by audio signal wire, for the mobile phone decoding, read.Mobile phone becomes digital signal by the Difference Manchester analog signal conversion that decoding program will receive, and finally obtains the key assignments data message of game paddle; Application software by Cell Phone Design is connected with game interface again, realizes game paddle controlling game.
When mobile phone need to send instruction to control handle, at first to the transmission event that the receives processing of encoding, be converted to the Difference Manchester analog signal according to above-mentioned particular serial communications protocol, be transferred to the Difference Manchester change-over circuit of control handle through audio signal wire, the Difference Manchester analog signal conversion that the Difference Manchester change-over circuit will receive is the Frame that main control module can be identified, and main control module receives after the Frame that mobile phone sends to decode and obtains the effective instruction of mobile phone.
When the present invention not only can be applied on smart mobile phone, all have on the intelligent terminal of audio interface but also can be applied in panel computer, box, intelligent television etc., by audio interface, realize transfer of data between intelligent terminal and control handle.

Claims (6)

1., based on the intelligent terminal of audio interface and the data transmission method between control handle, it is characterized in that described method specifically comprises the following steps:
A. receive the key assignments signal that control handle sends, the processing of encoding, and the key assignments signal that will encode after processing is packaged into Frame; Frame is encoded into the Difference Manchester analog signal according to the particular serial communications protocol by audio signal wire, is sent to the intelligent terminal audio interface;
B. intelligent terminal, to the Difference Manchester signal that the receives processing of decoding, converts the handle key assignments signal that intelligent terminal can be identified to, and performed game is controlled;
C. when intelligent terminal sends instruction to control handle, at first instruction is encoded to the Difference Manchester analog signal according to the particular serial communications protocol and sends by audio interface, through audio signal wire, be sent to control handle; The Difference Manchester signal that control handle will receive is carried out the instruction that intelligent terminal sends after decoding and processing.
2. the intelligent terminal based on audio interface according to claim 1 and the data transmission method between control handle, it is characterized in that: described data transfer mode adopts duplex mode, transfer to control handle from the data of intelligent terminal output by the audio output signal line, from the data of control handle output, by the audio input signal line, transfer to intelligent terminal.
3. the intelligent terminal based on audio interface according to claim 1 and the data transmission method between control handle, it is characterized in that: described particular serial communications protocol adopts Differential Manchester Encoding, in communication signal, one of every transmission has individual saltus step at least, and in the middle of adopting, constantly saltus step represents to send 0 or 1.
4. the intelligent terminal based on audio interface according to claim 3 and the data transmission method between control handle is characterized in that: described particular serial communications protocol before sending data, should make audio signal wire be in idle condition; While sending data, adopt the frame beginning flag to carry out synchronously; When the transmission data are completed, adopt frame end mark to represent that data send end, and make audio signal wire be in idle condition.
5. the intelligent terminal based on audio interface according to claim 3 and the data transmission method between control handle is characterized in that: the data frame format of described audio signal wire transmission uses CRC1 and CRC2 to carry out verification.
6. the described intelligent terminal based on audio interface of according to claim 1 to 5 any one and the data transmission method between control handle, it is characterized in that described intelligent terminal adopts three threads to realize the reception of voice data, send and carry out, three threads comprise watcher thread, main thread and business procedure, specifically comprise:
At first, set up the audible communication receiving or sending thread in main thread, be used for coordinating reception and the transmission of voice data;
Secondly, whether the audio interface that creates a monitoring intelligent terminal has the thread of data input, is used for the audio signal to from audio interface, collecting, and carries out the Difference Manchester decoding, and the data of decoding output receive the buffer memory of data; After watcher thread was received the valid data frame, by triggering the call back function in the external business program, notice external business program was obtained the data of importing into, and carries out;
Simultaneously, main thread circular wait data deposit event in, when the external business program, when having data to send, when the data that will send are put into shared transmission data buffer, namely have data to deposit event in and occur; Main thread is got the data that will send, and carries out Differential Manchester Encoding, then calls Differential Manchester Encoding that the audio frequency control interface function will deposit event in and send to audio interface and export to control handle.
CN2013103165919A 2013-07-26 2013-07-26 Audio interface-based data transmission method between intelligent terminal and operating handle Pending CN103402007A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2013103165919A CN103402007A (en) 2013-07-26 2013-07-26 Audio interface-based data transmission method between intelligent terminal and operating handle
PCT/CN2014/074593 WO2015010481A1 (en) 2013-07-26 2014-04-02 Audio interface-based method of transmitting data between intelligent terminal and controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013103165919A CN103402007A (en) 2013-07-26 2013-07-26 Audio interface-based data transmission method between intelligent terminal and operating handle

Publications (1)

Publication Number Publication Date
CN103402007A true CN103402007A (en) 2013-11-20

Family

ID=49565528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013103165919A Pending CN103402007A (en) 2013-07-26 2013-07-26 Audio interface-based data transmission method between intelligent terminal and operating handle

Country Status (2)

Country Link
CN (1) CN103402007A (en)
WO (1) WO2015010481A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888267A (en) * 2014-04-17 2014-06-25 娄长剑 Internet banking data encryption and authentication method and device based on audio interfaces
WO2015010481A1 (en) * 2013-07-26 2015-01-29 安徽畅感网络科技有限公司 Audio interface-based method of transmitting data between intelligent terminal and controller
CN104954569A (en) * 2015-06-18 2015-09-30 深圳市新众玩网络科技有限公司 Device for strengthening interaction function of game software and hardware
CN104978301A (en) * 2014-04-09 2015-10-14 Nxp股份有限公司 Two-line differential bus receiving and sending system based on I2C bus protocol and I2C double-line differential communication method
WO2016078271A1 (en) * 2014-11-18 2016-05-26 中兴通讯股份有限公司 Signal sending and receiving method, device and system
CN105743604A (en) * 2014-12-08 2016-07-06 天彩电子(深圳)有限公司 Data transmission method and device based on audio interface
CN112484842A (en) * 2020-11-03 2021-03-12 安徽节源环保科技有限公司 Industrial equipment vibration data acquisition and transmission method
CN114402576A (en) * 2019-09-24 2022-04-26 开利公司 System and method for transmitting and receiving Ethernet signals

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112017689A (en) * 2019-05-13 2020-12-01 厦门鼎安电子有限公司 Method for realizing audio communication based on single chip microcomputer

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020027748A (en) * 2000-10-05 2002-04-15 전유 Game Controller for Cellular Phone
CN201466380U (en) * 2009-03-09 2010-05-12 犹敏 Mobile audio interface external device
CN103002118A (en) * 2011-09-20 2013-03-27 朱星宇 Data transmission method based on audio input output interface
CN202860081U (en) * 2012-08-21 2013-04-10 高博 Mobile phone game controller
CN103067587A (en) * 2012-12-26 2013-04-24 北京大唐智能卡技术有限公司 Device, mobile phone and method based on audio interface and used for bidirectional data transmission

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7811173B2 (en) * 2003-09-30 2010-10-12 Pc Concepts Limited Interactive control of video machines and games therefor
CN201403149Y (en) * 2009-03-25 2010-02-10 沈阳同方多媒体科技有限公司 Television with game handle for playing games
CN103035116A (en) * 2012-12-13 2013-04-10 吴武飞 Method and device for conversion between audio signal and infrared remote control signal
CN103402007A (en) * 2013-07-26 2013-11-20 广州史达泊雷网络科技有限公司 Audio interface-based data transmission method between intelligent terminal and operating handle

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020027748A (en) * 2000-10-05 2002-04-15 전유 Game Controller for Cellular Phone
CN201466380U (en) * 2009-03-09 2010-05-12 犹敏 Mobile audio interface external device
CN103002118A (en) * 2011-09-20 2013-03-27 朱星宇 Data transmission method based on audio input output interface
CN202860081U (en) * 2012-08-21 2013-04-10 高博 Mobile phone game controller
CN103067587A (en) * 2012-12-26 2013-04-24 北京大唐智能卡技术有限公司 Device, mobile phone and method based on audio interface and used for bidirectional data transmission

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孟治国: "《基于音频接口的数据传输模块设计》", 《电子科技》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015010481A1 (en) * 2013-07-26 2015-01-29 安徽畅感网络科技有限公司 Audio interface-based method of transmitting data between intelligent terminal and controller
CN104978301A (en) * 2014-04-09 2015-10-14 Nxp股份有限公司 Two-line differential bus receiving and sending system based on I2C bus protocol and I2C double-line differential communication method
CN104978301B (en) * 2014-04-09 2019-08-13 Nxp股份有限公司 Two-wire differential bus receive-transmit system and I2C two-wire differential communication method based on I2C bus protocol
CN103888267A (en) * 2014-04-17 2014-06-25 娄长剑 Internet banking data encryption and authentication method and device based on audio interfaces
WO2016078271A1 (en) * 2014-11-18 2016-05-26 中兴通讯股份有限公司 Signal sending and receiving method, device and system
CN105743604A (en) * 2014-12-08 2016-07-06 天彩电子(深圳)有限公司 Data transmission method and device based on audio interface
CN104954569A (en) * 2015-06-18 2015-09-30 深圳市新众玩网络科技有限公司 Device for strengthening interaction function of game software and hardware
CN104954569B (en) * 2015-06-18 2018-06-15 深圳市新众玩网络科技有限公司 A kind of device for enhancing game software and hardware interactive function
CN114402576A (en) * 2019-09-24 2022-04-26 开利公司 System and method for transmitting and receiving Ethernet signals
CN112484842A (en) * 2020-11-03 2021-03-12 安徽节源环保科技有限公司 Industrial equipment vibration data acquisition and transmission method

Also Published As

Publication number Publication date
WO2015010481A1 (en) 2015-01-29

Similar Documents

Publication Publication Date Title
CN103402007A (en) Audio interface-based data transmission method between intelligent terminal and operating handle
CN203289452U (en) Wireless audio system based on acoustic wave communication pairing
CN103200263A (en) Intelligent terminal, Bluetooth audio playing device and interactive method and interactive system for intelligent terminal and Bluetooth audio playing device
CN108989708A (en) The low speed signal photoelectric conversion module of all-purpose belt multimedia interface
CN103002118A (en) Data transmission method based on audio input output interface
CN103167371A (en) Bluetooth headset with record storage function and vehicle with same
CN204559840U (en) A kind of earphone with Data Control plate
CN105100993A (en) Bluetooth earphone
CN202736480U (en) Microphone with remote controller, multimedia player and multimedia play system
CN203933621U (en) A kind of HID blue tooth voice communicator
CN203466878U (en) Audio-interface-based data transmission system between intelligent terminal and operating handle
CN201323575Y (en) Bluetooth headset
CN205071293U (en) Digital signal processor and audio frequency processing apparatus
CN205142481U (en) Multichannel audio frequency hybrid processing ware
CN212211400U (en) Bluetooth audio data transmission system
CN103220021A (en) Voice dialing Bluetooth headset
CN201957216U (en) Bluetooth earphone with sound recording function
CN211019029U (en) Coding and decoding integrated audio and video processor
CN205283833U (en) Wireless access gateway equipment of synthesizing of integrated doorbell suggestion
CN106981293A (en) A kind of intelligent frequency modulation system for telecommunications
CN209845030U (en) Mobile phone for realizing Ethernet function
CN206896541U (en) A kind of intelligent aromatherapy machine
CN204887368U (en) Lanya earphone
CN209375637U (en) A kind of audio transmission device
CN203015134U (en) Mobile terminal transit station and mobile terminal transit system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: ANHUI CHANGGAN NETWORK TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: GUANGZHOU STARPLAN NETWORK TECHNOLOGY CO., LTD.

Effective date: 20140421

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 510665 GUANGZHOU, GUANGDONG PROVINCE TO: 243000 MAANSHAN, ANHUI PROVINCE

TA01 Transfer of patent application right

Effective date of registration: 20140421

Address after: 243000 Anhui Province, Ma'anshan City Economic Development Zone Jiuhua Road Yushan Jiada Science Park No. 1500, room 422

Applicant after: ANHUI CHANGGAN NETWORK TECHNOLOGY CO., LTD.

Address before: Tianhe District Jianye road Huacui street in Guangzhou City, Guangdong province 510665 No. 68 by 101D

Applicant before: Guangzhou Starplan Network Technology Co., Ltd.

C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20131120