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

New Pentax Driver #66

Merged
merged 37 commits into from
Mar 15, 2020
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
399767a
Added Bayer filter support for color cameras
karlrees Nov 3, 2019
57af7c5
Update changelog
karlrees Nov 4, 2019
8a2cd95
Merge branch 'master' of https://github.com/karlrees/indi-3rdparty
karlrees Dec 19, 2019
59f867a
Adding Pentax SDK support
karlrees Jan 8, 2020
27f250d
Merge remote-tracking branch 'upstream/master'
karlrees Jan 8, 2020
40e679c
First stab at Pentax SDK support, more to come...
karlrees Jan 8, 2020
308c07d
Latest iteration
karlrees Jan 9, 2020
db8718c
Initial working version.
karlrees Jan 15, 2020
fb27cbd
Refactoring to prep for pktriggercord.
karlrees Jan 15, 2020
262bfe9
Added shared library wrapper for pktriggercord
karlrees Jan 19, 2020
e7fb4d8
Renamed libpentax to libricohcamerasdk
karlrees Jan 19, 2020
e64d00a
Basic support for MSC mode (to support Bulb capture) via libpktrigger…
karlrees Jan 19, 2020
b26e852
Add missing .so files for libricohcamerasdk.
karlrees Jan 19, 2020
738c7ea
Added README for libpktriggercord
karlrees Jan 19, 2020
8a55199
remove generated files
karlrees Jan 20, 2020
b67858b
Convert pktriggercord capture to fits.
karlrees Jan 20, 2020
bf999d4
Got pktriggercord working.
karlrees Jan 22, 2020
4dbdc6e
updated git ignore to no longer exclude certain dependencies for libmtp
karlrees Jan 22, 2020
0993279
Fix libpktriggercord issue with stack smashing when thousands of loop…
karlrees Jan 24, 2020
235a0e0
Update README.md
karlrees Jan 25, 2020
a5e3e26
Status check before exposure just in case exposure mode has changed
karlrees Jan 25, 2020
8642406
Merge branch 'master' of https://github.com/karlrees/indi-3rdparty
karlrees Jan 25, 2020
7ac6e4d
Updated how the libraries were being installed / linked to avoid conf…
karlrees Jan 27, 2020
d8a8014
Fixed problems with disconnecting and reconnecting, particularly when…
karlrees Jan 28, 2020
cceca12
Added comment
karlrees Jan 28, 2020
477bd06
Create README.md
karlrees Jan 28, 2020
5b15f0a
Update README.md
karlrees Jan 28, 2020
fd58aea
Update README.md
karlrees Jan 28, 2020
9f9a9f2
Update README.md
karlrees Jan 28, 2020
2bb8cc7
Update README.md
karlrees Jan 28, 2020
91e3bbc
Update README.md
karlrees Jan 28, 2020
22fe1e9
Update README.md
karlrees Jan 28, 2020
523ad3c
Update README.md
karlrees Jan 28, 2020
9f3bde8
Fixed naming problem that kept MSC driver from appearing in KStars/Ek…
karlrees Jan 29, 2020
a5a532b
Merge upstream
karlrees Mar 6, 2020
b33fb00
Merge remote-tracking branch 'upstream/master'
karlrees Mar 10, 2020
45816ac
Removed unnecessary files from libpktriggercord; fixed error in re/co…
karlrees Mar 10, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update README.md
  • Loading branch information
karlrees authored Jan 28, 2020
commit 5b15f0a935090cf3f8d91668b52c085eaa3b5cf6
45 changes: 34 additions & 11 deletions indi-pentax/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,37 @@ Cameras listed as officially supported by the SDK (but not yet confirmed):
Additional cameras confirmed to work:
- PENTAX K-70

Cameras confirmed not to work:
Cameras confirmed *not* to work:
- None so far, but it is expected that only more recent cameras will work.

### MSC Mode

