Discussion:
[gphoto-devel] 2 images downloaded in tethered mode
Roderick Stewart
2017-05-12 18:42:50 UTC
Permalink
I’m trying to use gphoto2 in tethered mode.

Everytime I click the shutter, two identical files are downloaded.

This never happened last time I used tethered mode (long time ago), so I guess it’s either a bug or my lack of knowledge.

Camera: Nikon D800E

Computer: Macbook Pro 2016 model, OSX Sierra (10.12.4)
Apple USB-C to USB adapter

gphoto2 was installed using homebrew, with no problems
versons:
gphoto2 2.5.11 clang, popt(m), no exif, no cdk, no aa, jpeg, readline
libgphoto2 2.5.13 all camlibs, clang, ltdl, no EXIF
libgphoto2_port 0.12.0 clang, ltdl, USB, serial without locking
Daniel Muller
2017-05-12 18:46:25 UTC
Permalink
By any chance, do they at least have different filenames? Like JPG and NEF
for example?
That would be camera settings..

On Fri, May 12, 2017 at 8:42 PM, Roderick Stewart <
I’m trying to use gphoto2 in tethered mode.
Everytime I click the shutter, two identical files are downloaded.
This never happened last time I used tethered mode (long time ago), so I
guess it’s either a bug or my lack of knowledge.
Camera: Nikon D800E
Computer: Macbook Pro 2016 model, OSX Sierra (10.12.4)
Apple USB-C to USB adapter
gphoto2 was installed using homebrew, with no problems
gphoto2 2.5.11 clang, popt(m), no exif, no cdk, no aa, jpeg, readline
libgphoto2 2.5.13 all camlibs, clang, ltdl, no EXIF
libgphoto2_port 0.12.0 clang, ltdl, USB, serial without locking
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gphoto-devel mailing list
https://lists.sourceforge.net/lists/listinfo/gphoto-devel
Marcus Meissner
2017-05-12 19:52:52 UTC
Permalink
Hi,

If it is the same file, we might be getting the same event twice, which
could happen on nikons. A debugtrace (without the file content) might be
helpful, I thought I am catching those.

Ciao, Marcus
Post by Daniel Muller
By any chance, do they at least have different filenames? Like JPG and NEF
for example?
That would be camera settings..
On Fri, May 12, 2017 at 8:42 PM, Roderick Stewart <
Post by Roderick Stewart
I’m trying to use gphoto2 in tethered mode.
Everytime I click the shutter, two identical files are downloaded.
This never happened last time I used tethered mode (long time ago), so I
guess it’s either a bug or my lack of knowledge.
Camera: Nikon D800E
Computer: Macbook Pro 2016 model, OSX Sierra (10.12.4)
Apple USB-C to USB adapter
gphoto2 was installed using homebrew, with no problems
gphoto2 2.5.11 clang, popt(m), no exif, no cdk, no aa, jpeg, readline
libgphoto2 2.5.13 all camlibs, clang, ltdl, no EXIF
libgphoto2_port 0.12.0 clang, ltdl, USB, serial without locking
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gphoto-devel mailing list
https://lists.sourceforge.net/lists/listinfo/gphoto-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gphoto-devel mailing list
https://lists.sourceforge.net/lists/listinfo/gphoto-devel
Roderick Stewart
2017-05-15 18:09:53 UTC
Permalink
Hi,

Thanks.

It’s the same file because the computer asks me if I want to overwrite it.

I’ll do a debugtrace later today.
Post by Marcus Meissner
Hi,
If it is the same file, we might be getting the same event twice, which
could happen on nikons. A debugtrace (without the file content) might be
helpful, I thought I am catching those.
Ciao, Marcus
Post by Daniel Muller
By any chance, do they at least have different filenames? Like JPG and NEF
for example?
That would be camera settings..
On Fri, May 12, 2017 at 8:42 PM, Roderick Stewart <
Post by Roderick Stewart
I’m trying to use gphoto2 in tethered mode.
Everytime I click the shutter, two identical files are downloaded.
This never happened last time I used tethered mode (long time ago), so I
guess it’s either a bug or my lack of knowledge.
Camera: Nikon D800E
Computer: Macbook Pro 2016 model, OSX Sierra (10.12.4)
Apple USB-C to USB adapter
gphoto2 was installed using homebrew, with no problems
gphoto2 2.5.11 clang, popt(m), no exif, no cdk, no aa, jpeg, readline
libgphoto2 2.5.13 all camlibs, clang, ltdl, no EXIF
libgphoto2_port 0.12.0 clang, ltdl, USB, serial without locking
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gphoto-devel mailing list
https://lists.sourceforge.net/lists/listinfo/gphoto-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gphoto-devel mailing list
https://lists.sourceforge.net/lists/listinfo/gphoto-devel
Roderick Stewart
2017-05-15 22:58:05 UTC
Permalink
I isolated the problem.

