Theoretically viable, achieving hardware and software combination, just talking about a realization mechanism.
Implementing the wavelength of data transmission and the infrared signal of Remote Control, achieving data transfer is approximately 850 - 900 nm, while Remote Control is 900 - 1000 nanometers (actually uses a wavelength of 940 - 950 nanometers).
The IRDA that is currently known has two brands, Agilent HSDL Series and Vishay TFDU Series.
Agilent uses two transmitters (Emitter), which transmits these two wavelength IR signals, and Vishay is the waveform peak portion of the two wavelength signals to overlap. Personally feel that Agilent's program should be more easy to understand, ^ _ ^.
The IR to perform data transmission is more complicated because IRs are required as data transmission requires a series of operations of devices, create connectivity, transmission control, reception, transmission, etc. As the Remote Control is only OK, even discovery is not used, so it does not know the IR device that receives data in front of Remote Control, :-).
Part of the protocol, Remote Control's signal data format has a lot of signal data, and the most used is RC5 and RC6 format, which is used by Philips and NEC. The protocol format is very simple, that is, 1 word, one head, two bit is start bit, then bit3 is the T bit, then 5 bit flag This command is in the physical address of the remote device, the last 6 bit is Command, indicating Command, so RC5 can only have 2e6 - 1 = 63 channels, ^ _ ^.
The relationship between RC5 and RC6 is like IPv4 and IPv6. The structure of RC5 is not enough, and RC6 is RC6.
Then there is a bit of a place, the controller of the remote home appliance equipment is analog electron, and the mobile phone is infrared, and the software is required to use the software to modulate the signal carrier.
The infrared signal format of home appliances on the market is endless, so IRDA remote control with learning functions appears.
The principle and simple, that is, the remote control of these appliances is sent over again, and the mobile phone is received, and the signal format is written, and then the user is named OK. As for internal storage, I can use XML, Then use a simple XML Parser to resolve it.
Writing here, it is almost, if you know more detailed, change it, huh, huh.
Finally, let's say a daily thing, our usual remote control, it is in several data formats, like Philips, NEC, SONY, and then put these formats when it is remotely controlled. Send it again, I realize the so-called universal remote control, ^ _ ^.