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

Plans to support KP in the future? #63

Open
mitsugu opened this issue Sep 2, 2020 · 5 comments
Open

Plans to support KP in the future? #63

mitsugu opened this issue Sep 2, 2020 · 5 comments

Comments

@mitsugu
Copy link

mitsugu commented Sep 2, 2020

Hi, All.
I can't find KP in the supported cameras listed in README.md. Will you support it in the future?
I'm having trouble because there is no tethering software that works on Ubuntu.

@asalamon74
Copy link
Owner

Basic support has been added, but it's not really tested yet. Someone reported that it was possible to take pictures, but bulb mode was not working.

If you want to test it, I suggest to compile the program from the latest source, and start with the command line interface.

@mitsugu
Copy link
Author

mitsugu commented Sep 5, 2020

Thank you. I will try.

@FAb7D
Copy link

FAb7D commented Aug 13, 2022

KP don't work. Debug with USB MSC:
pktriggercord-cli --debug Debug messaging is now enabled. command line: pktriggercord-cli --debug pktriggercord-cli 0.85.00 model (null) device (null) [C] plsr_init() Cannot open /sys/class/scsi_generic driveNum:38 Checking drive: loop1 Checking drive: dm-1 Checking drive: nvme0n1 Checking drive: ram2 Checking drive: ram0 Checking drive: loop8 Checking drive: sdb RICOHIMG DSC_KP

`Cannot get drive info of Pentax camera. Please do not forget to install the program using 'make install'
Checking drive:  ram9  
Checking drive:  loop15  
Checking drive:  loop6  
Checking drive:  ram14  
Checking drive:  ram7  
Checking drive:  loop13  
Checking drive:  loop4  
Checking drive:  ram12  
Checking drive:  ram5  
Checking drive:  loop11  
Checking drive:  loop2  
Checking drive:  dm-2  
Checking drive:  ram10  
Checking drive:  ram3  
Checking drive:  loop0  
Checking drive:  dm-0  
Checking drive:  ram1  
Checking drive:  loop9  
Checking drive:  loop7  
Checking drive:  ram15  
Checking drive:  sda ATA `    

ST1000LM049-2GH1

`Checking drive:  ram8  
Checking drive:  loop14  
Checking drive:  loop5  
Checking drive:  ram13  
Checking drive:  ram6  
Checking drive:  loop12  
Checking drive:  loop3  
Checking drive:  ram11  
Checking drive:  ram4  
Checking drive:  loop10  
camera not found`

diff: 0.001489 sleep 1 sec

@asalamon74
Copy link
Owner

Looks like it has no right to read info. Can you try running the program as root?

@FAb7D
Copy link

FAb7D commented Aug 14, 2022

Great! Work as root! Thank you very much! Is there any way to avoid to use root? There isn't a liveview but you can take photo, focusing , change shutter speeds and ISO.
Anyway the debug is the following:
sudo pktriggercord-cli --debug
Debug messaging is now enabled.
command line: pktriggercord-cli --debug pktriggercord-cli 0.85.00 model (null) device (null) [C] plsr_init() Cannot open /sys/class/scsi_generic driveNum:38 Checking drive: loop1 Checking drive: dm-1 Checking drive: nvme0n1 Checking drive: ram2 Checking drive: ram0 Checking drive: loop8 Checking drive: sdb RICOHIMG
DSC_KP

Found camera RICOHIMG

DSC_KP

