Skip to content

Instantly share code, notes, and snippets.

@twang2218
Last active January 21, 2016 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save twang2218/c47014d3b319aad31e7e to your computer and use it in GitHub Desktop.
Save twang2218/c47014d3b319aad31e7e to your computer and use it in GitHub Desktop.
Test for command group 06
Debug messaging is now enabled.
./pktriggercord-cli 0.82.05
model (null)
device (null)
[C] plsr_init()
Checking drive: sg0 ATA
VBOX HARDDISK
Checking drive: sg1 RICOHIMG
DSC_K-3
Found camera RICOHIMG
DSC_K-3
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] <<< [C0 2F 01 00 F6 01 00 00]
[R] => [C0 2F 01 00 F6 01 00 00]
id of the camera: 12fc0
[C] ipslr_status_full()
[C] command(fd=3, 0, 8, 0)
[S] >>> [F0 24 00 08 00 00 00 00]
[C] get_result(0x3)
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [C4 01 00 00 00 00 01 00]
[R] => [C4 01 00 00]
read 452 bytes
expected_bufsize: 452
[C] read_result(0x3, size=452)
[S] >>> [F0 49 00 00 C4 01 00 00]
[S] <<< [02 00 00 00 00 00 00 00 10 02 00 01 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 ... (420 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=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 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] <<< [C4 01 00 00 00 00 01 00]
[R] => [C4 01 00 00]
read 452 bytes
expected_bufsize: 452
[C] read_result(0x3, size=452)
[S] >>> [F0 49 00 00 C4 01 00 00]
[S] <<< [02 00 00 00 00 00 00 00 00 02 00 02 00 00 00 80
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 80
00 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 ... (420 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
---------------------------
[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] <<< [C4 01 00 00 00 00 01 00]
[R] => [C4 01 00 00]
read 452 bytes
expected_bufsize: 452
[C] read_result(0x3, size=452)
[S] >>> [F0 49 00 00 C4 01 00 00]
[S] <<< [02 00 00 00 00 00 00 00 00 02 00 02 01 00 00 80
00 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00]
[R] => [02 00 00 00 00 00 00 00 00 02 00 02 01 00 00 80
00 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 ... (420 bytes more)]
buf[00C] last 00h 0 new 01h 1
---------------------------
[C] pslr_camera_name()
[C] plsr_get_transfer_status()
[C] generic_command([06 04])
[C] scsi_send_command(command: [06 04])
[S] >>> [F0 24 06 04 00 00 00 00]
[C] scsi_get_status()
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [04 00 00 00 00 00 01 00]
[C] scsi_read_result(0x3, size=4)
[S] >>> [F0 49 00 00 04 00 00 00]
[S] <<< [02 00 00 00]
[R] => [02 00 00 00]
[C] pslr_upload(address = 0x20000B0, length = 8)
[C] generic_command([06 01], (20000b0, 8))
[C] send_argument(20000b0, 8)
[S] >>> [F0 4F 00 00 08 00 00 00]
[S] >>> [B0 00 00 02 08 00 00 00]
[C] scsi_send_command(command: [06 01])
[S] >>> [F0 24 06 01 02 00 00 00]
[C] scsi_get_status()
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [04 00 00 00 00 00 01 00]
[C] generic_command([06 03])
[C] scsi_send_command(command: [06 03])
[S] >>> [F0 24 06 03 00 00 00 00]
[S] >>> [68 65 6C 6C 6F 68 61 0A]
[C] scsi_get_status()
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [04 00 00 00 00 00 01 00]
[C] plsr_get_transfer_status()
[C] generic_command([06 04])
[C] scsi_send_command(command: [06 04])
[S] >>> [F0 24 06 04 00 00 00 00]
[C] scsi_get_status()
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [04 00 00 00 00 00 01 00]
[C] scsi_read_result(0x3, size=4)
[S] >>> [F0 49 00 00 04 00 00 00]
[S] <<< [02 00 00 00]
[R] => [02 00 00 00]
[C] pslr_download(address = 0x20000B0, length = 8)
[C] generic_command([06 00], (20000b0, 8))
[C] send_argument(20000b0, 8)
[S] >>> [F0 4F 00 00 08 00 00 00]
[S] >>> [B0 00 00 02 08 00 00 00]
[C] scsi_send_command(command: [06 00])
[S] >>> [F0 24 06 00 02 00 00 00]
[C] scsi_get_status()
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [04 00 00 00 00 00 01 00]
[C] generic_command([06 02])
[C] scsi_send_command(command: [06 02])
[S] >>> [F0 24 06 02 00 00 00 00]
[S] <<< [68 65 6C 6C 6F 68 61 0A]
[C] scsi_get_status()
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [04 00 00 00 00 00 01 00]
[C] plsr_get_transfer_status()
[C] generic_command([06 04])
[C] scsi_send_command(command: [06 04])
[S] >>> [F0 24 06 04 00 00 00 00]
[C] scsi_get_status()
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [04 00 00 00 00 00 01 00]
[C] scsi_read_result(0x3, size=4)
[S] >>> [F0 49 00 00 04 00 00 00]
[S] <<< [02 00 00 00]
[R] => [02 00 00 00]
[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=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_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=3, 0, 0, 4)
[S] >>> [F0 24 00 00 04 00 00 00]
[C] get_status(0x3)
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 01]
[R] => ERROR: 0x01
[S] >>> [F0 26 00 00 00 00 00 00]
[S] <<< [00 00 00 00 00 00 00 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] <<< [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] pslr_shutdown()
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 | 0b 00 00 00 00 00 00 00 09 00 00 00 00 00 00 00
0x0030 | 00 01 00 00 01 00 00 00 64 00 00 00 50 00 00 00
0x0040 | 0a 00 00 00 00 00 00 00 0a 00 00 00 01 00 00 00
0x0050 | 14 00 00 00 0a 00 00 00 03 00 00 00 00 00 00 00
0x0060 | 00 00 00 00 00 00 00 00 7d 00 00 00 64 00 00 00
0x0070 | 00 64 00 00 01 00 00 00 07 00 00 00 07 00 00 00
0x0080 | 01 00 00 00 03 00 00 00 00 00 00 00 01 00 00 00
0x0090 | 00 00 00 00 04 00 00 00 04 00 00 00 04 00 00 00
0x00a0 | 01 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 | 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00
0x00d0 | 09 00 00 00 00 00 00 00 07 00 00 00 01 00 00 00
0x00e0 | 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00
0x00f0 | 01 00 00 00 00 00 00 00 70 17 00 00 04 00 00 00
0x0100 | 00 00 00 00 01 00 00 00 00 00 00 00 0f 00 00 00
0x0110 | 01 00 00 00 50 00 00 00 0a 00 00 00 00 00 00 00
0x0120 | 0a 00 00 00 ec ff ff ff 0a 00 00 00 01 00 00 00
0x0130 | 40 1f 00 00 7d 00 00 00 00 00 00 00 10 00 00 00
0x0140 | 18 00 00 00 1c 00 00 00 0a 00 00 00 dc 00 00 00
0x0150 | 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0160 | 0a 00 00 00 00 00 00 00 00 00 00 00 51 02 00 00
0x0170 | c6 02 00 00 a7 02 00 00 00 00 00 00 00 00 00 00
0x0180 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0190 | 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01a0 | 00 00 00 00 64 00 00 00 28 00 00 00 ce ff ff ff
0x01b0 | 00 00 00 00 06 00 00 00 0f 00 00 00 3f 00 00 00
0x01c0 | 00 00 00 00
./pktriggercord-cli: K-3 Connected...
mode = 1, address = 0x020000b0, length = 0x00010000, output_file = 'debug/test.bin'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment