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

Support for K-1? #10

Open
horemachet opened this issue Jun 24, 2016 · 90 comments
Open

Support for K-1? #10

horemachet opened this issue Jun 24, 2016 · 90 comments

Comments

@horemachet
Copy link

Hi Folks,

are there any plans to support the new Pentax K-1 already?
Do you neet some testing support?

Regards,

Karsten

@asalamon74
Copy link
Owner

Someone was planning to add support but haven't sent me the patch yet.

If you're ready to test it I can try to add support. What operating system do you use?

@horemachet
Copy link
Author

Hi,

I would be glad to help. I am using openSuSE Leap 42.1.

Best Regards, Karsten
Am 26.06.2016 10:25 schrieb "sala.melda.info" [email protected]:

Someone was planning to add support but haven't sent me the patch yet.

If you're ready to test it I can try to add support. What operating system
do you use?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#10 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAYQVqSIoDi7bC2utabZAwCizzSPWCRVks5qPjeEgaJpZM4I9zRH
.

@asalamon74
Copy link
Owner

I've commited limited support for K-1, please clone the latest code and compile it.

The program should recognize the camera. First I suggest to test the following command, please copy the output here:

pktriggercord-cli --status_hex --debug

@Knubbel
Copy link

Knubbel commented Jun 29, 2016

Hi, here is the output using the windows version I found here.

Debug messaging is now enabled.
pktriggercord-cli.exe 0.84.00
model (null)
device (null)
[C]     plsr_init()
driveNum:24
        Checking drive:  C
        Checking drive:  D
        Checking drive:  E
        Checking drive:  F RICOHIMG DSC_K-1
        Found camera RICOHIMG DSC_K-1
before connect
[C]     pslr_connect()
[C]             ipslr_status()
[C]                     command(fd=2c, 0, 1, 0)
[C]                     get_result(0x2c)
[R]                              => [1C 00 00 00]
[C]                     read_result(0x2c, size=28)
[R]                              => [02 00 00 00  00 00 00 00  10 02 00 01  00 0
0 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00]
[C]             ipslr_set_mode(0x1)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1})
[C]                     command(fd=2c, 0, 0, 4)
[C]                     get_status(0x2c)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[C]             ipslr_status()
[C]                     command(fd=2c, 0, 1, 0)
[C]                     get_result(0x2c)
[R]                              => [1C 00 00 00]
[C]                     read_result(0x2c, size=28)
[R]                              => [02 00 00 00  00 00 00 00  10 02 00 01  00 0
0 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00]
[C]             ipslr_identify()
[C]                     command(fd=2c, 0, 4, 0)
[C]                     get_result(0x2c)
[R]                              => [08 00 00 00]
[C]                     read_result(0x2c, size=8)
[R]                              => [92 30 01 00  32 02 00 00]
        id of the camera: 13092

Unknown Pentax camera.

@asalamon74
Copy link
Owner

The latest release (0.84.00) does not support K-1, only the development (0.84.01) version. Since it's quite difficult to compile the program for windows I attach a windows test version here.

pktriggercord-0.84.01-win.zip

@Knubbel
Copy link

Knubbel commented Jun 29, 2016

Thanks. This is the output:

Debug messaging is now enabled.
pktriggercord-cli.exe 0.84.01
model (null)
device (null)
[C]     plsr_init()
driveNum:24
        Checking drive:  C
        Checking drive:  D
        Checking drive:  E
        Checking drive:  F RICOHIMG DSC_K-1
        Found camera RICOHIMG DSC_K-1
before connect
[C]     pslr_connect()
[C]             ipslr_status()
[C]                     command(fd=30, 0, 1, 0)
[C]                     get_result(0x30)
[R]                              => [1C 00 00 00]
[C]                     read_result(0x30, size=28)
[R]                              => [01 00 00 00  00 00 00 00  00 01 00 01  00 00 00 00
                                     00 00 00 00  00 00 00 00  00 00 00 00]
[C]             ipslr_set_mode(0x1)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1})
[C]                     command(fd=30, 0, 0, 4)
[C]                     get_status(0x30)
[C]             ipslr_status()
[C]                     command(fd=30, 0, 1, 0)
[C]                     get_result(0x30)
[R]                              => [1C 00 00 00]
[C]                     read_result(0x30, size=28)
[R]                              => [02 00 00 00  00 00 00 00  10 02 00 01  00 00 00 00
                                     00 00 00 00  00 00 00 00  00 00 00 00]
[C]             ipslr_identify()
[C]                     command(fd=30, 0, 4, 0)
[C]                     get_result(0x30)
[R]                              => [08 00 00 00]
[C]                     read_result(0x30, size=8)
[R]                              => [92 30 01 00  32 02 00 00]
        id of the camera: 13092
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 0
[C]                     read_result(0x30, size=452)
[R]                              => [02 00 00 00  00 00 00 00  10 02 00 01  00 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (420 bytes more)]
        init bufmask=0x0
[C]             ipslr_cmd_00_09(0x2)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x2})
[C]                     command(fd=30, 0, 9, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 0
[C]                     read_result(0x30, size=452)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  00 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (420 bytes more)]
[C]             ipslr_cmd_10_0a(0x1)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1})
[C]                     command(fd=30, 10, a, 4)
[C]                     get_status(0x30)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 0
[C]                     read_result(0x30, size=452)
[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  00 00 00 00 ... (420 bytes more)]
[C]     pslr_camera_name()
pktriggercord-cli.exe: K-1 Connected...
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 0
[C]                     read_result(0x30, size=452)
[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  00 00 00 00 ... (420 bytes more)]
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 0
[C]                     read_result(0x30, size=452)
[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  00 00 00 00 ... (420 bytes more)]
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 0
[C]                     read_result(0x30, size=452)
[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  00 00 00 00 ... (420 bytes more)]
[C]     pslr_get_status_buffer()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 0
[C]                     read_result(0x30, size=452)
[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  00 00 00 00 ... (420 bytes more)]
0x0000 | 02 00 00 00 00 00 00 00  00 02 00 02 01 00 00 80
0x0010 | 00 00 00 00 03 00 00 00  00 00 00 00 00 00 00 00
0x0020 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0030 | 00 01 00 00 01 00 00 00  40 1f 00 00 1c 00 00 00
0x0040 | 0a 00 00 00 00 00 00 00  0a 00 00 00 00 00 00 00
0x0050 | 0a 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0060 | 00 00 00 00 00 00 00 00  64 00 00 00 64 00 00 00
0x0070 | 00 20 03 00 00 00 00 00  07 00 00 00 07 00 00 00
0x0080 | 00 00 00 00 00 00 00 00  01 00 00 00 01 00 00 00
0x0090 | 00 00 00 00 03 00 00 00  06 00 00 00 04 00 00 00
0x00a0 | 00 00 00 00 01 00 00 00  01 00 00 00 01 00 00 00
0x00b0 | 00 00 00 00 08 00 00 00  00 00 00 00 00 00 00 00
0x00c0 | 01 00 00 00 00 00 00 00  00 40 00 00 00 00 00 00
0x00d0 | 00 00 00 00 00 00 00 00  00 00 00 00 07 00 00 00
0x00e0 | 00 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00
0x00f0 | 01 00 00 00 01 00 00 00  00 00 00 00 88 13 00 00
0x0100 | 08 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0110 | 01 00 00 00 40 1f 00 00  1c 00 00 00 0a 00 00 00
0x0120 | 00 00 00 00 0a 00 00 00  00 00 00 00 0a 00 00 00
0x0130 | 01 00 00 00 40 1f 00 00  64 00 00 00 00 00 00 00
0x0140 | 00 00 00 00 00 00 00 00  1c 00 00 00 0a 00 00 00
0x0150 | dc 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0160 | 00 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0170 | 40 02 00 00 95 02 00 00  7f 02 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 00 87 00 00 00  00 00 00 00 00 00 00 00
0x01a0 | e9 00 00 00 ac 0d 00 00  64 00 00 00 f6 ff ff ff
0x01b0 | ce ff ff ff 00 00 00 00  00 00 00 00 0f 00 00 00
0x01c0 | 3f 00 00 00

current iso                     : 0
current shutter speed           : 0/0
camera max shutter speed        : 0/0
current aperture                : unknown
lens max aperture               : unknown
lens min aperture               : unknown
set shutter speed               : 0/0
set aperture                    : unknown
fixed iso                       : 0
auto iso                        : 0-0
jpeg quality                    : 0
jpeg resolution                 : 36M
jpeg image tone                 : Natural
jpeg saturation                 : 0
jpeg contrast                   : 0
jpeg sharpness                  : 0
jpeg hue                        : 0
zoom                            : unknown mm
focus                           : 0
color space                     : sRGB
image format                    : JPEG
raw format                      : PEF
light meter flags               : 0
ec                              : unknown
custom ev steps                 : 1/2
custom sensitivity steps        : 0
exposure mode                   : 0 (NONE)
user mode flag                  : 0
ae metering mode                : Multi
af mode                         : MF
af point select                 : Auto-5
selected af point               : 0
focused af point                : 0
drive mode                      : Single
auto bracket mode               : off
auto bracket picture count      : 0
auto bracket ev                 : unknown
shake reduction                 : off
white balance mode              : Auto
white balance adjust            : M7B7
flash mode                      : Manual
flash exposure compensation     : 0.00
manual mode ev                  : 0.00
lens                            : M-42 or No Lens
battery                         : 0.00V 0.00V 0.00V 0.00V


@horemachet
Copy link
Author

I am on a business trip until Friday and don't have the camera with me.
I just set up the test einvironment though.
I'll give it a trial on Friday and post the results here.

Best regards,

Karsten

@asalamon74
Copy link
Owner

I've modified the code, I attach the new windows test version.
pktriggercord-0.84.01-win.zip

Please execute the same command and also give me the following information:

  • The name of the lens
  • The focal length used

@horemachet
Copy link
Author

Hi Folks,

I just gave it a trial. It seems it doesn't recognizes the camera.
Camera is set to PTP-Mode.
I did a trial with MSC Mode but with no effect.

`
./pktriggercord-cli --status_hex --debug
Debug messaging is now enabled.
./pktriggercord-cli 0.84.01
model (null)
device (null)
[C] plsr_init()
driveNum:2
Checking drive: sg0 ATA
WDC WD5000LPVT-2

    Checking drive:  sg1 Optiarc 

DVD RW AD-7700H

    camera not found

diff: 0.000357
sleep 1 sec
[C] plsr_init()
driveNum:2
Checking drive: sg0 ATA
WDC WD5000LPVT-2

    Checking drive:  sg1 Optiarc 

DVD RW AD-7700H

    camera not found

diff: 1.000800
sleep 1 sec
[C] plsr_init()
driveNum:2
Checking drive: sg0 ATA
WDC WD5000LPVT-2

    Checking drive:  sg1 Optiarc 

DVD RW AD-7700H

    camera not found

diff: 2.001229
sleep 1 sec
^C

`

@asalamon74
Copy link
Owner

The camera should be set to MSC mode. Can you test it as root?

@Knubbel
Copy link

Knubbel commented Jul 2, 2016

That is the output using the new windows version you posted above:

Debug messaging is now enabled.
pktriggercord-cli.exe 0.84.01
model (null)
device (null)
[C]     plsr_init()
driveNum:24
        Checking drive:  C
        Checking drive:  D
        Checking drive:  E
        Checking drive:  F RICOHIMG DSC_K-1
        Found camera RICOHIMG DSC_K-1
before connect
[C]     pslr_connect()
[C]             ipslr_status()
[C]                     command(fd=30, 0, 1, 0)
[C]                     get_result(0x30)
[R]                              => [1C 00 00 00]
[C]                     read_result(0x30, size=28)
[R]                              => [01 00 00 00  00 00 00 00  00 01 00 01  00 00 00 00
                                     00 00 00 00  00 00 00 00  00 00 00 00]
