Welcome, Guest
Username: Password: Remember me
08 Apr 2018
INDI development team is happy to announce the release of INDI Library v1.7.0. This new exciting release builds on the maturity of INDI Library and comes with many new supported devices and fixes for existing drivers.
Read More...

TOPIC: Mirror lock on Canon with serial shutter?

Mirror lock on Canon with serial shutter? 1 year 9 months ago #10562

  • mlarsson
  • mlarsson's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 242
  • Karma: 1
  • Thank you received: 16
Hi!
I'm using a Canon EOS 350D, that needs a serial shutter release along with the USB cable. I'd now like to use mirror lock on this. How do I do this? I remember from some months ago, that there was a mirror lock setting in Indi manager, after the serial shutter was connected, but there is no such setting now (and I didn't use it then since I had other problems).
So: anyone can guide me on how to use mirror lock on this camera?

Magnus

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

Mirror lock on Canon with serial shutter? 1 year 9 months ago #10567

What is the full GPhoto command that you can use with mirror lock and it captures an image for you with that? We had it before and it was causing problems. If I know the full working command, I might come up with a solution. The command must work for short duration (< 3 seconds) and long (> 60 seconds) so test it on both extremes.

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

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
Last Edit: by knro.

Mirror lock on Canon with serial shutter? 1 year 9 months ago #10591

  • mlarsson
  • mlarsson's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 242
  • Karma: 1
  • Thank you received: 16
I don't know,, but I'll try to find out.

Magnus

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

Mirror lock on Canon with serial shutter? 1 year 8 months ago #10951

Hi,

I have a modified version of the gphoto driver that works for my 350D. Only a few
modifications are needed (see the attached diff. with the current source code).
There is one thing that one needs to keep in mind: switching to bulb exposure via software
does not work (at least on my camera). Therefore, I always set the camera to bulb exposure
mode before starting indiserver. This also means that short exposure should also use bulb exposure mode.

Another issue is that the driver doesn't recognise the camera as a Canon so that the mirror lock feature is
not available. I've tried to figure out why this is. It turns out that after adding some debugging print statements,
that the 'model' property is not available when the driver checks for the mirror lockup feature in
the updateProperties() method. I don't understand why this is because the 'model' property does show up
in de Ekos dialogue and in the output of indiserver:

2016-10-21T08:56:25: Driver indi_gphoto_ccd: read defTextVector GPhoto CCD model Idle rw
model='Canon EOS 350D DIGITAL'
2016-10-21T08:56:25: Client 0: queuing <defTextVector device='GPhoto CCD' name='model'>

For now I work around this problem by just ignoring the check in updateProperties() in the following manner:

if (sim == false)
{
ShowExtendedOptions();
DEBUG(INDI::Logger::DBG_SESSION, "Please update the camera pixel size in the Image Info section. The camera resolution will be updated after the first exposure is complete.");

// Only show mirror lock if the camera is canon
ITextVectorProperty *modelTP = getText("model");
if (modelTP) {
DEBUGF(INDI::Logger::DBG_SESSION, "updateProperties: property model='%s' strstr='%s'", modelTP->tp[0].text, strstr(modelTP->tp[0].text, "Canon"));
}
else {
DEBUG(INDI::Logger::DBG_SESSION, "updateProperties: property 'model' not found");
}
if (true) //modelTP && !strcmp(modelTP->label, "model") && strstr(modelTP->tp[0].text, "Canon"))
defineNumber(&mMirrorLockNP);
}


Hope this is of use.

Regards,
Camiel
Attachments:

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

Mirror lock on Canon with serial shutter? 1 year 8 months ago #10952

  • mlarsson
  • mlarsson's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 242
  • Karma: 1
  • Thank you received: 16
Hi!

Great! Could you describe shortly how you use the source code, so I can test? (it was a long time since I patched source code....)

And what do you mean by set the camera to buld mode? My 350D does not have a dedicated bulb mode (as later models have) but only a "M" mode.

Magnus

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

Mirror lock on Canon with serial shutter? 1 year 8 months ago #10960

Hi Magnus,
The easiest way is to add the lines with + starting at line 610 of gphoto_driver.cpp and modify line 670 by commenting out the check on the exposure time. (Don't forget to remove the '+' signs.)
You also have to change two lines in gphoto_ccd.cpp as shown above. You can locate these by searching for getText("model").
With Bulb mode I meant indeed the bulb exposure in manual mode.
Regards,
Camiel

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

Mirror lock on Canon with serial shutter? 1 year 8 months ago #10971

I'm trying to incorporate a solution that would work for all cameras (at least all Canon). So questions:

1. Is this supported by all Canon cameras?
2. Is an external remote serial shutter always required?
3. Any differences between EOS and other camera types?
4. What is mechanism to hold mirror in place exactly? I see you open a port and then sleep
5. You disabled regular exposure for less < 1 and used bulb, is there a lower limit to using bulb? aren't camera timings better for < 1 second resolution?

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

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

Mirror lock on Canon with serial shutter? 1 year 8 months ago #10992

Hi Jasem,

I'll try to answer your questions as far as I can because I only have one Canon camera.
1. As fas as I know this should work with all cameras that support an external shutter cable.
2. In the case of 350D and older cameras it is always required.
3. I don't know the answer to this.
4. When the mirror lockup mode is selected in the camera's menus, the first time the serial port is opened the mirror moves to the "up" position and is locked. When the serial port is closed, the mirror stays there. The exposure itself is started the second time the serial port is opened. When the exposure time is set to a specific value (e.g., 1, 2 or 1/20 of a second) the serial port can be closed at any time. But when the exposure time is set to 'bulb' closing the serial port will end the exposure. When mirror lock is not enabled on the camera, the first step can be skipped and the mirror and shutter are opened simultaneously when the serial port is opened.
Before I started using INDI and Ekos, I used a small Windows program that controlled the shutter in this way while standard Canon software loaded the RAW images from the camera automatically after each exposure.
5. Yes, I did because I noticed that the INDI driver set exposure time to 1s after the first bulb exposure. As far as I know at this moment it is not possible to set the exposure time to 'bulb' via the USB connection (on this camera) so this prevents taking any further long exposures. I think that both for short and long exposures timing should be accurate. For short exposures it is indeed easier to implement by using the standard exposure times.

Best regards,
Camiel
The following user(s) said Thank You: knro

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

Mirror lock on Canon with serial shutter? 1 year 8 months ago #10994

Hello Jasem,

I've a couple month ago proposed a patch for the gphoto drv implementing the mirror lock feature for Canon without serial shutter.
For all recent Canon there is no pre-requisite on a serial cable so you must avoid this additional cable.

FYI, Since then, i've tested my code for Canon 7D, 7DmkII, 6D with succes.

Regards,
HoxCa
The following user(s) said Thank You: knro

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

Mirror lock on Canon with serial shutter? 1 year 8 months ago #10995

hoxca wrote: Hello Jasem,

I've a couple month ago proposed a patch for the gphoto drv implementing the mirror lock feature for Canon without serial shutter.
For all recent Canon there is no pre-requisite on a serial cable so you must avoid this additional cable.

FYI, Since then, i've tested my code for Canon 7D, 7DmkII, 6D with succes.

Regards,
HoxCa


I've disabled mirror locking since I wanted a _clear_ defined way to do it in all cases and not break functionality of some cameras. If you can resubmit a Pull Request including including all cases (with and without serial port) then I'd really appreciate it especially since you can test it and so can Camiel and then we know it works for all.

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

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

Mirror lock on Canon with serial shutter? 1 year 8 months ago #11058

Hi Jasem,

I have been experimenting a bit with gphoto 2.5.10 and my 350D. The following gphoto2 commands work for me.
Whithout mirror lock and an exposure time that is not 'bulb', e.g., 2 seconds:

gphoto2 --set-config shutterspeed=2 --capture-image-and-download

In the case of mirror lock for any exposure time including bulb (using the camera's button to trigger the mirror lock and exposure)

gphoto2 --set-config shutterspeed=Bulb --wait-event-and-download=10s

In this case the waiting time should be larger than the exposure time of course!

I have noticed that in the latest source of gphoto_ccd.cpp you have changed the test to check for
the availability of a mirror lock. You do this now using the "cameramodel" widget. However, my
350D only has the "model" widget.

Regards,
Camiel

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

Mirror lock on Canon with serial shutter? 1 year 8 months ago #11059

I'm actually looking only at "manufacturer" now, but I forgot to replace of the conditions and just did it now. Does this mirror locking in the current GPhoto driver work for you?

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

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
Time to create page: 0.428 seconds

Login

3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!


Gallery

Replica

Why INDI

Replica