CN102413208A - Method for realizing serial port communication by utilizing mobile phone earphone interface - Google Patents

Method for realizing serial port communication by utilizing mobile phone earphone interface Download PDF

Info

Publication number
CN102413208A
CN102413208A CN2011103173070A CN201110317307A CN102413208A CN 102413208 A CN102413208 A CN 102413208A CN 2011103173070 A CN2011103173070 A CN 2011103173070A CN 201110317307 A CN201110317307 A CN 201110317307A CN 102413208 A CN102413208 A CN 102413208A
Authority
CN
China
Prior art keywords
mobile phone
earphone interface
interface
earphone
serial port
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
CN2011103173070A
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.)
HANGZHOU XINSAI MICRO-ELECTRONICS Co Ltd
Original Assignee
HANGZHOU XINSAI MICRO-ELECTRONICS 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 HANGZHOU XINSAI MICRO-ELECTRONICS Co Ltd filed Critical HANGZHOU XINSAI MICRO-ELECTRONICS Co Ltd
Priority to CN2011103173070A priority Critical patent/CN102413208A/en
Publication of CN102413208A publication Critical patent/CN102413208A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a method for realizing serial port communication by utilizing a mobile phone earphone interface to realize data interaction between a mobile phone and peripheral equipment through the mobile phone interface. As an abstract figure shows, in the invention, the peripheral equipment is connected with the mobile phone through a standard earphone interface, a left sound channel output or a right sound channel output of the earphone interface is taken as a data output channel, and a microphone input of the earphone interface is taken as a mobile phone reception data input channel. An audio signal output by the mobile phone is an analog waveform in accordance with a serial port protocol, and becomes a digital signal through amplification rectification. A digital signal input by the mobile phone is subjected to recording acquisition first, and then is identified by an application program. The method has low realization cost, and design of the peripheral equipment needs support of a chip with serial port communication, an earphone pin and a simple amplification and rectification circuit. There is no special requirement to a mobile phone hardware interface, and only simple processing by application software is needed. The method has good applicability, earphone interfaces of most present mobile phones including a smart phone and a non-smart phone are standardized and unified, and the method has wide applicability.

Description