before connect [C] pslr_connect() [C] ipslr_status() [C] command(fd=0, 0, 1, 0) [S] >>> [F0 24 00 01 00 00 00 00] [C] get_result(0x0) [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(0x0, 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=0, 0, 0, 4) [S] >>> [F0 24 00 00 04 00 00 00] [C] get_status(0x0) [S] >>> [F0 26 00 00 00 00 00 00] [S] <<< [00 00 00 00 00 00 00 01] [R] => ERROR: 0x01 [S] >>> [F0 26 00 00 00 00 00 00] [S] <<< [00 00 00 00 00 00 00 00] [R] => ERROR: 0x00 [C] ipslr_status() [C] command(fd=0, 0, 1, 0) [S] >>> [F0 24 00 01 00 00 00 00] [C] get_result(0x0) [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(0x0, 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 80 00 00 00 00 00 00 00 00 00 00 00 00] [R] => [02 00 00 00 00 00 00 00 10 02 00 01 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00] [C] ipslr_identify() [C] command(fd=0, 0, 4, 0) [S] >>> [F0 24 00 04 00 00 00 00] [C] get_result(0x0) [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(0x0, size=8) [S] >>> [F0 49 00 00 08 00 00 00] [S] <<< [2C 32 01 00 45 02 00 00] [R] => [2C 32 01 00 45 02 00 00] id of the camera: 1322c [C] ipslr_status_full() [C] command(fd=0, 0, 8, 0) [S] >>> [F0 24 00 08 00 00 00 00] [C] get_result(0x0) [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: 0 [C] read_result(0x0, 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 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 01 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... (424 bytes more)]
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=0, 0, 9, 4) [S] >>> [F0 24 00 09 04 00 00 00] [C] get_status(0x0) [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] [R] => ERROR: 0x00 [C] ipslr_status_full() [C] command(fd=0, 0, 8, 0) [S] >>> [F0 24 00 08 00 00 00 00] [C] get_result(0x0) [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: 0
[C] read_result(0x0, size=456) [S] >>> [F0 49 00 00 C8 01 00 00] [S] <<< [02 00 00 00 00 00 00 00 00 02 00 02 00 00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00] [R] => [02 00 00 00 00 00 00 00 00 02 00 02 00 00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 ... (424 bytes more)]
[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=0, 10, a, 4) [S] >>> [F0 24 10 0A 04 00 00 00] [C] get_status(0x0) [S] >>> [F0 26 00 00 00 00 00 00] [S] <<< [00 00 00 00 00 00 00 00] [R] => ERROR: 0x00 [C] ipslr_status_full() [C] command(fd=0, 0, 8, 0) [S] >>> [F0 24 00 08 00 00 00 00] [C] get_result(0x0) [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: 0 [C] read_result(0x0, size=456) [S] >>> [F0 49 00 00 C8 01 00 00] [S] <<< [02 00 00 00 00 00 00 00 00 02 00 02 00 00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00] [R] => [02 00 00 00 00 00 00 00 00 02 00 02 00 00 00 00 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: KP Connected...
[C] pslr_get_status() [C] ipslr_status_full() [C] command(fd=0, 0, 8, 0) [S] >>> [F0 24 00 08 00 00 00 00] [C] get_result(0x0)
[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: 0
[C] read_result(0x0, size=456) [S] >>> [F0 49 00 00 C8 01 00 00] [S] <<< [02 00 00 00 00 00 00 00 00 02 00 02 01 00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00] [R] => [02 00 00 00 00 00 00 00 00 02 00 02 01 00 00 00 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=0, 0, 8, 0) [S] >>> [F0 24 00 08 00 00 00 00] [C] get_result(0x0) [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: 0 [C] read_result(0x0, size=456) [S] >>> [F0 49 00 00 C8 01 00 00] [S] <<< [02 00 00 00 00 00 00 00 00 02 00 02 01 00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00] [R] => [02 00 00 00 00 00 00 00 00 02 00 02 01 00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 ... (424 bytes more)] [C] ipslr_read_dspinfo() [C] command(fd=0, 1, 1, 0) [S] >>> [F0 24 01 01 00 00 00 00] [C] get_result(0x0) [S] >>> [F0 26 00 00 00 00 00 00] [S] <<< [04 00 00 00 00 00 01 00] [R] => [04 00 00 00] [C] ipslr_read_dspinfo() bytes: 4 [C] read_result(0x0, size=4) [S] >>> [F0 49 00 00 04 00 00 00] [S] <<< [06 00 00 01] [R] => [06 00 00 01] Firmware version: 1.00.00.06
json text: { "0x13222": { "fields": [ { "name" : "bulb_mode_press_press", "type": "boolean", "address": "0x178" }, { "name" : "one_push_bracketing", "type": "boolean", "address": "0x17e"}, { "name" : "bulb_timer", "type": "boolean", "address": "0x133"}, { "name" : "bulb_timer_sec", "type": "uint16", "address": "0x134"}, { "name" : "using_aperture_ring", "type": "boolean", "address": "0x18c"}, { "name" : "shake_reduction", "type": "boolean!", "address": "0x07d"}, { "name" : "astrotracer", "type": "boolean", "address": "0x087"}, { "name" : "horizon_correction", "type": "boolean!", "address": "0x080"} ] },

"0x12dfe": { "fields": [ { "name" : "bulb_mode_press_press", "type": "boolean", "value": "false" }, { "name" : "one_push_bracketing", "type": "boolean", "value": "false"}, { "name" : "bulb_timer", "type": "boolean", "value": "false"}, { "name" : "bulb_timer_sec", "type": "uint16", "value": 0 }, { "name" : "using_aperture_ring", "type": "boolean", "address": "0x142"}, { "name" : "shake_reduction", "type": "boolean!", "address": "0x065"}, { "name" : "astrotracer", "type": "boolean", "value": "false"}, { "name" : "astrotracer_timer_sec", "type": "uint16", "value": "0"}, { "name" : "horizon_correction", "type": "boolean", "value": "false"} ] },

"0x12fb6": { "fields": [ { "name" : "bulb_mode_press_press", "type": "boolean", "address": "0x0f2" } ] },

"0x12ef8": { "fields": [ { "name" : "bulb_mode_press_press", "type": "boolean", "address": "0x0f2" } ] },

"0x13092": { "fields": [ { "name" : "bulb_timer", "type": "boolean", "address": "0x131"}, { "name" : "bulb_timer_sec", "type": "uint16", "address": "0x132"} ] },

"0x1309c": { "fields": [ { "name" : "astrotracer", "type": "boolean", "address": "0x1ac"}, { "name" : "astrotracer_timer_sec", "type": "uint16", "address": "0x1ad"} ] },

"0x13240": { "fields": [ { "name" : "bulb_timer", "type": "boolean", "address": "0x131"}, { "name" : "bulb_timer_sec", "type": "uint16", "address": "0x132"} ] } }

JSON: Cannot find camera model [C] pslr_get_status() [C] ipslr_status_full() [C] command(fd=0, 0, 8, 0) [S] >>> [F0 24 00 08 00 00 00 00] [C] get_result(0x0) [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: 0 [C] read_result(0x0, size=456) [S] >>> [F0 49 00 00 C8 01 00 00] [S] <<< [02 00 00 00 00 00 00 00 00 02 00 02 01 00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00] [R] => [02 00 00 00 00 00 00 00 00 02 00 02 01 00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 ... (424 bytes more)]

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 : 24M 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 EV steps custom sensitivity steps : 1 EV steps exposure mode : 0 scene mode : 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 picture counter : 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 buffer mask : 0000000000000000 [C] pslr_disconnect() [C] ipslr_cmd_10_0a(0x0) [C] _ipslr_write_args(cmd_2 = 0x0, {0x0}) [S] >>> [F0 4F 00 00 04 00 00 00] [S] >>> [00 00 00 00] [C] command(fd=0, 10, a, 4) [S] >>> [F0 24 10 0A 04 00 00 00] [C] get_status(0x0) [S] >>> [F0 26 00 00 00 00 00 00] [S] <<< [00 00 00 00 00 00 00 01] [R] => ERROR: 0x01 [S] >>> [F0 26 00 00 00 00 00 00] [S] <<< [00 00 00 00 00 00 00 00] [R] => ERROR: 0x00 [C] ipslr_set_mode(0x0) [C] _ipslr_write_args(cmd_2 = 0x0, {0x0}) [S] >>> [F0 4F 00 00 04 00 00 00] [S] >>> [00 00 00 00] [C] command(fd=0, 0, 0, 4) [S] >>> [F0 24 00 00 04 00 00 00] [C] get_status(0x0) [S] >>> [F0 26 00 00 00 00 00 00] [S] <<< [00 00 00 00 00 00 00 01] [R] => ERROR: 0x01 [S] >>> [F0 26 00 00 00 00 00 00] [S] <<< [00 00 00 00 00 00 00 01] [R] => ERROR: 0x01 [S] >>> [F0 26 00 00 00 00 00 00] [S] <<< [00 00 00 00 00 00 00 01] [R] => ERROR: 0x01 [S] >>> [F0 26 00 00 00 00 00 00] [S] <<< [00 00 00 00 00 00 00 00] [R] => ERROR: 0x00 [C] ipslr_status() [C] command(fd=0, 0, 1, 0) [S] >>> [F0 24 00 01 00 00 00 00] [C] get_result(0x0) [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(0x0, 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 80 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 80 00 00 00 00 00 00 00 00 00 00 00 00] [C] pslr_shutdown()

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

No branches or pull requests

3 participants