×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Re:Bulb mode issues with my Pentax K-70 and Olympus OM-D E-M5 Mark ii

  • Posts: 10
  • Thank you received: 8
Hi,

The liveview mode or the bulb mode in two shutter releases I suppose could be managed by the indi driver. This could be done in the stop_bulb fonction (github.com/indilib/indi/blob/741ab34041a...hoto_driver.cpp#L569)
in case we selected the specific bulb mode it send a second shutter release.
I don't know how the driver works, this could be a could reason for me to dive into the code :p
5 years 1 month ago #36236

Please Log in or Create an account to join the conversation.

  • Posts: 19
  • Thank you received: 1

@KRNO do you know if it would be possible to do the 2 shutter release operation within INDI?
Derek Dailey

Equipment:
ZWO ASI071MC Pro
ZWO ASI533MC Pro
Pentax K-70
Celestron C6SE
Astro-Tech AT65
William Optics RedCat 51
Celestron AVX mount

Software:
Stellarmate OS
ASTRO PIXEL PROCESSOR
Deep Sky Stacker
Adobe Photoshop & LightRoom
5 years 1 month ago #36350

Please Log in or Create an account to join the conversation.

What needs to be done exactly? I have no idea about this. The driver already support remote shutter release by a serial cable. Shouldn't this be added at the libgphoto2 level?

Can you edit the gphoto_driver.cpp to add the required changes and test them out?
The following user(s) said Thank You: Derek S Dailey
5 years 1 month ago #36373

Please Log in or Create an account to join the conversation.

  • Posts: 19
  • Thank you received: 1
Hi Jasem,

I'm starting to lean towards the remote shutter option via serial port. I have had issues with the images downloading to the Pi in the desired resolution. Sometimes it works correctly and sometimes it doesn't.

Does the serial shutter work through Gphoto2, or is it a different interface? Can I make one, or do I need to get the Shoestring Astronomy version? I can't find where you would add the serial interface in Ekos. I have found the plans to make one and it looks pretty easy to make.

Sent from my SM-N960U using Tapatalk
Derek Dailey

Equipment:
ZWO ASI071MC Pro
ZWO ASI533MC Pro
Pentax K-70
Celestron C6SE
Astro-Tech AT65
William Optics RedCat 51
Celestron AVX mount

Software:
Stellarmate OS
ASTRO PIXEL PROCESSOR
Deep Sky Stacker
Adobe Photoshop & LightRoom
5 years 1 month ago #36375

Please Log in or Create an account to join the conversation.

  • Posts: 10
  • Thank you received: 8
Hi,

I don't know if it's to be done in Indi or libgphoto, maybe a little in both.
The bulb sequence seems to be done in Indi. (gphoto_start_exposure() and stop_bulb() functions)

But for libgphoto2, it seems that the bulb mode is working only for canon cameras. (I might be wrong)
Now for the function we are talking about (LiveTime or Bulb2) we need a function in libgphoto to only trigger the shutter, but the function "trigger-capture" is also not supported yet in libgphoto for pentax or olympus.
If we could add this in libgphoto and then manage a 2 shutter release in Indi that would be great. (First Trigger-capture then wait x sec and finally capture_image with download)

I'm just starting in this so i have a lot to process, I hope i can be of some help. ;)

Berylius
5 years 1 month ago #36418

Please Log in or Create an account to join the conversation.

  • Posts: 10
  • Thank you received: 8
I've analysed the usb trafic for the shutter fonction of the Olympus.

Here are my investigation for the camera in libgphoto2:

The variable for the camera trigger is:
/* Olympus OMD series commands */
#define PTP_OC_OLYMPUS_OMD_Capture			0x9481
In the function used for the image capture there is indeed
uint16_t
ptp_olympus_omd_capture (PTPParams* params)
{
/* these two trigger the capture ... one might be "shutter down", the other "shutter up"? */
PTP_CNT_INIT(ptp, PTP_OC_OLYMPUS_OMD_Capture, 0x3); // initiate capture
ret = ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL);
 
PTP_CNT_INIT(ptp, PTP_OC_OLYMPUS_OMD_Capture, 0x6); // initiate capture
ret = ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL);
 
}
 