[C]             ipslr_set_mode(0x1)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1})
[C]                     command(fd=30, 0, 0, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[C]             ipslr_status()
[C]                     command(fd=30, 0, 1, 0)
[C]                     get_result(0x30)
[R]                              => [1C 00 00 00]
[C]                     read_result(0x30, size=28)
[R]                              => [02 00 00 00  00 00 00 00  10 02 00 01  00 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00]
[C]             ipslr_identify()
[C]                     command(fd=30, 0, 4, 0)
[C]                     get_result(0x30)
[R]                              => [08 00 00 00]
[C]                     read_result(0x30, size=8)
[R]                              => [92 30 01 00  32 02 00 00]
        id of the camera: 13092
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  10 02 00 01  00 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
0x0000 | 02 00 00 00 00 00 00 00  10 02 00 01 00 00 00 80
0x0010 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0020 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0030 | 00 01 00 00 01 00 00 00  50 00 00 00 1c 00 00 00
0x0040 | 0a 00 00 00 00 00 00 00  0a 00 00 00 00 00 00 00
0x0050 | 0a 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0060 | 00 00 00 00 0c 00 00 00  a0 0f 00 00 64 00 00 00
0x0070 | 00 20 03 00 00 00 00 00  07 00 00 00 07 00 00 00
0x0080 | 00 00 00 00 00 00 00 00  01 00 00 00 01 00 00 00
0x0090 | 00 00 00 00 03 00 00 00  06 00 00 00 04 00 00 00
0x00a0 | 00 00 00 00 01 00 00 00  01 00 00 00 01 00 00 00
0x00b0 | 00 00 00 00 05 00 00 00  00 00 00 00 00 00 00 00
0x00c0 | 02 00 00 00 04 00 00 00  00 40 00 00 00 00 00 00
0x00d0 | 00 00 00 00 00 00 00 00  00 00 00 00 07 00 00 00
0x00e0 | 00 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00
0x00f0 | 01 00 00 00 01 00 00 00  00 00 00 00 88 13 00 00
0x0100 | 08 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0110 | 01 00 00 00 50 00 00 00  1c 00 00 00 0a 00 00 00
0x0120 | 00 00 00 00 0a 00 00 00  00 00 00 00 0a 00 00 00
0x0130 | 00 00 00 00 00 00 00 00  a0 0f 00 00 00 00 00 00
0x0140 | 00 00 00 00 00 00 00 00  00 00 00 00 0a 00 00 00
0x0150 | 00 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0160 | 50 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0170 | 30 02 00 00 89 02 00 00  73 02 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 00 87 00 00 00  00 00 00 00 00 00 00 00
0x01a0 | e9 00 00 00 ac 0d 00 00  64 00 00 00 f6 ff ff ff
0x01b0 | ce ff ff ff 00 00 00 00  00 00 00 00 0f 00 00 00
0x01c0 | 3f 00 00 00 00 00 00 00
        init bufmask=0x0
[C]             ipslr_cmd_00_09(0x2)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x2})
[C]                     command(fd=30, 0, 9, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  00 00 00 80
                                     00 00 00 00  03 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[008] last 10h  16 new 00h   0
                buf[00B] last 01h   1 new 02h   2
                buf[014] last 00h   0 new 03h   3
                buf[064] last 0Ch  12 new 00h   0
                buf[130] last 00h   0 new 01h   1
                buf[134] last 00h   0 new 40h  64
                buf[135] last 00h   0 new 1Fh  31
                buf[148] last 00h   0 new 1Ch  28
                buf[150] last 00h   0 new DCh 220
                buf[160] last 50h  80 new 00h   0
                buf[178] last 73h 115 new 72h 114
---------------------------
[C]             ipslr_cmd_10_0a(0x1)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1})
[C]                     command(fd=30, 10, a, 4)
[C]                     get_status(0x30)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  00 00 00 80
                                     00 00 00 00  03 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
[C]     pslr_camera_name()
pktriggercord-cli.exe: K-1 Connected...
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[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  00 00 00 00 ... (424 bytes more)]
                buf[00C] last 00h   0 new 01h   1
---------------------------
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[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  00 00 00 00 ... (424 bytes more)]
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[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  00 00 00 00 ... (424 bytes more)]
[C]     pslr_get_status_buffer()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[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  00 00 00 00 ... (424 bytes more)]
0x0000 | 02 00 00 00 00 00 00 00  00 02 00 02 01 00 00 80
0x0010 | 00 00 00 00 03 00 00 00  00 00 00 00 00 00 00 00
0x0020 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0030 | 00 01 00 00 01 00 00 00  50 00 00 00 1c 00 00 00
0x0040 | 0a 00 00 00 00 00 00 00  0a 00 00 00 00 00 00 00
0x0050 | 0a 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0060 | 00 00 00 00 00 00 00 00  a0 0f 00 00 64 00 00 00
0x0070 | 00 20 03 00 00 00 00 00  07 00 00 00 07 00 00 00
0x0080 | 00 00 00 00 00 00 00 00  01 00 00 00 01 00 00 00
0x0090 | 00 00 00 00 03 00 00 00  06 00 00 00 04 00 00 00
0x00a0 | 00 00 00 00 01 00 00 00  01 00 00 00 01 00 00 00
0x00b0 | 00 00 00 00 05 00 00 00  00 00 00 00 00 00 00 00
0x00c0 | 02 00 00 00 04 00 00 00  00 40 00 00 00 00 00 00
0x00d0 | 00 00 00 00 00 00 00 00  00 00 00 00 07 00 00 00
0x00e0 | 00 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00
0x00f0 | 01 00 00 00 01 00 00 00  00 00 00 00 88 13 00 00
0x0100 | 08 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0110 | 01 00 00 00 50 00 00 00  1c 00 00 00 0a 00 00 00
0x0120 | 00 00 00 00 0a 00 00 00  00 00 00 00 0a 00 00 00
0x0130 | 01 00 00 00 40 1f 00 00  a0 0f 00 00 00 00 00 00
0x0140 | 00 00 00 00 00 00 00 00  1c 00 00 00 0a 00 00 00
0x0150 | dc 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0160 | 00 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0170 | 30 02 00 00 89 02 00 00  72 02 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 00 87 00 00 00  00 00 00 00 00 00 00 00
0x01a0 | e9 00 00 00 ac 0d 00 00  64 00 00 00 f6 ff ff ff
0x01b0 | ce ff ff ff 00 00 00 00  00 00 00 00 0f 00 00 00
0x01c0 | 3f 00 00 00 00 00 00 00

current iso                     : 8000
current shutter speed           : 0/1
camera max shutter speed        : 10/1
current aperture                : 2.9
lens max aperture               : 0.0
lens min aperture               : 0.0
set shutter speed               : 1/80
set aperture                    : 2.8
fixed iso                       : 4000
auto iso                        : 100-204800
jpeg quality                    : 2
jpeg resolution                 : 36M
jpeg image tone                 : Natural
jpeg saturation                 : 3
jpeg contrast                   : 4
jpeg sharpness                  : 6
jpeg hue                        : 5000
zoom                            : unknown mm
focus                           : 0
color space                     : sRGB
image format                    : JPEG
raw format                      : DNG
light meter flags               : 0
ec                              : 0.00
custom ev steps                 : 1/3
custom sensitivity steps        : 1
exposure mode                   : 4 (NONE)
user mode flag                  : 0
ae metering mode                : Multi
af mode                         : AF.C
af point select                 : Single
selected af point               : 16384
focused af point                : 0
drive mode                      : Single
auto bracket mode               : off
auto bracket picture count      : 0
auto bracket ev                 : 1.00
shake reduction                 : off
white balance mode              : Auto
white balance adjust            : 0
flash mode                      : Manual
flash exposure compensation     : 0.00
manual mode ev                  : 0.00
lens                            : M-42 or No Lens
battery                         : 5.60V 6.49V 0.00V 0.00V

The lens used is an 35 mm prime lens : DA 35mm F2.8 limited.

The new code has another interesting effect:
When I plug the USB cord into the camera it gets manually unusable and shows "PcS" (I guess that stands for "PC Sync") in the top display. That is normal.
But after running the command line it is kicked out of this mode immediately and the back display is turned on and PC Sync mode has ended.

Using MSC mode.

@asalamon74
Copy link
Owner

@Knubbel Getting better. I attach a new version.

pktriggercord-0.84.01-win.zip

A few important fields still need to be found. Please set the camera to M mode and shutter speed to 1/1000 and execute the same command, after that to the same for 1/2000. The difference should show the place of the shutter speed field.

PcS: Similar thing has been reported for several cameras with a top LCD. My K-x has no such thing so I cannot debug it.

@Knubbel
Copy link

Knubbel commented Jul 2, 2016

That is the output at 1/1000 (setting the camera must be done prior to pluging in the USB cable as the camera is inaccesible afterwards in PC-Sync mode).

pktriggercord-cli.exe --status_hex --debug

Debug messaging is now enabled.
pktriggercord-cli.exe 0.84.01
model (null)
device (null)
[C]     plsr_init()
driveNum:24
        Checking drive:  C
        Checking drive:  D
        Checking drive:  E
        Checking drive:  F RICOHIMG DSC_K-1
        Found camera RICOHIMG DSC_K-1
before connect
[C]     pslr_connect()
[C]             ipslr_status()
[C]                     command(fd=30, 0, 1, 0)
[C]                     get_result(0x30)
[R]                              => [1C 00 00 00]
[C]                     read_result(0x30, size=28)
[R]                              => [01 00 00 00  00 00 00 00  00 01 00 01  00 00 00 00
                                     00 00 00 00  00 00 00 00  00 00 00 00]