The camera has two memory cards and normally writes to both.

When I changed it to only write to one card, gphoto2 only downloaded one copy of the file when run in tethered mode.

Changing to writing to one card significantly reduces the time it takes to —capture-image-and-download.

Also, FYI, I get quite a few "UNKNOWN PTP Property XXXX changed” messages while doing nothing.

The debug file from when it downloads two files is somewhat huge - 139 MB!

You can download it from here: https://www.dropbox.com/s/xh48ppbz56926qk/d800e.txt.zip?dl=0

Rod
Post by Roderick Stewart
Hi,
Thanks.
It’s the same file because the computer asks me if I want to overwrite it.
I’ll do a debugtrace later today.
Post by Marcus Meissner
Hi,
If it is the same file, we might be getting the same event twice, which
could happen on nikons. A debugtrace (without the file content) might be
helpful, I thought I am catching those.
Ciao, Marcus
Post by Daniel Muller
By any chance, do they at least have different filenames? Like JPG and NEF
for example?
That would be camera settings..
On Fri, May 12, 2017 at 8:42 PM, Roderick Stewart <
Post by Roderick Stewart
I’m trying to use gphoto2 in tethered mode.
Everytime I click the shutter, two identical files are downloaded.
This never happened last time I used tethered mode (long time ago), so I
guess it’s either a bug or my lack of knowledge.
Camera: Nikon D800E
Computer: Macbook Pro 2016 model, OSX Sierra (10.12.4)
Apple USB-C to USB adapter
gphoto2 was installed using homebrew, with no problems
gphoto2 2.5.11 clang, popt(m), no exif, no cdk, no aa, jpeg, readline
libgphoto2 2.5.13 all camlibs, clang, ltdl, no EXIF
libgphoto2_port 0.12.0 clang, ltdl, USB, serial without locking
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gphoto-devel mailing list
https://lists.sourceforge.net/lists/listinfo/gphoto-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gphoto-devel mailing list
https://lists.sourceforge.net/lists/listinfo/gphoto-devel
Marcus Meissner
2017-05-16 06:54:13 UTC
Permalink
Hi,

This is kind of expected I would say... Two files are being added and we see
two files.

That they have the same names during download is confusing, but I am not
fully sure how to handle it, or how to just download it once :/

Ciao, Marcus
Post by Roderick Stewart
I isolated the problem.
The camera has two memory cards and normally writes to both.
When I changed it to only write to one card, gphoto2 only downloaded one copy of the file when run in tethered mode.
Changing to writing to one card significantly reduces the time it takes to —capture-image-and-download.
Also, FYI, I get quite a few "UNKNOWN PTP Property XXXX changed” messages while doing nothing.
The debug file from when it downloads two files is somewhat huge - 139 MB!
You can download it from here: https://www.dropbox.com/s/xh48ppbz56926qk/d800e.txt.zip?dl=0
Rod
Post by Roderick Stewart
Hi,
Thanks.
It’s the same file because the computer asks me if I want to overwrite it.
I’ll do a debugtrace later today.
Post by Marcus Meissner
Hi,
If it is the same file, we might be getting the same event twice, which
could happen on nikons. A debugtrace (without the file content) might be
helpful, I thought I am catching those.
Ciao, Marcus
Post by Daniel Muller
By any chance, do they at least have different filenames? Like JPG and NEF
for example?
That would be camera settings..
On Fri, May 12, 2017 at 8:42 PM, Roderick Stewart <
Post by Roderick Stewart
I’m trying to use gphoto2 in tethered mode.
Everytime I click the shutter, two identical files are downloaded.
This never happened last time I used tethered mode (long time ago), so I
guess it’s either a bug or my lack of knowledge.
Camera: Nikon D800E
Computer: Macbook Pro 2016 model, OSX Sierra (10.12.4)
Apple USB-C to USB adapter
gphoto2 was installed using homebrew, with no problems
gphoto2 2.5.11 clang, popt(m), no exif, no cdk, no aa,
jpeg, readline
libgphoto2 2.5.13 all camlibs, clang, ltdl, no EXIF
libgphoto2_port 0.12.0 clang, ltdl, USB, serial without locking
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gphoto-devel mailing list
https://lists.sourceforge.net/lists/listinfo/gphoto-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gphoto-devel mailing list
https://lists.sourceforge.net/lists/listinfo/gphoto-devel
Loading...