Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pentax K3-II Bulb mode issue #25

Closed
achellet opened this issue May 14, 2017 · 24 comments
Closed

Pentax K3-II Bulb mode issue #25

achellet opened this issue May 14, 2017 · 24 comments
Labels

Comments

@achellet
Copy link

Hi !

First : Thanks a lot for your work!

I use Pktriggercord-cli with a raspbian distrib installes on a raspberry pi 3

I observed a bug regarding the bulb mode.
When i launch the following command :

sudo pktriggercord-cli -t 60 -F 3 -d 20 -o /home/pi/Desktop

Pktriggercord-cli displays :

Taking picture 1/3
pslr.c:877:get_status(p->fd) failed: 129
pslr.c:877:get_status(p->fd) failed: 129

I need to press the shutter button to release the shutter.

When the debug mode is activated , i have the following messages :

sudo pktriggercord-cli --debug -t 60 -F 3 -d 20 -o /home/pi/Desktop
Debug messaging is now enabled.
pktriggercord-cli 0.84.04
model (null)
device (null)
[C] plsr_init()
driveNum:2
Checking drive: sg0 RICOHIMG
DSC_K-3_II

    Found camera RICOHIMG

DSC_K-3_II

before connect
[C] pslr_connect()
[C] ipslr_status()
[C] command(fd=3, 0, 1, 0)
[S] >>> [F0 24 00 01 00 00 00 00]
[C] get_result(0x3)
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [1C 00 00 00 00 00 01 00]
[R] => [1C 00 00 00]
[C] read_result(0x3, size=28)
[S] >>> [F0 49 00 00 1C 00 00 00]
[S] <<< [02 00 00 00 00 00 00 00 10 02 00 02 01 00 00 80
00 00 00 00 02 00 00 00 00 00 00 00]
[R] => [02 00 00 00 00 00 00 00 10 02 00 02 01 00 00 80
00 00 00 00 02 00 00 00 00 00 00 00]
[C] ipslr_set_mode(0x1)
[C] _ipslr_write_args(cmd_2 = 0x0, {0x1})
[S] >>> [F0 4F 00 00 04 00 00 00]
[S] >>> [00 00 00 01]
[C] command(fd=3, 0, 0, 4)
[S] >>> [F0 24 00 00 04 00 00 00]
[C] get_status(0x3)
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 00]
[R] => ERROR: 0x00
[C] ipslr_status()
[C] command(fd=3, 0, 1, 0)
[S] >>> [F0 24 00 01 00 00 00 00]
[C] get_result(0x3)
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [1C 00 00 00 00 00 01 00]
[R] => [1C 00 00 00]
[C] read_result(0x3, size=28)
[S] >>> [F0 49 00 00 1C 00 00 00]
[S] <<< [02 00 00 00 00 00 00 00 10 02 00 01 01 00 00 80
00 00 00 00 00 00 00 00 00 00 00 00]
[R] => [02 00 00 00 00 00 00 00 10 02 00 01 01 00 00 80
00 00 00 00 00 00 00 00 00 00 00 00]
[C] ipslr_identify()
[C] command(fd=3, 0, 4, 0)
[S] >>> [F0 24 00 04 00 00 00 00]
[C] get_result(0x3)
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [08 00 00 00 00 00 01 00]
[R] => [08 00 00 00]
[C] read_result(0x3, size=8)
[S] >>> [F0 49 00 00 08 00 00 00]
[S] <<< [9C 30 01 00 3A 02 00 00]
[R] => [9C 30 01 00 3A 02 00 00]
id of the camera: 1309c
[C] ipslr_status_full()
[C] command(fd=3, 0, 8, 0)
[S] >>> [F0 24 00 08 00 00 00 00]
[C] get_result(0x3)
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [C4 01 00 00 00 00 01 00]
[R] => [C4 01 00 00]
read 452 bytes
expected_bufsize: 452
[C] read_result(0x3, size=452)
[S] >>> [F0 49 00 00 C4 01 00 00]
[S] <<< [02 00 00 00 00 00 00 00 10 02 00 01 01 00 00 80
00 00 00 00 00 00 00 00 00 00 00 00 07 00 00 00]
[R] => [02 00 00 00 00 00 00 00 10 02 00 01 01 00 00 80
00 00 00 00 00 00 00 00 00 00 00 00 07 00 00 00 ... (420 bytes more)]
0x0000 | 02 00 00 00 00 00 00 00 10 02 00 01 01 00 00 80
0x0010 | 00 00 00 00 00 00 00 00 00 00 00 00 07 00 00 00
0x0020 | 0b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0030 | 00 01 00 00 1e 00 00 00 01 00 00 00 28 00 00 00
0x0040 | 0a 00 00 00 00 00 00 00 0a 00 00 00 00 00 00 00
0x0050 | 03 00 00 00 0a 00 00 00 00 00 00 00 00 00 00 00
0x0060 | 00 00 00 00 00 00 00 00 20 03 00 00 90 01 00 00
0x0070 | 20 03 00 00 0a 00 00 00 07 00 00 00 07 00 00 00
0x0080 | 01 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00
0x0090 | 00 00 00 00 04 00 00 00 04 00 00 00 04 00 00 00
0x00a0 | 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00
0x00b0 | 00 00 00 00 09 00 00 00 00 00 00 00 00 00 00 00
0x00c0 | 02 00 00 00 01 00 00 00 00 40 00 00 00 00 00 00
0x00d0 | 00 00 00 00 00 00 00 00 03 00 00 00 01 00 00 00
0x00e0 | 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00
0x00f0 | 01 00 00 00 00 00 00 00 88 13 00 00 04 00 00 00
0x0100 | 00 00 00 00 01 00 00 00 00 00 00 00 1e 00 00 00
0x0110 | 01 00 00 00 28 00 00 00 0a 00 00 00 00 00 00 00
0x0120 | 0a 00 00 00 00 00 00 00 0a 00 00 00 01 00 00 00
0x0130 | 40 1f 00 00 20 03 00 00 00 00 00 00 00 00 00 00
0x0140 | 00 00 00 00 28 00 00 00 0a 00 00 00 22 01 00 00
0x0150 | 0a 00 00 00 00 00 00 00 00 00 00 00 ce ff ff ff
0x0160 | 0a 00 00 00 00 00 00 00 00 00 00 00 51 02 00 00
0x0170 | ab 02 00 00 a5 02 00 00 54 01 00 00 01 00 00 00
0x0180 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0190 | a8 00 00 00 00 00 00 00 00 00 00 00 d7 00 00 00
0x01a0 | 60 09 00 00 64 00 00 00 f6 ff ff ff e7 ff ff ff
0x01b0 | 00 00 00 00 00 00 00 00 0f 00 00 00 3f 00 00 00
0x01c0 | 00 00 00 00 00 00 00 00
init bufmask=0x7
[C] ipslr_cmd_00_09(0x2)
[C] _ipslr_write_args(cmd_2 = 0x0, {0x2})
[S] >>> [F0 4F 00 00 04 00 00 00]
[S] >>> [02 00 00 00]
[C] command(fd=3, 0, 9, 4)
[S] >>> [F0 24 00 09 04 00 00 00]
[C] get_status(0x3)
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 00]
[R] => ERROR: 0x00
[C] ipslr_status_full()
[C] command(fd=3, 0, 8, 0)
[S] >>> [F0 24 00 08 00 00 00 00]
[C] get_result(0x3)
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [C4 01 00 00 00 00 01 00]
[R] => [C4 01 00 00]
read 452 bytes
expected_bufsize: 452
[C] read_result(0x3, size=452)
[S] >>> [F0 49 00 00 C4 01 00 00]
[S] <<< [02 00 00 00 00 00 00 00 10 02 00 02 01 00 00 80
00 00 00 00 00 00 00 00 00 00 00 00 07 00 00 00]
[R] => [02 00 00 00 00 00 00 00 10 02 00 02 01 00 00 80
00 00 00 00 00 00 00 00 00 00 00 00 07 00 00 00 ... (420 bytes more)]
buf[00B] last 01h 1 new 02h 2

