CN105336152A - Infrared emitter and infrared remote control method - Google Patents

Infrared emitter and infrared remote control method Download PDF

Info

Publication number
CN105336152A
CN105336152A CN201410393392.2A CN201410393392A CN105336152A CN 105336152 A CN105336152 A CN 105336152A CN 201410393392 A CN201410393392 A CN 201410393392A CN 105336152 A CN105336152 A CN 105336152A
Authority
CN
China
Prior art keywords
infrared
data
information data
controller
carrier
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
CN201410393392.2A
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.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN201410393392.2A priority Critical patent/CN105336152A/en
Publication of CN105336152A publication Critical patent/CN105336152A/en
Pending legal-status Critical Current

Links

Landscapes

  • Selective Calling Equipment (AREA)

Abstract

The invention is suitable for the field of an infrared remote control, and provides an infrared emitter and an infrared remote control method. The infrared emitter is composed of an audio frequency plug, a controller and an infrared transmitting circuit; the infrared remote control method comprises the following steps: the audio frequency plug receives carrier wave data and information data outputted from a mobile terminal, wherein the carrier wave data and the information data are audio frequency data, which are extracted from carrier waves, duration with carrier waves and duration without carrier waves of original infrared codes by the mobile terminal, and coded; and the carrier wave data and the information data are suitable for audio frequency ports to transmit; the controller analyzes a carrier wave frequency from the carrier wave data and modulates the information data to the carrier wave frequency for generating an infrared code; the infrared transmitting circuit emits the infrared code to electronic equipment. The mobile terminal realizes the function of an infrared remote controller by external connection of an infrared emitter, in order to control the electronic equipment.

Description

