]> sigrok.org Git - sigrok-dumps.git/blame - lens_mounts/sony_emount/README
mrf24j40: Add a few dumps from an MRF24J40MA based ECG.
[sigrok-dumps.git] / lens_mounts / sony_emount / README
CommitLineData
b7f9d252
AD
1-------------------------------------------------------------------------------
2Sony E-mount camera/lens
3-------------------------------------------------------------------------------
4
5These are dumps from a Sony E-mount camera/lens.
6
7Details:
8https://en.wikipedia.org/wiki/Sony_E-mount
9
10These were taken using a modified 16mm Meike extension tube that brings out
11each lens contact to a 10-pin ribbon cable.
12
13Pinout of the mount is as follows (these pins are from left to right
14looking at a lens from the rear):
15
161: LENS_GND - Lens motor GND
17
182: LENS_POWER - Lens motor power
19 Can be either 5.0V or unregulated Vbat (7.4V nominal) - This is somehow
20 negotiated between body and lens.
21
223: LOGIC_GND - Ground for lens logic circuitry
23
244: BODY_VD_LENS - As-of-yet unknown body->lens signalling
25 In nearly all cases, it is normally high but pulses low at a very low duty
26 cycle at 60 Hz (is it 50 in EU?).
27
285: LOGIC_VCC - Lens logic power
29 3.15V. All data lines described below are 3.15V logic high.
30
316: LENS_CS_BODY - Handshaking line from lens to body
32 Always high when RXD is transferring data, normally low.
33
347: RXD - Serial data from lens to body
35 Starts at 750 kbaud, usually negotiates up to 1.5 Mbaud during init.
36 8N1, LSB-first.
37
388: TXD - Serial data from body to lens
39 Same speeds as above.
40
419: BODY_CS_LENS - Handshaking line from body to lens
42 Always high when TXD is transferring data.
43
4410: LENS_XDETECT - (weakly) pulled high by the body
45 Grounded to LOGIC_GND by the lens, or sometimes via 680 Ohm resistor
46 (Viltrox EF-NEX II). Used to detect presence of a lens. Body will not
47 output power unless this is grounded.
48
49
50Logic analyzer setup
51--------------------
52
53The logic analyzer used was an fx2lafw board (at 6MHz):
54
55http://www.amazon.com/gp/product/B00ZOC23TK
56
57 Probe Lens mount
58 ----------------------
59 0 BODY_VD_LENS
60 1 VCC
61 2 LENS_CS_BODY
62 3 RXD
63 4 TXD
64 5 BODY_CS_LENS
65
66
67Data
68----
69
70Protocol (quick summary):
71
72Data is only transmitted when a CS line goes high. Only one frame of data is
73transmitted per high CS period. All frames start with 0xF0, followed by a
74command ID byte. All frames end with 0x55, this is preceded by a 16-bit
75checksum of the command ID byte plus all payload bytes. Checksum is least
76significant byte first. Frames from body to lens are sometimes padded with
77additional 0x00 bytes beyond 0x55.
78
79A CS line can go high without any data being transmitted. This has so far
80only been seen during a speed change.
81
82The protocol appears to assume fixed frame lengths for a given command ID.
83Occurrences of 0x55 within a frame are NOT escaped.
84
85During "idle" operation, a low pulse of BODY_VD_LENS appears to trigger two
86status response frames from the lens to the body, followed by two frames from
87body to lens.
88
89Summary of hardware used:
90
91 - Body: Sony ILCE-A6000
92 - Probe breakout: Meike 16mm macro extension tube with all pins wired out
93 to a ribbon cable
94 - Lenses:
95 - Sony SEL55210 55-210mm zoom lens, initialization captured at both 55mm
96 and 210mm zoom settings
97 - Viltrox EF-NEX II adapter - Canon EF to Sony E mount electronic adapter
98 - Canon EF 50mm/1.8 STM - Used with Viltrox adapter
99 - Canon EF-S 24mm/2.8 STM - Used with Viltrox adapter
100 - Sony SELP1650 16-50mm Power Zoom lens - Initialization only captured at
101 the lens' default power-on focal length due to PZ + retractable lens
102
103More details can be found in the dpreview thread at:
104http://www.dpreview.com/forums/post/56133485
105