[C] ipslr_cmd_10_0a(0x1)
[C] _ipslr_write_args(cmd_2 = 0x0, {0x1})
[S] >>> [F0 4F 00 00 04 00 00 00]
[S] >>> [01 00 00 00]
[C] command(fd=3, 10, a, 4)
[S] >>> [F0 24 10 0A 04 00 00 00]
[C] get_status(0x3)
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 00]
[R] => ERROR: 0x00
[C] ipslr_status_full()
[C] command(fd=3, 0, 8, 0)
[S] >>> [F0 24 00 08 00 00 00 00]
[C] get_result(0x3)
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [C4 01 00 00 00 00 01 00]
[R] => [C4 01 00 00]
read 452 bytes
expected_bufsize: 452
[C] read_result(0x3, size=452)
[S] >>> [F0 49 00 00 C4 01 00 00]
[S] <<< [02 00 00 00 00 00 00 00 00 02 00 02 01 00 00 80
00 00 00 00 03 00 00 00 00 00 00 00 07 00 00 00]
[R] => [02 00 00 00 00 00 00 00 00 02 00 02 01 00 00 80
00 00 00 00 03 00 00 00 00 00 00 00 07 00 00 00 ... (420 bytes more)]
buf[008] last 10h 16 new 00h 0
buf[014] last 00h 0 new 03h 3