[C]             ipslr_set_mode(0x1)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1})
[C]                     command(fd=30, 0, 0, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[C]             ipslr_status()
[C]                     command(fd=30, 0, 1, 0)
[C]                     get_result(0x30)
[R]                              => [1C 00 00 00]
[C]                     read_result(0x30, size=28)
[R]                              => [02 00 00 00  00 00 00 00  10 02 00 01  00 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00]
[C]             ipslr_identify()
[C]                     command(fd=30, 0, 4, 0)
[C]                     get_result(0x30)
[R]                              => [08 00 00 00]
[C]                     read_result(0x30, size=8)
[R]                              => [92 30 01 00  32 02 00 00]
        id of the camera: 13092
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  10 02 00 01  00 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
0x0000 | 02 00 00 00 00 00 00 00  10 02 00 01 00 00 00 80
0x0010 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0020 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0030 | 00 01 00 00 01 00 00 00  e8 03 00 00 1c 00 00 00
0x0040 | 0a 00 00 00 00 00 00 00  0a 00 00 00 00 00 00 00
0x0050 | 0a 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0060 | 00 00 00 00 0c 00 00 00  00 19 00 00 64 00 00 00
0x0070 | 00 20 03 00 00 00 00 00  07 00 00 00 07 00 00 00
0x0080 | 00 00 00 00 00 00 00 00  01 00 00 00 01 00 00 00
0x0090 | 00 00 00 00 03 00 00 00  06 00 00 00 04 00 00 00
0x00a0 | 00 00 00 00 01 00 00 00  01 00 00 00 01 00 00 00
0x00b0 | 00 00 00 00 08 00 00 00  00 00 00 00 00 00 00 00
0x00c0 | 01 00 00 00 00 00 00 00  00 40 00 00 00 00 00 00
0x00d0 | 00 00 00 00 00 00 00 00  00 00 00 00 07 00 00 00
0x00e0 | 00 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00
0x00f0 | 01 00 00 00 01 00 00 00  00 00 00 00 88 13 00 00
0x0100 | 08 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0110 | 01 00 00 00 e8 03 00 00  1c 00 00 00 0a 00 00 00
0x0120 | 00 00 00 00 0a 00 00 00  00 00 00 00 0a 00 00 00
0x0130 | 01 00 00 00 40 1f 00 00  00 19 00 00 00 00 00 00
0x0140 | 80 00 00 00 00 00 00 00  1c 00 00 00 0a 00 00 00
0x0150 | dc 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0160 | fd ff ff ff 0a 00 00 00  00 00 00 00 00 00 00 00
0x0170 | 30 02 00 00 87 02 00 00  71 02 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 00 87 00 00 00  00 00 00 00 00 00 00 00
0x01a0 | e9 00 00 00 ac 0d 00 00  64 00 00 00 f6 ff ff ff
0x01b0 | ce ff ff ff 00 00 00 00  00 00 00 00 0f 00 00 00
0x01c0 | 3f 00 00 00 00 00 00 00
        init bufmask=0x0
[C]             ipslr_cmd_00_09(0x2)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x2})
[C]                     command(fd=30, 0, 9, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  00 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[008] last 10h  16 new 00h   0
                buf[00B] last 01h   1 new 02h   2
                buf[064] last 0Ch  12 new 00h   0
                buf[174] last 87h 135 new 86h 134
---------------------------
[C]             ipslr_cmd_10_0a(0x1)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1})
[C]                     command(fd=30, 10, a, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[00C] last 00h   0 new 01h   1
---------------------------
[C]     pslr_camera_name()
pktriggercord-cli.exe: K-1 Connected...
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
[C]     pslr_get_status_buffer()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
0x0000 | 02 00 00 00 00 00 00 00  00 02 00 02 01 00 00 80
0x0010 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0020 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0030 | 00 01 00 00 01 00 00 00  e8 03 00 00 1c 00 00 00
0x0040 | 0a 00 00 00 00 00 00 00  0a 00 00 00 00 00 00 00
0x0050 | 0a 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0060 | 00 00 00 00 00 00 00 00  00 19 00 00 64 00 00 00
0x0070 | 00 20 03 00 00 00 00 00  07 00 00 00 07 00 00 00
0x0080 | 00 00 00 00 00 00 00 00  01 00 00 00 01 00 00 00
0x0090 | 00 00 00 00 03 00 00 00  06 00 00 00 04 00 00 00
0x00a0 | 00 00 00 00 01 00 00 00  01 00 00 00 01 00 00 00
0x00b0 | 00 00 00 00 08 00 00 00  00 00 00 00 00 00 00 00
0x00c0 | 01 00 00 00 00 00 00 00  00 40 00 00 00 00 00 00
0x00d0 | 00 00 00 00 00 00 00 00  00 00 00 00 07 00 00 00
0x00e0 | 00 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00
0x00f0 | 01 00 00 00 01 00 00 00  00 00 00 00 88 13 00 00
0x0100 | 08 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0110 | 01 00 00 00 e8 03 00 00  1c 00 00 00 0a 00 00 00
0x0120 | 00 00 00 00 0a 00 00 00  00 00 00 00 0a 00 00 00
0x0130 | 01 00 00 00 40 1f 00 00  00 19 00 00 00 00 00 00
0x0140 | 80 00 00 00 00 00 00 00  1c 00 00 00 0a 00 00 00
0x0150 | dc 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0160 | fd ff ff ff 0a 00 00 00  00 00 00 00 00 00 00 00
0x0170 | 30 02 00 00 86 02 00 00  71 02 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 00 87 00 00 00  00 00 00 00 00 00 00 00
0x01a0 | e9 00 00 00 ac 0d 00 00  64 00 00 00 f6 ff ff ff
0x01b0 | ce ff ff ff 00 00 00 00  00 00 00 00 0f 00 00 00
0x01c0 | 3f 00 00 00 00 00 00 00

current iso                     : 8000
current shutter speed           : 0/1
camera max shutter speed        : 1/8000
current aperture                : 35.7
lens max aperture               : 0.0
lens min aperture               : 0.0
set shutter speed               : 1/1000
set aperture                    : 2.8
fixed iso                       : 6400
auto iso                        : 100-204800
jpeg quality                    : 2
jpeg resolution                 : 36M
jpeg image tone                 : Natural
jpeg saturation                 : 3
jpeg contrast                   : 4
jpeg sharpness                  : 6
jpeg hue                        : 5000
zoom                            : 35.00 mm
focus                           : 0
color space                     : sRGB
image format                    : JPEG
raw format                      : DNG
light meter flags               : 0
ec                              : 0.00
custom ev steps                 : 1/3
custom sensitivity steps        : 1
exposure mode                   : 6 (NONE)
user mode flag                  : 0
ae metering mode                : Multi
af mode                         : AF.S
af point select                 : Auto-5
selected af point               : 16384
focused af point                : 0
drive mode                      : Single
auto bracket mode               : off
auto bracket picture count      : 0
auto bracket ev                 : 1.00
shake reduction                 : off
white balance mode              : Auto
white balance adjust            : 0
flash mode                      : Manual
flash exposure compensation     : 0.00
manual mode ev                  : 0.00
lens                            : smc PENTAX-DA 35mm F2.8 Macro Limited
battery                         : 5.60V 6.46V 0.00V 0.00V

@Knubbel
Copy link

Knubbel commented Jul 2, 2016

And now again in M mode but with shutter at 1/2000:

Debug messaging is now enabled.
pktriggercord-cli.exe 0.84.01
model (null)
device (null)
[C]     plsr_init()
driveNum:24
        Checking drive:  C
        Checking drive:  D
        Checking drive:  E
        Checking drive:  F RICOHIMG DSC_K-1
        Found camera RICOHIMG DSC_K-1
before connect
[C]     pslr_connect()
[C]             ipslr_status()
[C]                     command(fd=30, 0, 1, 0)
[C]                     get_result(0x30)
[R]                              => [1C 00 00 00]
[C]                     read_result(0x30, size=28)
[R]                              => [01 00 00 00  00 00 00 00  00 01 00 01  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00]
[C]             ipslr_set_mode(0x1)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1})
[C]                     command(fd=30, 0, 0, 4)
[C]                     get_status(0x30)
[C]             ipslr_status()
[C]                     command(fd=30, 0, 1, 0)
[C]                     get_result(0x30)
[R]                              => [1C 00 00 00]
[C]                     read_result(0x30, size=28)
[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=30, 0, 4, 0)
[C]                     get_result(0x30)
[R]                              => [08 00 00 00]
[C]                     read_result(0x30, size=8)
[R]                              => [92 30 01 00  32 02 00 00]
        id of the camera: 13092
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[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  00 00 00 00 ... (424 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 00 00 00 00
0x0020 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0030 | 00 01 00 00 01 00 00 00  d0 07 00 00 1c 00 00 00
0x0040 | 0a 00 00 00 00 00 00 00  0a 00 00 00 00 00 00 00
0x0050 | 0a 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0060 | 00 00 00 00 0c 00 00 00  00 19 00 00 64 00 00 00
0x0070 | 00 20 03 00 00 00 00 00  07 00 00 00 07 00 00 00
0x0080 | 00 00 00 00 00 00 00 00  01 00 00 00 01 00 00 00
0x0090 | 00 00 00 00 03 00 00 00  06 00 00 00 04 00 00 00
0x00a0 | 00 00 00 00 01 00 00 00  01 00 00 00 01 00 00 00
0x00b0 | 00 00 00 00 08 00 00 00  00 00 00 00 00 00 00 00
0x00c0 | 01 00 00 00 00 00 00 00  00 40 00 00 00 00 00 00
0x00d0 | 00 00 00 00 00 00 00 00  00 00 00 00 07 00 00 00
0x00e0 | 00 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00
0x00f0 | 01 00 00 00 01 00 00 00  00 00 00 00 88 13 00 00
0x0100 | 08 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0110 | 01 00 00 00 d0 07 00 00  1c 00 00 00 0a 00 00 00
0x0120 | 00 00 00 00 0a 00 00 00  00 00 00 00 0a 00 00 00
0x0130 | 01 00 00 00 40 1f 00 00  00 19 00 00 00 00 00 00
0x0140 | 80 00 00 00 00 00 00 00  1c 00 00 00 0a 00 00 00
0x0150 | dc 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0160 | f6 ff ff ff 0a 00 00 00  00 00 00 00 00 00 00 00
0x0170 | 30 02 00 00 86 02 00 00  71 02 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 00 87 00 00 00  00 00 00 00 00 00 00 00
0x01a0 | e9 00 00 00 ac 0d 00 00  64 00 00 00 f6 ff ff ff
0x01b0 | ce ff ff ff 00 00 00 00  00 00 00 00 0f 00 00 00
0x01c0 | 3f 00 00 00 00 00 00 00
        init bufmask=0x0
[C]             ipslr_cmd_00_09(0x2)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x2})
[C]                     command(fd=30, 0, 9, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[008] last 10h  16 new 00h   0
                buf[00B] last 01h   1 new 02h   2
                buf[064] last 0Ch  12 new 00h   0
---------------------------
[C]             ipslr_cmd_10_0a(0x1)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1})
[C]                     command(fd=30, 10, a, 4)
[C]                     get_status(0x30)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
[C]     pslr_camera_name()
pktriggercord-cli.exe: K-1 Connected...
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
[C]     pslr_get_status_buffer()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
0x0000 | 02 00 00 00 00 00 00 00  00 02 00 02 01 00 00 80
0x0010 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0020 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0030 | 00 01 00 00 01 00 00 00  d0 07 00 00 1c 00 00 00
0x0040 | 0a 00 00 00 00 00 00 00  0a 00 00 00 00 00 00 00
0x0050 | 0a 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0060 | 00 00 00 00 00 00 00 00  00 19 00 00 64 00 00 00
0x0070 | 00 20 03 00 00 00 00 00  07 00 00 00 07 00 00 00
0x0080 | 00 00 00 00 00 00 00 00  01 00 00 00 01 00 00 00
0x0090 | 00 00 00 00 03 00 00 00  06 00 00 00 04 00 00 00
0x00a0 | 00 00 00 00 01 00 00 00  01 00 00 00 01 00 00 00
0x00b0 | 00 00 00 00 08 00 00 00  00 00 00 00 00 00 00 00
0x00c0 | 01 00 00 00 00 00 00 00  00 40 00 00 00 00 00 00
0x00d0 | 00 00 00 00 00 00 00 00  00 00 00 00 07 00 00 00
0x00e0 | 00 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00
0x00f0 | 01 00 00 00 01 00 00 00  00 00 00 00 88 13 00 00
0x0100 | 08 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0110 | 01 00 00 00 d0 07 00 00  1c 00 00 00 0a 00 00 00
0x0120 | 00 00 00 00 0a 00 00 00  00 00 00 00 0a 00 00 00
0x0130 | 01 00 00 00 40 1f 00 00  00 19 00 00 00 00 00 00
0x0140 | 80 00 00 00 00 00 00 00  1c 00 00 00 0a 00 00 00
0x0150 | dc 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0160 | f6 ff ff ff 0a 00 00 00  00 00 00 00 00 00 00 00
0x0170 | 30 02 00 00 86 02 00 00  71 02 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 00 87 00 00 00  00 00 00 00 00 00 00 00
0x01a0 | e9 00 00 00 ac 0d 00 00  64 00 00 00 f6 ff ff ff
0x01b0 | ce ff ff ff 00 00 00 00  00 00 00 00 0f 00 00 00
0x01c0 | 3f 00 00 00 00 00 00 00

current iso                     : 8000
current shutter speed           : 0/1
camera max shutter speed        : 1/8000
current aperture                : 71.4
lens max aperture               : 0.0
lens min aperture               : 0.0
set shutter speed               : 1/2000
set aperture                    : 2.8
fixed iso                       : 6400
auto iso                        : 100-204800
jpeg quality                    : 2
jpeg resolution                 : 36M
jpeg image tone                 : Natural
jpeg saturation                 : 3
jpeg contrast                   : 4
jpeg sharpness                  : 6
jpeg hue                        : 5000
zoom                            : 35.00 mm
focus                           : 0
color space                     : sRGB
image format                    : JPEG
raw format                      : DNG
light meter flags               : 0
ec                              : 0.00
custom ev steps                 : 1/3
custom sensitivity steps        : 1
exposure mode                   : 6 (NONE)
user mode flag                  : 0
ae metering mode                : Multi
af mode                         : AF.S
af point select                 : Auto-5
selected af point               : 16384
focused af point                : 0
drive mode                      : Single
auto bracket mode               : off
auto bracket picture count      : 0
auto bracket ev                 : 1.00
shake reduction                 : off
white balance mode              : Auto
white balance adjust            : 0
flash mode                      : Manual
flash exposure compensation     : 0.00
manual mode ev                  : 0.00
lens                            : smc PENTAX-DA 35mm F2.8 Macro Limited
battery                         : 5.60V 6.46V 0.00V 0.00V

@Knubbel
Copy link

Knubbel commented Jul 2, 2016

Just as a side comment:
I chose the fixed center AF point which pktriggercord reports as 16384.
maybe you take a look at how Phil Harvey from exiftool interprets things. He calls it "Fixed Center;0" for the K-1. The numerical values for AF point selected in the exifdata for this shot are "65534;0".

@asalamon74
Copy link
Owner

@Knubbel I've fixed a few more things, hopefully most of the important fields will be parser correctly in this version. Plase test it.

pktriggercord-0.84.01-win.zip

I cannot find the value 65534 in the status buffer.

You might test taking a picture using the following command:

./pktriggercord-cli --debug --file_format dng -o test1.dng

@horemachet
Copy link
Author

horemachet commented Jul 2, 2016

Okay, did it as root and in MSC-Mode.
Result is definitely different :-)

./pktriggercord-cli --status_hex --debug
Debug messaging is now enabled.
./pktriggercord-cli 0.84.01 
model (null)
device (null)
[C]     plsr_init()
driveNum:4
        Checking drive:  sg0 ATA     
 WDC WD5000LPVT-2

        Checking drive:  sg1 Optiarc 
 DVD RW AD-7700H 

        Checking drive:  sg2 RICOHIMG
 DSC_K-1         

        Found camera RICOHIMG
 DSC_K-1         

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]                                      <<< [01 00 00 00  00 00 00 00  00 01 00 01  00 00 00 00 
                                              00 00 00 00  00 00 00 00  00 00 00 00]
[R]                              => [01 00 00 00  00 00 00 00  00 01 00 01  00 00 00 00
                                     00 00 00 00  00 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 00]
[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  00 00 00 00 
                                              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  00 00 00 00
                                     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]                                      <<< [92 30 01 00  32 02 00 00]
[R]                              => [92 30 01 00  32 02 00 00]
        id of the camera: 13092
[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]                                      <<< [C8 01 00 00  00 00 01 00]
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x3, size=456)
[S]                                      >>> [F0 49 00 00  C8 01 00 00]
[S]                                      <<< [02 00 00 00  00 00 00 00  10 02 00 01  00 00 00 00 
                                              00 00 00 00  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  00 00 00 00
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
0x0000 | 02 00 00 00 00 00 00 00  10 02 00 01 00 00 00 00  
0x0010 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  
0x0020 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  
0x0030 | 00 01 00 00 01 00 00 00  3c 00 00 00 2d 00 00 00  
0x0040 | 0a 00 00 00 00 00 00 00  0a 00 00 00 00 00 00 00  
0x0050 | 0a 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00  
0x0060 | 00 00 00 00 0c 00 00 00  00 00 00 00 64 00 00 00  
0x0070 | 80 0c 00 00 00 00 00 00  07 00 00 00 07 00 00 00  
0x0080 | 00 00 00 00 03 00 00 00  00 00 00 00 01 00 00 00  
0x0090 | 0c 00 00 00 04 00 00 00  04 00 00 00 04 00 00 00  
0x00a0 | 01 00 00 00 01 00 00 00  01 00 00 00 00 00 00 00  
0x00b0 | 00 00 00 00 02 00 00 00  03 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  00 00 00 00 01 00 00 00  
0x00e0 | 00 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00  
0x00f0 | 01 00 00 00 01 00 00 00  00 00 00 00 88 13 00 00  
0x0100 | 04 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  
0x0110 | 01 00 00 00 64 00 00 00  2d 00 00 00 0a 00 00 00  
0x0120 | 00 00 00 00 0a 00 00 00  00 00 00 00 0a 00 00 00  
0x0130 | 01 00 00 00 40 1f 00 00  80 0c 00 00 03 00 00 00  
0x0140 | 00 00 00 00 0c 00 00 00  1c 00 00 00 0a 00 00 00  
0x0150 | 40 01 00 00 0a 00 00 00  00 00 00 00 00 00 00 00  
0x0160 | 00 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00  
0x0170 | 55 03 00 00 ea 02 00 00  c0 02 00 00 db 02 00 00  
0x0180 | 86 02 00 00 00 00 00 00  00 00 00 00 00 00 00 00  
0x0190 | 00 00 00 00 85 00 00 00  00 00 00 00 00 00 00 00  
0x01a0 | 09 00 00 00 10 27 00 00  64 00 00 00 f6 ff ff ff  
0x01b0 | dd ff ff ff 00 00 00 00  00 00 00 00 0f 00 00 00  
0x01c0 | 3f 00 00 00 00 00 00 00  
        init bufmask=0x0
[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 01]
[R]                              => ERROR: 0x01
[S]                                      >>> [F0 26 00 00  00 00 00 00]
[S]                                      <<< [00 00 00 00  00 00 00 00]
[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]                                      <<< [C8 01 00 00  00 00 01 00]
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x3, size=456)
[S]                                      >>> [F0 49 00 00  C8 01 00 00]
[S]                                      <<< [02 00 00 00  00 00 00 00  10 02 00 02  00 00 00 80 
                                              00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00]
[R]                              => [02 00 00 00  00 00 00 00  10 02 00 02  00 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[00B] last 01h   1 new 02h   2
                buf[00F] last 00h   0 new 80h 128
                buf[174] last EAh 234 new E9h 233
                buf[178] last C0h 192 new BCh 188
                buf[17C] last DBh 219 new F0h 240
                buf[180] last 86h 134 new 9Bh 155
---------------------------
[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]
[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]                                      <<< [C8 01 00 00  00 00 01 00]
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x3, size=456)
[S]                                      >>> [F0 49 00 00  C8 01 00 00]
[S]                                      <<< [02 00 00 00  00 00 00 00  10 02 00 02  00 00 00 80 
                                              00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00]
[R]                              => [02 00 00 00  00 00 00 00  10 02 00 02  00 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
[C]     pslr_camera_name()
./pktriggercord-cli: K-1 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]                                      <<< [C8 01 00 00  00 00 01 00]
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x3, size=456)
[S]                                      >>> [F0 49 00 00  C8 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  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  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[00C] last 00h   0 new 01h   1
---------------------------
[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]                                      <<< [C8 01 00 00  00 00 01 00]
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x3, size=456)
[S]                                      >>> [F0 49 00 00  C8 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  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  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 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]                                      <<< [C8 01 00 00  00 00 01 00]
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x3, size=456)
[S]                                      >>> [F0 49 00 00  C8 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  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  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
[C]     pslr_get_status_buffer()
[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]                                      <<< [C8 01 00 00  00 00 01 00]
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x3, size=456)
[S]                                      >>> [F0 49 00 00  C8 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  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  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
0x0000 | 02 00 00 00 00 00 00 00  10 02 00 02 01 00 00 80  
0x0010 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  
0x0020 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  
0x0030 | 00 01 00 00 01 00 00 00  3c 00 00 00 2d 00 00 00  
0x0040 | 0a 00 00 00 00 00 00 00  0a 00 00 00 00 00 00 00  
0x0050 | 0a 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00  
0x0060 | 00 00 00 00 0c 00 00 00  00 00 00 00 64 00 00 00  
0x0070 | 80 0c 00 00 00 00 00 00  07 00 00 00 07 00 00 00  
0x0080 | 00 00 00 00 03 00 00 00  00 00 00 00 01 00 00 00  
0x0090 | 0c 00 00 00 04 00 00 00  04 00 00 00 04 00 00 00  
0x00a0 | 01 00 00 00 01 00 00 00  01 00 00 00 00 00 00 00  
0x00b0 | 00 00 00 00 02 00 00 00  03 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  00 00 00 00 01 00 00 00  
0x00e0 | 00 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00  
0x00f0 | 01 00 00 00 01 00 00 00  00 00 00 00 88 13 00 00  
0x0100 | 04 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  
0x0110 | 01 00 00 00 64 00 00 00  2d 00 00 00 0a 00 00 00  
0x0120 | 00 00 00 00 0a 00 00 00  00 00 00 00 0a 00 00 00  
0x0130 | 01 00 00 00 40 1f 00 00  80 0c 00 00 03 00 00 00  
0x0140 | 00 00 00 00 0c 00 00 00  1c 00 00 00 0a 00 00 00  
0x0150 | 40 01 00 00 0a 00 00 00  00 00 00 00 00 00 00 00  
0x0160 | 00 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00  
0x0170 | 55 03 00 00 e9 02 00 00  bc 02 00 00 f0 02 00 00  
0x0180 | 9b 02 00 00 00 00 00 00  00 00 00 00 00 00 00 00  
0x0190 | 00 00 00 00 85 00 00 00  00 00 00 00 00 00 00 00  
0x01a0 | 09 00 00 00 10 27 00 00  64 00 00 00 f6 ff ff ff  
0x01b0 | dd ff ff ff 00 00 00 00  00 00 00 00 0f 00 00 00  
0x01c0 | 3f 00 00 00 00 00 00 00  

current iso                     : 8000
current shutter speed           : 0/1
camera max shutter speed        : 10/1
current aperture                : 2.2
lens max aperture               : 0.0
lens min aperture               : 0.4
set shutter speed               : 1/60
set aperture                    : 4.5
fixed iso                       : 0
auto iso                        : 100-3200
jpeg quality                    : 3
jpeg resolution                 : 2M
jpeg image tone                 : Auto-5
jpeg saturation                 : 4
jpeg contrast                   : 4
jpeg sharpness                  : 4
jpeg hue                        : 5000
zoom                            : unknown mm
focus                           : 0
color space                     : AdobeRGB
image format                    : JPEG
raw format                      : DNG
light meter flags               : 3
ec                              : 0.00
custom ev steps                 : 1/3
custom sensitivity steps        : 1
exposure mode                   : 0 (MTF)
user mode flag                  : 0
ae metering mode                : Multi
af mode                         : AF.C
af point select                 : Select
selected af point               : 16384
focused af point                : 0
drive mode                      : Single
auto bracket mode               : off
auto bracket picture count      : 0
auto bracket ev                 : 1.00
shake reduction                 : off
white balance mode              : Auto
white balance adjust            : 0
flash mode                      : Manual
flash exposure compensation     : 0.00
manual mode ev                  : 0.00
lens                            : M-42 or No Lens
battery                         : 8.53V 7.45V 6.67V 0.00V

@Knubbel
Copy link

Knubbel commented Jul 2, 2016

Here is my result using the latest windows exe posted above:

Debug messaging is now enabled.
pktriggercord-cli.exe 0.84.01
model (null)
device (null)
[C]     plsr_init()
driveNum:24
        Checking drive:  C
        Checking drive:  D
        Checking drive:  E
        Checking drive:  F RICOHIMG DSC_K-1
        Found camera RICOHIMG DSC_K-1
before connect
[C]     pslr_connect()
[C]             ipslr_status()
[C]                     command(fd=30, 0, 1, 0)
[C]                     get_result(0x30)
[R]                              => [1C 00 00 00]
[C]                     read_result(0x30, size=28)
[R]                              => [01 00 00 00  00 00 00 00  00 01 00 01  00 00 00 00
                                     00 00 00 00  00 00 00 00  00 00 00 00]
[C]             ipslr_set_mode(0x1)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1})
[C]                     command(fd=30, 0, 0, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[C]             ipslr_status()
[C]                     command(fd=30, 0, 1, 0)
[C]                     get_result(0x30)
[R]                              => [1C 00 00 00]
[C]                     read_result(0x30, size=28)
[R]                              => [02 00 00 00  00 00 00 00  10 02 00 01  00 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00]
[C]             ipslr_identify()
[C]                     command(fd=30, 0, 4, 0)
[C]                     get_result(0x30)
[R]                              => [08 00 00 00]
[C]                     read_result(0x30, size=8)
[R]                              => [92 30 01 00  32 02 00 00]
        id of the camera: 13092
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  10 02 00 01  00 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
0x0000 | 02 00 00 00 00 00 00 00  10 02 00 01 00 00 00 80
0x0010 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0020 | 00 00 00 00 02 00 00 00  00 00 00 00 00 00 00 00
0x0030 | 00 01 00 00 01 00 00 00  e8 03 00 00 28 00 00 00
0x0040 | 0a 00 00 00 00 00 00 00  0a 00 00 00 00 00 00 00
0x0050 | 0d 00 00 00 0a 00 00 00  00 00 00 00 01 00 00 00
0x0060 | 00 00 00 00 0c 00 00 00  00 00 00 00 64 00 00 00
0x0070 | 00 20 03 00 00 00 00 00  07 00 00 00 07 00 00 00
0x0080 | 01 00 00 00 02 00 00 00  02 00 00 00 01 00 00 00
0x0090 | 03 00 00 00 04 00 00 00  06 00 00 00 05 00 00 00
0x00a0 | 00 00 00 00 01 00 00 00  01 00 00 00 01 00 00 00
0x00b0 | 00 00 00 00 0d 00 00 00  00 00 00 00 00 00 00 00
0x00c0 | 02 00 00 00 02 00 00 00  00 00 08 00 00 00 00 00
0x00d0 | 00 00 00 00 00 00 00 00  01 00 00 00 07 00 00 00
0x00e0 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x00f0 | 01 00 00 00 01 00 00 00  00 00 00 00 88 13 00 00
0x0100 | 04 00 00 00 01 00 00 00  01 00 00 00 00 00 00 00
0x0110 | 01 00 00 00 e8 03 00 00  28 00 00 00 0a 00 00 00
0x0120 | 00 00 00 00 0a 00 00 00  00 00 00 00 0a 00 00 00
0x0130 | 00 00 00 00 00 00 00 00  80 38 01 00 00 00 00 00
0x0140 | 00 00 00 00 00 00 00 00  00 00 00 00 0a 00 00 00
0x0150 | 00 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0160 | 50 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0170 | 50 02 00 00 d7 02 00 00  bf 02 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 00 87 00 00 00  00 00 00 00 00 00 00 00
0x01a0 | e9 00 00 00 ac 0d 00 00  64 00 00 00 f6 ff ff ff
0x01b0 | ce ff ff ff 00 00 00 00  00 00 00 00 0f 00 00 00
0x01c0 | 3f 00 00 00 00 00 00 00
        init bufmask=0x0
[C]             ipslr_cmd_00_09(0x2)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x2})
[C]                     command(fd=30, 0, 9, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  00 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[008] last 10h  16 new 00h   0
                buf[00B] last 01h   1 new 02h   2
                buf[064] last 0Ch  12 new 00h   0
                buf[130] last 00h   0 new 01h   1
                buf[134] last 00h   0 new 40h  64
                buf[135] last 00h   0 new 1Fh  31
                buf[144] last 00h   0 new 09h   9
                buf[148] last 00h   0 new 1Ch  28
                buf[150] last 00h   0 new DCh 220
                buf[160] last 50h  80 new 00h   0
                buf[178] last BFh 191 new BEh 190
---------------------------
[C]             ipslr_cmd_10_0a(0x1)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1})
[C]                     command(fd=30, 10, a, 4)
[C]                     get_status(0x30)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  00 00 00 80
                                     00 00 00 00  03 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[014] last 00h   0 new 03h   3
