CN103995480B - A kind of system and method by earphone socket exchange data - Google Patents

A kind of system and method by earphone socket exchange data Download PDF

Info

Publication number
CN103995480B
CN103995480B CN201410256295.9A CN201410256295A CN103995480B CN 103995480 B CN103995480 B CN 103995480B CN 201410256295 A CN201410256295 A CN 201410256295A CN 103995480 B CN103995480 B CN 103995480B
Authority
CN
China
Prior art keywords
equipment
main frame
modular converter
data
module
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.)
Active
Application number
CN201410256295.9A
Other languages
Chinese (zh)
Other versions
CN103995480A (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.)
Beijing Xin Chuanruisheng Science And Technology Ltd
Original Assignee
Beijing Xin Chuanruisheng Science And Technology 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 Beijing Xin Chuanruisheng Science And Technology Ltd filed Critical Beijing Xin Chuanruisheng Science And Technology Ltd
Priority to CN201410256295.9A priority Critical patent/CN103995480B/en
Publication of CN103995480A publication Critical patent/CN103995480A/en
Application granted granted Critical
Publication of CN103995480B publication Critical patent/CN103995480B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to a kind of system and method, a kind of system and method by earphone socket exchange data, belong to the technical field of Smart Home.The technical scheme provided according to the present invention, the described system by earphone socket exchange data, including equipment to be controlled, described equipment to be controlled is connected with the audio frequency apparatus controlled in main frame by audio cable;Control main frame, equipment to be controlled and data to be communicated all can be modulated into audio signal, and carried out the exchange of audio signal by audio cable and audio frequency apparatus.It is connected by audio cable between present invention equipment to be controlled with control main frame, the operation being modulated, demodulating in equipment to be controlled, control main frame, data to be communicated can be swapped with voice-frequency signalling, it is thus possible to obtain the duty of equipment to be controlled or equipment to be controlled control effectively, whole system only comprises a small amount of peripheral circuit, low cost, is only connected by audio cable, easy to use, simple and reliable.

Description

