|
Sony LANc Control The Sony LANc control is similar to RS232, except it's inverted and has a long stop bit. A very good description of the protocol and known codes can be found at http://www.boehmel.de/lanc.htm. The protocol has 8 bytes. Bytes 0 & 1 are to control the camera while bytes 4-7 give the camera status. Control bytes have to be transmitted synchronously to arrive when Bytes 0+1 are expected. That's tricky from a programming point of view. Fortunately you can buy a chip that does all the RS232 to Sony LANc conversion for you. This makes the programming part real easy. The chip is the ELM 624 (ELM624DS.pdf) and can be purchased from Canada for about £12 from here http://www.elmelectronics.com/index.html. I'm indebted to Eric Cairon (http://www.ritonworld.com/) whose web site provided the core of the information I have used to develop my program.
The ELM624 interface board You have two choices, build your own or buy one from Underwater Minnesota To build your own you will require the following:
The program I have used Visual Basic Express 2008 to develop the program. You can download it free of charge and modify my source code linked below: The links:
I wrote the program to interrogate the Sony HC7 camera codes. The program has two forms. The first is to set up the program. The program looks at your PC to find the names of the active COM Ports. It also sets by default known Sony LANc codes for certain functions. There are six assignable text boxes where you can experiment with alternative codes. The form looks like this:
The second form is the control panel. The control features it has are as follows:
You are more than welcome to download and use this information. If you need help then send me an email. If you would like to give a donation I would certainly appreciate it. All monies go to keep our diving club viable so that I can continue doing a sport I love so much.
|
|
|||||||||||||||||||||||||||||||||||||||||