---------------------------
[C]     pslr_camera_name()
pktriggercord-cli.exe: K-1 Connected...
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  00 00 00 80
                                     00 00 00 00  03 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[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  00 00 00 00 ... (424 bytes more)]
                buf[00C] last 00h   0 new 01h   1
---------------------------
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[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  00 00 00 00 ... (424 bytes more)]
[C]     pslr_get_status_buffer()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[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  00 00 00 00 ... (424 bytes more)]
0x0000 | 02 00 00 00 00 00 00 00  00 02 00 02 01 00 00 80
0x0010 | 00 00 00 00 03 00 00 00  00 00 00 00 00 00 00 00
0x0020 | 00 00 00 00 02 00 00 00  00 00 00 00 00 00 00 00
0x0030 | 00 01 00 00 01 00 00 00  e8 03 00 00 28 00 00 00
0x0040 | 0a 00 00 00 00 00 00 00  0a 00 00 00 00 00 00 00
0x0050 | 0d 00 00 00 0a 00 00 00  00 00 00 00 01 00 00 00
0x0060 | 00 00 00 00 00 00 00 00  00 00 00 00 64 00 00 00
0x0070 | 00 20 03 00 00 00 00 00  07 00 00 00 07 00 00 00
0x0080 | 01 00 00 00 02 00 00 00  02 00 00 00 01 00 00 00
0x0090 | 03 00 00 00 04 00 00 00  06 00 00 00 05 00 00 00
0x00a0 | 00 00 00 00 01 00 00 00  01 00 00 00 01 00 00 00
0x00b0 | 00 00 00 00 0d 00 00 00  00 00 00 00 00 00 00 00
0x00c0 | 02 00 00 00 02 00 00 00  00 00 08 00 00 00 00 00
0x00d0 | 00 00 00 00 00 00 00 00  01 00 00 00 07 00 00 00
0x00e0 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x00f0 | 01 00 00 00 01 00 00 00  00 00 00 00 88 13 00 00
0x0100 | 04 00 00 00 01 00 00 00  01 00 00 00 00 00 00 00
0x0110 | 01 00 00 00 e8 03 00 00  28 00 00 00 0a 00 00 00
0x0120 | 00 00 00 00 0a 00 00 00  00 00 00 00 0a 00 00 00
0x0130 | 01 00 00 00 40 1f 00 00  80 38 01 00 00 00 00 00
0x0140 | 00 00 00 00 09 00 00 00  1c 00 00 00 0a 00 00 00
0x0150 | dc 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0160 | 00 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0170 | 50 02 00 00 d7 02 00 00  be 02 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 00 87 00 00 00  00 00 00 00 00 00 00 00
0x01a0 | e9 00 00 00 ac 0d 00 00  64 00 00 00 f6 ff ff ff
0x01b0 | ce ff ff ff 00 00 00 00  00 00 00 00 0f 00 00 00
0x01c0 | 3f 00 00 00 00 00 00 00

current iso                     : 80000
current shutter speed           : 1/1000
camera max shutter speed        : 1/8000
current aperture                : 4.0
lens max aperture               : 22.0
lens min aperture               : 2.8
set shutter speed               : 1/1000
set aperture                    : 4.0
fixed iso                       : 0
auto iso                        : 100-204800
jpeg quality                    : 1
jpeg resolution                 : 12M
jpeg image tone                 : Landscape
jpeg saturation                 : 4
jpeg contrast                   : 5
jpeg sharpness                  : 6
jpeg hue                        : 4
zoom                            : 35.00 mm
focus                           : 0
color space                     : sRGB
image format                    : RAW
raw format                      : DNG
light meter flags               : 0
ec                              : 0.00
custom ev steps                 : 1/3
custom sensitivity steps        : 1
exposure mode                   : 5 (NONE)
user mode flag                  : 2
ae metering mode                : Multi
af mode                         : AF.C
af point select                 : Spot
selected af point               : 524288
focused af point                : 0
drive mode                      : Continuous-HI
auto bracket mode               : off
auto bracket picture count      : 0
auto bracket ev                 : 1.30
shake reduction                 : off
white balance mode              : Auto
white balance adjust            : 0
flash mode                      : Manual
flash exposure compensation     : 0.00
manual mode ev                  : 0.00
lens                            : smc PENTAX-DA 35mm F2.8 Macro Limited
battery                         : 5.92V 7.27V 0.00V 0.00V

@Knubbel
Copy link

Knubbel commented Jul 2, 2016

Then I tried taking an picture using the command

pktriggercord-cli --debug --file_format dng -o test1.dng

It actually did trigger the shutter, but the output in the command line window soon starts rushing by neverendingly. Below is the beginning of it, later it seems to just repeat a couple of lines.

Debug messaging is now enabled.
pktriggercord-cli.exe 0.84.01
model (null)
device (null)
[C]     plsr_init()
driveNum:24
        Checking drive:  C
        Checking drive:  D
        Checking drive:  E
        Checking drive:  F RICOHIMG DSC_K-1
        Found camera RICOHIMG DSC_K-1
