Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer; To combine the accompanying drawing in the embodiment of the invention below; Technical scheme in the embodiment of the invention is carried out clear, intactly description; Obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The method flow diagram of the remote controlled electronic device that Fig. 1 provides for one embodiment of the invention.As shown in Figure 1, the method for present embodiment comprises:
The processor module of step 101, portable terminal receives first telecommand that is used for remote controlled electronic device, will first remote signal corresponding send to first telecommand portable terminal near optical sensor module.
The portable terminal of present embodiment comprises near optical sensor module, is a kind of hardware device on the portable terminal.The portable terminal of present embodiment can be a mobile phone, but is not limited thereto.Usually; The user through portable terminal beat/when answering the call, be the display screen that can't see portable terminal, if display screen one is heading straight for during this period; And user's air time is when longer; The temperature of portable terminal raises can be very fast, and user experience is not good, also can cause the waste of power resource simultaneously.And mainly be to be used for when detecting the user and beating/answering the call near optical sensor module in the portable terminal, the display screen of turning-off mobile terminal initiatively, thus reach the purpose that reduces power consumption and temperature.Wherein, the proximity transducer module can be sent infrared pulse (being that wavelength is the infrared light about 850nm) by its infrared emission light source (for example LED).
In the present embodiment; Utilization can be sent the characteristic of infrared pulse near optical sensor module; The processor module control of portable terminal is sent the infrared pulse that electronic equipment is carried out remote control near optical sensor module, thereby reaches the purpose of electronic equipment being carried out remote control.Wherein, electronic equipment can be a home appliance, for example TV, CD Player, air-conditioning, refrigerator etc., but be not limited thereto.For example electronic equipment can also be that automobile etc. is various can be by the electronic product of remote control or electric equipment products.
In the present embodiment; Processor module receives the telecommand (i.e. first telecommand) that is used for remote controlled electronic device; First then that first telecommand is the corresponding remote signal sends near optical sensor module, sends infrared pulse with control near optical sensor module.
Optional, the processor module in the portable terminal of present embodiment can generate and store the telepilot interface in advance.This telepilot interface can be generated according to existing distant control function by processor module, comprises on this telepilot interface and various distant control function corresponding key.When electronic equipment being carried out remote control through portable terminal; The user can be through hardware button on the portable terminal or the modes such as application icon on the mobile terminal display screen, and the display screen that triggers processor module control portable terminal shows the telepilot interface that generates in advance.Then, the user sends first telecommand through clicking the respective keys on the telepilot interface to processor module.
At this moment, processor module receives first telecommand that the user sends, and first remote signal corresponding with first telecommand that the user sends offered near optical sensor module.Wherein, first remote signal can be a kind of signal of digital form.Concrete, processor module through and near the data bus between the optical sensor module, internal integrated circuit (Inter-Integrated Circuit, I for example
2C) bus offers remote signal near optical sensor module.Wherein, the good remote signal corresponding of processor module storage in advance with various telecommands, therefore, processor module can directly obtain the remote signal corresponding with this first telecommand (i.e. first remote signal) when receiving first telecommand.Wherein, the corresponding remote signal difference of different telecommands.For example, when first telecommand was start-up command, shutdown command, channel selection instruction, sound channel instruction etc. respectively, pairing remote signal was all different.In realization, remote signal promptly is the combination of a series of pulses, comprises start signal, address signal and data-signal etc.
Step 102, near optical sensor module according to first remote signal that processor module sends, send the first corresponding infrared pulse of first remote signal that sends with processor module, with the remote control of realization to electronic equipment.
After receiving first remote signal near optical sensor module, realize emission function, need convert first remote signal of the from processor module that receives into first infrared pulse.Concrete, pass through I near optical sensor module
2After the C bus interface is received first remote signal; Can automatically first remote signal be separated the pulse into similar " 0100100 "; Control opening and closing of led driver (DRIVER) control infrared LED then, opening and closing and send infrared pulse accurately through infrared LED.Wherein, Can control the frequency that infrared LED is opened and closed through the control led driver; And control infrared LED through the size realization of control led driver output current and launch different infrared pulses, and then launch and the corresponding infrared pulse of various telecommands (or remote signal).
Electronic equipment receives by first infrared pulse that sends near optical sensor module; First infrared pulse to receiving is discerned; Convert digital signal then into; Under the control of digital signal, make respective response, for example start shooting, shutdown, sound adjusting etc., to realize the remote control of user electronic equipment.
In the present embodiment; Through to comprising that the portable terminal near optical sensor module carries out the function expansion; Allow its processor module to receive the telecommand that is used for remote controlled electronic device, then that telecommand is corresponding remote signal offers it near optical sensor module, sends the infrared pulse of remote controlled electronic device near optical sensor module through it; Realized through portable terminal the purpose that electronic equipment carries out remote control is helped practicing thrift remote controller equipment.
Further, compare with universal remote control of the prior art, the size of mobile terminals of present embodiment is generally less, and the user generally can carry, can be at any time, electronic equipment is carried out remote control everywhere, improved the convenience of user's remote controlled electronic device.In addition, present embodiment utilize directly that portable terminal has near optical sensor module, only need to carry out the function expansion and get final product portable terminal, be easy to realize, and the realization cost is lower.
The method flow diagram of the control electronic equipment that Fig. 2 provides for another embodiment of the present invention.As shown in Figure 2, the method for present embodiment comprises:
Step 201, portable terminal receive second infrared pulse that is used for remote controlled electronic device that external remote is sent near optical sensor module, second infrared pulse that the external remote that receives is sent converts the processor module that sends to portable terminal after second remote signal into.
Step 202, processor module obtain second telecommand corresponding with second remote signal.
Step 203, processor module will be bound near second remote signal and the second corresponding telecommand that optical sensor module sends, and store second remote signal and second telecommand.
In the present embodiment, portable terminal not only has and sends first infrared pulse to electronic equipment and realize that the function of the remote control of electronic equipment is also had the function of learning remote control signal.
Concrete, when carrying out remote control signal learning, the learning functionality of portable terminal is opened; Control external remote then and send second infrared pulse that is used for remote controlled electronic device.Portable terminal will receive second infrared pulse that external remote is sent near optical sensor module (specifically being) near the infrared light receiving sensor in the optical sensor module; Second infrared pulse that then external remote that receives is sent converts second remote signal of digital form into, then second remote signal is sent to processor module.Concrete, near optical sensor module through and processor module between I
2The C bus sends to processor module with second remote signal.
Meanwhile, processor module obtains the telecommand corresponding with this second remote signal, i.e. second telecommand.This second telecommand also is the telecommand corresponding to this electronic equipment.
Wherein, In order to realize study to remote signal; The portable terminal of present embodiment can be in advance generates this electronic equipment corresponding remote controller interface according to the various telecommands of the telepilot of this electronic equipment in the prior art, and the corresponding button of various telecommands is arranged on this telepilot interface.Promptly on the telepilot interface, define earlier the function button of the telecommand corresponding with the remote signal that will learn.Wherein, through touching or clicking corresponding button and will send corresponding telecommand to processor module.When portable terminal carries out remote signal or function study; The user can be through clicking the button on the telepilot interface; Send second telecommand corresponding with second remote signal to processor module, promptly processor module can be through receiving second telecommand that the user sends through the button on the telepilot interface.
In addition, processor module also can obtain second telecommand through other modes.For example, a hardware button is set on portable terminal, and the different operating of this button is set, for example by once, send different telecommands by two inferior correspondences continuously.Based on this, the user can send second telecommand to processor module through this hardware button.And processor module receives second telecommand that the user sends through hardware button.The letter or number that again for example, can also be provided with in advance on the keyboard of clicking portable terminal is represented the different different telecommands of sending.Based on this, the user can send second telecommand to processor module through this keyboard.And processor module receives second telecommand that the user sends through keyboard.
Processor module is after obtaining second remote signal and second telecommand; Second remote signal and second telecommand (distant control function in other words) are bound; And store second remote signal and second telecommand, realize study to remote signal or distant control function.
In this explanation, the portable terminal of present embodiment can carry out remote control to a plurality of electronic equipments, perhaps can carry out the study of remote signal or distant control function to a plurality of electronic equipments.And for different electronic equipments; Portable terminal can generate different telepilot interfaces for distinct electronic apparatuses; Perhaps on the telepilot interface, show the sign (for example title) of electronic equipment etc., can guarantee like this user correct distinct electronic apparatuses is carried out remote control.
Based on above-mentioned; If electronic equipment corresponding remote controller interface generated before learning remote control signal or distant control function; Then processor module also need be bound with this electronic equipment, for example when second remote signal and second telecommand are bound; Sign with second remote signal and second telecommand and this electronic equipment; Perhaps bind, and in storage second remote signal and second telecommand, store the corresponding relation between second remote signal, second telecommand and this electronic equipment (can be the sign or the corresponding remote controller interface of this electronic equipment) with electronic equipment corresponding remote controller interface.The remote signal that so just can clearly learn or distant control function corresponding to which electronic equipment lay the foundation for electronic equipment is carried out correct remote control.
Like this; When the user need use the distant control function of learning or send this second telecommand; Processor module just can directly take out the second corresponding remote signal of this second processing instruction; And second remote signal offered near optical sensor module, send corresponding infrared pulse near optical sensor module, thereby realize remote control the corresponding function of electronic equipment.
Further; If the user sends second telecommand through the mode at non-telepilot interface to processor module; Then portable terminal can also be provided with corresponding button according to second telecommand of learning and second remote signal on electronic equipment corresponding remote controller interface after the learning remote control signal ended; So that the user sends this second telecommand through the telepilot interface to processor in follow-up use, improve the convenience that the user uses.This embodiment belongs to first learning remote control signal, on the telepilot interface, generates then should remote signal or the button of function.Concrete; Processor module is after learning second remote signal of sending near optical sensor module; Second telecommand corresponding according to second remote signal is provided with corresponding button on electronic equipment corresponding remote controller interface; And the display screen display remote controller interface of control portable terminal, thereby new distant control function is offered the user, so that the user carries out remote control to electronic equipment.
Further; The portable terminal of present embodiment carries out the study of second remote signal except second infrared pulse that sends through external remote; Electronic equipment producer can also directly announce second remote signal; And the processor module of portable terminal directly obtains second remote signal that man of Electronic Equipment Factory announces, realizes the study to remote signal or function.
Step 204, when electronic equipment is carried out remote control, the display screen display remote controller interface of processor module control portable terminal.
Wherein, the telepilot interface comprises distant control function or the telecommand corresponding key that all are learnt, the button of for example starting shooting, shutdown button, channel selection button, sound channel control button or the like.
When needs carried out remote control through portable terminal to electronic equipment, the user can trigger the display screen display remote controller interface of processor module control portable terminal through external hardware button or application icon etc.In the time need carrying out the remote control of certain function to electronic equipment, the user can send first telecommand to processor module through touching or clicking certain function button on the telepilot interface.The display screen that the processor module of portable terminal is specifically controlled portable terminal provides the telepilot interface to the user, and the user need not the function of each button of record multifunctional remote controlller as prior art, helps promoting user experience.
Step 205, processor module receive first telecommand that the user sends through the telepilot interface; Obtain first remote signal of the corresponding digital form of first telecommand sent with the user, first remote signal that will obtain then offers near optical sensor module.
After processor module receives first telecommand that the user sends, can find corresponding first remote signal according to the binding relationship of each telecommand and remote signal.Wherein, first remote signal is a kind of signal of digital form, mainly comprises start signal, address signal and data-signal etc.Then, processor module first remote signal that will find is passed through I
2The C bus transfer is given near optical sensor module.
Step 206, near optical sensor module according to first remote signal that processor module sends, send the first corresponding infrared pulse, realize remote control to electronic equipment.
This step 206 can repeat no more at this referring to the description of step 102.
In this explanation, the order that electronic equipment is carried out between the operation of remote control of the operation that remote signal is learnt that above-mentioned steps 201 and step 203 are described and the description of step 204-step 206 is not done qualification, is parallel work-flow.
The portable terminal of present embodiment has learning functionality; Compare through the scheme of setting each button realization multifunction remote-control repeatedly with user in the prior art; Realize comparatively simply, do not need frequent the carrying out of user manually to be provided with, be convenient to the study that the user carries out distant control function.
Further, in the present embodiment, portable terminal have distant control function and light measuring ability simultaneously near optical sensor module.When remote control mode, can use bigger emissive power, improve transmitting range; And near the light detecting pattern time, can reduce transmitter current, thereby reduce equipment power dissipation.Wherein, processor module with the emissive power of adjustment near optical sensor module, thereby is realized the control to transmitting range to send electric current adjustment indication near optical sensor module.Concrete; Processor module can be through indicating to send the electric current adjustment near the led driver in the optical sensor module; Current-mode through the use of adjustment led driver; For example control led driver and use big current-mode to improve transmitting range, the control led driver uses little current-mode to reduce transmitting range.
Further; The portable terminal of present embodiment can also be realized two-way communication with electronic equipment except the function with learning remote control signal, promptly portable terminal is without sending infrared pulse to electronic equipment; Can also receive the infrared pulse that electronic equipment sends, realize two-way communication.Concrete, the 3rd infrared pulse near the transmission of optical sensor module reception electronic equipment of portable terminal, the 3rd infrared pulse that the electronic equipment that receives is sent converts digital signal into, then the digital signal that converts to is sent to processor module.The corresponding information of display screen display digit signal of processor module control portable terminal is about to the corresponding information of digital signal and is presented on the display screen of portable terminal, further electronic equipment is carried out remote control for the user according to the information that shows.Illustrate, for some electronic equipments that can't directly show, can obtain relevant data and show through portable terminal near optical sensor module.For example; In control during CD Player, the user but needs to select song sometimes not by CD Player; This moment, the user can return contents such as song through the respective keys remote control CD Player on the mobile terminal display screen, and on display screen, showed and make things convenient for the user to choose.This for example in, the function that requires CD Player to have to read playlist, playlist is handled and communicated with portable terminal.Again for example, when the control air-conditioning, the user can return information such as current environmental temperature through the respective keys remote control air conditioner on the mobile terminal display screen.
Further, the portable terminal of present embodiment can also be set the time of sending remote signal, realizes the automatic remote control to electronic equipment.For example, the processor module of portable terminal can be controlled the air-conditioning timed power on/off at night, and temperature adjustment etc. have realized the purpose with smart machine control unintelligent device.Present embodiment utilizes the intelligent characteristic of portable terminal, realizes using the automatic remote control of smart machine to non intelligent electronic equipment, to the user remote control mode more flexibly is provided, and has improved the dirigibility of electronic equipment being carried out remote control.
Further; When electronic equipment is carried out remote control, generally need launch infrared pulse, based on this over against electronic equipment; The portable terminal of present embodiment allows to be provided with flexibly near the position of optical sensor module on portable terminal, the convenience during with the raising remote control.For example, can be with the back side or the side of putting near optical sensor at portable terminal.In addition, when near the position of optical sensor on portable terminal, for example be arranged on the top, when being unfavorable for direct remote control, thereby the user can reach the purpose of remote control through the direction that changes portable terminal.
In the present embodiment; Through to comprising that the portable terminal near optical sensor module carries out the function expansion; Send the infrared pulse of remote controlled electronic device near optical sensor module through it; Realization can also receive the infrared pulse that external remote is sent to the remote control of electronic equipment, realizes the study to distant control function.Further; Compare with universal remote control of the prior art; Present embodiment has following beneficial effect: 1, because present embodiment adopts the less portable terminal of volume; The user generally can carry, can be at any time, electronic equipment is carried out remote control everywhere, improved the convenience of user's remote controlled electronic device.2, present embodiment utilize directly that portable terminal has near optical sensor module, only need to carry out the function expansion and get final product portable terminal, be easy to realize, and the realization cost is lower.
Fig. 3 A is the structural representation of the portable terminal that provides of one embodiment of the invention.Shown in Fig. 3 A, the portable terminal of present embodiment comprises: processor module 31 and near optical sensor module 32.
Wherein, processor module 31 is used to receive first telecommand that is used for remote controlled electronic device, and first remote signal corresponding with first telecommand sent near optical sensor module 32.
Near optical sensor module 32, be connected with processor module 31, be used for first remote signal according to processor module 31 transmissions, send the first corresponding infrared pulse of first remote signal that sends with processor module 31, to realize remote control to electronic equipment.
Each functional module of the portable terminal of present embodiment can be used for carrying out the flow process of the method for remote controlled electronic device shown in Figure 1, and its concrete principle of work repeats no more, and sees the description of method embodiment for details.
The portable terminal of present embodiment; Through carrying out the function expansion; Allow its processor module to receive user's telecommand, then that telecommand is corresponding remote signal offers it near optical sensor module, sends the infrared pulse of remote controlled electronic device near optical sensor module through it; Realized through portable terminal the purpose that electronic equipment carries out remote control is helped practicing thrift remote controller equipment.
Further, compare with universal remote control of the prior art, the size of mobile terminals of present embodiment is generally less, and the user generally can carry, can be at any time, electronic equipment is carried out remote control everywhere, improved the convenience of user's remote controlled electronic device.In addition, the portable terminal of present embodiment directly utilizes existing near optical sensor module, only need carry out the function expansion and get final product, and is easy to realize, and realizes that cost is lower.
Further, the display screen that processor module 31 specifically is used to control portable terminal shows the electronic equipment corresponding remote controller interface that generates in advance, receives first telecommand that the user sends through the button on the telepilot interface; Said telepilot interface comprises and the distant control function corresponding key.
Further; Also be used for after the learning functionality of portable terminal is opened near optical sensor module 32; Receive second infrared pulse that is used for remote controlled electronic device that external remote is sent, send to processor module 31 after second infrared pulse that the external remote that receives is sent converts second remote signal into.
Correspondingly; Processor module 31 also is used to receive second remote signal of sending near optical sensor module 32 or directly obtains second remote signal that man of Electronic Equipment Factory announces; And obtain second telecommand corresponding with second remote signal; Then second remote signal and second telecommand are bound, and store second remote signal and second telecommand.
The portable terminal of present embodiment is realized the study to remote signal through processor module with near optical sensor module, compares through the scheme of setting each button realization multifunction remote-control repeatedly with user in the prior art, realizes comparatively simple; Do not need frequent the carrying out of user manually to be provided with; Be convenient to the study that the user carries out distant control function, and support the remote signal of directly producer being announced to import, realize the study of distant control function; Need not learn, make things convenient for user's operation all buttons.
Further; Processor module 31 also is used for according to second remote signal of sending near optical sensor module 32 and the second corresponding telecommand; On electronic equipment corresponding remote controller interface, corresponding button is set, and the display screen display remote controller interface of control portable terminal.Wherein, the display screen through portable terminal provides the telepilot interface to the user, and the user need not the function of each button of record multifunctional remote controlller as prior art, helps promoting user experience.
Further again, also be used to receive the 3rd infrared pulse that electronic equipment sends near optical sensor module 32, after converting digital signal into, the 3rd infrared pulse that the electronic equipment that receives is sent sends to processor module 31.
Processor module 31 also is used to control the corresponding information of display screen display digit signal of portable terminal, according to information electronic equipment is carried out remote control for the user.
Processor module 31 also is used for to send electric current adjustment indication near optical sensor module 32, with the emissive power of adjustment near optical sensor module 32.Wherein,, can control transmitting range, be convenient to carry out remote control through the emissive power of adjustment near optical sensor module 32.
Wherein, Fig. 3 B is the partial circuit synoptic diagram near optical sensor module 31 that one embodiment of the invention provides.Shown in Fig. 3 B, mainly the comprising of present embodiment: the led driver 312 and the I of light emitting diode 311, driven for emitting lights diode 311 near optical sensor module 31
2Transmitting-receiving processing sub 313, crystal oscillator submodule 314, analog to digital conversion submodule 315 that the C bus connects.
Wherein, crystal oscillator submodule 314 is connected with analog to digital conversion submodule 315, and analog to digital conversion submodule 315 all is connected with led driver 312 with transmitting-receiving processing sub 313, and led driver 312 is connected with light emitting diode 311.In addition, analog to digital conversion submodule 315 also is connected with light emitting diode 316 and light emitting diode 317.Crystal oscillator submodule 314 is connected with the ground end.
Wherein, the circuit structure near optical sensor module 31 can be not described in detail in this referring to prior art.
Above-mentioned each functional module or submodule can be used for carrying out the corresponding flow process of method embodiment shown in Figure 2, and its concrete principle of work repeats no more.
The portable terminal of present embodiment; Through carrying out the function expansion; Send the infrared pulse of remote controlled electronic device through it near optical sensor module, realize remote control, can also receive the infrared pulse that external remote is sent electronic equipment; Realization helps practicing thrift remote controller equipment to the study of distant control function.
Further; Compare with universal remote control of the prior art; The portable terminal of present embodiment has following beneficial effect: 1, because the volume of portable terminal is less; The user generally can carry, can be at any time, electronic equipment is carried out remote control everywhere, improved the convenience of user's remote controlled electronic device.2, the portable terminal of present embodiment directly utilizes existingly near optical sensor module, only need carry out the function expansion and get final product, be easy to realize, and the realization cost is lower.
One of ordinary skill in the art will appreciate that: all or part of step that realizes above-mentioned each method embodiment can be accomplished through the relevant hardware of programmed instruction.Aforesaid program can be stored in the computer read/write memory medium.This program the step that comprises above-mentioned each method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
What should explain at last is: above each embodiment is only in order to explaining technical scheme of the present invention, but not to its restriction; Although the present invention has been carried out detailed explanation with reference to aforementioned each embodiment; Those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, perhaps to wherein part or all technical characteristic are equal to replacement; And these are revised or replacement, do not make the scope of the essence disengaging various embodiments of the present invention technical scheme of relevant art scheme.