Utilize earphone interface of mobile phone to realize the method for serial communication
Technical field
The present invention relates to a kind of method of utilizing earphone interface of mobile phone to realize serial communication, make between mobile phone and the ancillary equipment and realize the mutual of data through earphone interface.
Background technology
Mobile phone is very universal as people's periodic traffic instrument, and is also more and more based on the application program and the ancillary equipment thereof of mobile phone development.Mobile phone function has more widely been given in these application, head and shoulders above communication category.The interface shape disunity of various mobile phones, incompatible, so the interface shape of ancillary equipment and mobile phone is also very difficult unified, must develop the ancillary equipment to the different mobile phones interface type.This has caused ancillary equipment complexity of developing and cost significantly to increase, and has limited the popularization of a lot of mobile phone application and popular.
According to CNS regulation, specification becomes the indispensable interface of mobile phone for the 3.5mm earphone interface, and existing main flow mobile phone model is National standard all.
Serial ports (UART) is the abbreviation of " universal asynchronous serial interface ", is a kind of interface that electronic technology field extensively receives and uses, and all supports the UART interface basically from 4 to 32 microcontroller chips.Though the transmission speed of serial ports is low, substituted by the interface of various high speeds such as USB, SATA etc., because of its life period is long, obtains the extensive support of microcontroller chip and realize that cost is low, still exist in a large number and use in the low-speed communication occasion.
Summary of the invention
The object of the invention has proposed a kind of method of utilizing earphone interface of mobile phone to realize serial communication, for mobile phone and ancillary equipment provide a general data interactive mode.Shown in accompanying drawing 1, method of the present invention is that ancillary equipment passes through the standard earphone interface and is connected with mobile phone, because standardization of the earphone jack of most model mobile phones and ubiquity, so the inventive method has extensive applicability.
At the serial communication of earphone interface of mobile phone and ancillary equipment, implementation method comprises the steps:
1, utilizes the L channel of earphone interface of mobile phone or the downlink that R channel output is exported as data in mobile phone.
2, utilize the uplink of the microphone input of earphone interface of mobile phone as the data in mobile phone input.
3, can only output audio signal because of mobile phone, need be made into signal waveform voice data and play output according to the serial port protocol regulation, audio volume control becomes the discernible digital signal of ancillary equipment through amplifying shaping.
4, the ancillary equipment digital signal that sends to mobile phone meets serial port protocol, and mobile microphone can be recorded down signal waveform, analyzes identification by software on the mobile phone.The baud rate because serial communication is made an appointment, mobile phone software, this waveform of discriminance analysis obtains real data and uncomplicated.
Above-mentioned implementation method advantage is to realize that cost is low, need possess the chip support of serial communication in the design of ancillary equipment, needs earphone contact pin and simple amplification and rectification circuit, and the hardware cost expense of USB interface is low relatively.Hardware interface to mobile phone does not have special demands, as long as the application software of mobile phone is done simple process, adopts the voice playing form that required waveform takes place, and concerning software design, does not relate to the bsp driver exploitation, and simple, convenient debugging and software portability are good.Under the low prerequisite of hardware implementation cost, also increase the complexity of software design hardly.
The said method advantage is that applicability is good, and most existing mobile phones comprise that the earphone interface of smart mobile phone and non intelligent mobile phone is standardization and unified, and this method has extensive applicability.
These advantages make the inventive method be more prone to adopted in the application scenario that needs low-speed communication and accept.
Description of drawings
With reference to following detailed description and accompanying drawing, can better understand of the present invention about structure and implementation method with and purpose, characteristic and advantage.Structure in the accompanying drawing is as just a design example of the present invention.
Fig. 1 is for supporting the sketch map of the inventive method.
Shown in accompanying drawing 1, the signal between ancillary equipment and the earphone interface of mobile phone connects the R channel that comprises earphone interface to be exported as the mobile phone output channel, and the microphone of earphone interface is imported as the mobile phone input channel, and mobile phone and ancillary equipment need be altogether.
Ancillary equipment needs the contact pin of standard earphone interface, is inserted on the handset earphone hole, is connected with the reliable of earphone interface of mobile phone with assurance.
Application program need cooperate the inventive method design on the mobile phone; Needing to send data creating becomes audio form to play the R channel that outputs to earphone interface; The input waveform that needs the identification recording to obtain, serial ports baud rate is according to a preconcerted arrangement changed out actual communication data.
Embodiment
In following detailed description, described specific details and the present invention has comprehensively been understood so that provide.Yet the professional and technical personnel will appreciate that the present invention also can use other similar details to implement.
Accompanying drawing 1 is for supporting the sketch map of apparatus of the present invention and method.
The inventive method does not have specific (special) requirements to the mobile phone shown in the accompanying drawing 1; It can be non-smart mobile phone; Can be smart mobile phone also, so long as possess standardized earphone interface and jack, and corresponding application program of mobile phone is installed; Can both realize that ancillary equipment in the mobile phone serial communication, has general applicability.
The communication interface of mobile phone and ancillary equipment is the serial ports form, and the data of sending are as required made audio file and play output with the form of combination of bytes.Ancillary equipment sends to the data of mobile phone, is recorded as simulated audio signal by mobile phone, obtains the data of byte form through the analysis of application program.
Mobile phone ancillary equipment according to the inventive method design must possess the standard earphone contact pin, is inserted in the mobile phone jack in use and guarantees reliable physical connection.The microcontroller chip able to programme that must possess band digital input-output interface or hardware serial ports is supported serial communication through programming.Must possess amplification and rectification circuit, realize amplification and shaping earphone output audio signal analog waveform.
Behind application program launching,, can detect ancillary equipment automatically and whether plug through initialization.After the initialization success, mobile phone can normally carry out with the intercommunication mutually of ancillary equipment, and communication protocol is according to the standard of serial communication.
Though here declarative description certain this characteristic and a kind of implementation method of apparatus of the present invention, for the professional and technical personnel, many modifications, replacement, variation and equivalent substitution will appear.Therefore, protection scope of the present invention is as the criterion by the scope of appended claim.