Infrared launcher and infrared remote control method
Technical field
The invention belongs to infrared remote control field, particularly relate to infrared launcher and infrared remote control method.
Background technology
Mobile terminal, comprises the equipment of the removable uses such as mobile phone, notebook, panel computer.Owing to being provided with operating system on mobile terminals, the various application of mobile terminal are enriched, as Online Video and remote data transmission.Operating system conventional on current mobile terminal comprises the Mobile operating system IOS system of Android android system and Apple.
Electronic equipment, is made up of electronic devices and components such as integrated circuit, transistor, electron tubes, makes it have one or more functions by electronic technology or software engineering; Along with the development of electronic equipment, there is the electronic equipments such as intelligent television, desktop computer, intelligent electric appliance.
Existing electronic equipment, have and controlled by press key equipment, also to have to be controlled by Infrared remote controller.Usually, press key equipment is all integrated on electronic equipment, therefore, it is possible to use the occasion of press key equipment control electronic equipment more fixing; Relatively, owing to Infrared remote controller being used to control in real time electronic equipment in different location, the mode being controlled electronic equipment by Infrared remote controller is more favored by people.
Summary of the invention
The object of the present invention is to provide infrared launcher and infrared remote control method, provide a kind of brand-new mode controlling electronic equipment: in conjunction with mobile terminal and infrared launcher, by mobile terminal, electronic equipment is controlled.
First aspect, the invention provides a kind of infrared remote control method, and be applied to the infrared launcher be made up of audio jack, controller and infrared transtation mission circuit, described infrared remote control method comprises:
The carrier data exported from described audio jack mobile terminal receive and information data;
From described carrier data, parse carrier frequency by described controller, described information data to be modulated in described carrier frequency and to generate infrared code;
Described infrared code is launched to electronic equipment by described infrared transtation mission circuit.
As the first embodiment of first aspect, before the described carrier data that exports from described audio jack mobile terminal receive and this step of information data, described infrared remote control method also comprises:
The microphone leads of the power lead of described audio jack with described mobile terminal sound intermediate frequency socket is electrically connected, to be powered to described controller and described infrared transtation mission circuit by described power lead simultaneously;
Be connected with the receiver lead signal of described audio sockets by the signal wire of described audio jack, to be received the voice data that described mobile terminal exports by described signal wire, described voice data comprises described carrier data and described information data.
In conjunction with the first possible implementation of first aspect or first aspect, in the implementation that the second of first aspect is possible, the described carrier data that exports from described audio jack mobile terminal receive and this step of information data, be specially:
Lead code that described mobile terminal exports, carrier data and information data is received successively from described audio jack, wherein, carrier data and information data are from the carrier wave of original infrared code and have carrier wave duration and carrierfree duration and extract and be encoded into the voice data being suitable for audio port transmission;
Described from described carrier data, parse this step of carrier frequency by described controller before, described infrared remote control method also comprises:
The lead code exported by audio jack described in described controller identification;
After described controller identifies described lead code, receive the described carrier data of described audio jack output and described information data successively by described controller.
In conjunction with the implementation that the second of first aspect is possible, in the third possible implementation of first aspect, described this step of lead code exported by audio jack described in described controller identification, is specially:
Continue the very first time when described controller starts described lead code to be detected by described controller and receive described lead code;
Described described carrier data and this step of described information data being received the output of described audio jack by described controller successively, is specially:
Described controller complete the lasting described very first time receive described lead code time, by described controller continue the second time carry out level detection and detect export described carrier data;
When described controller completes the level detection of lasting described second time, carried out level detection and detect exporting described information data by described controller lasting 3rd time.
In conjunction with the third possible implementation of first aspect, in the 4th kind of possible implementation of first aspect, describedly continued for the 3rd time by described controller and carry out level detection and detect exporting described information data this step and being specially;
Carry out in the process of level detection within described 3rd time, determine described information data according to the duration of constant level successively according to time sequencing.
Second aspect, the invention provides a kind of infrared launcher, and described infrared launcher comprises audio jack, controller and infrared transtation mission circuit; The audio sockets of the external described mobile terminal of described audio jack, described controller is connected with described audio jack and described infrared transtation mission circuit respectively;
Described audio jack, the carrier data exported for mobile terminal receive and information data;
Described controller, for parsing carrier frequency from described carrier data, to be modulated to described information data in described carrier frequency and to generate infrared code;
Described infrared transtation mission circuit, for launching described infrared code to electronic equipment.
In the first embodiment of second aspect, described audio jack has power lead and signal wire;
Described power lead is electrically connected with the microphone leads of described audio sockets when the audio sockets grafting of described audio jack with described mobile terminal, to be powered to described controller and described infrared transtation mission circuit by described power lead simultaneously;
Described signal wire is connected with the receiver lead signal of described audio sockets when the audio sockets grafting of described audio jack with described mobile terminal, to be received the voice data that described mobile terminal exports by described signal wire, described voice data comprises described carrier data and described information data, wherein, carrier data and information data are from the carrier wave of original infrared code and have carrier wave duration and carrierfree duration and extract and be encoded into the voice data being applicable to transmitting with audio port.
In conjunction with the first embodiment of first aspect or first aspect, in the second embodiment of second aspect, described audio jack specifically for: receive lead code, carrier data and information data that described mobile terminal exports successively;
Described controller specifically for: identify the lead code that described audio jack exports, after described controller identifies described lead code, by described controller receive successively described audio jack export described carrier data and described information data.
In conjunction with the second embodiment of second aspect, in the third embodiment of second aspect, described controller also specifically for: continuing the very first time when starting described lead code to be detected receives described lead code, complete the lasting described very first time receive described lead code time continue the second time carry out level detection and detect export described carrier data, when completing the level detection of lasting described second time, the 3rd time of continuing carries out level detection and detects exporting described information data.
In conjunction with the third embodiment of second aspect, in the 4th kind of embodiment of second aspect, described controller specifically for: carry out in the process of level detection within described 3rd time, determine described information data according to the duration of constant level successively according to time sequencing.
Beneficial effect of the present invention: the epoch of increasing gradually in the utilization rate of mobile terminal, by by mobile terminal with the mode of infrared launcher grafting, the carrier data that the controller of infrared launcher can export mobile terminal and information data receive, and use and from described carrier data, parse carrier frequency modulated information data and generate infrared code; Described infrared code is launched to electronic equipment by infrared transtation mission circuit.Like this, mobile terminal, by the mode of external infrared launcher, realizes the function of Infrared remote controller, controls electronic equipment.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the workflow diagram of the infrared remote control method that the embodiment of the present invention provides;
Fig. 2 is a kind of Optimizing Flow figure of the infrared remote control method that the embodiment of the present invention provides;
Fig. 3 is another Optimizing Flow figure of the infrared remote control method that the embodiment of the present invention provides;
Fig. 4 is the composition structural drawing of the infrared launcher that the embodiment of the present invention provides.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.In order to technical solutions according to the invention are described, be described below by specific embodiment.
The infrared remote control method that the embodiment of the present invention provides, is applied to the infrared launcher be made up of audio jack, controller and infrared transtation mission circuit.After treating the audio sockets grafting by the audio jack of this infrared launcher and mobile terminal, infrared launcher can from mobile terminal audio reception data, and this voice data comprises but is not limited to lead code, carrier data and information data.Should be noted that herein, through the research to various infrared code, the frequency removing the infrared code after carrier wave is up to about 5.5KHz, signal under this frequency can produce a small amount of decay by audio sockets transmission, but the identification of receiving end can not be affected, therefore, carrier data and information data are from the carrier wave of original infrared code and have carrier wave duration and carrierfree duration and extract and be encoded into the voice data being suitable for audio port transmission here.After receiving voice data, information data can be converted to infrared code by infrared launcher, sends the infrared signal carrying infrared code to electronic equipment; Electronic equipment can demodulate infrared code after receiving this infrared signal, further this infrared code is carried out to carrier wave demodulation and demodulates information data, realizes mobile terminal to electronic equipment output information data.In embodiments of the present invention, this information data comprises: the data control the instruction of electronic equipment, sending to electronic equipment.By sending instruction to electronic equipment, the control to electronic equipment can be realized; Such as, when electronic equipment receives the start-up command that mobile terminal sent by infrared launcher, electronic equipment performs boot action; Again such as, the electronic equipment of installing operating system (as Android system or IOS system) is when listening to different event (one of data) that mobile terminal sends, the application program (application program in operating system, comprising: the application program of application program that this operating system carry and third party exploitation) corresponding with event can be triggered and perform respective action.
Also it should be noted that, for different electronic equipments, the infrared code that can identify is different; Therefore, mobile terminal needs for distinct electronic apparatuses, use corresponding encryption algorithm information generated data, infrared code is generated according to this information data to make infrared launcher, thus electronic equipment can use this encryption algorithm to identify instruction or data from infrared code, control electronic equipment by the instruction identified, or electronic equipment processes to these data.In embodiments of the present invention, when mobile terminal needs to upgrade encryption algorithm for distinct electronic apparatuses, accessible internet and/or mobile radio communication, from the network (internet or mobile radio communication) of access, download encryption algorithm, such as, download encryption algorithm from the Cloud Server the network of access; And then the encryption algorithm information generated data of download can be used, generate to make infrared launcher the infrared code mated with electronic equipment according to this information data; Electronic equipment correctly can receive this infrared code, correctly parses instruction or data further from infrared code by this encryption algorithm, controls electronic equipment action, or carry out alignment processing to the data parsed by the instruction parsed.As an embodiment, mobile terminal download package is containing the remote control procedure of encryption algorithm, after this remote control procedure of startup, the operation interface controlling electronic equipment can be demonstrated, the instruction for controlling electronic equipment can be triggered by this operation interface or determine the data to electronic equipment transmission, after instruction to be determined or data, this remote control procedure adopts encryption algorithm that this instruction is become information data with this data encoding, generates infrared code to make infrared launcher according to this information data; Thus electronic equipment can use this encryption algorithm to identify instruction or data from infrared code, control electronic equipment by the instruction identified, or electronic equipment processes to these data.Such as: when mobile terminal uses as electric appliance remote controller by needs, mobile terminal can download from Cloud Server the remote control procedure (encryption algorithm that this remote control procedure comprises mates with this electrical equipment) mated with this electrical equipment, treat after mobile terminal completes the installation of this remote control procedure, the instruction that need send to this electrical equipment or data can be determined by the operation interface that provides of this remote control procedure easy to use, realize the control to this electrical equipment, realize sending data to this electrical equipment.Again such as, when mobile terminal uses as TV remote controller by needs, mobile terminal can download from Cloud Server the remote control procedure (encryption algorithm that this remote control procedure comprises mates with this TV) mated with this TV, treat after mobile terminal completes the installation of this remote control procedure, can the operation interface that provides of this remote control procedure easy to use determine need to the instruction of this television transmission or data, realize the control to this TV, realize to these television transmission data.
For the infrared remote control method embodiments provided, see Fig. 1; Fig. 1 shows the workflow of the infrared remote control method that the embodiment of the present invention provides, and for convenience of description, illustrate only the part relevant to the embodiment of the present invention.
As shown in Figure 1, described infrared remote control method comprises step S1, the carrier data exported from described audio jack mobile terminal receive and information data; Step S2, parses carrier frequency by described controller from described carrier data, described information data to be modulated in described carrier frequency and to generate infrared code; Step S3, launches described infrared code by described infrared transtation mission circuit to electronic equipment.
As a preferred embodiment, Fig. 2 shows an optimized work flow of the infrared remote control method that the embodiment of the present invention provides, and for convenience of description, illustrate only the part relevant to the embodiment of the present invention.See Fig. 2, before the carrier data exported from described audio jack mobile terminal receive and information data, described infrared remote control method also comprises: step S4, the microphone leads of the power lead of described audio jack with described mobile terminal sound intermediate frequency socket is electrically connected, to be powered to described controller and described infrared transtation mission circuit by described power lead simultaneously; Step S5, is connected the signal wire of described audio jack with the receiver lead signal of described audio sockets, and to be received the voice data that described mobile terminal exports by described signal wire, described voice data comprises described carrier data and described information data.
In the present embodiment, the audio jack of infrared launcher at least comprises power lead and signal wire.Wherein, this power lead is electrically connected with the power end of controller and the power end of infrared transtation mission circuit respectively; As a kind of be the power supply mode of infrared launcher, mobile terminal by its audio sockets microphone leads, power (comprise and powering to controller and infrared transtation mission circuit) to infrared launcher through this power lead.As a kind of be the power supply mode of infrared launcher, power supply can be added (as battery core in infrared launcher, for another example chargeable battery core), powered (comprise and powering to controller and infrared transtation mission circuit) to infrared launcher by this power supply.After infrared launcher works on power, can under the state of the audio sockets grafting of the audio jack of this infrared launcher and mobile terminal, from the voice data (comprising carrier data and information data) that described audio jack mobile terminal receive exports.
Simultaneously, signal wire in the audio jack of infrared launcher goes between with the receiver in the audio sockets of mobile terminal and is connected, the voice data (this voice data at least comprises carrier data and information data) that infrared launcher is exported from this receiver lead-in wire by this signal wire mobile terminal receive.
As an embodiment, the audio jack of infrared launcher adopts headset plug to realize, and accordingly, the audio sockets of mobile terminal adopts receiver J-Horner to realize.
Step S1, the carrier data exported from described audio jack mobile terminal receive and information data.
In embodiments of the present invention, due to distinct electronic apparatuses, the carrier frequency of its compatibility is different, and namely its carrier frequency that can detect is different, the carrier frequency therefore needing mobile terminal to obtain electronic equipment in advance to identify; The mode obtained at least comprises: 1, when learning the unit type of electronic equipment, from the server of internet or mobile radio communication, directly obtains the carrier frequency that this electronic equipment is supported; 2, set up the communication connection between electronic equipment and mobile terminal, and then the carrier frequency that mobile terminal can directly ask electronic equipment to be supported to obtain this electronic equipment.
And then, in order to use this carrier frequency to generate infrared code, mobile terminal to while infrared launcher output information data, also to infrared launcher outgoing carrier data; Preferably, mobile terminal is successively to infrared launcher outgoing carrier data and information data, wherein, carrier data and information data are from original infrared code and have carrier wave duration and carrierfree duration the voice data extracting and be encoded into the transmission of applicable audio port, thus, infrared launcher first can parse carrier frequency from carrier data, and then identifies information data, to modulate and generate infrared code with the carrier frequency first identified to this information data.
Thus, the carrier data that infrared launcher is exported by audio jack mobile terminal receive and information data; As an embodiment, infrared launcher is by the signal wire in this audio jack, and mobile terminal receive to go between the carrier data and information data that export successively from this receiver.
Step S2, parses carrier frequency by described controller from described carrier data, described information data to be modulated in described carrier frequency and to generate infrared code.
In embodiments of the present invention, after device to be controlled completes the reception to carrier data, carrier frequency can be parsed from described carrier data.It is emphasized that need first to parse carrier frequency from described carrier data, the carrier frequency modulated information data parsed could be used, generate infrared code.
As a kind of modulation system, controller is reception carrier data and information data successively, after device to be controlled completes the reception to carrier data, carrier frequency is parsed from described carrier data, then in the process receiving information data, synchronously the information data received modulated and generate infrared code, making infrared transtation mission circuit launch described infrared code to electronic equipment in time, effectively improve the ageing and real-time using mobile terminal to control electronic equipment, have more hommization.
As another modulation system, controller is reception carrier data and information data successively, after device to be controlled completes the reception to carrier data, carrier frequency is parsed from described carrier data, then, after device to be controlled completes the reception to information data, whole information data is modulated and generates infrared code.And then, launch described infrared code by infrared transtation mission circuit to electronic equipment.Owing to being modulate whole information data, can compression algorithm be used before modulation further to carry out data compression to information data, improve the data transmission efficiency of information data, save transmission bandwidth, reduce the transmission time of the infrared code of transmission; Accordingly, electronic equipment needs to use corresponding decompression algorithm to carry out decompress(ion) to the infrared code received, and restores whole information data.
Fig. 3 shows the another optimized work flow of the infrared remote control method that the embodiment of the present invention provides, and for convenience of description, illustrate only the part relevant to the embodiment of the present invention.
In an embodiment of the present invention, as shown in Figure 3, the described carrier data from described audio jack mobile terminal receive output and this step of information data, be specially:
Step S11, receives lead code that described mobile terminal exports, carrier data and information data successively from described audio jack.
In the present embodiment, lead code, carrier data and the information data packing framing that mobile terminal will be arranged in order, exports to infrared launcher in the mode of frame.Preferably, under normal circumstances, the code word that lead code is used and carrier data code word used are all fixing, therefore the data volume size of the information data that this frame can comprise can be determined according to the byte length of frame, and then determine instruction to be packaged into a frame or multiframe, or determine to pack the data to a frame or multiframe.
In the present embodiment, for the controller of infrared launcher can recognize frame, for consisting of of every frame: foremost is lead code, being then carrier data, is finally information data.Like this, the controller of infrared launcher is after this lead code being detected, and learning next can reception carrier data and information data successively; And then after the reception having recognized this lead code, reception carrier data and information data successively.
Correspondingly, described from described carrier data, parse this step of carrier frequency by described controller before, described infrared remote control method also comprises step S6 and step S7.
Step S6, the lead code exported by audio jack described in described controller identification.
Step S7, after described controller identifies described lead code, receives the described carrier data of described audio jack output and described information data successively by described controller.
As the embodiment performing step S6 and step S7 successively, the controller of infrared launcher completes the reception of this lead code, after identifying this lead code, and reception carrier data and information data successively immediately.
As the embodiment performing step S6 and step S7 successively, because lead code is fixing, so the time sent needed for this lead code is fixing, using the time needed for this lead code of transmission as the very first time; In like manner the code word of described carrier data is also fixing, and the time sent needed for this carrier data is also fixing, using the time needed for this carrier data of transmission as the second time; And then, the data volume (code word) contained due to every frame is also fixing, therefore the data volume of information data that a frame can carry also is fixing, so the time of this information data of continuous reception is also fixing, using time of sending needed for this information data as the 3rd time.
And then in the present embodiment, described this step of lead code exported by audio jack described in described controller identification, is specially:
Continue the very first time when described controller starts described lead code to be detected by described controller and receive described lead code.
In the present embodiment, the controller of infrared launcher is when this lead code being detected at the beginning, the lasting very first time receives described lead code, during this very first time lasting receives lead code, once not recognize lead code, abandon the reception to this frame, if continue the very first time to recognize this lead code, after this very first time, reception carrier data and information data successively immediately.As a preferred embodiment, lead code is " 1 " signal of the lasting very first time, should high level be adopted to represent by " 1 " signal, and then, controller when receiving a frame, when just having started high level to be detected, represent and lead code detected, and then whether lasting very first time detection is high level, if this high level continue for the very first time, then starts the reception to described carrier data and described information data immediately.
Accordingly, described described carrier data and this step of described information data being received the output of described audio jack by described controller successively, is specially:
Described controller complete the lasting described very first time receive described lead code time, by described controller continue the second time carry out level detection and detect export described carrier data;
When described controller completes the level detection of lasting described second time, carried out level detection and detect exporting described information data by described controller lasting 3rd time.
In the present embodiment, controller has input pin, and this input pin is electrically connected with the signal wire in audio jack.And then the mode of controller reception carrier data is: within the second time of every frame continue level on the signal wire in audio jack is detected, according to detect in the second time, change level determine described carrier data.For this carrier data, this carrier data obtains after being through mobile terminal employing assignment algorithm coding; And then controller need adopt this assignment algorithm or the decoding algorithm corresponding with this assignment algorithm to decode to this carrier data, decodes carrier frequency.As an embodiment, mobile terminal adopts binary representation carrier frequency, take carrier frequency as 36KHZ be example, the corresponding carrier data obtained of encoding is " 00110110 " signal, mobile terminal exports " 00110110 " signal by headphone line, particularly, is divided into 8 sub-time intervals the second time, if " 1 " signal in " 00110110 " signal need be exported by headphone line, then export high level at the sub-time interval corresponding with this " 1 " signal, if " 0 " signal in " 00110110 " signal need be exported by headphone line, then in the sub-time interval output low level corresponding with this " 0 " signal, and then, controller continues according to time sequencing to detect the level on the signal wire in audio jack within the second time of every frame, high level is detected at certain sub-time interval, then generate " 1 " signal, ground level detected at certain sub-time interval, then generate " 0 " signal, by that analogy, after the second time, controller completes the reception to " 00110110 " signal, demodulates carrier frequency: 36KHZ from " 00110110 " signal.It should be noted that, above-mentioned is only the example explanation that 36KHZ carries out following content for example with carrier frequency, as long as the mode that the principle had based on this example and spirit select other assignment algorithm to complete the Code And Decode of carrier frequency all can be used for the present embodiment, do not limit at this, the content that above-mentioned example illustrates comprises: how mobile terminal adopts assignment algorithm to encode to carrier frequency, by headphone line to infrared launcher send coding generate carrier data after, how infrared launcher correctly detects this carrier data, how to decode carrier frequency from this carrier data.
In the present embodiment, when described controller completes the level detection of lasting described second time, the reception of information data can be carried out immediately, controller receives the mode of information data: continue to detect level on the signal wire in audio jack within the 3rd time of every frame, according to detect in the 3rd time, the level of change determines described information data.
In the present invention one preferred implementation, described controller is when the level detection of described second time and all adopt the timing of Microsecond grade when the level detection of described 3rd time, carries out timing to the duration of the level detecting constant (high level or low level).
Accordingly, describedly continued for the 3rd time by described controller and carry out level detection and detect exporting described information data this step and being specially;
Carry out in the process of level detection within described 3rd time, determine described information data according to the duration of constant level successively according to time sequencing.
In the preferred embodiment, because the 3rd time is also according to sub-time interval division.As a concrete mode, as mentioned above, high level detected at certain sub-time interval, be then defined as receiving " 1 " signal, low level detected at certain sub-time interval, be then defined as receiving " 0 " signal; By that analogy, be consecutively detected high level at multiple sub-time interval, be then defined as receiving multiple " 1 " signal, be consecutively detected low level at multiple sub-time interval, be then defined as receiving multiple " 0 " signal.Therefore, the duration that can remain unchanged according to the level detected, determine whether in multiple sub-time interval, same signal (as " 0 " signal or " 1 " signal) detected.And then, the duration that can remain unchanged according to time sequencing and according to the level detected, determine the information data be made up of " 0 " signal and/or " 1 " successively.Such as: if detect that constant high level continue for 4 sub-time intervals, then detect that constant low level continue for 4 sub-time intervals, then controller detects information data is " 11110000 ".
As another concrete mode, if the duration that the high level detected remains unchanged reaches the very first time, be then defined as receiving " 1 " signal; If the duration that the low level detected remains unchanged reached for the second time, be then defined as receiving " 0 " signal.By that analogy, if the high level detected continue for this very first time multiple, be then defined as receiving multiple " 1 " signal; If the low level detected continue for this second time multiple, be then defined as receiving multiple " 0 " signal.Therefore, the duration that can remain unchanged according to time sequencing and according to the level detected, the information data be made up of " 0 " signal and/or " 1 " is determined successively.
In the present invention one preferred implementation, described described information data to be modulated in described carrier frequency and to generate this step of infrared code be specially; Carry out in the process of level detection within described 3rd time, generate infrared code according to the level modulation detected successively according to time sequencing.
Particularly, carry out in the process of level detection within described 3rd time, controller is when high level being detected, controller exports " 1 " signal (belonging to a kind of signal of this infrared code), to make infrared transtation mission circuit with transmit frequency infrared signal with carrier frequency to infrared transtation mission circuit; Controller is when low level being detected, and controller exports " 0 " signal (belonging to a kind of signal of this infrared code) to infrared transtation mission circuit, does not launch infrared signal to make infrared transtation mission circuit.
Those of ordinary skill in the art it is also understood that, the all or part of step realized in above-described embodiment method is that the hardware that can carry out instruction relevant by program has come, described program can be stored in a computer read/write memory medium, described storage medium, comprises ROM/RAM, disk, CD etc.
It should be noted that, the infrared launcher that the embodiment of the present invention provides is applicable to the infrared remote control method that the embodiment of the present invention provides.
Fig. 4 shows the composition structure of the infrared launcher that the embodiment of the present invention provides, and for convenience of description, illustrate only the part relevant to the embodiment of the present invention.
The infrared launcher that the present embodiment provides, as shown in Figure 4, described infrared launcher comprises audio jack 1, controller 2 and infrared transtation mission circuit 3; The audio sockets of the external described mobile terminal of described audio jack 1, described controller 2 is connected 3 with described audio jack 1 and described infrared transtation mission circuit respectively;
Described audio jack 1, the carrier data exported for mobile terminal receive and information data;
Described controller 2, for parsing carrier frequency from described carrier data, to be modulated to described information data in described carrier frequency and to generate infrared code;
Described infrared transtation mission circuit 3, for launching described infrared code to electronic equipment.
In an embodiment of the present invention, described audio jack 1 has power lead P and signal wire S;
Described power lead P is electrically connected with the microphone leads of described audio sockets when the audio sockets grafting of described audio jack 1 with described mobile terminal, to be powered to described controller 2 and described infrared transtation mission circuit 3 by described power lead P simultaneously;
Described tone signal line S is connected with the receiver lead signal of described audio sockets when the audio sockets grafting of described audio jack 1 with described mobile terminal, to be received the voice data that described mobile terminal exports by described signal wire S, described voice data comprises described carrier data and described information data.
In a preferred embodiment, described audio jack 1 specifically for: receive lead code that described mobile terminal exports, carrier data and information data successively;
Described controller 2 specifically for: identify the lead code that described audio jack 1 exports, after described controller 2 identifies described lead code, receive by described controller 2 the described carrier data and described information data that described audio jack 1 exports successively.
In a preferred embodiment, described controller 2 also specifically for: continuing the very first time when starting described lead code to be detected receives described lead code, complete the lasting described very first time receive described lead code time continue the second time carry out level detection and detect export described carrier data, when completing the level detection of lasting described second time, the 3rd time of continuing carries out level detection and detects exporting described information data.
In a preferred embodiment, described controller 2 specifically for: carry out in the process of level detection within described 3rd time, determine described information data according to the duration of constant level successively according to time sequencing.
Above content is in conjunction with concrete preferred implementation further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention; make some equivalent alternative or obvious modification without departing from the inventive concept of the premise; and performance or purposes identical, all should be considered as belonging to the scope of patent protection that the present invention is determined by submitted to claims.