[C] pslr_camera_name()
pktriggercord-cli: K-3II Connected...
[C] pslr_get_status()
[C] ipslr_status_full()
[C] command(fd=3, 0, 8, 0)
[S] >>> [F0 24 00 08 00 00 00 00]
[C] get_result(0x3)
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [C4 01 00 00 00 00 01 00]
[R] => [C4 01 00 00]
read 452 bytes
expected_bufsize: 452
[C] read_result(0x3, size=452)
[S] >>> [F0 49 00 00 C4 01 00 00]
[S] <<< [02 00 00 00 00 00 00 00 00 02 00 02 01 00 00 80
00 00 00 00 03 00 00 00 00 00 00 00 07 00 00 00]
[R] => [02 00 00 00 00 00 00 00 00 02 00 02 01 00 00 80
00 00 00 00 03 00 00 00 00 00 00 00 07 00 00 00 ... (420 bytes more)]
[C] pslr_get_status()
[C] ipslr_status_full()
[C] command(fd=3, 0, 8, 0)
[S] >>> [F0 24 00 08 00 00 00 00]
[C] get_result(0x3)
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [C4 01 00 00 00 00 01 00]
[R] => [C4 01 00 00]
read 452 bytes
expected_bufsize: 452
[C] read_result(0x3, size=452)
[S] >>> [F0 49 00 00 C4 01 00 00]
[S] <<< [02 00 00 00 00 00 00 00 00 02 00 02 01 00 00 80
00 00 00 00 03 00 00 00 00 00 00 00 07 00 00 00]
[R] => [02 00 00 00 00 00 00 00 00 02 00 02 01 00 00 80
00 00 00 00 03 00 00 00 00 00 00 00 07 00 00 00 ... (420 bytes more)]
shutter_speed.nom=60
shutter_speed.denom=1
[C] pslr_set_shutter(3c 1)
[C] ipslr_handle_command_x18(0x16, 2)
[C] ipslr_cmd_00_09(0x1)
[C] _ipslr_write_args(cmd_2 = 0x0, {0x1})
[S] >>> [F0 4F 00 00 04 00 00 00]
[S] >>> [01 00 00 00]
[C] command(fd=3, 0, 9, 4)
[S] >>> [F0 24 00 09 04 00 00 00]
[C] get_status(0x3)
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 00]
[R] => ERROR: 0x00
[C] _ipslr_write_args(cmd_2 = 0x0, {0x3C, 0x1})
[S] >>> [F0 4F 00 00 08 00 00 00]
[S] >>> [3C 00 00 00 01 00 00 00]
[C] command(fd=3, 18, 16, 8)
[S] >>> [F0 24 18 16 08 00 00 00]
[C] get_status(0x3)
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 00]
[R] => ERROR: 0x00
[C] ipslr_cmd_00_09(0x2)
[C] _ipslr_write_args(cmd_2 = 0x0, {0x2})
[S] >>> [F0 4F 00 00 04 00 00 00]
[S] >>> [02 00 00 00]
[C] command(fd=3, 0, 9, 4)
[S] >>> [F0 24 00 09 04 00 00 00]
[C] get_status(0x3)
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 00]
[R] => ERROR: 0x00
[C] ipslr_read_dspinfo()
[C] command(fd=3, 1, 1, 0)
[S] >>> [F0 24 01 01 00 00 00 00]
[C] get_result(0x3)
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [04 00 00 00 00 00 01 00]
[R] => [04 00 00 00]
[C] ipslr_read_dspinfo() bytes: 4
[C] read_result(0x3, size=4)
[S] >>> [F0 49 00 00 04 00 00 00]
[S] <<< [06 16 0A 01]
[R] => [06 16 0A 01]
Firmware version: 1.10.22.06
[C] pslr_get_status()
[C] ipslr_status_full()
[C] command(fd=3, 0, 8, 0)
[S] >>> [F0 24 00 08 00 00 00 00]
[C] get_result(0x3)
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [C4 01 00 00 00 00 01 00]
[R] => [C4 01 00 00]
read 452 bytes
expected_bufsize: 452
[C] read_result(0x3, size=452)
[S] >>> [F0 49 00 00 C4 01 00 00]
[S] <<< [02 00 00 00 00 00 00 00 10 02 00 02 01 00 00 80
00 00 00 00 00 00 00 00 00 00 00 00 07 00 00 00]
[R] => [02 00 00 00 00 00 00 00 10 02 00 02 01 00 00 80
00 00 00 00 00 00 00 00 00 00 00 00 07 00 00 00 ... (420 bytes more)]
buf[008] last 00h 0 new 10h 16
buf[014] last 03h 3 new 00h 0