before connect
[C]     pslr_connect()
[C]             ipslr_status()
[C]                     command(fd=30, 0, 1, 0)
[C]                     get_result(0x30)
[R]                              => [1C 00 00 00]
[C]                     read_result(0x30, size=28)
[R]                              => [02 00 00 00  00 00 00 00  00 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})
[C]                     command(fd=30, 0, 0, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[C]             ipslr_status()
[C]                     command(fd=30, 0, 1, 0)
[C]                     get_result(0x30)
[R]                              => [1C 00 00 00]
[C]                     read_result(0x30, size=28)
[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=30, 0, 4, 0)
[C]                     get_result(0x30)
[R]                              => [08 00 00 00]
[C]                     read_result(0x30, size=8)
[R]                              => [92 30 01 00  32 02 00 00]
        id of the camera: 13092
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[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  00 00 00 00 ... (424 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 00 00 00 00
0x0020 | 00 00 00 00 02 00 00 00  00 00 00 00 00 00 00 00
0x0030 | 00 01 00 00 01 00 00 00  e8 03 00 00 28 00 00 00
0x0040 | 0a 00 00 00 00 00 00 00  0a 00 00 00 00 00 00 00
0x0050 | 0d 00 00 00 0a 00 00 00  00 00 00 00 01 00 00 00
0x0060 | 00 00 00 00 0c 00 00 00  00 00 00 00 64 00 00 00
0x0070 | 00 20 03 00 00 00 00 00  07 00 00 00 07 00 00 00
0x0080 | 01 00 00 00 02 00 00 00  02 00 00 00 01 00 00 00
0x0090 | 03 00 00 00 04 00 00 00  06 00 00 00 05 00 00 00
0x00a0 | 00 00 00 00 01 00 00 00  01 00 00 00 01 00 00 00
0x00b0 | 00 00 00 00 0d 00 00 00  00 00 00 00 00 00 00 00
0x00c0 | 02 00 00 00 02 00 00 00  00 00 08 00 00 00 00 00
0x00d0 | 00 00 00 00 00 00 00 00  01 00 00 00 07 00 00 00
0x00e0 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x00f0 | 01 00 00 00 01 00 00 00  00 00 00 00 88 13 00 00
0x0100 | 04 00 00 00 01 00 00 00  01 00 00 00 00 00 00 00
0x0110 | 01 00 00 00 e8 03 00 00  28 00 00 00 0a 00 00 00
0x0120 | 00 00 00 00 0a 00 00 00  00 00 00 00 0a 00 00 00
0x0130 | 01 00 00 00 40 1f 00 00  80 38 01 00 00 00 00 00
0x0140 | 00 00 00 00 09 00 00 00  1c 00 00 00 0a 00 00 00
0x0150 | dc 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0160 | 00 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0170 | 50 02 00 00 d0 02 00 00  b9 02 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 00 87 00 00 00  00 00 00 00 00 00 00 00
0x01a0 | e9 00 00 00 ac 0d 00 00  64 00 00 00 f6 ff ff ff
0x01b0 | ce ff ff ff 00 00 00 00  00 00 00 00 0f 00 00 00
0x01c0 | 3f 00 00 00 00 00 00 00
        init bufmask=0x0
[C]             ipslr_cmd_00_09(0x2)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x2})
[C]                     command(fd=30, 0, 9, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[008] last 10h  16 new 00h   0
                buf[00B] last 01h   1 new 02h   2
                buf[064] last 0Ch  12 new 00h   0
---------------------------
[C]             ipslr_cmd_10_0a(0x1)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1})
[C]                     command(fd=30, 10, a, 4)
[C]                     get_status(0x30)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
[C]     pslr_camera_name()
pktriggercord-cli.exe: K-1 Connected...
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
[C]     pslr_set_image_format(1)
[C]             ipslr_handle_command_x18(0x12, 2)
[C]             ipslr_cmd_00_09(0x1)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1})
[C]                     command(fd=30, 0, 9, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1, 0x1})
[C]                     command(fd=30, 18, 12, 8)
[C]                     get_status(0x30)
[C]             ipslr_cmd_00_09(0x2)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x2})
[C]                     command(fd=30, 0, 9, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[C]     pslr_set_raw_format(1)
[C]             ipslr_handle_command_x18(0x1f, 2)
[C]             ipslr_cmd_00_09(0x1)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1})
[C]                     command(fd=30, 0, 9, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1, 0x1})
[C]                     command(fd=30, 18, 1f, 8)
[C]                     get_status(0x30)
[C]             ipslr_cmd_00_09(0x2)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x2})
[C]                     command(fd=30, 0, 9, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
cont: 1
not bulb
[C]     pslr_shutter()
[C]             ipslr_press_shutter(fullpress = true)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                before: mask=0x0
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x2})
[C]                     command(fd=30, 10, 5, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
                shutter result code: 0x0
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[008] last 00h   0 new 04h   4
                buf[014] last 00h   0 new 02h   2
                buf[064] last 00h   0 new 09h   9
                buf[178] last B9h 185 new B8h 184
---------------------------
get buffer 0 type 1 res 2
[C]     pslr_buffer_open(#0, type=1, res=2)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 2
[C]     pslr_buffer_open(#0, type=1, res=2)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 2
[C]     pslr_buffer_open(#0, type=1, res=2)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 2
[C]     pslr_buffer_open(#0, type=1, res=2)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 2
[C]     pslr_buffer_open(#0, type=1, res=2)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 2
[C]     pslr_buffer_open(#0, type=1, res=2)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 2
[C]     pslr_buffer_open(#0, type=1, res=2)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 2
[C]     pslr_buffer_open(#0, type=1, res=2)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 2
[C]     pslr_buffer_open(#0, type=1, res=2)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 2
[C]     pslr_buffer_open(#0, type=1, res=2)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 2
[C]     pslr_buffer_open(#0, type=1, res=2)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 2
[C]     pslr_buffer_open(#0, type=1, res=2)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 2
[C]     pslr_buffer_open(#0, type=1, res=2)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 2
[C]     pslr_buffer_open(#0, type=1, res=2)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[008] last 04h   4 new 00h   0
                buf[064] last 09h   9 new 00h   0
---------------------------
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 2
[C]     pslr_buffer_open(#0, type=1, res=2)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 2
[C]     pslr_buffer_open(#0, type=1, res=2)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 2
[C]     pslr_buffer_open(#0, type=1, res=2)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 2
[C]     pslr_buffer_open(#0, type=1, res=2)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 2
[C]     pslr_buffer_open(#0, type=1, res=2)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 2
[C]     pslr_buffer_open(#0, type=1, res=2)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 2

@asalamon74
Copy link
Owner

@Knubbel Hmm. Bufmask looks empty.

I suggest to change the camera to bracketing mode (3 pictures, +- 1EV) and check the status reading after that. If the program does not recognize bracketing mode I'll try to fix it.

If the camera recognizes bracketing mode try to take 3 pictures ( --frames 3 ). If it takes 3 pictures and downloads all the pictures after that. If i really takes 3 pictures then the download is buggy. If it takes only 1 picture the exposure is buggy.

@Knubbel
Copy link

Knubbel commented Jul 8, 2016

I set the camera to Av mode and to 3 image bracketing. This here is what I get for
pktriggercord-cli.exe --status_hex --debug

Debug messaging is now enabled.
pktriggercord-cli.exe 0.84.01
model (null)
device (null)
[C]     plsr_init()
driveNum:24
        Checking drive:  C
        Checking drive:  D
        Checking drive:  E
        Checking drive:  F Generic  STORAGE DEVICE
        Checking drive:  G Generic  STORAGE DEVICE
        Checking drive:  H Generic  STORAGE DEVICE
        Checking drive:  I RICOHIMG DSC_K-1
        Found camera RICOHIMG DSC_K-1
before connect
[C]     pslr_connect()
[C]             ipslr_status()
[C]                     command(fd=30, 0, 1, 0)
[C]                     get_result(0x30)
[R]                              => [1C 00 00 00]
[C]                     read_result(0x30, size=28)
[R]                              => [01 00 00 00  00 00 00 00  00 01 00 01  00 00 00 00
                                     00 00 00 00  00 00 00 00  00 00 00 00]
[C]             ipslr_set_mode(0x1)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1})
[C]                     command(fd=30, 0, 0, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[C]             ipslr_status()
[C]                     command(fd=30, 0, 1, 0)
[C]                     get_result(0x30)
[R]                              => [1C 00 00 00]
[C]                     read_result(0x30, size=28)
[R]                              => [02 00 00 00  00 00 00 00  10 02 00 01  00 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00]
[C]             ipslr_identify()
[C]                     command(fd=30, 0, 4, 0)
[C]                     get_result(0x30)
[R]                              => [08 00 00 00]
[C]                     read_result(0x30, size=8)
[R]                              => [92 30 01 00  32 02 00 00]
        id of the camera: 13092
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  10 02 00 01  00 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
0x0000 | 02 00 00 00 00 00 00 00  10 02 00 01 00 00 00 80
0x0010 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0020 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0030 | 00 01 00 00 01 00 00 00  d0 07 00 00 1c 00 00 00
0x0040 | 0a 00 00 00 00 00 00 00  0a 00 00 00 01 00 00 00
0x0050 | 0a 00 00 00 0a 00 00 00  03 00 00 00 00 00 00 00
0x0060 | 00 00 00 00 0c 00 00 00  00 00 00 00 64 00 00 00
0x0070 | 00 20 03 00 00 00 00 00  07 00 00 00 07 00 00 00
0x0080 | 01 00 00 00 00 00 00 00  01 00 00 00 01 00 00 00
0x0090 | 00 00 00 00 03 00 00 00  06 00 00 00 04 00 00 00
0x00a0 | 00 00 00 00 01 00 00 00  01 00 00 00 01 00 00 00
0x00b0 | 00 00 00 00 05 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  00 00 00 00 07 00 00 00
0x00e0 | 00 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00
0x00f0 | 01 00 00 00 01 00 00 00  00 00 00 00 88 13 00 00
0x0100 | 08 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0110 | 01 00 00 00 7d 00 00 00  1c 00 00 00 0a 00 00 00
0x0120 | 00 00 00 00 0a 00 00 00  f6 ff ff ff 0a 00 00 00
0x0130 | 01 00 00 00 40 1f 00 00  64 00 00 00 00 00 00 00
0x0140 | 80 00 00 00 00 00 00 00  1c 00 00 00 0a 00 00 00
0x0150 | dc 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0160 | 00 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0170 | 50 02 00 00 b4 02 00 00  9d 02 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 00 87 00 00 00  00 00 00 00 00 00 00 00
0x01a0 | e9 00 00 00 ac 0d 00 00  64 00 00 00 3c 00 00 00
0x01b0 | ce ff ff ff 00 00 00 00  00 00 00 00 0f 00 00 00
0x01c0 | 3f 00 00 00 00 00 00 00
        init bufmask=0x0
[C]             ipslr_cmd_00_09(0x2)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x2})
[C]                     command(fd=30, 0, 9, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  00 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[008] last 10h  16 new 00h   0
                buf[00B] last 01h   1 new 02h   2
                buf[064] last 0Ch  12 new 00h   0
---------------------------
[C]             ipslr_cmd_10_0a(0x1)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1})
[C]                     command(fd=30, 10, a, 4)
[C]                     get_status(0x30)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  00 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
[C]     pslr_camera_name()
pktriggercord-cli.exe: K-1 Connected...
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[00C] last 00h   0 new 01h   1
---------------------------
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
[C]     pslr_get_status_buffer()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
0x0000 | 02 00 00 00 00 00 00 00  00 02 00 02 01 00 00 80
0x0010 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0020 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0030 | 00 01 00 00 01 00 00 00  d0 07 00 00 1c 00 00 00
0x0040 | 0a 00 00 00 00 00 00 00  0a 00 00 00 01 00 00 00
0x0050 | 0a 00 00 00 0a 00 00 00  03 00 00 00 00 00 00 00
0x0060 | 00 00 00 00 00 00 00 00  00 00 00 00 64 00 00 00
0x0070 | 00 20 03 00 00 00 00 00  07 00 00 00 07 00 00 00
0x0080 | 01 00 00 00 00 00 00 00  01 00 00 00 01 00 00 00
0x0090 | 00 00 00 00 03 00 00 00  06 00 00 00 04 00 00 00
0x00a0 | 00 00 00 00 01 00 00 00  01 00 00 00 01 00 00 00
0x00b0 | 00 00 00 00 05 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  00 00 00 00 07 00 00 00
0x00e0 | 00 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00
0x00f0 | 01 00 00 00 01 00 00 00  00 00 00 00 88 13 00 00
0x0100 | 08 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0110 | 01 00 00 00 7d 00 00 00  1c 00 00 00 0a 00 00 00
0x0120 | 00 00 00 00 0a 00 00 00  f6 ff ff ff 0a 00 00 00
0x0130 | 01 00 00 00 40 1f 00 00  64 00 00 00 00 00 00 00
0x0140 | 80 00 00 00 00 00 00 00  1c 00 00 00 0a 00 00 00
0x0150 | dc 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0160 | 00 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0170 | 50 02 00 00 b4 02 00 00  9d 02 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 00 87 00 00 00  00 00 00 00 00 00 00 00
0x01a0 | e9 00 00 00 ac 0d 00 00  64 00 00 00 3c 00 00 00
0x01b0 | ce ff ff ff 00 00 00 00  00 00 00 00 0f 00 00 00
0x01c0 | 3f 00 00 00 00 00 00 00

current iso                     : 100
current shutter speed           : 1/125
camera max shutter speed        : 1/8000
current aperture                : 2.8
lens max aperture               : 22.0
lens min aperture               : 2.8
set shutter speed               : 1/2000
set aperture                    : 2.8
fixed iso                       : 0
auto iso                        : 100-204800
jpeg quality                    : 2
jpeg resolution                 : 36M
jpeg image tone                 : Natural
jpeg saturation                 : 3
jpeg contrast                   : 4
jpeg sharpness                  : 6
jpeg hue                        : 8
zoom                            : 35.00 mm
focus                           : 0
color space                     : sRGB
image format                    : RAW
raw format                      : DNG
light meter flags               : 128
ec                              : 0.00
custom ev steps                 : 1/3
custom sensitivity steps        : 1
exposure mode                   : 4 (NONE)
user mode flag                  : 0
ae metering mode                : Multi
af mode                         : AF.C
af point select                 : Select
selected af point               : 16384
focused af point                : 0
drive mode                      : Single
auto bracket mode               : on
auto bracket picture count      : 3
auto bracket ev                 : 1.00
shake reduction                 : off
white balance mode              : Auto
white balance adjust            : 0
flash mode                      : Manual
flash exposure compensation     : 0.00
manual mode ev                  : 0.00
lens                            : smc PENTAX-DA 35mm F2.8 Macro Limited
battery                         : 5.92V 6.92V 0.00V 0.00V

@Knubbel
Copy link

Knubbel commented Jul 8, 2016

Then I triggered it using the same command I used last time.
It did some flickjering three times and then fired three times.
None of the images were saved to sd card.
After firing three times the neverending output in the commandline window started again.


pktriggercord-cli.exe --debug --file_format dng -o test2.dng

Debug messaging is now enabled.
pktriggercord-cli.exe 0.84.01
model (null)
device (null)
[C]     plsr_init()
driveNum:24
        Checking drive:  C
        Checking drive:  D
        Checking drive:  E
        Checking drive:  F Generic  STORAGE DEVICE
        Checking drive:  G Generic  STORAGE DEVICE
        Checking drive:  H Generic  STORAGE DEVICE
        Checking drive:  I RICOHIMG DSC_K-1
        Found camera RICOHIMG DSC_K-1
before connect
[C]     pslr_connect()
[C]             ipslr_status()
[C]                     command(fd=30, 0, 1, 0)
[C]                     get_result(0x30)
[R]                              => [1C 00 00 00]
[C]                     read_result(0x30, size=28)
[R]                              => [01 00 00 00  00 00 00 00  00 01 00 01  00 00 00 00
                                     00 00 00 00  00 00 00 00  00 00 00 00]
[C]             ipslr_set_mode(0x1)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1})
[C]                     command(fd=30, 0, 0, 4)
[C]                     get_status(0x30)
[C]             ipslr_status()
[C]                     command(fd=30, 0, 1, 0)
[C]                     get_result(0x30)
[R]                              => [1C 00 00 00]
[C]                     read_result(0x30, size=28)
[R]                              => [02 00 00 00  00 00 00 00  10 02 00 01  00 00 00 00
                                     00 00 00 00  00 00 00 00  00 00 00 00]
[C]             ipslr_identify()
[C]                     command(fd=30, 0, 4, 0)
[C]                     get_result(0x30)
[R]                              => [08 00 00 00]
[C]                     read_result(0x30, size=8)
[R]                              => [92 30 01 00  32 02 00 00]
        id of the camera: 13092
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  10 02 00 01  00 00 00 00
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
0x0000 | 02 00 00 00 00 00 00 00  10 02 00 01 00 00 00 00
0x0010 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0020 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0030 | 00 01 00 00 01 00 00 00  d0 07 00 00 0e 00 00 00
0x0040 | 0a 00 00 00 00 00 00 00  0a 00 00 00 01 00 00 00
0x0050 | 0a 00 00 00 0a 00 00 00  03 00 00 00 00 00 00 00
0x0060 | 00 00 00 00 0c 00 00 00  00 00 00 00 64 00 00 00
0x0070 | 00 20 03 00 00 00 00 00  07 00 00 00 07 00 00 00
0x0080 | 01 00 00 00 00 00 00 00  01 00 00 00 01 00 00 00
0x0090 | 00 00 00 00 03 00 00 00  06 00 00 00 04 00 00 00
0x00a0 | 00 00 00 00 01 00 00 00  01 00 00 00 01 00 00 00
0x00b0 | 00 00 00 00 05 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  00 00 00 00 07 00 00 00
0x00e0 | 00 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00
0x00f0 | 01 00 00 00 01 00 00 00  00 00 00 00 88 13 00 00
0x0100 | 08 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0110 | 01 00 00 00 d0 07 00 00  0e 00 00 00 0a 00 00 00
0x0120 | 00 00 00 00 0a 00 00 00  00 00 00 00 0a 00 00 00
0x0130 | 00 00 00 00 00 00 00 00  00 19 00 00 00 00 00 00
0x0140 | 00 00 00 00 00 00 00 00  00 00 00 00 0a 00 00 00
0x0150 | 00 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0160 | 50 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0170 | 50 02 00 00 b1 02 00 00  9b 02 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 00 87 00 00 00  00 00 00 00 00 00 00 00
0x01a0 | e9 00 00 00 ac 0d 00 00  64 00 00 00 3c 00 00 00
0x01b0 | ce ff ff ff 00 00 00 00  00 00 00 00 0f 00 00 00
0x01c0 | 3f 00 00 00 00 00 00 00
        init bufmask=0x0
[C]             ipslr_cmd_00_09(0x2)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x2})
[C]                     command(fd=30, 0, 9, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  00 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[008] last 10h  16 new 00h   0
                buf[00B] last 01h   1 new 02h   2
                buf[00F] last 00h   0 new 80h 128
                buf[03C] last 0Eh  14 new 1Ch  28
                buf[064] last 0Ch  12 new 00h   0
                buf[118] last 0Eh  14 new 1Ch  28
                buf[130] last 00h   0 new 01h   1
                buf[134] last 00h   0 new 40h  64
                buf[135] last 00h   0 new 1Fh  31
                buf[148] last 00h   0 new 1Ch  28
                buf[150] last 00h   0 new DCh 220
                buf[160] last 50h  80 new 00h   0
                buf[178] last 9Bh 155 new 9Ah 154
---------------------------
[C]             ipslr_cmd_10_0a(0x1)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1})
[C]                     command(fd=30, 10, a, 4)
[C]                     get_status(0x30)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  00 00 00 80
                                     00 00 00 00  03 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[014] last 00h   0 new 03h   3
---------------------------
[C]     pslr_camera_name()
pktriggercord-cli.exe: K-1 Connected...
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[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  00 00 00 00 ... (424 bytes more)]
                buf[00C] last 00h   0 new 01h   1
---------------------------
[C]     pslr_set_image_format(1)
[C]             ipslr_handle_command_x18(0x12, 2)
[C]             ipslr_cmd_00_09(0x1)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1})
[C]                     command(fd=30, 0, 9, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1, 0x1})
[C]                     command(fd=30, 18, 12, 8)
[C]                     get_status(0x30)
[C]             ipslr_cmd_00_09(0x2)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x2})
[C]                     command(fd=30, 0, 9, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[C]     pslr_set_raw_format(1)
[C]             ipslr_handle_command_x18(0x1f, 2)
[C]             ipslr_cmd_00_09(0x1)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1})
[C]                     command(fd=30, 0, 9, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1, 0x1})
[C]                     command(fd=30, 18, 1f, 8)
[C]                     get_status(0x30)
[C]             ipslr_cmd_00_09(0x2)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x2})
[C]                     command(fd=30, 0, 9, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[014] last 03h   3 new 00h   0
---------------------------
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
cont: 0
not bulb
[C]     pslr_shutter()
[C]             ipslr_press_shutter(fullpress = true)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                before: mask=0x0
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x2})
[C]                     command(fd=30, 10, 5, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
                shutter result code: 0x0
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[008] last 00h   0 new 14h  20
                buf[014] last 00h   0 new 02h   2
                buf[064] last 00h   0 new 0Dh  13
                buf[0E8] last 00h   0 new 01h   1
                buf[174] last B1h 177 new AFh 175
                buf[178] last 9Ah 154 new 98h 152
---------------------------
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[066] last 00h   0 new A0h 160
---------------------------
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[0E8] last 01h   1 new 02h   2
---------------------------
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[0E8] last 02h   2 new 00h   0
---------------------------
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[066] last A0h 160 new 00h   0
---------------------------
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[008] last 14h  20 new 04h   4
                buf[064] last 0Dh  13 new 09h   9
---------------------------
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[008] last 04h   4 new 00h   0
                buf[064] last 09h   9 new 00h   0
---------------------------
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)

@asalamon74
Copy link
Owner

@Knubbel Sorry for the slow response. The program correctly recognizes the bracketing mode. Could you please add --frames 3 to the last command? Without that the camera only takes one picture even if the bracketing mode is set.

pktriggercord-cli.exe --debug --file_format dng --frames 3 -o test2.dng

@Knubbel
Copy link

Knubbel commented Jul 17, 2016

Hi.
The camara did shoot 3 images even last time. Now I used your command and it shot 3 times 3 shots, 9 in total. But to be clear here: I already set the camera to 3 shot bracketing mode before pluggin in the USB cable. So that could be the cause.

It is worth mentioning that not a single of the 9 shots is saved on my HDD, it just creates a single zero Byte file named "test3.dng-0000.dng"

And again I had to cancel the command line window as it continued neverendingly.

Here is the output:

pktriggercord-cli.exe --debug --file_format dng --frames 3 -o test3.dng
Debug messaging is now enabled.
pktriggercord-cli.exe 0.84.01
model (null)
device (null)
[C]     plsr_init()
driveNum:24
        Checking drive:  C
        Checking drive:  D
        Checking drive:  E
        Checking drive:  F Generic  STORAGE DEVICE
        Checking drive:  G Generic  STORAGE DEVICE
        Checking drive:  H Generic  STORAGE DEVICE
        Checking drive:  I RICOHIMG DSC_K-1
        Found camera RICOHIMG DSC_K-1
before connect
[C]     pslr_connect()
[C]             ipslr_status()
[C]                     command(fd=30, 0, 1, 0)
[C]                     get_result(0x30)
[R]                              => [1C 00 00 00]
[C]                     read_result(0x30, size=28)
[R]                              => [01 00 00 00  00 00 00 00  00 01 00 01  00 00 00 00
                                     00 00 00 00  00 00 00 00  00 00 00 00]
[C]             ipslr_set_mode(0x1)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1})
[C]                     command(fd=30, 0, 0, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[C]             ipslr_status()
[C]                     command(fd=30, 0, 1, 0)
[C]                     get_result(0x30)
[R]                              => [1C 00 00 00]
[C]                     read_result(0x30, size=28)
[R]                              => [02 00 00 00  00 00 00 00  10 02 00 01  00 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00]
[C]             ipslr_identify()
[C]                     command(fd=30, 0, 4, 0)
[C]                     get_result(0x30)
[R]                              => [08 00 00 00]
[C]                     read_result(0x30, size=8)
[R]                              => [92 30 01 00  32 02 00 00]
        id of the camera: 13092
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  10 02 00 01  00 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
0x0000 | 02 00 00 00 00 00 00 00  10 02 00 01 00 00 00 80
0x0010 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0020 | 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0030 | 00 01 00 00 01 00 00 00  20 03 00 00 2d 00 00 00
0x0040 | 0a 00 00 00 00 00 00 00  0a 00 00 00 01 00 00 00
0x0050 | 0a 00 00 00 0a 00 00 00  03 00 00 00 00 00 00 00
0x0060 | 00 00 00 00 0c 00 00 00  00 00 00 00 64 00 00 00
0x0070 | 00 20 03 00 00 00 00 00  07 00 00 00 07 00 00 00
0x0080 | 00 00 00 00 00 00 00 00  01 00 00 00 01 00 00 00
0x0090 | 00 00 00 00 03 00 00 00  06 00 00 00 04 00 00 00
0x00a0 | 00 00 00 00 01 00 00 00  01 00 00 00 01 00 00 00
0x00b0 | 00 00 00 00 05 00 00 00  00 00 00 00 00 00 00 00
0x00c0 | 01 00 00 00 01 00 00 00  00 40 00 00 00 00 00 00
0x00d0 | 00 00 00 00 00 00 00 00  00 00 00 00 07 00 00 00
0x00e0 | 00 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00
0x00f0 | 01 00 00 00 01 00 00 00  00 00 00 00 88 13 00 00
0x0100 | 08 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
0x0110 | 01 00 00 00 50 00 00 00  2d 00 00 00 0a 00 00 00
0x0120 | 00 00 00 00 0a 00 00 00  f6 ff ff ff 0a 00 00 00
0x0130 | 01 00 00 00 40 1f 00 00  c8 00 00 00 00 00 00 00
0x0140 | 80 00 00 00 00 00 00 00  2d 00 00 00 0a 00 00 00
0x0150 | dc 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0160 | 00 00 00 00 0a 00 00 00  00 00 00 00 00 00 00 00
0x0170 | 40 02 00 00 98 02 00 00  81 02 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 00 a8 00 00 00  00 00 00 00 00 00 00 00
0x01a0 | 3b 00 00 00 98 3a 00 00  64 00 00 00 5a 00 00 00
0x01b0 | 14 00 00 00 00 00 00 00  00 00 00 00 0f 00 00 00
0x01c0 | 3f 00 00 00 00 00 00 00
        init bufmask=0x0
[C]             ipslr_cmd_00_09(0x2)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x2})
[C]                     command(fd=30, 0, 9, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  00 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[008] last 10h  16 new 00h   0
                buf[00B] last 01h   1 new 02h   2
                buf[064] last 0Ch  12 new 00h   0
---------------------------
[C]             ipslr_cmd_10_0a(0x1)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1})
[C]                     command(fd=30, 10, a, 4)
[C]                     get_status(0x30)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  00 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
[C]     pslr_camera_name()
pktriggercord-cli.exe: K-1 Connected...
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[00C] last 00h   0 new 01h   1
---------------------------
[C]     pslr_set_image_format(1)
[C]             ipslr_handle_command_x18(0x12, 2)
[C]             ipslr_cmd_00_09(0x1)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1})
[C]                     command(fd=30, 0, 9, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1, 0x1})
[C]                     command(fd=30, 18, 12, 8)
[C]                     get_status(0x30)
[C]             ipslr_cmd_00_09(0x2)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x2})
[C]                     command(fd=30, 0, 9, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[C]     pslr_set_raw_format(1)
[C]             ipslr_handle_command_x18(0x1f, 2)
[C]             ipslr_cmd_00_09(0x1)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1})
[C]                     command(fd=30, 0, 9, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x1, 0x1})
[C]                     command(fd=30, 18, 1f, 8)
[C]                     get_status(0x30)
[C]             ipslr_cmd_00_09(0x2)
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x2})
[C]                     command(fd=30, 0, 9, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[080] last 00h   0 new 01h   1
---------------------------
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
cont: 0
Taking picture 1/3
not bulb
[C]     pslr_shutter()
[C]             ipslr_press_shutter(fullpress = true)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                before: mask=0x0
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x2})
[C]                     command(fd=30, 10, 5, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
                shutter result code: 0x0
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[008] last 00h   0 new 14h  20
                buf[014] last 00h   0 new 02h   2
                buf[064] last 00h   0 new 0Dh  13
                buf[0E8] last 00h   0 new 01h   1
                buf[174] last 98h 152 new 94h 148
                buf[178] last 81h 129 new 7Eh 126
---------------------------
Taking picture 2/3
not bulb
[C]     pslr_shutter()
[C]             ipslr_press_shutter(fullpress = true)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                before: mask=0x0
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x2})
[C]                     command(fd=30, 10, 5, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
                shutter result code: 0x0
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[008] last 14h  20 new 04h   4
                buf[064] last 0Dh  13 new 09h   9
                buf[178] last 7Eh 126 new 7Fh 127
---------------------------
Taking picture 3/3
not bulb
[C]     pslr_shutter()
[C]             ipslr_press_shutter(fullpress = true)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                before: mask=0x0
[C]                     _ipslr_write_args(cmd_2 = 0x0, {0x2})
[C]                     command(fd=30, 10, 5, 4)
[C]                     get_status(0x30)
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
[R]                              => ERROR: 0x01
                shutter result code: 0x0
[C]     pslr_get_status()
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[066] last 00h   0 new A0h 160
---------------------------
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[008] last 04h   4 new 14h  20
                buf[064] last 09h   9 new 0Dh  13
---------------------------
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[0E8] last 01h   1 new 02h   2
---------------------------
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[0E8] last 02h   2 new 00h   0
---------------------------
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[066] last A0h 160 new 00h   0
---------------------------
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[064] last 0Dh  13 new 0Ch  12
---------------------------
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  14 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  04 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[008] last 14h  20 new 04h   4
                buf[064] last 0Ch  12 new 00h   0
---------------------------
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
                buf[008] last 04h   4 new 00h   0
---------------------------
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)
[R]                              => [C8 01 00 00]
        read 456 bytes
        expected_bufsize: 456