Claims (10)

1. an infrared remote control method, is characterized in that, be applied to the infrared launcher be made up of audio jack, controller and infrared transtation mission circuit, described infrared remote control method comprises:
The carrier data exported from described audio jack mobile terminal receive and information data;
From described carrier data, parse carrier frequency by described controller, described information data to be modulated in described carrier frequency and to generate infrared code;
Described infrared code is launched to electronic equipment by described infrared transtation mission circuit.
2. infrared remote control method as claimed in claim 1, is characterized in that, before the described carrier data that exports from described audio jack mobile terminal receive and this step of information data, described infrared remote control method also comprises:
The microphone leads of the power lead of described audio jack with described mobile terminal sound intermediate frequency socket is electrically connected, to be powered to described controller and described infrared transtation mission circuit by described power lead simultaneously;
Be connected with the receiver lead signal of described audio sockets by the signal wire of described audio jack, to be received the voice data that described mobile terminal exports by described signal wire, described voice data comprises described carrier data and described information data.
3. infrared remote control method as claimed in claim 1 or 2, is characterized in that, the described carrier data from described audio jack mobile terminal receive output and this step of information data, be specially:
Lead code that described mobile terminal exports, carrier data and information data is received successively from described audio jack, wherein, carrier data and information data are from the carrier wave of original infrared code and have carrier wave duration and carrierfree duration and extract and be encoded into the voice data being suitable for audio port transmission;
Described from described carrier data, parse this step of carrier frequency by described controller before, described infrared remote control method also comprises:
The lead code exported by audio jack described in described controller identification;
After described controller identifies described lead code, receive the described carrier data of described audio jack output and described information data successively by described controller.
4. infrared remote control method as claimed in claim 3, is characterized in that, described this step of lead code exported by audio jack described in described controller identification, is specially:
Continue the very first time when described controller starts described lead code to be detected by described controller and receive described lead code;
Described described carrier data and this step of described information data being received the output of described audio jack by described controller successively, is specially:
Described controller complete the lasting described very first time receive described lead code time, by described controller continue the second time carry out level detection and detect export described carrier data;
When described controller completes the level detection of lasting described second time, carried out level detection and detect exporting described information data by described controller lasting 3rd time.
5. infrared remote control method as claimed in claim 4, is characterized in that, describedly continues for the 3rd time by described controller and carries out level detection and detect exporting this step of described information data and being specially;
Carry out in the process of level detection within described 3rd time, determine described information data according to the duration of constant level successively according to time sequencing.
6. an infrared launcher, is characterized in that, described infrared launcher comprises audio jack, controller and infrared transtation mission circuit; The audio sockets of the external described mobile terminal of described audio jack, described controller is connected with described audio jack and described infrared transtation mission circuit respectively;
Described audio jack, the carrier data exported for mobile terminal receive and information data;
Described controller, for parsing carrier frequency from described carrier data, to be modulated to described information data in described carrier frequency and to generate infrared code;
Described infrared transtation mission circuit, for launching described infrared code to electronic equipment.
7. infrared launcher as claimed in claim 6, it is characterized in that, described audio jack has power lead and signal wire;
Described power lead is electrically connected with the microphone leads of described audio sockets when the audio sockets grafting of described audio jack with described mobile terminal, to be powered to described controller and described infrared transtation mission circuit by described power lead simultaneously;
Described signal wire is connected with the receiver lead signal of described audio sockets when the audio sockets grafting of described audio jack with described mobile terminal, to be received the voice data that described mobile terminal exports by described signal wire, described voice data comprises described carrier data and described information data, wherein, carrier data and information data are from the carrier wave of original infrared code and have carrier wave duration and carrierfree duration and extract and be encoded into the voice data being applicable to transmitting with audio port.
8. infrared launcher as claimed in claims 6 or 7, is characterized in that,
Described audio jack specifically for: receive lead code that described mobile terminal exports, carrier data and information data successively;
Described controller specifically for: identify the lead code that described audio jack exports, after described controller identifies described lead code, by described controller receive successively described audio jack export described carrier data and described information data.
9. infrared launcher as claimed in claim 8, is characterized in that,
Described controller also specifically for: continuing the very first time when starting described lead code to be detected receives described lead code, complete the lasting described very first time receive described lead code time continue the second time carry out level detection and detect export described carrier data, when completing the level detection of lasting described second time, the 3rd time of continuing carries out level detection and detects exporting described information data.
10. infrared launcher as claimed in claim 9, is characterized in that, described controller specifically for: carry out in the process of level detection within described 3rd time, determine described information data according to the duration of constant level successively according to time sequencing.
CN201410393392.2A 2014-08-11 2014-08-11 Infrared emitter and infrared remote control method Pending CN105336152A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410393392.2A CN105336152A (en) 2014-08-11 2014-08-11 Infrared emitter and infrared remote control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410393392.2A CN105336152A (en) 2014-08-11 2014-08-11 Infrared emitter and infrared remote control method

