LANC协议英文版

Deutsch English

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
LANC protocol - timing diagram

Site navigation: [Byte 0] [Byte 1] [Byte 2/3] [Byte 4] [Byte 5] [Byte 6/7] [Links]


 

LANC symbolConnections:
2.5 mm plugMini-DIN plugA/V plugVoltage 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-DINA/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.

 

LANC symbol Byte 0:

Sub-Command for Byte 1.

Binary codeDescription
0001 1000Normal command to VTR or video camera
0010 1000Special command to video camera
0011 1000Special command to VTR
0001 1110Normal command to still video camera

"Low-Nibble": Device Code
"High-Nibble": Guide Code


 

LANC symbol Byte 1:
 
Sub-Command in Byte 0:0001 1000 (bin)

The following table shows the actual Command-Codes to the device (Normal command to VTR or video camera).
Only valid with the corresponding Sub-Command in Byte 0.

command (hex)action
00program 1
02program 2
04program 3
05mode (only HDV/AVCHD)
06program 4
08program 5
0Aprogram 6
0Cprogram 7
0Eprogram 8
10program 9
12program 0 (10: SL-HF950 MKII)
14program 11 (SL-HF950 MKII)
16enter, program 12 (SL-HF950 MKII)
18program 13
1Aprogram 14
1Cprogram 15
1Eprogram 16
20program +
22program -
24 
26 
28x2
2Amode movie/still (older models: power or viewfinder off)
2Bphoto write
2Ceject
2Emain/sub
30stop
32pause
33start/stop
34play
35tele (only CCD-V90)
36rew
37wide (only CCD-V90)
38fwd
39photo capture
3Arec
3Crec-pause (some devices)
3E 
40still
42 
44x1/10
46x1/5 (sometimes: vis. scan)
48 
4Ax14
4Cx9
4Etracking auto/manual
50search -
52search +
54TV/VTR
56 
58 
5AVTR
5Bdate search / photo search / photo scan
5C 
5Epower off
60rev frame
62fwd frame
64 
65edit-search -
66x1
67edit-search +
68 
69rec-review (not i.e. TR-2200)
6A 
6Csleep
6Etracking normal
70 
72 
74rew+play
76 
78AUX
7Aslow +
7Btape end search (HDV)
7Cslow -
7E 
80 
82display mode
84menu up
86menu down
88tracking/fine +
8Atracking/fine -
8Ccounter reset
8Ezero mem
90index mark
92index erase
94shuttle edit +
96shuttle edit -
98data code or goto
99data code or recording parameters
9Amenu
9C 
9Einput select
A0 
A2execute
A4quick timer
A6index
A8 
AA 
ACindex search +, date search 01 (HDV)
AEindex search -, date search -01 (HDV)
B0tape speed
B2goto zero / tape return (not DV)
B4counter display, data screen
B6open/close (SL-HF950), replay (FauHaEss)
B8timer display
BA 
BC 
BDdate display off
BE 
BFdate display on
C0timer set
C2menu right, next
C4menu left
C6timer clear
C8timer check
CAtimer record
CC 
CE 
D0audio dub
D2 
D4edit assemble
D6edit mark
D8synchro edit
DA 
DCdigital off (VCR), print (DV)
DEspeed +
E0speed -
E2stop motion
E4 
E6 
E8channel scan / flash motion
EA 
ECvoice boost
EE 
F0 
F2 
F4 
F6 
F8digital scan
FAhigh-speed-rew
FCstill/shuttle (EV-S880)
FE 


 

Sub-Command in Byte 0:0010 1000 (bin)

The following table shows the actual Command-Codes to the device (Special command to video camera).
Only valid with the corresponding Sub-Command in Byte 0.