cont: 0
Taking picture 1/3
bulb
[C] pslr_bulb(1)
[C] _ipslr_write_args(cmd_2 = 0x0, {0x1})
[S] >>> [F0 4F 00 00 04 00 00 00]
[S] >>> [01 00 00 00]
[C] command(fd=3, 10, d, 4)
[S] >>> [F0 24 10 0D 04 00 00 00]
[C] get_status(0x3)
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 81]
[R] => ERROR: 0x81
ERROR: 0x81
pslr.c:877:get_status(p->fd) failed: 129
[C] pslr_shutter()
[C] ipslr_press_shutter(fullpress = true)
[C] ipslr_status_full()
[C] command(fd=3, 0, 8, 0)
[S] >>> [F0 24 00 08 00 00 00 00]
[C] get_result(0x3)
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [C4 01 00 00 00 00 01 00]
[R] => [C4 01 00 00]
read 452 bytes
expected_bufsize: 452
[C] read_result(0x3, size=452)
[S] >>> [F0 49 00 00 C4 01 00 00]
[S] <<< [02 00 00 00 00 00 00 00 00 02 00 02 01 00 00 80
00 00 00 00 03 00 00 00 00 00 00 00 07 00 00 00]
[R] => [02 00 00 00 00 00 00 00 00 02 00 02 01 00 00 80
00 00 00 00 03 00 00 00 00 00 00 00 07 00 00 00 ... (420 bytes more)]
buf[008] last 10h 16 new 00h 0
buf[014] last 00h 0 new 03h 3

            before: mask=0x7

[C] _ipslr_write_args(cmd_2 = 0x0, {0x2})
[S] >>> [F0 4F 00 00 04 00 00 00]
[S] >>> [02 00 00 00]
[C] command(fd=3, 10, 5, 4)
[S] >>> [F0 24 10 05 04 00 00 00]
[C] get_status(0x3)
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 00]
[R] => ERROR: 0x00
shutter result code: 0x0

Thanks for your help!

@Blueshawk
Copy link

Hi achellet, The bulb hasn't been working in the later models because of a change in the firmware.
I've been researching the problem with my k-50 and haven't found a good way around it so far. Basically what is happening is the camera is returning an error because the command code for bulb has changed or moved, I suspect after they added the two different bulb types in the extra menu section.
We also ran into the same problem while updating the Pentax section of Gphoto2
I'm hoping somebody from the original firmware decoding team will pick it up and give us an updated protocol set one day, but I haven't tried to contact them yet.
It is also possible that the command was broken during that update since Ricoh/Pentax isn't supporting tethering in the lower priced models(grim).

It may be possible to get around this with an external trigger but I haven't tried it yet.

@asalamon74 asalamon74 added the bug label May 16, 2017
@asalamon74
Copy link
Owner

Unfortunately, it's a common problem for newer cameras. I've added this info to the BUGS file.

@asalamon74
Copy link
Owner

I've fixed a similar bug for K-70, hopefully the solution will work also for K-3 II. The solution uses the interval bulb timer, so it will only work if K-3II supports it. (That's why this fix is not working for K-50 as can be seen at issue #6 ).

I need the output of the following command twice. Once when the camera is set to BULB but the timer is not set, second when the camera is set to BULB and the timer is set to a long exposure (preferably 5 minutes). Please also tell me the exact time it was set:

pktriggercord-cli --settings_hex --debug > debug.log 2>&1

@achellet
Copy link
Author

achellet commented Feb 6, 2018 via email

@Nats-ji
Copy link

Nats-ji commented Feb 6, 2018

The solution uses the interval bulb timer, so it will only work if K-3II supports it

I think the bulb timer function is only available for K-1, K-70, and KP. But when the GPS is turned on, the timer function in Astrotracer mode can be used on K-3II. I don't know whether this is helpful or not.

Debug log in normal bulb mode with GPS turned on. debug-notimer.log
Debug log in Astrotracer mode with the timer set to 5 minutes. debug-withtimer.log

img_7929

