So funktioniert das SONY LANC(tm)-Protokoll |
How SONY's LANC(tm) protocol works |
|
Die LANC(tm) Schnittstelle ist eine bidirektionale serielle
open-collector Schnittstelle, auf der zwei Geräte miteinander kommunizieren können.
Der Camcorder oder der Fotoapparat (hier heisst die Buchse ACC)
erhält darüber Steuerbefehle und gibt seinen Status zurück.
Beim Camcorder kann man noch mehr Daten auslesen: Time Code, Data Code, Zählwerk,
Restlaufzeit, Warnsignale und Laufwerksrückmeldungen. LANC steht für Logic Application Control Bus System (aus einer Sony Information im April 1991 zur Einführung des "8mm Standard Time Code"). Der Master (also der Camcorder oder der Fotoapparat) gibt den Rahmen des Telegramms vor, indem er 8 Startbits generiert, denen jeweils 8 Bits (1 Byte) folgen. Anschliessend folgt ein (langes) Stopbit und das Spiel beginnt von vorn. Ein Bit hat die Länge von 104µs. Der Abstand zwischen zwei Startbits kann je nach Gerät zwischen 1200µs und 1400µs schwanken. Der Abstand zweier Telegramme beträgt 20ms für PAL/625 und 16,6ms für NTSC/525. Das Timing entspricht RS232 bei 9600 Baud. Natürlich ist über die Schnittstelle auch der Service Mode einstellbar, ich gehe aber nicht darauf ein. Im Internet findet man dafür fertige Geräte zum Kauf. Auch manche Camcorder der Firma Canon haben eine LANC-Buchse, allerdings reagieren diese Geräte nur auf wenige Befehle. |
LANC(tm) is a bidirektional serial open
collector communication port, where two devices can communicate with each other.
The camcorder or still video camera (plug is called ACC here) is able to
receive commands and sends back its status. The camcorder provides even more data: time code, data code, counter, remain time, alerts and drive feedback. LANC ist short for Logic Application Control Bus System (from a Sony information to the introduction of the "8mm Standard Time Code" in april 1991). The master (camcorder or still video camera) generates the telegram frame, creating 8 startbits, followed each by 8 bits (1 byte) and a (long) stopbit. Then everything starts again. One bit has a duration of 104µs. The distance between two startbits can vary between 1200µs and 1400µs depending on the device. The distance between two telegrams is 20ms for PAL/625 and 16.6ms for NTSC/525. The timing conforms to RS232 at 9600 Baud. Of course also the service mode is accessable, but I won't enter into this. In the internet you will find ready-to-use devices to buy. Some Canon camcorders also have a LANC-Plug, but only few commands are implemented. |
LANC protocol - timing diagram |
Site navigation: [Byte 0] [Byte 1] [Byte 2/3] [Byte 4] [Byte 5] [Byte 6/7] [Links] |
Connections: | |||
Voltage depends on model and battery. CTL signal only on some devices (VCR control signal). Connect LANC Signal to GND for more than 140ms to power on (or on Mini-DIN Pin 3 to GND). Cable length can easily exceed 10m. |
|||
2.5 mm stereo Klinke / 2.5 mm stereo jack |
Mini-DIN | A/V jack | |
Sicht auf Gerätebuchse / device jack view |
Ein Befehl ist erst nach 3...4 Telegrammen gültig. Ausser LANC (CTRL-L) gibt es bei SONY die CTRL-S Schnittstelle und natürlich die Möglichkeit der IR Bedienung. Die Command-Codes sind überall die gleichen, bei CTRL-S und IR benötigt man noch einen Geräte-Code. Ausserdem sind die Codes verglichen mit LANC um ein Bit nach rechts verschoben. SIRCS entspricht im Timing dem CTRL-S, aber SIRCS wird mit 40 kHz gepulst. |
A command is valid after 3...4 telegrams. Except LANC (CTRL-L) there is also a CTRL-S plug at some SONY devices and of course the infrared control. The command codes are the same, but for CTRL-S and IR you need an additional device code and they are shifted right one bit, compared to LANC. SIRCS and CTRL-S have the same timing, but SIRCS is pulsed with 40 kHz. |
Byte 1:
The following table shows the actual Command-Codes to the device (Normal command to VTR or video camera).
|
The following table shows the actual Command-Codes to the device (Special command to video camera).
|
The following table shows the actual Command-Codes to the device (command to video camera recording to SD-Card).
|
The following table shows the actual Command-Codes to the device (Normal command to still video camera).
|
Byte 2 / 3:
The significant Guide Code for Byte 3 is found in the "High-Nibble"
of Byte 2.
|
Byte 4:
Status-Code from the connected device (video camera).
|
Byte 5:
|
Byte 6 / 7:
The significant Guide Code for Byte 6 and 7 is found in the "High-Nibble"
of Byte 5.
|
Zum Seitenanfang Zurück zur Protokollübersicht Zurück zur Hauptseite |
To Page Begin Back to protocol overview Back to Main Page |