Claims (6)

1. a method of utilizing earphone interface of mobile phone to realize serial communication makes between mobile phone and the ancillary equipment and realizes the mutual of data through earphone interface.
2. said according to right 1, this method characteristic is that ancillary equipment passes through the standard earphone interface and is connected with mobile phone.
3. said according to right 1, this method characteristic is that the L channel or the R channel of earphone interface of mobile phone exported as the mobile phone end data output channel.
4. said according to right 1, this method characteristic is that the microphone of earphone interface of mobile phone is imported as mobile phone end data input channel.
5. said according to right 1, this method characteristic is that the audio signal of mobile phone output is the waveform of simulative serial port agreement, and ancillary equipment becomes digital signal to this waveform through amplifying shaping.
6. said according to right 1, this method characteristic is the digital signal that ancillary equipment is exported to mobile phone, by the mobile phone recording, is discerned by application program of mobile phone.
CN2011103173070A 2011-10-14 2011-10-14 Method for realizing serial port communication by utilizing mobile phone earphone interface Pending CN102413208A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103173070A CN102413208A (en) 2011-10-14 2011-10-14 Method for realizing serial port communication by utilizing mobile phone earphone interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103173070A CN102413208A (en) 2011-10-14 2011-10-14 Method for realizing serial port communication by utilizing mobile phone earphone interface

Publications (1)

Publication Number Publication Date
CN102413208A true CN102413208A (en) 2012-04-11

Family

ID=45915049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103173070A Pending CN102413208A (en) 2011-10-14 2011-10-14 Method for realizing serial port communication by utilizing mobile phone earphone interface

Country Status (1)

Country Link
CN (1) CN102413208A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724367A (en) * 2012-06-27 2012-10-10 喻应东 Mobile phone extension system, signal transfer equipment and mobile phone
CN103067826A (en) * 2013-01-25 2013-04-24 广州市天艺电子有限公司 Effector circuit connected with intelligent terminal
CN103200006A (en) * 2013-02-18 2013-07-10 飞天诚信科技股份有限公司 Communication method and communication device between terminal and external equipment
CN103383675A (en) * 2013-05-23 2013-11-06 上海斐讯数据通信技术有限公司 Main board communication method and main board
CN104092824A (en) * 2014-07-08 2014-10-08 付银海 Serial port communication method achieved through left sound track and right sound track of earphone of mobile phone by means of signal difference
CN104484268A (en) * 2014-11-21 2015-04-01 厦门美图移动科技有限公司 Debugging method and mobile terminal
CN104599480A (en) * 2015-02-01 2015-05-06 孙玉梅 Infrared signal emission device and working method thereof
WO2016011926A1 (en) * 2014-07-22 2016-01-28 努比亚技术有限公司 Information transmission method and apparatus, mobile terminal, and storage medium
WO2017114270A1 (en) * 2015-12-31 2017-07-06 青岛海尔滚筒洗衣机有限公司 Washing machine and control method
CN107704349A (en) * 2017-09-26 2018-02-16 郑州云海信息技术有限公司 A kind of UART bus signals measurement jig and method

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724367B (en) * 2012-06-27 2014-09-10 喻应东 Mobile phone extension system, signal transfer equipment and mobile phone
CN102724367A (en) * 2012-06-27 2012-10-10 喻应东 Mobile phone extension system, signal transfer equipment and mobile phone
CN103067826A (en) * 2013-01-25 2013-04-24 广州市天艺电子有限公司 Effector circuit connected with intelligent terminal
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
CN103383675A (en) * 2013-05-23 2013-11-06 上海斐讯数据通信技术有限公司 Main board communication method and main board
CN104092824A (en) * 2014-07-08 2014-10-08 付银海 Serial port communication method achieved through left sound track and right sound track of earphone of mobile phone by means of signal difference
WO2016011926A1 (en) * 2014-07-22 2016-01-28 努比亚技术有限公司 Information transmission method and apparatus, mobile terminal, and storage medium
CN104484268A (en) * 2014-11-21 2015-04-01 厦门美图移动科技有限公司 Debugging method and mobile terminal
CN104599480A (en) * 2015-02-01 2015-05-06 孙玉梅 Infrared signal emission device and working method thereof
WO2017114270A1 (en) * 2015-12-31 2017-07-06 青岛海尔滚筒洗衣机有限公司 Washing machine and control method
CN106930041A (en) * 2015-12-31 2017-07-07 青岛海尔滚筒洗衣机有限公司 A kind of washing machine and control method
JP2019500164A (en) * 2015-12-31 2019-01-10 青島海爾滾筒洗衣机有限公司 Washing machine and control method
CN106930041B (en) * 2015-12-31 2019-11-01 重庆海尔滚筒洗衣机有限公司 A kind of washing machine and control method
US11105031B2 (en) 2015-12-31 2021-08-31 Qingdao Haier Drum Washing Machines Co., Ltd. Washing machine and control method thereof
CN107704349A (en) * 2017-09-26 2018-02-16 郑州云海信息技术有限公司 A kind of UART bus signals measurement jig and method

