Menu English Ukrainian russian Home

Free technical library for hobbyists and professionals Free technical library


ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING
Free library / Schemes of radio-electronic and electrical devices

Why IrDA is not suitable for receiving IR remote control commands. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / infrared technology

Comments on the article Comments on the article

Well, actually, you can certainly use IrDA to receive commands from conventional IR remotes, but with very large restrictions. Doesn't work with all remotes. Command recognition stability is very low. If you use IrDA built into the motherboard, then you need to conjure with the drivers, if external, then you need to remove the drivers or periodically plug the receiver into another COM port. USB IrDA cannot be used at all, since it cannot be accessed directly as a COM port (do not confuse it with a virtual COM port).

By popular demand, a plugin for COM IrDA was written, for more information about all the limitations and difficulties of use, see slydiman.narod.ru/scr/plugins/ir210.htm

And now in more detail

Why IrDA is not suitable for receiving IR remote control commands

Through IrDA, data is transmitted in the same way as through the COM port with minor differences. The presence of a pulse is a logical 0, the duration of the pulse is 3/16 bit time. Typically 8 bit mode is used, no parity and 1 stop bit. The first pulse is considered as a start pulse, then, depending on the selected transmission rate (usually 115200), the presence or absence of a pulse at a given time determines the value of the next bit (0 or 1). A byte is considered successfully received if the stop bit is received correctly, i.e. if at the right moment there is no impulse. The picture shows the signal when transmitting data through the COM port (UART) and through IrDA.

You can access IrDA like a regular COM port only if the device is connected to the COM port or to the IrDA connector on the motherboard. In the second case, you will have to edit the INF files with your hands so that Windows does not guess that this is an infrared port. Using, for example, a USB IrDA device to work with a remote control will not work at all.

Why IrDA is not suitable for receiving IR remote control commands

Most importantly, each information pulse sent from a remote control is, in fact, an IR background of a given duration with a frequency of 30 to 56 kHz.

Why IrDA is not suitable for receiving IR remote control commands

Theory

Let's say that everything is in order with the stop bit, then everything will be as in the picture ( BUT ). An IR background appeared, after 86.8 µs (at a speed of 115200) the first byte was received, an RX CHAR EVENT event was generated. After waiting for the end of the packet reception, we count the number of bytes and the number of single least significant bits in the last byte, thus we find out the pulse duration (T2) with an accuracy of 9 μs. After waiting for the next RX CHAR EVENT and stopping between them, we will find out T1. Subtracting T2 from T1, we find out the duration of the pause. It would seem that there is enough information to decode the command (the durations of pulses and pauses between them are known), but ...

Practice

Why IrDA is not suitable for receiving IR remote control commands

If at the time of reading the stop bit in the IR background there is a pulse, the byte will not be accepted. see picture (B). Thus, in the event of incorrect reception of one or more bytes, an RX CHAR EVENT may occur at point (1), (2), or (3). Moreover, RX CHAR EVENT may occur several times during one information pulse from the remote control, for example, at points (1) and (3). The most likely is the error-free reception of a byte that overlaps the end of the information pulse from the remote control (no pulse will get to the stop bit).

All this applies to the case when the DCD plugin, slydiman.narod.ru/scr/plugins/dcd.htm or IR210, slydiman.narod.ru/scr/plugins/ir210.htm is used to analyze a command from a remote location (the principle of operation is similar to WinLIRC ). The UIR plugin, slydiman.narod.ru/scr/plugins/uir.htm, has no idea about the encodings of various remotes at all, it stupidly analyzes the sequence of received bytes. The probability that for the same remote control command IrDA will give the same bytes is very small. The result, for example, may vary depending on the distance between the IrDA receiver and the remote control. Conversely, the same bytes can be received for different console commands.

Conclusion: at a certain frequency of the IR background (i.e. with a certain model of remote control) with a big stretch, IrDA can be used to receive remote control commands with pulse-distance modulation and with relatively short pulses, while focusing on the time between RX CHAR EVENT (DCD plugin). IrDA cannot be used to receive IR commands from remotes with a different type of modulation, as well as if the commands contain a long first information pulse, which is quite common.

Generating IR remote control commands via IrDA

Why IrDA is not suitable for receiving IR remote control commands