[C]                     read_result(0x30, size=456)
[R]                              => [02 00 00 00  00 00 00 00  00 02 00 02  01 00 00 80
                                     00 00 00 00  02 00 00 00  00 00 00 00  00 00 00 00 ... (424 bytes more)]
        p->status.bufmask = 0
        No buffer data (0)
get buffer 0 type 1 res 0
[C]     pslr_buffer_open(#0, type=1, res=0)
[C]             ipslr_status_full()
[C]                     command(fd=30, 0, 8, 0)
[C]                     get_result(0x30)

@horemachet
Copy link
Author

Hi,

I did do the test on Linux.
I left the camera settings to default. Means no bracketing settings configured on the camera.

At the beginning the display is off.

Giving
./pktriggercord-cli --debug --file_format dng --frames 3 -o test2.dng

the display flashes three times. With the third flash it does one shot.
One file with size 0 is stored to the disk: test2.dng-0000.dng

I did do the test with and without mounting the sdcards. Makes no difference.

Hope this helps

Karsten

@asalamon74
Copy link
Owner

@Knubbel It seems to me Pentax K-1 handles bracketing a different way. On my K-x (after I set bracketing mode) I have to send 3 shutter command to take the three pictures. That's why I suggested --frames 3. K-1 tries to take all the 3 pictures after the first command.

Unfortunately I cannot find the bufmask (the field that shows the status of the camera buffers). And downloading the first buffer saves nothing (it opens the file and waits forever).

My guess: After the shutter command the camera does not save the image into the buffer. I don't know the reason. Maybe someone later will solve it and send a patch.

@asalamon74
Copy link
Owner

@horemachet Well at least it shows that it works the same for Linux and Windows, so it's not an OS-specific issue.

@horemachet
Copy link
Author

Any news on this?

@asalamon74
Copy link
Owner

@horemachet No

@SM3NSE
Copy link

SM3NSE commented Apr 9, 2018

nope, that failed. Cant set user mode. Green button fails. i can trigger camera, but no thumbnails, and it enters bulb mode.
Program crashes after a while if camera is turned off.
pktriggercord2
pktriggercord1

@asalamon74
Copy link
Owner

@SM3NSE

Green button is not working for newer cameras.

User mode selector is a read-only field, it is not possible to change it.

The 30s shutter speed looks quite bad. What if you first turn on the camera and connect only to the computer later, it solved the same program for an other camera model.

If it's not working, please execute

pktriggercord --debug

and attach the output here.

@SM3NSE
Copy link

SM3NSE commented Apr 10, 2018

Nope, still doesn't work properly.
MobaXterm_Cmd_20180410_122158.txt
pktriggercord3

@SM3NSE
Copy link

SM3NSE commented Apr 11, 2018

Hi.
Just realized i wasn't running the latest FW in my K-1. Upgraded from 1.40 to 1.43
Unfortunately, no improved behaviour in pktriggercord...

@asalamon74
Copy link
Owner

@SM3NSE I've fixed a bug. Here is a new version:
pktriggercord-0.84.05-win.zip

@SM3NSE
Copy link

SM3NSE commented Apr 12, 2018

Can't see any difference.
2018-04-12 11_44_10-greenshot
MobaXterm_Cmd_20180412_114456.txt

@asalamon74
Copy link
Owner

@SM3NSE I think I've found the problem:
pktriggercord-0.84.05-win.zip

@SM3NSE
Copy link

SM3NSE commented Apr 12, 2018

"After you take the first image the program should show a thumbnail and a bigger preview."
It shows a thumbnail but no bigger preview.
"If you try a second image, it should show two thumbails..."
It overwrites the first thumbnail.
"Please also try to save the image."
When saving the program stops responding. (line 12396)
MobaXterm_Cmd_20180412_220754.txt

@asalamon74
Copy link
Owner

@SM3NSE I've fixed a few bugs. Here is the updated version:
pktriggercord-0.84.05-win.zip

@SM3NSE
Copy link

SM3NSE commented May 4, 2018

Bulb wait thing is now gone.

"After you take the first image the program should show a thumbnail and a bigger preview."
It shows a thumbnail and bigger preview now.
"If you try a second image, it should show two thumbails..."
Now only thumbnail/preview from first shot is shown. Saved image is last exposure though.
"Please also try to save the image."
Saving works, bur files don't get suffix according to file format selected.

Focus button doesn't work.
MobaXterm_Cmd_20180504_114034.txt

@ti59
Copy link

ti59 commented May 16, 2018

I own a K-1 as well and would like to help. Just downloaded the latest zip from this thread and tried it under windows.
Good news: It recognizes the camera right away and even the Sigma 80/1.4 I´ve put on it.
With the GUI I´m actually able to crash the camera firmware (1.43, yes, latest version) up to the point that I have to take out the battery to restart it.(!)
What I have done to achieve that: Connect the camera and push "Take picture".:)
With the CLI I can take shots and it focuses and uses aperture and time settings right, but doesn´t care for the ISO at all.
Then I tried pktriggercord-cli --servermode and expected it to take commands on port 8888.
But all I get is an error message:

