gphoto / libgphoto2

The libgphoto2 camera access and control library.
GNU Lesser General Public License v2.1
1.06k stars 327 forks source link

Sony DSLR does not recognize Sony a5000, must use generic gPhoto driver in stead #737

Closed glundby closed 3 years ago

glundby commented 3 years ago

CONNECTING A5000 WITH GPHOTO: 2021-10-22T05:18:49: [INFO] Loading device configuration... 2021-10-22T05:18:48: [INFO] Detected Sony Corporation Model ILCE-5000. 2021-10-22T05:18:48: [INFO] GPhoto CCD is online. CONNECTING A7 WITH Sony DSLR: 2021-10-22T05:18:50: [INFO] Loading device configuration... 2021-10-22T05:18:48: [INFO] Detected Sony Corporation Model ILCE-7. 2021-10-22T05:18:48: [INFO] Sony DSLR Alpha-A7 (Control) is online.

There is no reason why the Sony DSLR should not connect and name Sony model ILSE-5000 like it does for model ILSE-7. The a5000 is definitely supported and works equally under GPhoto CCD using indi-gphoto-ccd as a7 using indi-sony-ccd.

hfiguiere commented 3 years ago

we have no idea about indi. Can you elaborate?

msmeissn commented 3 years ago

Indi is opensource astronomy software. it has a gphoto2 plugin. at git@github.com:indilib/indi-3rdparty.git

relevant code: // For now let's set name to default name. In the future, we need to to support multiple devices per one driver if (*getDeviceName() == '\0') strncpy(name, getDefaultName(), MAXINDINAME); else strncpy(name, getDeviceName(), MAXINDINAME); setDeviceName(this->name);

what libgphoto2 version is in use? what does gphoto2 --auto-detect report for both cameras?

glundby commented 3 years ago
When I try in profile to use Sony DSLR I get:2021-10-23T16:39:38 Unable to establish:+ Sony DSLRPlease ensure the device is connected and powered on. When I rty in profile to use GPhoto CCD i get:2021-10-23T14:44:05: [INFO] Loading device configuration... 2021-10-23T14:44:04: [INFO] Detected Sony Corporation Model ILCE-5000. 2021-10-23T14:44:04: [INFO] GPhoto CCD is online. In general info I then findName:  GPhoto CCDExec  :   indi_gphoto_ccdVersion:      3.0 When I in the profile use Sony DSLR and have my Sony a7 connected I get:2021-10-23T14:52:58: [INFO] Loading device configuration... 2021-10-23T14:52:56: [INFO] Detected Sony Corporation Model ILCE-7. 2021-10-23T14:52:56: [INFO] Sony DSLR Alpha-A7 (Control) is online. In general info I then find same as for GPhoto CCD:Name:  GPhoto CCDExec  :   indi_gphoto_ccdVersion:      3.0 For me it looks like ILCE-5000 is not recognized as a Sony DSLR I’m on the latest Version of Kstars-Ekos-INDI as Distributed by StellarMate. (Except  a patch back to avoid crash of all when capturing with Sony cameras (both my models) ref open problem report by Jason at Stellarmate. This problem is unrelated to that problem I think.) Regards Gustav Olav Lundby Sendt fra E-post for Windows  Sendt fra E-post for Windows Fra: Marcus MeissnerSendt: lørdag 23. oktober 2021 kl. 10.42Til: gphoto/libgphoto2Kopi: glundby; AuthorEmne: Re: [gphoto/libgphoto2] Sony DSLR does not recognize Sony a5000, must use generic gPhoto driver in stead (Issue #737) Indi is opensource astronomy software. it has a gphoto2 plugin.at ***@***.***:indilib/indi-3rdparty.gitrelevant code:// For now let's set name to default name. In the future, we need to to support multiple devices per one driverif (*getDeviceName() == '\0')strncpy(name, getDefaultName(), MAXINDINAME);elsestrncpy(name, getDeviceName(), MAXINDINAME);setDeviceName(this->name);what libgphoto2 version is in use?what doesgphoto2 --auto-detectreport for both cameras?—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.  
msmeissn commented 3 years ago

(I could not really parse this HTML email, please reply in the github issues interface.)

Its likely your libgphoto2 library is outdated. a5000 IDS were added in libgphoto2 2.5.24 and indi might rely on the actual USB Ids being three.

glundby commented 3 years ago

Repeating my previous message:

When I try in profile to use Sony DSLR I get: 2021-10-23T16:39:38 Unable to establish:

When I try in profile to use GPhoto CCD i get: 2021-10-23T14:44:05: [INFO] Loading device configuration... 2021-10-23T14:44:04: [INFO] Detected Sony Corporation Model ILCE-5000. 2021-10-23T14:44:04: [INFO] GPhoto CCD is online.

In general info I then find Name: GPhoto CCD Exec : indi_gphoto_ccd Version: 3.0

When I in the profile use Sony DSLR and have my Sony a7 connected I get: 2021-10-23T14:52:58: [INFO] Loading device configuration... 2021-10-23T14:52:56: [INFO] Detected Sony Corporation Model ILCE-7. 2021-10-23T14:52:56: [INFO] Sony DSLR Alpha-A7 (Control) is online.

In general info I then find same as for a5000 GPhoto CCD: Name: GPhoto CCD Exec : indi_gphoto_ccd Version: 3.0

For me it looks like ILCE-5000 is not recognized as a Sony DSLR

I’m on the latest Version of Kstars-Ekos-INDI as Distributed by StellarMate. (Except a patch back to avoid crash of all when capturing with Sony cameras (both my models) ref open problem report by Jason at Stellarmate. This problem is unrelated to that problem I think.)

Regards Gustav Olav Lundby

glundby commented 3 years ago

I have: Kstars Desktop Planetarium Build: 2021-09-15T17:03:16Z Stable release.

When I try :

stellarmate@stellarmate:~ $ indi_sony_ccd Number of cameras detected: 1. Detected camera model USB PTP Class Camera on port usb:001,010 Failed to find model USB PTP Class Camera in supported cameras. Falling back to generic name.

When I try:

stellarmate@stellarmate:~ $ indi_gphoto_ccd -v

I get no error messages back.

If you need me to do any thing more to reveal the problem please tell me (I used to be a UNIX systems program developer in my former life :-) )