Any camera listed as supported by PkTriggerMode (see https://pktriggercord.melda.info). This should be most Pentax cameras.
The driver should work with any camera listed as supported by PkTriggerCord (see https://pktriggercord.melda.info), though only the K-70 is currently confirmed. This includes:

- Pentax K-x
- Pentax K10D (Samsung GX-10) (fw 1.20 or later)
- Pentax K20D (Samsung GX-20)
- Pentax K200D
- Pentax K-7
- Pentax K-r
- Pentax K-5
- Pentax K-m / K2000
- Pentax K-30
- Pentax K-01 (known bugs)
- Pentax K-5 II / K-5 IIs
- Pentax K-50 (known bugs)
- Pentax K-3 / K-3 II
- Pentax K-500
- Pentax K-70 (known bugs)

Cameras listed as *not* working with PkTriggerCord include:

- Pentax istDS
- Pentax istD
- Samsung GX-1L
- Pentax K110D
- Pentax K100D
- Pentax K-S2

## Features

Expand Down Expand Up @@ -104,12 +129,14 @@ The driver supports multiple cameras at once. The exact set of features availab

1. First, be sure the camera is in the desired USB mode (PTP or MSC). Then connect the camera via a USB cable to the Indi host and power the camera on.
2. Set the camera to the appropriate capture mode. For PTP mode, Manual (M) is suggested for maximum flexibility. For MSC mode, Bulb (B) provides maximum flexibility.
However, if your exposures are less than 30 seconds, other modes (e.g. Manual) are close to twice as fast at starting the exposure and returning the image.

*However, if your exposures are less than 30 seconds, other modes (e.g. Manual) are close to twice as fast at starting the exposure and returning the image.*

3. Start the Indi server on the host with "Pentax DSLR (Native)" selected as the driver. Click "Connect" if the driver does not auto-connect.
4. Once connected, you may change most settings in the Image Settings tab of the Indi Control Panel, though FITs/Native settings are in the Options tab.
5. To capture an image using the Indi Control Panel, go to the Main Control tab and select an exposure duration. Then click "Set" to start the exposure.

Note that unless you are in bulb mode, the exposure time you choose will not be the exact exposure time, but will be matched to the closest predefined exposure time of your current capture mode.
*Note that unless you are in bulb mode, the exposure time you choose will not be the exact exposure time, but will be matched to the closest predefined exposure time of your current capture mode.*

6. For Live View, be sure you are in PTP mode, and select the Streaming tab.

Expand All @@ -126,15 +153,11 @@ if it does not already exist. Select the new device and cick "Connect" to conti

- Bulb mode does not work in PTP mode.
- Changing ISO and exposure do not work on the K-70 in MSC mode (probably other cameras as well).
- When DNG format is selected, images are currently saved with a "raw" extension. This is because Indi seems to have a bug with .DNG files where it grab the JPEG
- When DNG format is selected, images are currently saved with a "raw" extension. This is because Indi seems to have a bug with .DNG files where it grab the JPEG.
preview out of DNGs and discards the rest of the DNG file. The raw files may be safely renamed to ".DNG."
- When compiled on Ubuntu Mate 18.0.4 (Raspberry Pi 3B), PTP mode does not work. This appears to be because the binary generated by the compiler
is for armv7, whereas the library files provided by Ricoh are for armv6. Yet, I currently cannot figure out how to get indi-pentax to compile if I force the compiler
to armv6. A workaraound is to use a binary generated on Rasbian.
- When compiled on Ubuntu Mate 18.0.4 (Raspberry Pi 3B), PTP mode does not work. This appears to be because the indi_pentax binary generated by the compiler is for armv7, whereas the library files provided by Ricoh are for armv6. Yet, I currently cannot figure out how to get indi-pentax to compile if I force the compiler to armv6. A workaraound is to use a binary generated on Rasbian.
- The Ricoh Camera SDK uses a custom version of libmtp with a version number of 9.3.0. Not surprisingly, this can cause problems if the
standard version of libmtp is installed. To avoid these problems, I install the customized libmtp along with the other library files in the "indipentax"
subdirectory of CMAKE_INSTALL_LIBDIR, and then list that subdirectory in the RPATH of the indi_pentax binary (not the RUNPATH, since libmtp is an indirect dependency).
I'm sure this negatively affects the modularity of indi-pentax. I'm happy to take suggestions if there's a better way to deal with this issue.
standard version of libmtp is installed. To avoid these problems, I install the customized libmtp along with the other library files in the "indipentax" subdirectory of CMAKE_INSTALL_LIBDIR, and then list that subdirectory in the RPATH of the indi_pentax binary (not the RUNPATH, since libmtp is an indirect dependency). I'm sure this negatively affects the modularity of indi-pentax. I'm happy to take suggestions if there's a better way to deal with this issue.

## AUTHOR / CONTRIBUTORS

Expand Down