|
||||
|
System | Articles | HW server | Links |
| Czech version | Documentations | Who are we | HW links | |
| English Version | Constructions | HW news | Companies | |
| Main page | Software | Ideas | TechNet | |
| Statistics | Reviews | Books | Mobil server | |
| Advertise here | Current news | Contact us | Elektrika | |
Introduction to IrDA
IrDA is a standard defined by the IrDA consortium
(Infrared Data Association). It specifies a way to
wirelessly transfer data via infrared radiation. The IrDA specifications include
standards for both the physical devices and the protocols they use to communicate
with each other. The IrDA standards have arised from the need to connect various
mobile devices together. (Primary use for IrDA is to link notebooks or various
personal communicators; however, even video cameras are sometimes equipped with an IrDA
interface.)
Range and speed of IrDAIrDA devices conforming to standards IrDA 1.0 and 1.1 work over distances up to 1.0m with BER (Bit Error Ratio - number of incorrectly transferred bits over number of correctly transferred bits) 10-9 and maximum level of surrounding illumination 10klux (daylight). Values are defined for a 15 degree deflection (off-alignment) of the receiver and the transmitter; output power for individual optical components is measured at up to 30 degrees. Directional transmitters (IR LEDs) for higher distances exist; however, they don't comply with the required 30 degree radiation angle.Speeds for IrDA v. 1.0 range from 2400 to 115200 kbps. Pulse modulation with 3/16 of the length of the original duration of a bit is used. Data format is the same as for a serial port - asynchronously transmitted word, with a startbit at the beginning.
Transmitter can use either 3/16 mark-to-space ratio for one bit, or a fixed length
1.63 us of each optical pulse, which would correspond to 115kbps. With
fixed length and speed of 38400 bps, each bit would take 3 pulses.
A packet consists of two start words followed by target addres (IrDA devices are assigned numbers by the means of IrDA protocol, so they are able to unambiguously identify themselves), data, CRC-16 and a stop word. The whole packet (frame) including CRC-16 is generated by IrDA compatible chipset. Start and stop words cannot appear anywhere else in the data stream - start and stop words last 1.5times the bit duration (6 times longer flash than usual).
For 4Mbps speed, so-called 4PPM modulation with 1/4 mark-to-space ratio is used. Two bits are encoded in a pulse within one of the four possible positions in time. So, information is carried by the pulse position, instead of pulse existence as in previous modulations. For example, bits 00 would be transmitted as a sequence 1000 (flash-nothing-nothing-nothing), bits 01 would be 0100, bits 11 would be send as 0001.
Main reason for the 4PPM modulation is the fact, that only half
of the LED flashes are needed than in previous modulations; so, data
can be transferred two times faster. Besides, it is easier for the
receiver to maintain the level of surrounding illumination - with
the 4PPM modulation, a constant number of pulses is received within
a given time.
More, IrDA defines so-called low-power IrDA device, with range up to 20 cm and max. speed 115kbps (a.k.a. IrDA 1.0). Limiting factor for the range is the radiation intensity at the receiver in mW/cm2. This value is higher for faster bit speeds, for slower bit speeds (long pulses) the possible range increases. (This is not explicitly mentioned in the IrDA standards, but it correlates to the amount of incoming radiation - receiver thinks that short low-energy pulses are noise. For its filter to let them through, they need to be either longer, or their energy must be higher.)
The receiver needs a way to distinguish between the surrounding illumination,
noise, and received signal. For this purpose, it is useful to use the highest
possible output power: higher power -> higher current in the receiver -> better
signal-to-noise ratio. However, IR-LED's can't transmit at full power continuously
over 100% of time. So, a pulse width of only 3/16 or 1/4 (mark-to-space ratio)
of the total time for one bit is used. Now, the power can be up to 4 or 5 times
the possible maximum power for LED's shining continuously.
In addition, the transmission path does not carry the dc component (since the receiver
continuously adapts itself to the surrounding illumination, and detects changes
only.), thus it is necessary to use pulse modulation. Integrated IrDA transceivers
(combined transmitting IR-LED and the receiving PIN photodiode) do have filters
that eliminate noise other than the IrDA frequency range 2400-115200 bps and 0.576-4Mbps
(2M flashes/s).
|
|||||||
HSDL-1000 |
![]() |
HSDL-1100 |
Also, Hewlett-Packard manufactures standalone PIN receivers as well as
IrDA modulation encoders/decoders. Integrated encoder/decoder of IrDA
115kbps modulation can be ordered under part No. HSDL-7000. It is an
integrated circuits with 8 pins. In addition to power, serial port transmit/receive,
a 16-times the bit frequency oscillator needs to be connected to it (for
115kbps, required frequency is 115200*16=1.8432 MHz). I had a chance to try out
encoder/decoder HSDL-7001; however, it offers only a few additional functions
(e.g. integrated frequency divider, or a possibility to connect a passive XTAL directly
to its inputs). In addition, the integrated frequency divider works for IR input only,
not for the output.
![]() |
![]() |
| Schematics of the 3/16 modulator HSDL-7000 | |
Of course, Hewlett-Packard is not the only manufacturer of IrDA components.
For example, Texas Instruments manufactures UART's labeled TIR1000 and TIR2000.
The TIR2000 incorporates a driver for the 4Mbps modulation (uses DMA mode).
National Semiconductors produce their own versions. And so on. In the Czech Republic,
UARTs by TI and NS circuits are probably the most commmon ones.