A kind of system and method by earphone socket exchange data
Technical field
The present invention relates to a kind of system and method, a kind of system and method by earphone socket exchange data, belong to the technical field of Smart Home.
Background technology
Communication, namely data exchange, has been a kind of technology extremely relied on for the world today.Data communication technology is had in every field.Different occasions are different to the requirement of data communication, some requirement reliabilities, and some requirements are at high speed, and also have plenty of requirement and the most easily use.
In the use of intelligent home device or installation and debugging under such circumstances, it usually needs connect and control equipment easily, or from equipment, read information interested.Thus need to be equipped with a kind of interface for equipment, can be not easy easily to connect with being limited, use.Simultaneously taking account of the disposal ability of intelligent home device, this interface should realize simply, low cost, and is easily used by most people association.
Summary of the invention
It is an object of the invention to overcome the deficiencies in the prior art, it is provided that a kind of system and method by earphone socket exchange data, it only needs to be connected by a tone frequency channel wire, easy to operate, reliable communication, wide accommodation can be realized by earphone socket, low cost, safe and reliable.
The technical scheme provided according to the present invention, the described system by earphone socket exchange data, including equipment to be controlled, described equipment to be controlled is connected with the audio frequency apparatus controlled in main frame by audio cable;Control main frame, equipment to be controlled and data to be communicated all can be modulated into audio signal, and carried out the exchange of audio signal by audio cable and audio frequency apparatus.
Described control main frame includes the host data modular converter being connected with audio frequency apparatus and the configuration application module being connected with described host data modular converter;
Configuration application module, it is connected with host data modular converter, data composition main frame to be communicated is sent communication data packet, and by described main frame transmission communication data packet transmission to host data modular converter, to be converted into main frame transmission audio signal by host data modular converter, and the equipment transmission communication data of host data modular converter transmission can be carried out dissection process;
Host data modular converter, is converted into the packet of configuration application module transmission main frame and sends audio signal, and the equipment transmission audio signal that audio frequency apparatus receives can be converted into the main frame reception communication data needed for configuration application module;
Audio-frequency module, the main frame transmitted by host data modular converter sends audio signal and carries out playback output, and can by audio cable obtain device transmission to be controlled equipment send audio signal, and equipment is sent audio signal by host data modular converter be converted to main frame receive communication data.
Described host data modular converter includes that main frame sends data conversion unit and host receiving data converter section;Described main frame sends the main frame parallel serial conversion module that data conversion unit includes carrying out parallel-serial conversion for main frame sends communication data packet, and described main frame parallel serial conversion module is connected with the host audio signal modulation module being used for modulating data onto into audio signal;
Described host receiving data converter section includes that main frame zero-crossing detector, the outfan of main frame zero-crossing detector are connected along enumerator with main frame 0/1, and main frame 0/1 is connected with main frame serioparallel exchange module along enumerator by main frame frequency judgement/demodulator;Main frame frequency judgement/demodulator, host audio signal modulation module all outfans with main frame baud rate controller are connected.
Described host audio signal modulation module includes main frame DDS signal generator or host side wave generator, and described host side wave generator is obtained main frame and sends audio signal after being filtered by main frame wave digital lowpass filter by the square-wave signal of generation.
Described equipment to be controlled includes
Filtering Processing module, is connected with audio cable and device data modular converter, and the equipment transmission audio signal that the main frame of audio cable transmission can send audio signal and the transmission of device data modular converter is filtered;
Device data modular converter, it is connected with Filtering Processing module and microprocessor applications module, the main frame of Filtering Processing module transfer can be sent audio signal and be converted into the equipment reception communication data needed for microprocessor applications module, and the equipment that can be converted into by the equipment sending data of microprocessor applications module transfer sends audio signal.
Described device data modular converter includes equipment input signal modular converter, apparatus output signal modular converter and equipment baud rate controller, described equipment baud rate controller and equipment input signal modular converter (and apparatus output signal modular converter is connected.
Described equipment input signal modular converter uses the first input signal modular converter or the second input signal modular converter;
First input signal modular converter includes the device A/D modular converter sending audio signal for the main frame of the processing module transmission that accepts filter and the equipment zero-crossing detector being connected with device A/D modular converter;Described equipment zero-crossing detector is connected along enumerator with equipment 0/1, and described equipment 0/1 is connected along enumerator with device frequency judgement/demodulator, and device frequency judgement/demodulator is connected with equipment serioparallel exchange module and equipment baud rate controller;
Second input signal modular converter includes the equipment comparator sending audio signal for the main frame of the processing module transmission that accepts filter and the grabber being connected with equipment comparator output terminal, described grabber is connected with pulsewidth/frequency computing module, pulsewidth/frequency computing module is connected with demodulator, and described demodulator is connected with equipment baud rate controller and equipment serioparallel exchange module.
Described apparatus output signal modular converter uses the first output signal modular converter, the second output signal modular converter or the 3rd output signal modular converter;
First output signal modular converter includes that equipment parallel serial conversion module, described equipment parallel serial conversion module are connected with equipment DDS signal generator, and described equipment DDS signal generator is connected with equipment baud rate controller and equipment D/A modular converter;
Second output signal modular converter includes equipment parallel serial conversion module and the equipment square wave signal generator being connected with described equipment module of going here and there;Described equipment square wave signal generator is connected with equipment baud rate controller and apparatus figure low pass filter, and described apparatus figure low pass filter is connected with equipment D/A modular converter;
3rd output signal modular converter includes equipment parallel serial conversion module and the PWM module being connected with described equipment parallel serial conversion module, and described PWM module is connected with equipment baud rate controller.
A kind of method by earphone socket exchange data, including equipment to be controlled, described equipment to be controlled is connected with the audio frequency apparatus controlled in main frame by audio cable;Control main frame, equipment to be controlled and data to be communicated all can be modulated into audio signal, and carried out the exchange of audio signal by audio cable and audio frequency apparatus.
The method of data audio signal modulation to be communicated is included FSK modulation or ASK modulation by described control main frame, equipment to be controlled.
Advantages of the present invention: be connected by audio cable between equipment to be controlled with control main frame, the operation being modulated, demodulating in equipment to be controlled, control main frame, data to be communicated can be swapped with voice-frequency signalling, it is thus possible to obtain the duty of equipment to be controlled or equipment to be controlled control effectively, whole system only comprises a small amount of peripheral circuit, low cost, is only connected by audio cable, easy to use, simple and reliable.
Accompanying drawing explanation
Fig. 1 is existing a kind of enforcement structured flowchart.
Fig. 2 is existing another kind of enforcement structured flowchart.
Fig. 3 is that existing the third implements structured flowchart.
Fig. 4 is the structured flowchart of the present invention.
Fig. 5 is that host data modular converter of the present invention implements block diagram with a kind of of audio frequency apparatus.
Fig. 6 is that host data modular converter of the present invention implements block diagram with the another kind of of audio frequency apparatus.
Fig. 7 is the structured flowchart of present invention equipment to be controlled.
Fig. 8 is the enforcement structured flowchart of the first input signal modular converter in present invention equipment to be controlled.
Fig. 9 is the enforcement structured flowchart of the second input signal modular converter in present invention equipment to be controlled.
Figure 10 is the enforcement structured flowchart of the first output signal modular converter in present invention equipment to be controlled.
Figure 11 is the enforcement structured flowchart of the second output signal modular converter in present invention equipment to be controlled.
Figure 12 is the enforcement structured flowchart of the 3rd output signal modular converter in present invention equipment to be controlled.
nullDescription of reference numerals: 10-controls main frame、11-equipment to be controlled、12-audio cable、101-configures application module、102-host data modular converter、103-audio frequency apparatus、111-microprocessor applications module、112-device data modular converter、113-Filtering Processing module、1021-main frame parallel serial conversion module、1022-main frame DDS signal generator、1023-main frame zero-crossing detector、1024-main frame 0/1 is along enumerator、1025-main frame frequency judgement/demodulator、1026-main frame serioparallel exchange module、1027-main frame baud rate controller、1028-host side wave generator、1029-main frame wave digital lowpass filter、1031-audio output device、1032-voice input device、1121-equipment input signal modular converter、1122-apparatus output signal modular converter、1123-device A/D modular converter、1124-equipment comparator、1125-grabber、1126-pulsewidth/frequency computing module、1127-demodulator、1128-equipment zero-crossing detector、1129-equipment 0/1 is along enumerator、1131-equipment input signal low pass filter、1132-apparatus output signal low pass filter、1137-equipment baud rate controller、1140-device frequency judgement/demodulator、1141-equipment serioparallel exchange module、1142-equipment D/A modular converter、1143-equipment DDS signal generator、1144-equipment parallel serial conversion module、1145-equipment square wave signal generator、1146-apparatus figure low pass filter and 1147-PWM module.
Detailed description of the invention
Below in conjunction with concrete drawings and Examples, the invention will be further described.
As shown in Figure 1: for the schematic diagram of existing employing serial communication, main equipment is connected communication by RS232 serial ports with equipment to be controlled.Although utilizing RS232 serial ports to communicate, sending and controlling data, read equipment state very convenient, and simply.But the most do not provide serial ports such interface outside the mobile devices such as the computer equipment of new production at present and mobile phone;And common serial interface is bulky, extremely take the space of equipment;If using special miniature connector, interface disunity can be caused again, it has not been convenient to use.Therefore use the mode of serial ports exchange data, the application of Smart Home cannot meet requirement.
As in figure 2 it is shown, the schematic diagram communicated for existing employing earphone socket, it is similar to the card reader of mobile phone.Data separate earphone socket is transferred to signaling conversion circuit by i.e. mobile phone or panel computer, and signaling conversion circuit can be utilized to extract data, and gives equipment to be controlled.But signaling conversion circuit needs to use specialized chip, comprising modulation-demodulation circuit, and additionally employ modulation-demodulation circuit and change for doing signal in signaling conversion circuit, the scope of application is less, and relatively costly.Also cannot use in the application of Smart Home simultaneously.
As it is shown on figure 3, be the schematic diagram communicated by speaker, i.e. by data are modulated acoustically, utilize speaker to transfer out, after being received data by the microphone of communication equipment, carry out signal conversion, extract data, then give controlled equipment.This embodiment can only realize one-way communication, and by speaker transmission signal after, background noise can be introduced, the process of signal and the extraction of data are proposed requirements at the higher level, such controlled device overall structure can be more complicated, and cost also can be higher.
Additionally, also by earphone jack communication, but it is to use the mode directly transmitted.After i.e. by data are packed, the low and high level that original 0,1 state of data becomes earphone jack signal contact is directly communicated.This mode can be distorted during equipment life can cause certain impact, and signal transmission, therefore can cause communication instability, easy error code.
As shown in Figure 4, in order to realize simply and easily reliably communicating, reducing communications cost, the present invention includes that equipment 11 to be controlled, described equipment 11 to be controlled are connected with the audio frequency apparatus 103 controlled in main frame 10 by audio cable 12;Control main frame 10, equipment to be controlled 11 and data to be communicated all can be modulated into audio signal, and carried out the exchange of audio signal by audio cable 12 and audio frequency apparatus 103.
Specifically, control main frame 10 and can include hands machine, panel computer, PC and other comprise the calculating equipment of earphone socket, equipment 11 to be controlled can be the controller etc. of existing intelligent home device, when equipment 11 to be controlled communicates with control main frame 10, equipment 11 the most to be controlled is to the data controlling main frame 10 transmission, or the data controlling main frame 10 transmission extremely equipment 11 to be controlled are all modulated into audio signal, audio signal is transmitted exchange by audio frequency apparatus 103 and audio cable 12, and at equipment 11 to be controlled, control main frame 10 interior to audio signal dissection process.Audio frequency apparatus 103 can use existing structure, and audio frequency apparatus 103 typically can include sound card, driver of sound card, jack, audio microphone etc., and audio cable 12 uses existing audio connecting cord.Additionally, in the specific implementation, one end of audio cable 12 has the plug that may be inserted into earphone socket;Other end is the adapter that can access equipment 11 to be controlled, and the form of this adapter can be headset plug, it is also possible to be self-defined socket.Generally signal definition is L channel, R channel, microphone and common port.Being known to those skilled in the art of the present technique, here is omitted.
Further, described control main frame 10 includes the host data modular converter 102 being connected with audio frequency apparatus 103 and the configuration application module 101 being connected with described host data modular converter 102;
Configuration application module 101, it is connected with host data modular converter 102, data composition main frame to be communicated is sent communication data packet, and by described main frame transmission communication data packet transmission to host data modular converter 102, to be converted into main frame transmission audio signal by host data modular converter 102, and the equipment transmission communication data of host data modular converter 102 transmission can be carried out dissection process;
Host data modular converter 102, is converted into the packet that configuration application module 102 sends main frame and sends audio signal, and the equipment transmission audio signal that audio frequency apparatus 103 receives can be converted into the main frame reception communication data needed for configuration application module 101;
Audio-frequency module 103, the main frame transmitted by host data modular converter 102 sends audio signal and carries out playback output, and can by audio cable 12 obtain equipment 11 to be controlled transmission equipment send audio signal, and equipment is sent audio signal by host data modular converter 102 be converted to main frame receive communication data.
In the embodiment of the present invention, main frame sends audio signal and refers to control the data that main frame 10 sends with audible to equipment 11 to be controlled, main frame receives communication data and refers to that controlling main frame 10 receives the communication data that equipment 11 to be controlled sends, equipment sends the audio signal that audio signal refers to that equipment 11 to be controlled sends to control main frame 10, and main frame receives communication data and refers to that controlling main frame 10 receives the data mode that the voice data of equipment 11 to be controlled can directly process after conversion.
Control the man machine interface that the configuration application module 101 in main frame 10 is used for realizing controlling function, generate data to be communicated for completing, and data composition main frame to be communicated is sent communication data packet, main frame transmission communication data packet is carried out conversion process by host data modular converter 102.Host data modular converter 102 sends communication data packet to main frame and carries out parallel-serial conversion, modulating transformation etc., main frame is sent communication data packet and uses FSK(Frequency-shift keying) modulation or ASK(amplitude shift keying) mode such as modulation modulates audiorange, to ensure communication quality, the frequency of audio frequency can be 5KHz ~ 10KHz, certainly, in the specific implementation, the modulation system that can also use other modulates data on audiorange, the frequency of audio frequency can also be other numerical value, the selection of described modulation system and audio frequency is known to those skilled in the art, here is omitted.
As shown in Figure 5 and Figure 6, as a example by using FSK modulation, host data modular converter 102 has different enforcement structures, and wherein, described host data modular converter 102 includes that main frame sends data conversion unit and host receiving data converter section;Described main frame sends the main frame parallel serial conversion module 1021 that data conversion unit includes carrying out parallel-serial conversion for main frame sends communication data packet, and described main frame parallel serial conversion module 1021 is connected with the host audio signal modulation module being used for modulating data onto into audio signal;
Described host receiving data converter section includes main frame zero-crossing detector 1023, the outfan of main frame zero-crossing detector 1023 is connected along enumerator 1024 with main frame 0/1, and main frame 0/1 is connected with main frame serioparallel exchange module 1026 along enumerator 1024 by main frame frequency judgement/demodulator 1025;Main frame frequency judgement/demodulator 1025, host audio signal modulation module all outfans with main frame baud rate controller 1027 are connected.
Described host audio signal modulation module includes main frame DDS signal generator 1022 or host side wave generator 1028, and described host side wave generator 1028 is obtained main frame and sends audio signal after being filtered by main frame wave digital lowpass filter 1031 by the square-wave signal of generation.
Specifically, the connection between main frame 10, equipment to be controlled 11 for audio frequency apparatus 103 and control, audio frequency apparatus 103 can include audio output device 1031 and voice input device 1032, by audio output device 1031 for main frame being sent audio signal playback output, the equipment of equipment 11 to be controlled can be sent audio signal reception entrance by voice input device 1032 and controlling in main frame 10.
When host audio signal modulation module use main frame DDS(Direct Digital Synthesizer) signal generator 1022 time, main frame DDS signal generator 1022 is connected with main frame parallel serial conversion module 1021 and main frame baud rate controller 1027, and main frame DDS signal generator 1022 is connected with audio output device 1031.The main frame that configuration application module 101 transmits is sent communication data packet and carries out parallel-serial conversion by main frame parallel serial conversion module 1021, main frame DDS signal generator 1022 is controlled under the effect of main frame baud rate controller 1027, directly the main frame packet to be communicated employing FSK modulation after conversion can be become sine wave signal to be played back by DDS signal generator 1022, it is subsequently sent on audio output device 1031, finally plays back output.
When host audio signal modulation module uses host side wave generator 1028, host side wave generator 1028 is connected with main frame wave digital lowpass filter 1029, main frame baud rate controller 1027, host side wave generator 1028 is utilized to produce the digital square-wave of two frequencies, the main frame being then passed through the conversion of main frame serioparallel exchange module 1021 sends communication data packet according to the baud rate of main frame baud rate controller 1027 to control host side wave generator 1028, selects the output of two-way different frequency square-wave signal Zhong mono-tunnel.During data stream changes over, the fsk modulated signal of change can be formed, finally by main frame wave digital lowpass filter 1029, it is ensured that the signal of two Frequency points can pass through, and too high frequency is all filtered out, so be conducive to transmitting in voice-grade channel.The main frame modulated sends audio signal and is sent on the audio output device 1031 of audio frequency apparatus 103, finally plays back output.
When controlling main frame 10 and receiving data, host data modular converter 102 reads the equipment audio frequency of equipment 11 to be controlled transmission from the voice input device 1032 of audio frequency apparatus 103 and sends signal.Process through main frame zero-crossing detector 1023, acoustical signal can be become square wave, then main frame 0/1 is utilized along enumerator 1024, the edge of change to be counted, the frequency values of different time sections can be obtained by the process of main frame frequency judgement/demodulator 1025, under the control of main frame baud rate controller 1027, the data stream received can be recovered.Finally data are changed through main frame serioparallel exchange module 1026, required main frame can be transmitted to configuration application module 101 and receive communication data, carry out the process further such as parsing by main frame is received communication data, it is possible to the data message needed for acquisition.
In the embodiment of the present invention, main frame parallel serial conversion module 1021, main frame serioparallel exchange module 1026 carry out two kinds of contrary conversion operations, all use the transition form that the art is conventional, main frame DDS signal generator 1022, main frame zero-crossing detector 1023, main frame 0/1 are along the concrete work process of enumerator 1024, main frame frequency judgement/demodulator 1025, main frame baud rate controller 1027, host side wave generator 1028 and main frame wave digital lowpass filter 1029 and implement structure and be known to those skilled in the art, and here is omitted.
Further, described equipment to be controlled 11 includes
Filtering Processing module 113, is connected with audio cable 12 and device data modular converter 112, and the equipment transmission audio signal that the main frame of audio cable 12 transmission can send audio signal and device data modular converter 112 transmission is filtered;
Device data modular converter 112, it is connected with Filtering Processing module 113 and microprocessor applications module 111, the main frame that Filtering Processing module 113 is transmitted can be sent audio signal and be converted into the equipment reception communication data needed for microprocessor applications module 111, and the equipment that can be converted into by the equipment sending data that microprocessor applications module 111 is transmitted sends audio signal.
Described device data modular converter 112 includes that equipment input signal modular converter 1121, apparatus output signal modular converter 1122 and equipment baud rate controller 1137, described equipment baud rate controller 1137 are connected with equipment input signal modular converter 1121 and apparatus output signal modular converter 1122.
Specifically, the signal of the input and output in equipment 11 to be controlled is mainly done low-pass filtering by Filtering Processing module 113.For inputting the signal of equipment 11 to be controlled from audio cable 12, equipment input signal low-pass filtering treatment 1131 completing, main purpose is to remove noise, improves signal quality, it is ensured that receive the reliable of communication.For signal to be sent, apparatus output signal low-pass filtering treatment 1132 complete, be to square-wave signal be converted to sine wave signal, or filter the quantizing noise of D/A, conveniently make signal pass through voice-grade channel.Disposal ability in view of distinct device is different, changes digital filtering algorithm into run within a processor if the part of Filtering Processing module 113 processed, be also a kind of feasible mode and essence identical, this is still the protection domain of the application.In the embodiment of the present invention, the baud rate parameter of the equipment baud rate controller 1137 in device data modular converter 112 is completely the same with the baud rate parameter of main frame baud rate controller 1027.
As shown in Figure 8 and Figure 9, equipment input signal modular converter 1121 can use two kinds to implement structure, and specifically, described equipment input signal modular converter 1121 uses the first input signal modular converter or the second input signal modular converter;
First input signal modular converter includes the device A/D modular converter 1123 sending audio signal for the main frame of processing module 113 transmission that accepts filter and the equipment zero-crossing detector 1128 being connected with device A/D modular converter 1123;Described equipment zero-crossing detector 1128 is connected along enumerator 1129 with equipment 0/1, described equipment 0/1 is connected along enumerator 1129 with device frequency judgement/demodulator 1140, and device frequency judgement/demodulator 1140 is connected with equipment serioparallel exchange module 1141 and equipment baud rate controller 1137;
Second input signal modular converter includes the equipment comparator 1124 sending audio signal for the main frame of processing module 113 transmission that accepts filter and the grabber 1125 being connected with equipment comparator 1124 outfan, described grabber 1125 is connected with pulsewidth/frequency computing module 1126, pulsewidth/frequency computing module 1126 is connected with demodulator 1127, and described demodulator 1127 is connected with equipment baud rate controller 1137 and equipment serioparallel exchange module 1141.
When equipment 11 to be controlled receives data, and when using the first input signal modular converter to change, by device A/D modular converter 1123, the main frame of analogue signal is sent audio signal and be directly changed into digital signal, be then passed through equipment zero-crossing detector 1128, equipment 0/1 adjudicates/demodulates 1040 along enumerator 1129, device frequency, equipment serioparallel exchange module 1141 processes, and has equipment serioparallel exchange module 1141 to change backward microprocessor applications module 111 transmission equipment to receive communication data.In the specific implementation, equipment zero-crossing detector 1128, equipment 0/1 adjudicate/demodulate 1040 along enumerator 1129, device frequency, equipment serioparallel exchange module 1141 and the main frame zero-crossing detector 1023 controlled in main frame 10, main frame 0/1 are completely the same along enumerator 1024, main frame frequency judgement/demodulator 1025, the structure of main frame serioparallel exchange module 1026 and operation principle, specifically repeat no more, as shown in Figure 8.
As shown in Figure 9, when equipment 11 to be controlled receives data, and when using the second input signal modular converter to change, host audio is sent signal and becomes square wave by equipment comparator 1124, then pulsewidth capture is carried out by pulsewidth grabber 1125, then the width parameter utilizing grabber 1125 to obtain by equipment pulsewidth/frequency computing module 1126 calculates the frequency of reality, frequency information is sent to demodulator 1127 and is obtained with serial data stream, original communication data can be obtained through equipment serioparallel exchange module 1026, required equipment can be transmitted to microprocessor applications module 111 and receive communication data.
In the embodiment of the present invention, equipment 11 to be controlled can use any one enforcement structure in the first input signal modular converter or the second input signal modular converter, and the first input signal modular converter mode is more flexible, but operand is slightly higher;Second input signal modular converter, can be with extracting directly frequency information, and sequential operation amount is less, however it is necessary that specialised hardware pulsewidth grabber.Two schemes is respectively arranged with feature, can according to microprocessor in equipment 11 to be controlled with peripheral hardware select flexibly, with reach reduce peripheral circuit, reduce cost purpose.
As shown in Figure 10, Figure 11 and Figure 12, described apparatus output signal modular converter 1122 uses the first output signal modular converter, the second output signal modular converter or the 3rd output signal modular converter;
First output signal modular converter includes equipment parallel serial conversion module 1144, described equipment parallel serial conversion module 1144 is connected with equipment DDS signal generator 1143, and described equipment DDS signal generator 1143 is connected with equipment baud rate controller 1137 and equipment D/A modular converter 1142;
Second output signal modular converter includes equipment parallel serial conversion module 1144 and the equipment square wave signal generator 1145 being connected with described equipment module 1144 of going here and there;Described equipment square wave signal generator 1145 is connected with equipment baud rate controller 1137 and apparatus figure low pass filter 1146, and described apparatus figure low pass filter 1146 is connected with equipment D/A modular converter 1142;
3rd output signal modular converter includes equipment parallel serial conversion module 1144 and the PWM module 1147 being connected with described equipment parallel serial conversion module 1144, and described PWM module 1147 is connected with equipment baud rate controller 1137.
As shown in Figure 10, when equipment 11 to be controlled sends data, and when carrying out signal conversion by the first output signal modular converter, data to be communicated in microprocessor applications module 111 carry out parallel-serial conversion through equipment parallel serial conversion module 1021, data entry device DDS signal generator 1143 after parallel-serial conversion, and under the control of equipment baud rate controller 1137, produce the digital sinusoidal signal of FSK modulation, described digital sinusoidal signal is after equipment D/A modular converter 1142, become the analogue signal that can transmit, i.e. obtain equipment and send audio signal, equipment sends audio signal through apparatus output signal low-pass filtering treatment 1132, just can will be transmitted by audio cable 12, enter and control main frame 10.
As shown in figure 11, when equipment 11 to be controlled sends data, and when carrying out signal conversion by the second output signal modular converter, data to be communicated in microprocessor applications module 111 carry out parallel-serial conversion through equipment parallel serial conversion module 1021, access arrangement square wave signal generator 1145 after parallel-serial conversion;Equipment square wave signal generator 1145 produces the square-wave signal of two-way different frequency, and inputs the change of data with equipment parallel serial conversion module 1021 under the control of equipment baud rate controller 1137 and switches over selection two-way square-wave signal Zhong mono-tunnel and export;After apparatus figure low-pass filtering 1146, become close to sinusoidal signal, then after by equipment D/A conversion 1142, become the analogue signal that can transmit, i.e. obtain equipment and send audio signal, equipment sends audio signal through apparatus output signal low-pass filtering treatment 1132, it is possible to will be transmitted by audio cable 12, enters and controls main frame 10.
As shown in figure 12, when equipment 11 to be controlled sends data, and when carrying out signal conversion by the 3rd output signal modular converter, data to be communicated in microprocessor applications module 111 carry out parallel-serial conversion through equipment parallel serial conversion module 1021, under the control of equipment baud rate controller 1137, directly controlling the frequency of PWM module 1147, output different frequency dutycycle is the PWM waveform of 50%, forms the square wave of FSK modulation;The PWM waveform of output filters through apparatus output signal low-pass filtering treatment 1132, become close to sinusoidal analogue signal, i.e. obtain equipment and send audio signal, equipment sends audio signal through apparatus output signal low-pass filtering treatment 1132, just can will be transmitted by audio cable 12, enter and control main frame 10.
In the embodiment of the present invention, can be to select the first output signal modular converter, the second output signal modular converter or any one form of the 3rd output signal modular converter in equipment 11 to be controlled, compare, first output signal modular converter, the second output signal modular converter are more flexible, convenient amendment, and the 3rd output signal modular converter low cost.First output signal modular converter, the second output signal modular converter, the 3rd output signal modular converter carry out the modulation of the modes such as FSK respectively respectively by equipment DDS signal generator 1143, equipment square wave signal generator 1145, PWM module 1147, to obtain required audio signal.The said equipment D/A modular converter 1142, equipment parallel serial conversion module 1144 and PWM module 1147 all can be to use conventional form.
Further, a kind of method by earphone socket exchange data, including equipment 11 to be controlled, described equipment 11 to be controlled is connected with the audio frequency apparatus 103 controlled in main frame 10 by audio cable 12;Control main frame 10, equipment to be controlled 11 and data to be communicated all can be modulated into audio signal, and carried out the exchange of audio signal by audio cable 12 and audio frequency apparatus 103.
The method of data audio signal modulation to be communicated is included FSK modulation by described control main frame 10, equipment to be controlled 11, and the frequency of audio signal modulation is 5KHz ~ 10KHz.
It is connected by audio cable 12 between present invention equipment to be controlled 11 with control main frame 10, the operation being modulated, demodulating in equipment 11 to be controlled, control main frame 10, data to be communicated can be swapped with voice-frequency signalling, it is thus possible to obtain the duty of equipment 11 to be controlled or equipment 11 to be controlled control effectively, whole system only comprises a small amount of peripheral circuit, low cost, is only connected by audio cable 12, easy to use, simple and reliable.

Claims (4)

1., by a system for earphone socket exchange data, including equipment to be controlled (11), described equipment to be controlled (11) is connected with the audio frequency apparatus (103) controlled in main frame (10) by audio cable (12);Control main frame (10), data to be communicated all can be modulated into audio signal by equipment to be controlled (11), and are carried out the exchange of audio signal by audio cable (12) and audio frequency apparatus (103);
Described control main frame (10) includes the host data modular converter (102) being connected with audio frequency apparatus (103) and the configuration application module (101) being connected with described host data modular converter (102);
Configuration application module (101), it is connected with host data modular converter (102), data composition main frame to be communicated is sent communication data packet, and it is interior to host data modular converter (102) that described main frame sends communication data packet transmission, to be converted into main frame transmission audio signal by host data modular converter (102), and the equipment that can transmit host data modular converter (102) sends communication data and carries out dissection process;
Host data modular converter (102), the packet that configuration application module (102) sends is converted into main frame and sends audio signal, and the equipment that can audio frequency apparatus (103) be received sends audio signal and is converted into the main frame reception communication data needed for configuration application module (101);
Audio frequency apparatus (103), the main frame transmitted by host data modular converter (102) sends audio signal and carries out playback output, and audio cable (12) can be passed through obtain the equipment that equipment to be controlled (11) transmits and send audio signal, and equipment is sent audio signal it is converted to main frame by host data modular converter (102) and receives communication data;
Described equipment to be controlled (11) includes Filtering Processing module (113), being connected with audio cable (12) and device data modular converter (112), the equipment that the main frame transmission audio signal can transmitted audio cable (12) and device data modular converter (112) transmit sends audio signal and is filtered;
Device data modular converter (112), it is connected with Filtering Processing module (113) and microprocessor applications module (111), the main frame that can Filtering Processing module (113) be transmitted sends audio signal and is converted into the equipment reception communication data needed for microprocessor applications module (111), and the equipment that can be converted into by the equipment sending data that microprocessor applications module (111) transmit sends audio signal;
It is characterized in that: described host data modular converter (102) includes that main frame sends data conversion unit and host receiving data converter section;Described main frame sends the main frame parallel serial conversion module (1021) that data conversion unit includes carrying out parallel-serial conversion for main frame sends communication data packet, and described main frame parallel serial conversion module (1021) is connected with the host audio signal modulation module being used for modulating data onto into audio signal;
Described host receiving data converter section includes main frame zero-crossing detector (1023), the outfan of main frame zero-crossing detector (1023) is connected along enumerator (1024) with main frame 0/1, and main frame 0/1 is connected with main frame serioparallel exchange module (1026) along enumerator (1024) by main frame frequency judgement/demodulator (1025);Main frame frequency judgement/demodulator (1025), host audio signal modulation module all outfans with main frame baud rate controller (1027) are connected;
Described host audio signal modulation module includes main frame DDS signal generator (1022) or host side wave generator (1028), and described host side wave generator (1028) is obtained main frame and sends audio signal after being filtered by main frame wave digital lowpass filter (1031) by the square-wave signal produced.
System by earphone socket exchange data the most according to claim 1, it is characterized in that: described device data modular converter (112) includes that equipment input signal modular converter (1121), apparatus output signal modular converter (1122) and equipment baud rate controller (1137), described equipment baud rate controller (1137) are connected with equipment input signal modular converter (1121) and apparatus output signal modular converter (1122).
System by earphone socket exchange data the most according to claim 2, is characterized in that: described equipment input signal modular converter (1121) uses the first input signal modular converter or the second input signal modular converter;
First input signal modular converter includes device A/D modular converter (1123) that the main frame transmitted for the processing module that accepts filter (113) sends audio signal and the equipment zero-crossing detector (1128) being connected with device A/D modular converter (1123);Described equipment zero-crossing detector (1128) is connected along enumerator (1129) with equipment 0/1, described equipment 0/1 is connected along enumerator (1129) with device frequency judgement/demodulator (1140), and device frequency judgement/demodulator (1140) is connected with equipment serioparallel exchange module (1141) and equipment baud rate controller (1137);
Second input signal modular converter includes the equipment comparator (1124) that the main frame transmitted for the processing module that accepts filter (113) sends audio signal and the grabber (1125) being connected with equipment comparator (1124) outfan, described grabber (1125) is connected with pulsewidth/frequency computing module (1126), pulsewidth/frequency computing module (1126) is connected with demodulator (1127), and described demodulator (1127) is connected with equipment baud rate controller (1137) and equipment serioparallel exchange module (1141).
System by earphone socket exchange data the most according to claim 2, is characterized in that: described apparatus output signal modular converter (1122) uses the first output signal modular converter, the second output signal modular converter or the 3rd output signal modular converter;
First output signal modular converter includes equipment parallel serial conversion module (1144), described equipment parallel serial conversion module (1144) is connected with equipment DDS signal generator (1143), and described equipment DDS signal generator (1143) is connected with equipment baud rate controller (1137) and equipment D/A modular converter (1142);
Second output signal modular converter includes equipment parallel serial conversion module (1144) and the equipment square wave signal generator (1145) being connected with described equipment module (1144) of going here and there;Described equipment square wave signal generator (1145) is connected with equipment baud rate controller (1137) and apparatus figure low pass filter (1146), and described apparatus figure low pass filter (1146) is connected with equipment D/A modular converter (1142);
3rd output signal modular converter includes equipment parallel serial conversion module (1144) and the PWM module (1147) being connected with described equipment parallel serial conversion module (1144), and described PWM module (1147) is connected with equipment baud rate controller (1137).
CN201410256295.9A 2014-06-10 2014-06-10 A kind of system and method by earphone socket exchange data Active CN103995480B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410256295.9A CN103995480B (en) 2014-06-10 2014-06-10 A kind of system and method by earphone socket exchange data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410256295.9A CN103995480B (en) 2014-06-10 2014-06-10 A kind of system and method by earphone socket exchange data

Publications (2)

Publication Number Publication Date
CN103995480A CN103995480A (en) 2014-08-20
CN103995480B true CN103995480B (en) 2016-09-14

Family

ID=51309677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410256295.9A Active CN103995480B (en) 2014-06-10 2014-06-10 A kind of system and method by earphone socket exchange data

Country Status (1)

Country Link
CN (1) CN103995480B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112968752B (en) * 2021-01-28 2023-01-24 歌尔科技有限公司 Baud rate switching method and device for UART communication and initiator terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110144778A1 (en) * 2009-12-14 2011-06-16 Hei Tao Fung Smart Audio Plug-in for Enabling Smart Portable Device to be Universal Remote Control
CN102223234B (en) * 2011-06-17 2013-11-20 飞天诚信科技股份有限公司 Electronic signature system and method based on audio communication
CN103200002A (en) * 2012-01-04 2013-07-10 赛酷特(北京)信息技术有限公司 Intelligent combination lock based on headphone port
CN103379214B (en) * 2012-04-26 2015-10-28 国民技术股份有限公司 A kind of audio communication system
CN102968897A (en) * 2012-11-07 2013-03-13 沈丽琼 Household appliance remote control method based on handheld equipment

Also Published As

Publication number Publication date
CN103995480A (en) 2014-08-20

Similar Documents

Publication Publication Date Title
CN203289452U (en) Wireless audio system based on acoustic wave communication pairing
CN103200263B (en) Intelligent terminal and Bluetooth audio frequency playback equipment and exchange method, system
CN102474303A (en) Power line communications apparatus
CN101359933B (en) Dc line carrier communication device
CN103685749B (en) Communication electricity taking device and method based on mobile phone earphone interface
CN105406899A (en) Power line carrier communication apparatus used for overocean communication
CN102123117B (en) Modulation device and method
CN102820933A (en) Underwater sound MODEM (modulator-demodulator) for underwater interphone
CN106375024B (en) Acoustic communication system and method
CN103634254A (en) Indirect modulation and demodulation data transmission device and transmission method thereof
CN102123122B (en) Modulation-demodulation device and modulation-demodulation method
CN103995480B (en) A kind of system and method by earphone socket exchange data
CN103795441B (en) A kind of low-voltage power line carrier communication circuit based on BFSK, BPSK, DBPSK mode modulation
CN105049998B (en) A kind of audio communication device
CN206775720U (en) A kind of bluetooth connection for gathering multifunctional intellectual sound equipment and transport module
CN201674524U (en) Underground modulator-demodulator
CN104008641B (en) Mobile terminal, card reader, mobile terminal audio communication method and mobile terminal voice communication system
CN104820579B (en) A kind of sensor-based system and method for sensing comprising mobile terminal and peripheral device
CN104113820A (en) Method for data communication between IOS and Bluetooth module
CN105243036A (en) Signal conversion apparatus and method
CN103149874A (en) Industrial control equipment with earphone communication interface and implementation method
CN106161307A (en) Use the low cost carrier communication module of chip microcontroller OOK modulation-demodulation technique
CN201303326Y (en) DC wire carrier wave communication device
CN204667619U (en) A kind of display instrument
CN104506247A (en) Instruction transmission method, voice equipment, voice auxiliary device and instruction transmission 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
C14 Grant of patent or utility model
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: 102206 Unit 511, Building No. 5, Pearl River Moore, Courtyard No. 1, Beiqing Road, Huilongguan Town, Changping District, Beijing

Patentee after: Beijing Xin Chuanruisheng Science and Technology Ltd.

Address before: 102218 4th floor 421, No. 186 Litang Road, Dongxiaokou Town, Changping District, Beijing

Patentee before: Beijing Xin Chuanruisheng Science and Technology Ltd.

CP02 Change in the address of a patent holder