command (hex)action
00variable speed zoom Tele: slowest speed
02variable speed zoom Tele: faster than 00
04variable speed zoom Tele: faster than 02
06variable speed zoom Tele: faster than 04
08variable speed zoom Tele: faster than 06
0Avariable speed zoom Tele: faster than 08
0Cvariable speed zoom Tele: faster than 0A
0Evariable speed zoom Tele: fastest speed
10variable speed zoom Wide: slowest speed
12variable speed zoom Wide: faster than 10
14variable speed zoom Wide: faster than 12
16variable speed zoom Wide: faster than 14
18variable speed zoom Wide: faster than 16
1Avariable speed zoom Wide: faster than 18
1Cvariable speed zoom Wide: faster than 1A
1Evariable speed zoom Wide: fastest speed
21grid (AVCHD)
25fader
27rec start (DV, some cameras)
29rec stop (DV, some cameras)
30variable speed zoom Tele (avoiding digital zoom, some cameras): slowest speed
32variable speed zoom Tele (avoiding digital zoom, some cameras): faster than 30
34variable speed zoom Tele (avoiding digital zoom, some cameras): faster than 32
35Zoom Tele slow (working all cameras since approx. 1996)
36variable speed zoom Tele (avoiding digital zoom, some cameras): faster than 34
37Zoom Wide slow (working all cameras since approx. 1996)
38variable speed zoom Tele (avoiding digital zoom, some cameras): faster than 36
39Zoom Tele fast (working all cameras since approx. 1996)
3Avariable speed zoom Tele (avoiding digital zoom, some cameras): faster than 38
3BZoom Wide fast (working all cameras since approx. 1996)
3Cvariable speed zoom Tele (avoiding digital zoom, some cameras): faster than 3A
3Evariable speed zoom Tele (avoiding digital zoom, some cameras): fastest speed
41Auto-Focus on/off (not if there is a real switch at the camera)
45Focus manual far
47Focus manual near
49White balance toggle (only cameras until approx. 1996)
4BBacklight (not DV)
51Backlight (DV)
53Exposure auto/man. toggle (models of the early 90's)
Iris more close
55Iris more open
61Shutter (models of the early 90's)
77White balance reset (not if white balance is selected via menu)
85Memory impose (models of the early 90's)
87Color / Mode (models of the early 90's)
89Superimpose (models of the early 90's)
AFIris auto


 

Sub-Command in Byte 0:1101 1000 (bin)

The following table shows the actual Command-Codes to the device (command to video camera recording to SD-Card).
Only valid with the corresponding Sub-Command in Byte 0.

command (hex)action
00start/stop
01mode movie/still
02photo write
03power off
05menu
09execute
0Bmenu right
0Cphoto capture
0Dmenu left
0Fmenu up
11menu down
17data screen

 

Sub-Command in Byte 0:0001 1110 (bin)

The following table shows the actual Command-Codes to the device (Normal command to still video camera).
Only valid with the corresponding Sub-Command in Byte 0.

command (hex)action
01variable speed zoom Tele: slowest speed
03variable speed zoom Tele: faster than 01
05variable speed zoom Tele: faster than 03
07variable speed zoom Tele: faster than 05
09variable speed zoom Tele: faster than 07
0Bvariable speed zoom Tele: faster than 09
0Dvariable speed zoom Tele: faster than 0B
0Fvariable speed zoom Tele: fastest speed
11variable speed zoom Wide: slowest speed
13variable speed zoom Wide: faster than 11
15variable speed zoom Wide: faster than 13
17variable speed zoom Wide: faster than 15
19variable speed zoom Wide: faster than 17
1Bvariable speed zoom Wide: faster than 19
1Dvariable speed zoom Wide: faster than 1B
1Fvariable speed zoom Wide: fastest speed
52photo preview
58photo save (or in movie mode: start-stop)
5Epower off
94Zoom Tele slow
96Zoom Wide slow
98Zoom Tele fast
9AZoom Wide fast

 

LANC symbol Byte 2 / 3:

The significant Guide Code for Byte 3 is found in the "High-Nibble" of Byte 2.
The following table shows the known codes for video cameras.
Some cameras show up a sort of ID in Byte 2 and 3, but I did not find any systematic order.
Has anybody an idea concerning the meaning of these values?

Guide
Code
DescriptionByte 3, L-NByte 3, H-N
9channel / tunerAV or OFF: 1010
channel: One's
No Tuner: 0000 and H-N 0000
AV or OFF: 1010
channel: Ten's (at 0: 0000 or 1010)
No Tuner: 0000 and L-N 0000
Achannel / tunerAV or OFF: 1010
channel: Hundred's
No Tuner: 0000
Tuner-Type 1: 00
Tuner-Type 2: 01
Tuner-Type 3: 10


 

LANC symbol Byte 4:

Status-Code from the connected device (video camera).

L-N
H-N
012345678
0initialis ejectstopfwdrec playplay/pause fwdAL insert
1 dew cass. outload rec/ pause  frame fwdAL ins-pause
2 ejectingcassette busy timer-rec x1 fwd1/5 fwdAR insert
3 unloadlow-batterygo zero/play f.timer-rec s. x1 rev1/5 revAR ins-pause
4  dew stopfwd mem stopAV insert cue1/10 fwdAL+V insert
5  emergency AV ins.-pause rev1/10 revAL+V ins-ps
6  tape end video insert x2/x3 fwdframe fwdAR+V insert
7  tape top video ins.-ps x2/x3 revframe revAL+R ins-ps
8   rewaudio dubedit search+x9 fwd  
9  stp after zero a.dub pauseedit search-x9 revplay/pause rev 
A  load emer.auto-playcam recedit-s fwdframe sea. cue  
B unload emerg.stop emerg. 1go zero/play r.cam stbyedit-s revframe sea. rev  
C  stop emerg. 2rew mem stop  x14 fwd  
D   hi-speed rew  x14 rev  
E  stop NC      
F     edit pause   


Status-Code from the connected device (still video camera).

L-N
H-N
0DE
0initial  
D  mpeg movie mode
E  photo mode
F play modesetup mode

 

LANC symbol Byte 5:
 
BitDescription
01 = invalid transmitted code
11 = rec protection (old models: tape pre-end)
21 = battery low
31 = zero mem / zero found
4...7Guide Code for Byte 6 and 7

 

 

LANC symbol Byte 6 / 7:

The significant Guide Code for Byte 6 and 7 is found in the "High-Nibble" of Byte 5.
The following table shows the known codes.

Guide
Code
DescriptionByte 6, L-NByte 6, H-NByte 7, L-NByte 7, H-N
0     
1Status V8 and Hi80+1: tape speed
00=SP, 01=LP
2: standard FM-sound
3: PCM-sound
0: camera-mode
1: rec protection / tape pre-end
2: ME (0=MP)
3: 13µm (0=10µm)
0:
1: camera-mode
2:
3: servo / mechanics on
0+2: input select

(00=tuner, 01=sim, 11=line)
2decimal CounterOne'sTen'sHundred'sThousand's
3real time Counter,
picture Counter
Seconds One's,
Picture One's
Seconds Ten's,
Picture Ten's
Minutes One's,
Picture Hundred's
Minutes Ten's,
Picture Thousand's
4real time CounterHours One'sHours Ten'sFrames One's or Day One's
(or 0000/1111)

("Day" only seen in CCD-V90E!)
0+1: Frames Ten's or Day Ten's
2: RCTC
3: sign (1=negativ)
(or 0000/1111)
5remain timeMinutes One'sMinutes Ten'sHours One's2: 0=calculating
(old devices: 1111)
6     
7Status Betamax or DVBetamax:
0+1: tape speed
00=BI, 01=BII, 10=BIII
2: Beta Hifi
3: servo/ mechanics on
DV:
0+1: tape-speed
00=SP, 01=LP
2: audio (0=12bit, 1=16bit)
3: servo / mechanics on
0: 0=Betamax, 1=DV

1: rec protection
2+3: Byte 7 DV mode:
00=DV input
01=ext. Status DV in a Camera
10=
11=ext. Status DV in a VTR
Betamax:
0+1: Audio L+R insert
2: Video insert
3: assemble

DV mode 00:
input tuner: 0000, input Line: 0101, input DV: 1010
DV mode 01:
mode: 0000=player, 0011=camera
Betamax:
0: edit
1: preview
2: EE
3:

DV mode 00:
Line 1: 0000     Line 3: 1010
Line 2: 0101     Line 4: 1111
8Data GuideDC: 4DC: 1DC: 3=Date, 4=TimeDC: 0
9Data-Code
(Tape + Picture)
Date: Year One's
Time: Hour One's
Date: Year Ten's
Time: Hour Ten's
Date: Month One's
Time: Minutes One's
Date: Month Ten's
Time: Minutes Ten's
AData-Code
(Tape + Picture)
Date: Day One's
Time: Seconds One's
Date: Day Ten's
Time: Seconds Ten's
DC: 1111
sometimes 1000
DC: 1111
sometimes 1001/1011
BStatus AVCHD0: 1=AVCHD camera mode
1: 1=AVCHD photo mode
000000000000
CStatus Hi8,
DV (+GC1)
Hi8: 0100
DV: 0010 or 0001
Hi8: 0100
DV: 0010 or 0000
0: camera mode / CTL found
1:
2: edit on
3: auto Hi8
0000
D     
EStatus Photo0: 1=photo mode selected
1: 1=memorystick(tm) inserted
2: 1=memorystick(tm) write-protected
0: 1=memorystick(tm) play
1: 1=memorystick(tm) search
2: 1=memorystick(tm) full
3: 1=camera with memorystick(tm)
0: 1=photo mode available 
F    uanzhuan

 

 

http://www.boehmel.de/lanc.htm#byte0转载于

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值