pktriggercord-cli: unknown option -- servermode
pktriggercord-cli: unknown option -- servermode

(Yes, two times)

What else can I do?

@SM3NSE
Copy link

SM3NSE commented May 17, 2018

@ti59
Copy link

ti59 commented May 17, 2018

Just downloaded it. Looks pretty good.
No support for APS-C cameras though as I understand it.
I don´t have the camera with me at the moment.
Will try the examples tomorrow or over the long weekend.

@asalamon74
Copy link
Owner

@SM3NSE

I've modified the code, now it adds the extension automatically.

Focus: The log shows no error, probably the camera just ignores the command.

Second image not shown: Can you send the debug log for the following process (GUI): Take the first shot, Take the second shot. Do not change anything in between, do not delete the image...

pktriggercord-0.84.05-win.zip

@asalamon74
Copy link
Owner

@ti59

I've fixed the double unknown option bug.

Servermode is not supported in Windows. I've modified the program, now it will print out an error message instead of the general unknown option message.

Yes, sometimes it's possible to freeze the camera, removing the battery solves the problem.

As you see, K-1 is not fully working, if you send debug log (using the latest zip I've just attached) I'll check it.

@asalamon74
Copy link
Owner

@SM3NSE @ti59 The API looks promising, I'll check it. I think, this issue is not the best place to discuss it.

@ti59
Copy link

ti59 commented May 19, 2018

@ ASALOMAN:

I´ve got myself a log by invoking pktriggercord --debug 2>status.log and pushing "Take picture"
twice.

The result:
status.log

That´s okay for you? Or do you want something else?

@asalamon74
Copy link
Owner

@ti59 Could you see the thumbnail or the preview?

The log looks quite strange. After taking the second image the buffer mask only shows 1 image. What if you first turn on the camera and connect it to the PC only later. Does it help?

K-70 has a similar limitation, I've created a workaround for that model, but it's not too good, because you have to delete the image before you take the next one. I'll turn on the same for K-1 if changing the connection order does not help.

@ti59
Copy link

ti59 commented May 25, 2018 via email

@ti59
Copy link

ti59 commented May 26, 2018

OK, as requested by mail I´ve switched on the camera first and then connected USB. The result ist different.
I get the first shot as a preview. Nothing on the harddisc though. After that the content of the window doesn´t change anymore.
That means the second to fourth shot are not shown in the window.
The log:
status.log

@asalamon74
Copy link
Owner

@ti59 It seems to me if you turn on the camera first, K-1 works quite like K-70. I'm working on some workaround to better support K-70, hopefully it will also work for K-1. Unfortunately it will be quite limited, since we need to delete the first image before taking the second...

If you'd like to use it for focus stacking I suggest to use the command line version, it's much better for that. It's quite easy to create timelapse videos. Programmatically changing the focus is not possible (at least no one found the command yet). I'm using a macro focusing rail instead. It is not automatic (although you can buy rails which can be connected to the computer) but gives good result.

@ti59
Copy link

ti59 commented May 27, 2018

If one could use the 33 focus areas and change them programmatically that would be sufficient.

Also of course the camera can change focus obviously. Could be an interesting quest to dig into the firmware to make it happen.:)

@asalamon74
Copy link
Owner

@ti59 Here is our current knowledge about the protocol: http://pktriggercord.melda.info/pentax_scsi_protocol.html

There is no command to focus on a specific distance (that would be the best for focus stacking) but command [18 07] can be used to specify the selected AF point. It works for 11 AF-point cameras using the GUI. You click on an AF point than click on focus and the camera will focus on that point. Without live preview it's not too useful to tell you the truth. Command line version does not yet support it, only af selection mode can be selected using that version. It would not be too difficult to add support for this.

Right now we send a 32-bit number, 11 bit specifies the selected AF points. K-1 has 33 AF points, I think you already see the problem there. :)

If you are using pktriggercord-cli --status_hex after manually selecting different AF points on the camera, you might find the field which stores the selected AF point information, and you might be able to decode it.

@ti59
Copy link

ti59 commented May 31, 2018

I´ve taken 5 samples that I named afp0,afp1, afp2,afp3, afp33.

They were taken with the af point manually selected upper left, then the 3 next points, then the lower right point.

afp0.log
afp1.log
afp2.log
afp3.log
afp33.log

@asalamon74
Copy link
Owner

@ti59

Status buffer contains the selected_af_point, 5 different value for the 5 points you have selected. I've modified to program to print out the numerical value of the selected af point for K-1 if you use --status. So far it looks a simple bit vector so I don't know how does it represent 33 different values.

I've also modified the program. It was possible to specify the af selection mode using --select_af_point Possible values were: Auto-5, Auto-11, Select... From now on it also accepts numerical values. It will switch to Select mode and tries to select the AF point indicated by the numerical values. You might try it by specifying the values you read using --select. I'm not sure if it works. It works for my K-x (It is not possible to read the selected af point using --select but camera shows the selected af point), but it does not work for my K-70 (It is possible to read the selected af point using --select but I cannot change it).

pktriggercord-0.84.05-win.zip

@ghost
Copy link

ghost commented Apr 10, 2019

I can't see thumbnail or the preview . (shooting and focusing on k-1 no broblem)

pktriggercord run on terminal, and click Focus or take picture.

$ pktriggercord

pslr.c:954:ipslr_next_segment(p) failed: 3
Could not get buffer data

I use mint 19, and installed use apt install pktriggercord bia ppa:dhor/myway.

@asalamon74
Copy link
Owner

@LibertSin What version of the program do you use? If you want to test K-1 support I suggest using the latest version (0.85.00).

@SM3NSE
Copy link

SM3NSE commented Sep 16, 2019

Hello. I'm back.
Is there anyone working on this anymore?

@asalamon74
Copy link
Owner

@SM3NSE Not much progress lately. In the meantime 0.85.00 was released, so it's possible to test that version, no need for downloading special devel versions.

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

No branches or pull requests

6 participants