indi-3rdparty icon indicating copy to clipboard operation
indi-3rdparty copied to clipboard

Multiple Altair cameras don't play well together

Open nelsonsousa opened this issue 3 years ago • 12 comments

I use two Altair cameras: Hypercam 183C Pro TEC as main camera and GPCAM2 290M as a guide camera. Each works well individually, but when connected at the time time often the guide camera times out and doesn't produce an image. The progress indicator just says "framing" and doesn't move past that. After a few timeouts and retries it then aborts.

Behavior is hard to reproduce, as it doesn't happen all the time. Sometimes I can capture easily with two cameras and have no issues. Then guide camera will stop downloading frames and timeout. This is what I do:

  1. Start Ekos and Indi
  2. Do a couple captures from each camera to test everything is ok.
  3. Try to capture frames from 290m on either capture, guide or focus module and notice it won't download the frame.
  4. Disconnect camera, connect again, problem persists.
  5. Restart Ekos/Indi and problem often persists
  6. Reboot raspberry Pi and problem usually goes away temporarily.

Often this happens when guiding (with guide camera) and capturing (with main camera) at the same time.

Environment info:

  • Raspberry Pi 4, 8Gb RAM
  • Stellarmate 1.7.0 updated
  • Kstars 3.6.0 This issue has been observed in previous versions of Kstars/Ekos/Indi before, in both Stellarmate and Astroberry (at least 2 years ago)

Debug log files are being produced, but so far captures are working well. Will try capture a few more times from either camera and see if I can reproduce.

May be related to this issue, where multiple ZWO cameras managed by a single driver sometimes cause problems and the solution was to develop a single-camera driver for ZWO. Maybe that'll work for Altair as well?

nelsonsousa avatar Aug 05 '22 07:08 nelsonsousa

A couple log files. These were generated by starting EKOS, capturing one frame from each camera to see they both work. Start the guide camera on Loop mode in the Guide module; Start the loop on the main camera in the capture mode. Eventually one of the cameras starts timing out exposures. After disconnecting and connecting again it was possible to capture a new frame log_09-29-41.txt log_11-11-26.txt log_12-08-46.txt .

nelsonsousa avatar Aug 05 '22 11:08 nelsonsousa

Single driver per device is perhaps one way to work around this. The Altair SDK is also a bit older than the rest and could perhaps benefit from more recent updates. You may contact Altair to inquire about SDK updates. Current version is 49.18914.20210510

knro avatar Aug 05 '22 14:08 knro

The driver available for download at Altair's website does mention a newer version of the SDK: SDK 50.19561.0.0.

I've posted on Altair's facebook group asking for the SDK to be updated in Indi, but I don't know how that process goes. Does an Altair dev commit a newer version? Do they email the SDK to an indi dev mailing list? Can it be extracted from the MSI file in the downloads page? The driver can be obtained here:

https://www.altairastro.help/download/altair-astro-camera-ascom-driver-stable/ (registration required)

nelsonsousa avatar Aug 08 '22 08:08 nelsonsousa

It cannot be extracted from the Windows driver. You need to follow up with Altair regarding a newer SDK (if any). Maybe there are no updates, I'm not sure.

knro avatar Aug 08 '22 08:08 knro

There are definitely updates, as the SDK version on the ASCOM driver is 50.19561.0.0. I've opened a ticket with Altair. If/when they send me the SDK should I commit it to a fork and do a PR? Just email it to you? attach it here? I'm not familiar with your repo's best practices.

nelsonsousa avatar Aug 08 '22 09:08 nelsonsousa

If you can make a PR that would be great of course. Otherwise, you can just post a link where we can download and I'll update it.

knro avatar Aug 08 '22 13:08 knro

I've contacted Altair, awaiting their reply.

nelsonsousa avatar Aug 09 '22 14:08 nelsonsousa

Altair told me they sent you the SDK yesterday. Did you receive it?

nelsonsousa avatar Aug 12 '22 11:08 nelsonsousa

Yes, it's updated in GIT and should be in nightly ppa.

knro avatar Aug 13 '22 10:08 knro

Thanks. I'll give it a go tonight and see if it improves my cameras' behaviour. If it doesn't, would building a single-driver camera be a big task?

nelsonsousa avatar Aug 13 '22 12:08 nelsonsousa

How do I install the nightlies on stellarmate? Your repo is for ubuntu/kinetic, I'm on debian/bullseye. I tried building it with apt but no indi-full is available for kinetic. Do I have to build from source?

nelsonsousa avatar Aug 13 '22 20:08 nelsonsousa

You can do it from console as well:

update_indi_core update_indi_drivers

knro avatar Aug 14 '22 06:08 knro

This should be fixed with latest drivers updates from @touptek

Please re-open if the issue persists.

knro avatar Feb 21 '23 05:02 knro