Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×
Hardware Hacking

Journal WillWare's Journal: IP over Laser

Some time back I did a Slashdot post on IP over laser: It should be possible to route IP packets over inexpensive laser pointers for pretty large distances... [Using Google] I found several instances of people doing RS-232 over laser, but very little about IP over laser. I still think this is an interesting cool idea, particularly if the government claims eminent domain of today's Internet.

Ten or fifteen years ago, I was fooling with using bright LEDs to send pulse-width modulated voice signals. You want to use PWM for noise immunity, because the linearity of LEDs and phototransistors isn't very reliable and because you want to see nice clean edges. Something like PWM would of course be excellent for sending bit sequences.

Save yourself a heap of trouble and use visible light. You'll be able to see what you're doing. If you need secrecy, encrypt the bitstream but don't use light you can't see.

In a light transmitter, you want good collimation, so that the light will travel as far as possible. This means you want a point-like emitter, placed at the focal point of your lens, and you can adjust this by forming a spot on a distant wall. Of course if you're using a laser pointer, it's already collimated.

Light rays entering the receiver want to be collimated so that the image of your light emitter will form a point right on the sensitive part of your detector. So the detector sits at the focal point of its lens (or parabolic mirror) also.

The receiver wants the light-gathering property of a telescope. The primary lens or mirror (the first thing the light hits) should be as large as possible. When I was tinkering with this stuff, I used an inexpensive 8.5x11 Fresnel lens sold at Staples. If you wanted something less cheesy, you could become an amateur telescope builder or go out and buy a telescope. From one of the web pages below: Unlike a telescope... we needn't bother trying to obtain an actual detailed image of the light source. We need merely to gather as much light from the source as possible. Also, adjustable focus is not needed. A light communications antenna then can be much simpler and cheaper than a telescope.

Another important property of the receiver is bandwidth of the receiving circuitry. It's easy to crank a lot of bits per second through the transmitter, but getting them back out of the receiver can be a challenge. Detectors (phototransistors and photodiodes) are in many cases quite limited in bandwidth. One trick is to keep the voltages on all pins of the detector at constant voltages, and only allow the currents to change. This can be done by AC-coupling the detector to a virtual ground (like the input of an op amp, or the base of a transistor).

Forget about doing this with something hand-held. At a minimum, put the transmitter and receiver on camera tripods (put a UNC-2B 1/4"-20-thread C-mount on the bottom of whatever they're mounted on). Better yet, make it a permanent fixture on the side of a building or something, but make sure the aim is adjustable in some way.

So you've got two locations (one with electrical power but no Internet access), and each one has a transmitter and a receiver, and you can send bits back and forth at a decent rate. You'll need a computer that talks to the transmitter and receiver and functions as their connection to the local LAN, effectively I haven't thought about this part very hard so I'm going to wing it, and assume that anybody attempting this will know this part better than I do.

I'm a Linux bigot and I'll assume that nobody would ever do this with anything other than a Linux box.

The immediate problem is connecting the transmitter and receiver to the Linux box. You want to handle lots of bandwidth. Probably the easiest thing to do is connect to the parallel port.

Then you want to make the transmitter and receiver appear to the operating system as a network device (like a NIC card). The best idea would be to write a network device driver that looks like one of the existing drivers. Apparently there is SONET hardware with similar characteristics for data flow, because it does laser transmission over fiber optics. There may be examples of this in drivers/atm/suni.c or drivers/atm/nicstar.c.

Once you managed to write the correct device driver, you'd set it up with /etc/modules.conf and /etc/sysconfig/network-scripts/ifcfg-ethX.

This discussion has been archived. No new comments can be posted.

IP over Laser

Comments Filter:

"Here's something to think about: How come you never see a headline like `Psychic Wins Lottery.'" -- Comedian Jay Leno

Working...