summaryrefslogtreecommitdiff
path: root/camlibs/sierra/MC-EU1-Protocol.txt
blob: 2a94751fb991f6138638c40921c53742bb9cc112 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
From: http://vyskocil.free.fr/coolcom/MC-EU1%20Protocol.txt


					Coolpix MC-EU1 Protocol

Here are some informations about the serial protocol used between the Coolpix and the MC-EU1 remote.
Speed is set to 19200 bauds

* Introduction
This protocol use 1 or 4 bytes "packets". 4 bytes packets are used to send command to the coolpix and receive information from it.
1 byte packet are used as acknowledge (0x86), not acknowledge (0x15), "attention packet" (0xFF). 
Each byte in these packet is divided in two part, bit 0-6 is the value on 7 bits and bit 7 is the odd parity bit (thanks Mark Roberts !)
Returned value by the coolpix (in the two or three? last byte) have 0x1C offset, and least significant byte is sent first, for example
the number of picture is :

nb picture = ((byte[2] & 0x7F) - 0x1C) + 100 * ((byte[3] & 0x7F) - 0x1C) 
byte[0] == 0x9B, byte[1] == 0x10

* Going to MC-EU1 protocol

Send                             	Receive				Informations

0x00

					0x15

0x1B,0x53,0x06,0x00,0x00,0x11,0x02,0x00,0x00,0x00,0x13,0x00		Standard SetSpeed to 19200 command packet

					0x06

0x1B,0x53,0x06,0x00,0x00,0x11,0x02,0x00,0x00,0x10,0x23,0x00		Go to MC-EU1 protocol packet, switch LCD ON

					0x06

At first connection after Coolpix has been powerup, first 0x00 don't work, coolpix respond 0xFF 0xFF then nothing
A second 0x00 do the job.

* Initialisations

Need more informations...

Send                             	Receive				Informations

0x9B, 0x85, 0x1C, 0x1C

					0x9B, 0x13, 0x1C, 0x1C		?

0x86

* Has camera power down ?

Send                             	Receive				Informations

0x9B, 0x08, 0x1C, 0x1C

					0x9B, 0x92, 0x7F, 0x7F		Coolpix is ON
					or
					0x9B, 0x19, 0x7F, 0x7F		Coolpix powerdown.

0x86

* Take a shoot :

Send                             	Receive				Informations

0x9B, 0x01, 0x1C, 0x1C							Half press the shutter button.

					0x86

0x9B, 0x01, 0x7F, 0x1C							Full press the shutter button, 
									take the picture
					0x86

0x9B, 0x01, 0x7F, 0x7F							Release the shutter button,
									useful in bulb mode
									
					0x8F
					
0x9B, 0x01, 0x1C, 0x7F							Half press release (unlock shutter button).
			
					0x86
					
* Zoom IN

Send                             	Receive				Informations

0x9B, 0x02, 0x1C, 0x1C							"Press" the zoom in button

					0x86
					
0x9B, 0x02, 0x1C, 0x7F							"Release" the zoom in button

					0x86

* Zoom OUT

Send                             	Receive				Informations

0x9B, 0x02, 0x7F, 0x1C							"Press" the zoom out button

					0x86
					
0x9B, 0x02, 0x7F, 0x7F							"Release" the zoom out button

					0x86
					
* Next picture

Send                             	Receive				Informations

0x9B, 0x04, 0x1C, 0x1C							"Press" right

					0x86
					
0x9B, 0x04, 0x1C, 0x7F							"Release" right

					0x86

* Previous picture

Send                             	Receive				Informations

0x9B, 0x04, 0x7F, 0x1C							"Press" left

					0x86
					
0x9B, 0x04, 0x7F, 0x7F							"Release" left

					0x86
					
* Number of picture left

Send                             	Receive				Informations

0x9B, 0x07, 0x1C, 0x1C

					0x9B, 0x10, 0xXX, 0xYY		(0xXX & 0x7F) - 0x1C + 100 * ((0xYY & 0x7F) - 0x1C) 
												is the number of pictures left

0x86

* A-REC/M-Rec

Send                             	Receive				Informations

0x9B, 0x89, 0x1C, 0x1C

					0x9B, 0x91, 0x9D, 0x7F		for A Rec mode
					or
					0x9B, 0x91, 0x0D, 0x1C		for M Rec mode
					or
					0x9B, 0x91, 0x7F, 0x9D		for play mode
					
0x86
					
* Go back to standard protocol

Send                             	Receive				Informations

0x9B, 0x8A, 0x1C, 0x1C							LCD OFF
				
					0x86
					
* "Attention" packet 0xFF from coolpix

Coolpix send 0xFF in many cases :
- After initialisation in response to 0x00.
- When Coolpix self powerdown (powersave)
- When Coolpix is powerdown
- When a picture has been recorded
- When mode selector is operated (A-Rec, M-Rec, Play)

It's a good idea to send 0x9B, 0x08, 0x1C, 0x1C packet to check
if coolpix has powerdown when a 0xFF is received, else check the
picture number and current mode.

* Notes

- Camera send NAK (0x15) in response to bad command packet

- You may send any useful informations about this protocol to : vladimir.vyskocil@wanadoo.fr