Here the situation is slightly better. If you know the exact command format for a given remote, you can form several packets and send them through IrDA after a given time. In this case, you need to use a baud rate of 38400 (the closest to the frequency of most remotes). You will get a signal very close to the original, but it will not be perfect. Every 9 pulses there will be a dip (stop bit). In addition, the duty cycle will be approximately 19% (should be 50%). The receiving equipment may perceive the stop bit as a short pause between information pulses and incorrectly decode commands.

Publication: cxem.net

See other articles Section infrared technology.

Read and write useful comments on this article.

<< Back

Latest news of science and technology, new electronics:

Alcohol content of warm beer 07.05.2024

Beer, as one of the most common alcoholic drinks, has its own unique taste, which can change depending on the temperature of consumption. A new study by an international team of scientists has found that beer temperature has a significant impact on the perception of alcoholic taste. The study, led by materials scientist Lei Jiang, found that at different temperatures, ethanol and water molecules form different types of clusters, which affects the perception of alcoholic taste. At low temperatures, more pyramid-like clusters form, which reduces the pungency of the "ethanol" taste and makes the drink taste less alcoholic. On the contrary, as the temperature increases, the clusters become more chain-like, resulting in a more pronounced alcoholic taste. This explains why the taste of some alcoholic drinks, such as baijiu, can change depending on temperature. The data obtained opens up new prospects for beverage manufacturers, ... >>

Major risk factor for gambling addiction 07.05.2024

Computer games are becoming an increasingly popular form of entertainment among teenagers, but the associated risk of gaming addiction remains a significant problem. American scientists conducted a study to determine the main factors contributing to this addiction and offer recommendations for its prevention. Over the course of six years, 385 teenagers were followed to find out what factors may predispose them to gambling addiction. The results showed that 90% of study participants were not at risk of addiction, while 10% became gambling addicts. It turned out that the key factor in the onset of gambling addiction is a low level of prosocial behavior. Teenagers with a low level of prosocial behavior do not show interest in the help and support of others, which can lead to a loss of contact with the real world and a deepening dependence on virtual reality offered by computer games. Based on these results, scientists ... >>

Traffic noise delays the growth of chicks 06.05.2024

The sounds that surround us in modern cities are becoming increasingly piercing. However, few people think about how this noise affects the animal world, especially such delicate creatures as chicks that have not yet hatched from their eggs. Recent research is shedding light on this issue, indicating serious consequences for their development and survival. Scientists have found that exposure of zebra diamondback chicks to traffic noise can cause serious disruption to their development. Experiments have shown that noise pollution can significantly delay their hatching, and those chicks that do emerge face a number of health-promoting problems. The researchers also found that the negative effects of noise pollution extend into the adult birds. Reduced chances of reproduction and decreased fertility indicate the long-term effects that traffic noise has on wildlife. The study results highlight the need ... >>

Random news from the Archive

Asteroid pieced together 06.09.2009

On October 2008, 80, American astronomers noticed near the Earth a small asteroid with a diameter of four meters and a mass of about XNUMX tons.

He received the number 2008 TSZ. Astronomers have managed to fix its spectral characteristics. And just 20 hours later, the asteroid burst into the Earth's atmosphere over the Nubian desert and exploded at an altitude of 37 kilometers, breaking into pieces.

In early December, employees of the University of Khartoum (Sudan) organized a combing of a section of the desert by 45 students. They managed to find 280 asteroid fragments. These finds are especially valuable, since now the chemical and mineralogical composition of the asteroid determined in the laboratory can be compared with its spectral characteristics.

Other interesting news:

▪ Nanotube cooler

▪ Do not charge your smartphone at night

▪ Mobile phone LG U880

▪ Portable Influenza Finder

▪ Hitachi e-paper

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ section of the site Videotechnique. Article selection

▪ article Sakharov Andrey Dmitrievich. Famous aphorisms

▪ article Which plant has the largest flowers? Detailed answer

▪ Article Fractures. Health care

▪ article RC operation indicator. Encyclopedia of radio electronics and electrical engineering

▪ article Luxembourg proverbs and sayings. Large selection

Leave your comment on this article:

Name:


Email (optional):


A comment:





All languages ​​of this page

Home page | Library | Articles | Website map | Site Reviews

www.diagram.com.ua

www.diagram.com.ua
2000-2024