Bulb mode on K-30 does not work
Status: Beta
Brought to you by:
asalamon
Hi!
I'm trying to use bulb mode with my K-30, with no success.
Seems bolb setting is not recognized:
$ pktriggercord-cli -t 35 -o test -w
pktriggercord-cli: K-30 Connected...
pktriggercord-cli: Invalid shutter speed value.
Photo is taken with much shorted exposure then specified.
I modified the "if" statement in pktriggercord.cli.c to make bulb recognized by the program:
if( status.exposure_mode == PSLR_GUI_EXPOSURE_MODE_B || status.exposure_mode == PSLR_EXPOSURE_MODE_B) {
DPRINT("bulb\n");
...
After this modification camera dos not open the shutter at all, just displays status screen for a wait.
Any idea how to fix it?
Or any specific setting on camera should be done?
Regards,
Piotr
Bulb mode has to be set manually on the camera before starting the program. I've fixed a K-30 exposure mode recognition bug not long ago. Can you check the SVN version?
Hi Andras,
I'm already using current version from svn:
$ LC_ALL=C svn update
At revision 237.
Version is "0.81.01"
Camera is set to "B" on the mode dial, anything else is needed?
$ time pktriggercord-cli -o test -t 55 -w
pktriggercord-cli: K-30 Connected...
pktriggercord-cli: Invalid shutter speed value.
real 0m6.128s
user 0m0.004s
sys 0m0.060s
With camera set to "P", it doing 30sec exposure:
$ time pktriggercord-cli -o test -t 55 -w
pktriggercord-cli: K-30 Connected...
pktriggercord-cli: Invalid shutter speed value.
real 0m37.257s
user 0m0.024s
sys 0m0.284s
Rgrds and Thanks! Piotr
What is the output of the following command (when the camera is in Bulb mode)?
pktriggercord-cli --status_hex --debug
Andras
Hi! Here it is in Bulb mode, with manual lens attached:
$ pktriggercord-cli --status_hex --debug
Debug messaging is now enabled.
pktriggercord-cli 0.81.01
model (null)
device (null)
Checking drive: sg0 ATA
ST340016A
Checking drive: sg1 HL-DT-ST
DVDRAM GSA-H10N
Checking drive: sg2 PENTAX
DSC_K-30
Found camera PENTAX
DSC_K-30
id1 of the camera: 12f52
read 452 bytes
expected_bufsize: 452
0x0000 | 00 00 00 02 00 00 00 00 01 00 02 10 80 80 00 01
0x0010 | 00 00 00 00 00 00 00 00 00 00 00 1b 00 00 00 00
0x0020 | 00 00 00 0f 00 00 00 00 00 00 00 00 00 00 00 00
0x0030 | 00 00 01 00 00 00 00 1e 00 00 00 01 00 00 00 50
0x0040 | 00 00 00 0a ff ff ff fd 00 00 00 0a 00 00 00 00
0x0050 | 00 00 00 03 00 00 00 0a 00 00 00 00 00 00 00 00
0x0060 | 00 00 00 00 00 00 00 00 00 00 01 90 00 00 00 64
0x0070 | 00 00 0c 80 00 00 00 00 00 00 00 07 00 00 00 07
0x0080 | 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01
0x0090 | 00 00 00 00 00 00 00 04 00 00 00 04 00 00 00 04
0x00a0 | 00 00 00 00 00 00 00 01 00 00 00 01 00 00 00 00
0x00b0 | 00 00 00 00 00 00 00 0c 00 00 00 00 00 00 00 00
0x00c0 | 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 01
0x00d0 | 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00 01
0x00e0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01
0x00f0 | 00 00 00 01 00 00 00 00 00 00 13 88 00 00 00 04
0x0100 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 1e
0x0110 | 00 00 00 01 00 00 00 50 00 00 00 0a ff ff ff fd
0x0120 | 00 00 00 0a 00 00 00 00 00 00 00 0a 00 00 00 00
0x0130 | 00 00 00 00 00 00 01 90 00 00 00 00 00 00 00 01
0x0140 | 00 00 00 48 00 00 00 50 00 00 00 0a 00 00 01 c2
0x0150 | 00 00 00 0a 00 00 00 01 00 00 00 00 00 00 00 50
0x0160 | 00 00 00 0a 00 00 00 00 00 00 00 00 00 00 02 50
0x0170 | 00 00 03 56 00 00 03 0a 00 00 00 00 00 00 00 00
0x0180 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0190 | 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00
0x01a0 | 00 00 00 00 00 00 00 64 00 00 00 28 ff ff ff ce
0x01b0 | 00 00 00 00 00 00 00 00 00 00 00 0f 00 00 00 3f
0x01c0 | 00 00 00 00
init bufmask=0x0
read 452 bytes
expected_bufsize: 452
buf[008] last 01h 1 new 02h 2
buf[00B] last 10h 16 new 00h 0
buf[017] last 00h 0 new 03h 3
read 452 bytes
expected_bufsize: 452
pktriggercord-cli: K-30 Connected...
read 452 bytes
expected_bufsize: 452
read 452 bytes
expected_bufsize: 452
read 452 bytes
expected_bufsize: 452
read 452 bytes
expected_bufsize: 452
0x0000 | 00 00 00 02 00 00 00 00 02 00 02 00 80 80 00 01
0x0010 | 00 00 00 00 00 00 00 03 00 00 00 1b 00 00 00 00
0x0020 | 00 00 00 0f 00 00 00 00 00 00 00 00 00 00 00 00
0x0030 | 00 00 01 00 00 00 00 1e 00 00 00 01 00 00 00 50
0x0040 | 00 00 00 0a ff ff ff fd 00 00 00 0a 00 00 00 00
0x0050 | 00 00 00 03 00 00 00 0a 00 00 00 00 00 00 00 00
0x0060 | 00 00 00 00 00 00 00 00 00 00 01 90 00 00 00 64
0x0070 | 00 00 0c 80 00 00 00 00 00 00 00 07 00 00 00 07
0x0080 | 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01
0x0090 | 00 00 00 00 00 00 00 04 00 00 00 04 00 00 00 04
0x00a0 | 00 00 00 00 00 00 00 01 00 00 00 01 00 00 00 00
0x00b0 | 00 00 00 00 00 00 00 0c 00 00 00 00 00 00 00 00
0x00c0 | 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 01
0x00d0 | 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00 01
0x00e0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01
0x00f0 | 00 00 00 01 00 00 00 00 00 00 13 88 00 00 00 04
0x0100 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 1e
0x0110 | 00 00 00 01 00 00 00 50 00 00 00 0a ff ff ff fd
0x0120 | 00 00 00 0a 00 00 00 00 00 00 00 0a 00 00 00 00
0x0130 | 00 00 00 00 00 00 01 90 00 00 00 00 00 00 00 01
0x0140 | 00 00 00 48 00 00 00 50 00 00 00 0a 00 00 01 c2
0x0150 | 00 00 00 0a 00 00 00 01 00 00 00 00 00 00 00 50
0x0160 | 00 00 00 0a 00 00 00 00 00 00 00 00 00 00 02 50
0x0170 | 00 00 03 56 00 00 03 0a 00 00 00 00 00 00 00 00
0x0180 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0190 | 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00
0x01a0 | 00 00 00 00 00 00 00 64 00 00 00 28 ff ff ff ce
0x01b0 | 00 00 00 00 00 00 00 00 00 00 00 0f 00 00 00 3f
0x01c0 | 00 00 00 00
current iso : 400
current shutter speed : 30/1
camera max shutter speed : 0/0
current aperture : 8.0
lens max aperture : 45.0
lens min aperture : 8.0
set shutter speed : 30/1
set aperture : 8.0
fixed iso : 400
auto iso : 100-3200
jpeg quality : 2
jpeg resolution : 16M
jpeg image tone : Natural
jpeg saturation : 4
jpeg contrast : 4
jpeg sharpness : 4
jpeg hue : 4
zoom : 0.00 mm
focus : 40
color space : sRGB
image format : 0
raw format : DNG
light meter flags : 1
ec : -0.30
custom ev steps : 1/3
custom sensitivity steps : 1
exposure mode : 12 (0)
user mode flag : 0
ae metering mode : Multi
af mode : MF
af point select : Spot
selected af point : 0
focused af point : 0
drive mode : Single
auto bracket mode : off
auto bracket picture count : 0
auto bracket ev : 0.30
shake reduction : off
white balance mode : Auto
white balance adjust : 0
flash mode : Manual
flash exposure compensation : 0.00
manual mode ev : 8.00
lens : K or M Lens
battery : 8.54V 7.78V 0.00V 0.00V
Here also Bulb, with kit lens:
$ pktriggercord-cli --status_hex --debug
Debug messaging is now enabled.
pktriggercord-cli 0.81.01
model (null)
device (null)
Checking drive: sg0 ATA
ST340016A
Checking drive: sg1 HL-DT-ST
DVDRAM GSA-H10N
Checking drive: sg2 PENTAX
DSC_K-30
Found camera PENTAX
DSC_K-30
id1 of the camera: 12f52
read 452 bytes
expected_bufsize: 452
0x0000 | 00 00 00 02 00 00 00 00 01 00 02 10 00 00 00 00
0x0010 | 00 00 00 00 00 00 00 00 00 00 00 1c 00 00 00 00
0x0020 | 00 00 00 0f 00 00 00 00 00 00 00 00 00 00 00 00
0x0030 | 00 00 01 00 00 00 00 1e 00 00 00 01 00 00 00 2d
0x0040 | 00 00 00 0a ff ff ff fd 00 00 00 0a 00 00 00 00
0x0050 | 00 00 00 03 00 00 00 0a 00 00 00 00 00 00 00 00
0x0060 | 00 00 00 00 00 00 00 00 00 00 01 90 00 00 00 64
0x0070 | 00 00 0c 80 00 00 00 00 00 00 00 07 00 00 00 07
0x0080 | 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01
0x0090 | 00 00 00 00 00 00 00 04 00 00 00 04 00 00 00 04
0x00a0 | 00 00 00 00 00 00 00 01 00 00 00 01 00 00 00 00
0x00b0 | 00 00 00 00 00 00 00 09 00 00 00 00 00 00 00 00
0x00c0 | 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00
0x00d0 | 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00 01
0x00e0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01
0x00f0 | 00 00 00 01 00 00 00 00 00 00 13 88 00 00 00 04
0x0100 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 01
0x0110 | 00 00 00 3c 00 00 00 2d 00 00 00 0a 00 00 00 00
0x0120 | 00 00 00 0a 00 00 00 00 00 00 00 0a 00 00 00 01
0x0130 | 00 00 17 70 00 00 01 90 00 00 00 00 00 00 00 00
0x0140 | 00 00 00 00 00 00 00 32 00 00 00 0a 00 00 01 40
0x0150 | 00 00 00 0a 00 00 00 00 00 00 00 00 ff ff ff f6
0x0160 | 00 00 00 0a 00 00 00 00 00 00 00 00 00 00 02 50
0x0170 | 00 00 03 51 00 00 03 05 00 00 00 00 00 00 00 00
0x0180 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0190 | 00 00 00 87 00 00 00 00 00 00 00 00 00 00 00 de
0x01a0 | 00 00 0d ac 00 00 00 64 00 00 00 14 ff ff ff d8
0x01b0 | 00 00 00 00 00 00 00 00 00 00 00 0f 00 00 00 3f
0x01c0 | 00 00 00 00
init bufmask=0x0
read 452 bytes
expected_bufsize: 452
buf[008] last 01h 1 new 02h 2
buf[00B] last 10h 16 new 00h 0
buf[00C] last 00h 0 new 80h 128
buf[00D] last 00h 0 new 80h 128
buf[017] last 00h 0 new 03h 3
buf[173] last 51h 81 new 52h 82
buf[177] last 05h 5 new 07h 7
read 452 bytes
expected_bufsize: 452
buf[00F] last 00h 0 new 01h 1
pktriggercord-cli: K-30 Connected...
read 452 bytes
expected_bufsize: 452
read 452 bytes
expected_bufsize: 452
read 452 bytes
expected_bufsize: 452
read 452 bytes
expected_bufsize: 452
0x0000 | 00 00 00 02 00 00 00 00 02 00 02 00 80 80 00 01
0x0010 | 00 00 00 00 00 00 00 03 00 00 00 1c 00 00 00 00
0x0020 | 00 00 00 0f 00 00 00 00 00 00 00 00 00 00 00 00
0x0030 | 00 00 01 00 00 00 00 1e 00 00 00 01 00 00 00 2d
0x0040 | 00 00 00 0a ff ff ff fd 00 00 00 0a 00 00 00 00
0x0050 | 00 00 00 03 00 00 00 0a 00 00 00 00 00 00 00 00
0x0060 | 00 00 00 00 00 00 00 00 00 00 01 90 00 00 00 64
0x0070 | 00 00 0c 80 00 00 00 00 00 00 00 07 00 00 00 07
0x0080 | 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01
0x0090 | 00 00 00 00 00 00 00 04 00 00 00 04 00 00 00 04
0x00a0 | 00 00 00 00 00 00 00 01 00 00 00 01 00 00 00 00
0x00b0 | 00 00 00 00 00 00 00 09 00 00 00 00 00 00 00 00
0x00c0 | 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00
0x00d0 | 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00 01
0x00e0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01
0x00f0 | 00 00 00 01 00 00 00 00 00 00 13 88 00 00 00 04
0x0100 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 01
0x0110 | 00 00 00 3c 00 00 00 2d 00 00 00 0a 00 00 00 00
0x0120 | 00 00 00 0a 00 00 00 00 00 00 00 0a 00 00 00 01
0x0130 | 00 00 17 70 00 00 01 90 00 00 00 00 00 00 00 00
0x0140 | 00 00 00 00 00 00 00 32 00 00 00 0a 00 00 01 40
0x0150 | 00 00 00 0a 00 00 00 00 00 00 00 00 ff ff ff f6
0x0160 | 00 00 00 0a 00 00 00 00 00 00 00 00 00 00 02 50
0x0170 | 00 00 03 52 00 00 03 07 00 00 00 00 00 00 00 00
0x0180 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0190 | 00 00 00 87 00 00 00 00 00 00 00 00 00 00 00 de
0x01a0 | 00 00 0d ac 00 00 00 64 00 00 00 14 ff ff ff d8
0x01b0 | 00 00 00 00 00 00 00 00 00 00 00 0f 00 00 00 3f
0x01c0 | 00 00 00 00
current iso : 400
current shutter speed : 1/60
camera max shutter speed : 1/6000
current aperture : 4.5
lens max aperture : 32.0
lens min aperture : 5.0
set shutter speed : 30/1
set aperture : 4.5
fixed iso : 400
auto iso : 100-3200
jpeg quality : 2
jpeg resolution : 16M
jpeg image tone : Natural
jpeg saturation : 4
jpeg contrast : 4
jpeg sharpness : 4
jpeg hue : 4
zoom : 35.00 mm
focus : 20
color space : sRGB
image format : 0
raw format : DNG
light meter flags : 0
ec : -0.30
custom ev steps : 1/3
custom sensitivity steps : 1
exposure mode : 9 (0)
user mode flag : 0
ae metering mode : Multi
af mode : AF.S
af point select : Spot
selected af point : 0
focused af point : 0
drive mode : Single
auto bracket mode : off
auto bracket picture count : 0
auto bracket ev : 0.30
shake reduction : off
white balance mode : Auto
white balance adjust : 0
flash mode : Manual
flash exposure compensation : 0.00
manual mode ev : -1.00
lens : smc PENTAX-DA L 18-55mm F3.5-5.6
battery : 8.50V 7.75V 0.00V 0.00V
I had to add special exposure mode handling for K-30, but your output suggests that it's not necessary. Could you please modify pslr_model.c line
{ 0x12f52, "K-30", 0, 0,...
to
{ 0x12f52, "K-30", 0, 1,....
and recompile?
It is now better in terms that program seems to recognize bulb setting and tries to start the exposure. But the shutter is not triggered and photo not taken.
Here is a debug output.
$ pktriggercord-cli -o test -w -t 35 --debug
Debug messaging is now enabled.
pktriggercord-cli 0.81.01
model (null)
device (null)
Checking drive: sg0 ATA
ST340016A
Checking drive: sg1 HL-DT-ST
DVDRAM GSA-H10N
Checking drive: sg2 PENTAX
DSC_K-30
Found camera PENTAX
DSC_K-30
id1 of the camera: 12f52
read 452 bytes
expected_bufsize: 452
0x0000 | 00 00 00 02 00 00 00 00 01 00 02 10 00 00 00 00
0x0010 | 00 00 00 00 00 00 00 00 00 00 00 13 00 00 00 00
0x0020 | 00 00 00 0f 00 00 00 00 00 00 00 00 00 00 00 00
0x0030 | 00 00 01 00 00 00 00 1e 00 00 00 01 00 00 00 38
0x0040 | 00 00 00 0a 00 00 00 03 00 00 00 0a 00 00 00 00
0x0050 | 00 00 00 03 00 00 00 0a 00 00 00 00 00 00 00 00
0x0060 | 00 00 00 00 00 00 00 00 00 00 00 c8 00 00 00 64
0x0070 | 00 00 0c 80 00 00 00 00 00 00 00 08 00 00 00 06
0x0080 | 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01
0x0090 | 00 00 00 00 00 00 00 04 00 00 00 04 00 00 00 04
0x00a0 | 00 00 00 00 00 00 00 01 00 00 00 01 00 00 00 01
0x00b0 | 00 00 00 00 00 00 00 09 00 00 00 00 00 00 00 00
0x00c0 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00
0x00d0 | 00 00 00 00 00 00 00 00 00 00 00 07 00 00 00 01
0x00e0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01
0x00f0 | 00 00 00 01 00 00 00 00 00 00 13 88 00 00 00 04
0x0100 | 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 01
0x0110 | 00 00 00 3c 00 00 00 38 00 00 00 0a 00 00 00 00
0x0120 | 00 00 00 0a 00 00 00 00 00 00 00 0a 00 00 00 01
0x0130 | 00 00 17 70 00 00 00 c8 00 00 00 00 00 00 00 00
0x0140 | 00 00 00 06 00 00 00 2d 00 00 00 0a 00 00 01 40
0x0150 | 00 00 00 0a 00 00 00 00 00 00 00 00 ff ff ff d1
0x0160 | 00 00 00 0a 00 00 00 20 00 00 00 20 00 00 02 40
0x0170 | 00 00 03 17 00 00 02 d2 00 00 00 00 00 00 00 00
0x0180 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0190 | 00 00 00 87 00 00 00 00 00 00 00 00 00 00 00 de
0x01a0 | 00 00 0f a0 00 00 00 64 00 00 00 32 ff ff ff d8
0x01b0 | 00 00 00 00 00 00 00 00 00 00 00 0f 00 00 00 3f
0x01c0 | 00 00 00 00
init bufmask=0x0
read 452 bytes
expected_bufsize: 452
buf[008] last 01h 1 new 02h 2
buf[00B] last 10h 16 new 00h 0
buf[00C] last 00h 0 new 80h 128
buf[00D] last 00h 0 new 80h 128
buf[017] last 00h 0 new 03h 3
buf[167] last 20h 32 new 00h 0
buf[16B] last 20h 32 new 00h 0
buf[173] last 17h 23 new 19h 25
buf[177] last D2h 210 new D4h 212
read 452 bytes
expected_bufsize: 452
buf[00F] last 00h 0 new 01h 1
pktriggercord-cli: K-30 Connected...
read 452 bytes
expected_bufsize: 452
read 452 bytes
expected_bufsize: 452
shutter_speed.nom=35
shutter_speed.denom=1
read 452 bytes
expected_bufsize: 452
buf[10F] last 01h 1 new 1Eh 30
buf[113] last 3Ch 60 new 01h 1
cont: 0
bulb
After the "bulb" word nothing happens for quite a long time, until ctrl-c...
Seems the bulb mode in K-30 is not compatible with other models...
Yes, I'm afraid K-30 uses a different protocol.
I have a different issue with bulb mode on windows. I'm not sure if you have any ideas but when I run a 2 shot or I shot exposure with an exposure of 40 seconds it says that the shutter speed is invalid but starts taking the exposure. The problem is it won't close the shutter until I press the shutter button. Then it dosent wait the interval and starts the second exposure and stays open till I press the shutter again. The bulb mode on the camera is mode 2 where the sequence is press to open press again to close.
If I change to bulb mode 1 which is hold shutter button down for exposure and repeat the sequence it opens and closes the shutter immediately then it will. Actually wait the desired interval and open and close the shutter immediately again.
Is there a way to resolve this so that it fires for the desired time. And also what bulb setting should I be using.
Thanks for any help,
Lenny.
What is the exact command line which gives you the Invalid shutter speed value warning? The program should give you the warning only if the syntax is incorrect.