Publications (1)

Publication Number Publication Date
CN105336152A true CN105336152A (en) 2016-02-17

Family

ID=55286647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410393392.2A Pending CN105336152A (en) 2014-08-11 2014-08-11 Infrared emitter and infrared remote control method

Country Status (1)

Country Link
CN (1) CN105336152A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105611075A (en) * 2016-02-26 2016-05-25 惠州Tcl移动通信有限公司 Method and system for wirelessly remotely controlling mobile terminal
CN106647659A (en) * 2016-12-09 2017-05-10 Tcl集团股份有限公司 Intelligent terminal based method and system for controlling household appliances remotely
CN107545717A (en) * 2016-06-23 2018-01-05 瑞昱半导体股份有限公司 Infrared ray learning device
CN108093287A (en) * 2017-12-27 2018-05-29 江苏惠通集团有限责任公司 The switching method and device of audio decoder algorithm, storage medium, terminal
CN109859454A (en) * 2017-11-30 2019-06-07 珠海格力电器股份有限公司 Infrared code sending circuit, chip, remote control equipment and air conditioner based on infrared protocol

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201607762U (en) * 2010-01-19 2010-10-13 晟瀚科技有限公司 Studying-downloading device for code database of remote controller
CN102542783A (en) * 2012-01-21 2012-07-04 江峰 Circuit interface system, remote control system and method for achieving infrared remote control of handheld device
CN102662895A (en) * 2012-03-26 2012-09-12 华为终端有限公司 Communication method, device and system of peripheral input/output equipment
CN202443574U (en) * 2012-03-01 2012-09-19 王琦凡 System and external equipment for controlling household appliances by means of mobile terminal
CN102968897A (en) * 2012-11-07 2013-03-13 沈丽琼 Household appliance remote control method based on handheld equipment
CN202939795U (en) * 2012-09-10 2013-05-15 上海九鹰电子科技有限公司 Signal encoding and converting device
CN103295389A (en) * 2012-03-01 2013-09-11 王琦凡 Method and system for controlling household appliances by mobile terminal, and external device
CN103379401A (en) * 2012-04-25 2013-10-30 国基电子(上海)有限公司 Power supply system supplying power through headset connecting port, electronic device and headset power line
CN203274787U (en) * 2013-03-14 2013-11-06 刘力 Intelligent sensor based on a smart phone
CN103426279A (en) * 2013-07-19 2013-12-04 深圳市元征科技股份有限公司 Household appliance implementation method based on intelligent mobile terminal control
CN103645279A (en) * 2013-11-21 2014-03-19 哈尔滨东方报警设备开发有限公司 Air quality detector based on battery-free audio frequency interface
CN103839401A (en) * 2012-11-23 2014-06-04 于智为 Concentration infrared remote control method based on cloud server
CN103956040A (en) * 2014-05-22 2014-07-30 重庆大学 Learnable-type remote controller system based on intelligent equipment

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201607762U (en) * 2010-01-19 2010-10-13 晟瀚科技有限公司 Studying-downloading device for code database of remote controller
CN102542783A (en) * 2012-01-21 2012-07-04 江峰 Circuit interface system, remote control system and method for achieving infrared remote control of handheld device
CN103295389A (en) * 2012-03-01 2013-09-11 王琦凡 Method and system for controlling household appliances by mobile terminal, and external device
CN202443574U (en) * 2012-03-01 2012-09-19 王琦凡 System and external equipment for controlling household appliances by means of mobile terminal
CN102662895A (en) * 2012-03-26 2012-09-12 华为终端有限公司 Communication method, device and system of peripheral input/output equipment
CN103379401A (en) * 2012-04-25 2013-10-30 国基电子(上海)有限公司 Power supply system supplying power through headset connecting port, electronic device and headset power line
CN202939795U (en) * 2012-09-10 2013-05-15 上海九鹰电子科技有限公司 Signal encoding and converting device
CN102968897A (en) * 2012-11-07 2013-03-13 沈丽琼 Household appliance remote control method based on handheld equipment
CN103839401A (en) * 2012-11-23 2014-06-04 于智为 Concentration infrared remote control method based on cloud server
CN203274787U (en) * 2013-03-14 2013-11-06 刘力 Intelligent sensor based on a smart phone
CN103426279A (en) * 2013-07-19 2013-12-04 深圳市元征科技股份有限公司 Household appliance implementation method based on intelligent mobile terminal control
CN103645279A (en) * 2013-11-21 2014-03-19 哈尔滨东方报警设备开发有限公司 Air quality detector based on battery-free audio frequency interface
CN103956040A (en) * 2014-05-22 2014-07-30 重庆大学 Learnable-type remote controller system based on intelligent equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105611075A (en) * 2016-02-26 2016-05-25 惠州Tcl移动通信有限公司 Method and system for wirelessly remotely controlling mobile terminal
CN107545717A (en) * 2016-06-23 2018-01-05 瑞昱半导体股份有限公司 Infrared ray learning device
CN107545717B (en) * 2016-06-23 2019-10-25 瑞昱半导体股份有限公司 Infrared ray learning device
CN106647659A (en) * 2016-12-09 2017-05-10 Tcl集团股份有限公司 Intelligent terminal based method and system for controlling household appliances remotely
CN109859454A (en) * 2017-11-30 2019-06-07 珠海格力电器股份有限公司 Infrared code sending circuit, chip, remote control equipment and air conditioner based on infrared protocol
US11004331B2 (en) 2017-11-30 2021-05-11 Gree Electric Appliances (Wuhan) Co., Ltd Infrared protocol-based infrared code transmission circuit, chip, remote control device and air conditioner
CN108093287A (en) * 2017-12-27 2018-05-29 江苏惠通集团有限责任公司 The switching method and device of audio decoder algorithm, storage medium, terminal

