Realization method and apparatus for infrared remote control
暂无分享,去创建一个
The embodiment of the invention provides a realization method and apparatus for infrared remote control. The method comprises: while acquiring the click operation of a user on a set button in mobile terminal, acquiring a corresponding remote control command; according to a communication protocol used by to-be-remotely controlled equipment, conducting frequency division processing on the clock frequency of a clock in a communication port used by an infrared lamp in the mobile terminal and for infrared remote control of the to-be-remotely controlled equipment, thus obtaining effective clock frequency matching the communication protocol; and controlling the clock in terms of giving a clock signal corresponding to the remote control command according to the effective clock frequency so as to make the infrared lamp give an infrared remote control signal according to the clock signal. In the mobile terminal, the infrared lamp realizes remote control of the to-be-remotely controlled equipment through the clock in the communication port of the mobile terminal, and an infrared remote control chip corresponding to the to-be-remotely controlled equipment is not needed to design, thus saving hardware for realization of infrared remote control.