Similar Documents

Publication Publication Date Title
CN102413208A (en) Method for realizing serial port communication by utilizing mobile phone earphone interface
CN1937852B (en) Audio playing system and audio playing control method
CN106941544A (en) A kind of mobile terminal Bluetooth audio frequency expansion module
CN201585236U (en) Vehicular digital multimedia playing equipment
CN105187976A (en) Mobile terminal and sound amplification method based on Bluetooth sound box
CN102103884B (en) Audio playing device
CN103945294A (en) Independent intelligent earphone with host separable structure achieved through magnet attraction
CN104253661A (en) Software radio-based ultra-short wave radio set waveform transplant method and platform
CN204013976U (en) A kind of by the autonomous intelligence earphone of 3G or the networking of 4G technology
CN104917998A (en) Wireless microphone, video conference systems and operation method thereof
CN204013977U (en) A kind of autonomous intelligence earphone of realizing the detachable structure of main frame by magnet adsorption
CN106848789A (en) A kind of Multifunctional adapter for pickup, adapter system, forwarding method
CN103427883A (en) Bluetooth audio adapter and audio player
CN204244455U (en) Earphone
CN103914421B (en) Data terminal, data transmission system and hot-swap control method
CN203072137U (en) Dual-purpose earphones adopting wired transmission mode and wireless transmission mode
CN105049998A (en) Audio communication device
CN204928821U (en) USB interface and terminal equipment , antennal interface and NFC antenna, communication system
CN103297132A (en) Visible light communication method and signal output device
CN203340270U (en) Music player and bluetooth audio adapter
CN203912165U (en) Bluetooth loudspeaker box system
CN102685433A (en) Method and device for connecting TV with WiFi (Wireless Fidelity) device
CN107333195A (en) Conversion equipment and ear speaker device
CN202679463U (en) Mobile terminal and earphone interface processing circuit for mobile terminal
CN104092824A (en) Serial port communication method achieved through left sound track and right sound track of earphone of mobile phone by means of signal difference

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
DD01 Delivery of document by public notice

Addressee: Hangzhou Xinsai Micro-Electronics Co., Ltd.

Document name: Notification that Application Deemed to be Withdrawn

C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120411