Similar Documents

Publication Publication Date Title
US8712245B1 (en) System and method for infrared dongle
CN105336152A (en) Infrared emitter and infrared remote control method
RU2604422C1 (en) Method and apparatus for transmitting infrared signal and remote control panel
CN108260051B (en) Voice remote control system, portable transmission equipment and intelligent equipment
WO2015106708A1 (en) Method for identifying audio device
CN106412683A (en) System and method for realizing audio and video transmission and interactive signaling through USB interface
CN105208406A (en) Video data providing method and apparatus, video playing method and apparatuses, and video playing system
CN111865952B (en) Data processing method, data processing device, storage medium and electronic equipment
CN113259155A (en) Access method, device, gateway, medium and electronic equipment of Internet of things equipment
CN103281558A (en) Testing method based on set top box and set top box testing system
CN105100852A (en) Voice-based remote control method, device and system for terminals
WO2016112837A1 (en) Data information transmission method, device, and system
WO2015120759A1 (en) Audio signal transmission method, mobile terminal and intelligent key device
CN111885412B (en) HDMI signal screen transmission method and wireless screen transmission device
CN102915290B (en) Realize method, adapter and system that mobile terminal is connected with human interface device
CN103680115A (en) Remote control learning method and device for terminal equipment
CN104867295A (en) Remote control system, remote control method, and household electrical appliance
CN103516775B (en) A kind of method and system realizing equipment room Fast synchronization
CN213302791U (en) Intelligent household appliance system with voice control function
CN114885251A (en) TWS earphone system low-delay transmission method, device, equipment and storage medium
CN105657592B (en) A kind of audio communication method and device
CN109286922B (en) Bluetooth prompt tone processing method, system, readable storage medium and Bluetooth device
CN111884726A (en) Optical communication module, optical communication link information transmission method and device
CN106656353B (en) Information transmission method and device applied to intelligent robot
CN104066027A (en) Audio device recognition method and 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160217