Closed glundby closed 3 years ago
we have no idea about indi. Can you elaborate?
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?
(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.
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
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 :-) )
P.S. This is not a new problem. Has existed for at least a year.
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
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!
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
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.
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:~ $
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.
(The good news is that the segmentation fault now seems to have been fixed)
(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
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.