glundby commented 3 years ago

P.S. This is not a new problem. Has existed for at least a year.

msmeissn commented 3 years ago

detected "USB PTP Class Camera" ... you need to update libgphoto2 ... newer versions will report Sony A5000 there.

Indi checks this string for "Sony" to detect if its a SONY CCD, but here it does not contain Sony.

So

update the libgphoto2 library

glundby commented 3 years ago

But that would reintroduce the problem verified and reported by Jasem Mutlaq where capture - download crashes the whole Kstars - Ekos - INDI system. That error is identified to be in libgphoto2

Error report #721: SIGSEGV after capturing 20+ images for Sony A7 #721

It will render my system useless! Only if it can be verified that this error is solved can I ever upgrade again!

msmeissn commented 3 years ago

this issue did not happen with 2.5.27 ... it only happens with the current git development. so the 2.5.27 stable version should be fine

glundby commented 3 years ago

This is what I get with $ apt list --installed | grep indi

indi-gphoto-dbg/unknown,now 3.0-stable~202109131543 armhf [installed] indi-gphoto/unknown,now 3.0-stable~202109131543 armhf [installed]

So then you suggest to uninstall this 3.0 version and install 2.5.27 in stead. How do I do this without breaking other dependencies? I have a backup and a spare SD card so I'm willing to test this but I am afraid I need guidance of howto do this in the right way.

glundby commented 3 years ago

Sorry here is a more extended result: stellarmate@stellarmate:~ $ apt list --installed | grep gphoto

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

gphoto2/oldstable,now 2.5.20-3 armhf [installed] indi-gphoto-dbg/unknown,now 3.0-stable~202109131543 armhf [installed] indi-gphoto/unknown,now 3.0-stable~202109131543 armhf [installed] libgphoto2-6/now 2.5.27-stable~202109111557 armhf [installed,upgradable to: 2.5.27-stable~202110040526] libgphoto2-dev/now 2.5.27-stable~202109111557 armhf [installed,upgradable to: 2.5.27-stable~202110040526] libgphoto2-port12/now 2.5.27-stable~202109111557 armhf [installed,upgradable to: 2.5.27-stable~202110040526] stellarmate@stellarmate:~ $

glundby commented 3 years ago

Tested again today after upgrading all to latest, among other libGPhoto2. No change Sony a5000 is not accepted by Sony DSLR but runs fine under generic GPhoto CCD. image

(The good news is that the segmentation fault now seems to have been fixed)

msmeissn commented 3 years ago

(the 3.0 version was for indi-gphoto, not related to libgphoto2) not sure what the real problem is here, i tried to understand :/ but if you can make it work like this, it seems ok