In case of a normal capture the "ptp_olympus_omd_capture " function is correct but for the Bulb mode it's not because value 0x3 is shutter down
PTP_CNT_INIT(ptp, PTP_OC_OLYMPUS_OMD_Capture, 0x3)
and value 0x6 is shutter up
PTP_CNT_INIT(ptp, PTP_OC_OLYMPUS_OMD_Capture, 0x6)

so this initiate a short exposure.

We should made 2 differents function, so we could make the Bulb function operationnal.

I will try to make the changes in libgphoto2
The following user(s) said Thank You: Jasem Mutlaq, Derek S Dailey
Last edit: 5 years 1 month ago by Benjamin FOUSSE.
5 years 1 month ago #36467

Please Log in or Create an account to join the conversation.

  • Posts: 19
  • Thank you received: 1
Thank you for looking into this, Benjamin!
Derek Dailey

Equipment:
ZWO ASI071MC Pro
ZWO ASI533MC Pro
Pentax K-70
Celestron C6SE
Astro-Tech AT65
William Optics RedCat 51
Celestron AVX mount

Software:
Stellarmate OS
ASTRO PIXEL PROCESSOR
Deep Sky Stacker
Adobe Photoshop & LightRoom
5 years 1 month ago #36472

Please Log in or Create an account to join the conversation.

  • Posts: 10
  • Thank you received: 8
Hi,

Work in progress! I have made some progress on the subject. For the moment I try to enable the Bulb mode for the Olympus, and it starts to work!
I successfully send shutter down at the beginning and shutter up at the end. I've some problems with downloading the results, the code changes have been made but I have to wait for this evening for the testing. (All modifications are made in libgphoto2 not Indi)
After that i will have a look into the pentax, a friend of mine has also a K70 and his also interested, so if needed i'll check with him.

Berylius
The following user(s) said Thank You: Jasem Mutlaq, Derek S Dailey
5 years 1 month ago #36559

Please Log in or Create an account to join the conversation.

  • Posts: 10
  • Thank you received: 8
Hi,

It's working so far. The only thing is you have to take the shots in "Native" format, in "Fits" it's not working the driver is crashing during the "subframing" process (I suppose).
I'll make a Pull Request on the libgphoto2.

Berylius
The following user(s) said Thank You: Derek S Dailey
5 years 1 month ago #36661

Please Log in or Create an account to join the conversation.

  • Posts: 19
  • Thank you received: 1

Awesome, thank you so much for working on this! I prefer to use the native format, so the FITS conversion is not a big deal to me.

Is there a way I can try this out? Would I just update libgphoto2? Are there any special items I need to know to test this?
Derek Dailey

Equipment:
ZWO ASI071MC Pro
ZWO ASI533MC Pro
Pentax K-70
Celestron C6SE
Astro-Tech AT65
William Optics RedCat 51
Celestron AVX mount

Software:
Stellarmate OS
ASTRO PIXEL PROCESSOR
Deep Sky Stacker
Adobe Photoshop & LightRoom
5 years 1 month ago #36665

Please Log in or Create an account to join the conversation.

  • Posts: 10
  • Thank you received: 8
Hi,

You can try to download the source here github.com/berylius/libgphoto2.git
and compile it.

Have a look at the INSTALL file in the repository for instructions.

Regards,

Berylius
5 years 1 month ago #36671

Please Log in or Create an account to join the conversation.

  • Posts: 10
  • Thank you received: 8
Hi,

If you want to try it, it has been merged into the official repository (github.com/gphoto/libgphoto2/pull/394)

Berylius
The following user(s) said Thank You: Derek S Dailey, joel collet
5 years 2 weeks ago #37478

Please Log in or Create an account to join the conversation.

Time to create page: 0.349 seconds