Links to manufacturers of IrDA components
Here are links to WWW pages of different IrDA devices manufacturers.
IBM
Hewlett Packard
HP
ir chip directory
HP
ir center
Texas
Instruments
National
Semiconductor PC87109
Vishay-Telefunken
(drive Temic) Nemecko
Vishay-Telefunken
(drive Temic) USA
Linux support for IrDA
I don't have to mention IrDA protocol support at Micro$oft. However, here is a link
to The Linux/IR Project,
whose objective is to incorporate IrDA protocols into Linux kernel. Source codes are tested
on development Linux kernels (2.1.xxx),
(2.1.xxx)
Since our goal was to connect two Linux boxes and run ppp protocol over a serial line, we have created additional logic (1 gate ;). It would continuously send pulses while DTR signal remained inactive, and thus signal a 'hang-up' to the other side. A side effect is that if the serial cable from the computer to the IrDA link is pulled out, the circuit starts sending pulses - as if the computer had hanged up via the DTR signal. This can be used in debugging process - finding signal. More, transmitter can be connected to the receiver on one side, creating a several hundred meters long loopback - ideal for checking connection quality in both directions, without the need to run there and back.
With the additional optics, we have found after some time that for distances less than about 80 meters (115 kBd speed), full-duplex mode cannot be used since the transmitted beam reflects back and creates echos. The same applies whenever there is a reflective object in the signal path - a window, for instance.
Alignment of the link is critical. The mount has to be very firm, and able to fine-point the components, so they are co-axial. Reasonable bit errors can be achieved if the link is aligned within about one meter (distance 200m - corresponds to approx. one half of a degree angle). Alignment is critical for the transmitter, not the receiver. Our best result was about 0.0006% faulty packets (MTU=296 bytes, ping packet length 64 bytes), in other words, about one packet out of 170000 packets is bad. The statistics for the other direction were about four times worse - bad alignment. Normal rain is obviously not an issue (it has been raining for two days already), problems arise with heavy rain or direct sunshine to the optics.
ppp0 Link encap:Point-to-Point Protocol inet addr:10.1.2.4 P-t-P:10.1.1.4 Mask:255.255.255.0 UP POINTOPOINT RUNNING MTU:296 Metric:1 RX packets:49724542 errors:233 dropped:233 overruns:0 frame:0 TX packets:49625500 errors:0 dropped:0 overruns:0 carrier:0 coll:0This is our ppp line statistics, 115kbps, full duplex, rain, 200m
ppp0 Link encap:Point-to-Point Protocol inet addr:10.1.2.4 P-t-P:10.1.1.4 Mask:255.255.255.0 UP POINTOPOINT RUNNING MTU:296 Metric:1 RX packets:25255596 errors:18 dropped:18 overruns:0 frame:0 TX packets:25276229 errors:0 dropped:0 overruns:0 carrier:0 coll:0and this one with good weather and a different setting (again 200m)
Pictures in the text are from WWW pages of Hewlett Packard, Texas
Instruments, and bitmap version of pdf documents by IrDA consortium.
For pricing information of IrDA components, please contact your local
electronics components dealer.
|
Copyright (c) 1997, 1998 HW server General contact: english@hw.cz Phone: +420-603-451709. Hosted by |
| All trademarks are properties of their respective owners. |