@asalamon74
Copy link
Owner

@Nats-ji I can only find one yes/no field difference. Probably it's astrotracer on/off. I'll create a new test version (hopefully tomorrow) which reads this field and I'll also increase the number of fields read by settings_hex, maybe the timer value is stored somewhere else.

@achellet
Copy link
Author

achellet commented Feb 8, 2018

Hello and thanks a lot for your help and work!

This is the log file with and without astrotracer:
MobaXterm_Pentax_K3_II_20180208_163617.txt

@asalamon74
Copy link
Owner

@achellet The log only shows that the bulb is not working. You're using a very old version of the program, which does not support --settings and --settings_hex, only the git version supports it.

@asalamon74
Copy link
Owner

@Nats-ji @achellet I've created a new test version. I attach it here:
pktriggercord-0.84.05-win.zip

Hopefully it recognizes the astotracer flag, please test it (turn it on and off) using the following command:

pktriggercord-cli --settings

I've increased the settings buffer reading to 2048 bytes, please attach the log (without --debug of the following command after setting the astrotracer to 5 minutes:

pktriggercord-cli --settings_hex

@achellet
Copy link
Author

Hello !

I've downloaded the test version 084.05 and it works! As you explained i've to set the GPS on and astrotracer off and the exposure time to 60s (using the firmware).The software is not able to set the exposure time, the DSLR seems to have the priority. And the time the DSLR is ready for a long exposure and start the first capture is a bit long. I've tested the GUI and it works too but seems to not be able to take more than one frame at a time.

MobaXterm_Pentax_K3_II_20180209_203230_no_debug.zip

@asalamon74
Copy link
Owner

I might find the astrotracer timer field. Could you send me the log after setting the timer to 2 minutes?

pktriggercord-cli --settings_hex

@Nats-ji
Copy link

Nats-ji commented Feb 10, 2018

@achellet
Copy link
Author

achellet commented Feb 10, 2018

Hi

Here are log files recorded with timer set to 120s and 300s
MobaXterm_Pentax_K3_II_20180210_203645_timer_120s.txt
MobaXterm_Pentax_K3_II_20180210_204153_timer_300s.txt

@asalamon74
Copy link
Owner

@Nats-ji @achellet

I don't know the reason for the program crash. I've decreased the settings buffer size back to 1024 bytes, hopefully it will work again.

I've found the astrotimer second field, I attach a new version which tries to read it:
pktriggercord-0.84.05-win.zip

Please test it. If the reading is correct, I'll create a version which changes the setting and hopefully it can be used for better bulb handling.

@Nats-ji
Copy link

Nats-ji commented Feb 11, 2018

It's working now.
settings_2min.log
settings_5min.log

@achellet
Copy link
Author

@asalamon74
Copy link
Owner

@Nats-ji @achellet Looks great, I'll create a test version soon which turns on the astotracer and set the seconds.

@asalamon74
Copy link
Owner

@Nats-ji @achellet I've created a test version it turns on automatically the astrotracer and sets the seconds.
pktriggercord-0.84.05-win.zip

The camera has to be in bulb mode. If your camera has different bulb setting it has to be in press-hold (single press bulb mode) and not press-press.

@achellet
Copy link
Author

achellet commented Feb 17, 2018 via email

@achellet
Copy link
Author

Hello.
Here is the log registered with your last test version. It works very well. The exposure time can be set up to 5mn.

I would like to know if the astrotracer is set to off after the expose time is set?

MobaXterm_Pentax_K3_II_20180217_220355.txt

@asalamon74
Copy link
Owner

@achellet Right now the program does not change back astrotracer to off, but it's a good idea. I'll modify it.

@asalamon74
Copy link
Owner

@achellet Here is a version which changes back astrotracer to off (if it was turned off at the beginning):
pktriggercord-0.84.05-win.zip

@Nats-ji
Copy link

Nats-ji commented Apr 20, 2018

@asalamon74 The timer is working like a charm. But it seems like I'm not able to control the ISO settings.
When I use pktriggercord-cli -i 100 -t 1 -o test-1 --file_format=dng --debug , the output file is on ISO1600.
debug-1.log

And when I use pktriggercord-cli -i 800 -t 1 -o test-2 --file_format=dng --debug, the output file is still on ISO 1600.
debug-2.log

One thing I noticed is that when I set the ISO, the top screen on the camera actually displays the ISO I set at, but the back screen still shows ISO1600.

@asalamon74
Copy link
Owner

@Nats-ji Can you please open a separate issue for the ISO problem? It would be much easier to maintain the issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants