×
INDI Library v1.8.1 Released (09 Sep 2019)

Monthly maintenance release INDI v1.8.1

QHY driver timeout when using gphoto at the same time

2 weeks 6 days ago 2 weeks 5 days ago by blemasle. Reason: Replaced post with improved description (from a duplicated post) and added log files
blemasle
Fresh Boarder
Fresh Boarder
Posts: 5
More
Topic Author
QHY driver timeout when using gphoto at the same time #42814
Hello there,

When using both QHY and gphotos driver at the same time, it seems that the QHY driver times out and lead to a crash in PHD2. The QHY driver works fine for hours straight when I'm controlling the camera with a remote control. As soon as I try to use the gphotos driver to control my Pentax DSLR, PHD2 guidescope preview freezes while Ekos is transferring raw files from the DSLR to the Rpi. At some point, PHD2 complains about QHY driver timing out, and I usually need to restart guiding.

Could it be a power issue (I don't use a powered hub at the moment) ? A USB bottleneck somehow ?
I'm not asking for a solution directly (because miracles are rare :D), but I don't really know where to begin with :(. I'm new with INDI and don't really what I could try to do to diagnose my issue.

Regards,
Bertrand

INDI Library : 1.7.9 (compiled from d0321cb7, a more recent build like 1.8.0 does not get an image from the QHY5II)
Kstars/Ekos : 3.3.3
Linux raspberry pi 4.19.57-v7l (Raspberry Pi 4) on Raspbian 10 Buster

PHD2 Log extract

00:05:01.679 00.000 3019784208 Enqueuing Expose request
00:05:01.679 00.000 3014258752 Worker thread wakes up
00:05:01.680 00.001 3014258752 worker thread servicing REQUEST_EXPOSE 200
00:05:01.680 00.000 3014258752 Handling exposure in thread, d=200 o=3 r=(0,0,0,0)
00:05:01.680 00.000 3014258752 INDI Camera Exposing for 200ms
00:05:01.935 00.255 2992394304 INDI Camera Receive Number: CCD_EXPOSURE = 0 state = Busy
00:05:16.903 14.968 2992394304 INDI Camera: serverDisconnected
00:05:16.904 00.001 3014258752 INDI Camera: serverDisconnected
00:05:16.936 00.032 3014258752 worker thread setting skip send exposure complete
00:05:16.936 00.000 3014258752 worker thread queueing reconnect event to GUI thread
00:05:16.937 00.001 3014258752 Error thrown from /home/pi/install/phd2-git/worker_thread.cpp:157->Capture failed
00:05:16.942 00.005 3014258752 worker thread skipping SendWorkerThreadExposeComplete
00:05:16.942 00.000 3014258752 worker thread done servicing request
00:05:17.702 00.760 3019784208 Alert: After 15.2 sec the camera has not completed a 0.2 sec exposure, so it has been disconnected to prevent other problems. If you think the hardware is working correctly, you can increase the timeout period on the Camera tab of the Advanced Settings Dialog.
PHD will make several attempts to re-connect the camera.
00:05:17.863 00.161 3019784208 Try camera reconnect, now = 1567461917
00:05:17.865 00.002 3019784208 gear_dialog: ReconnectCamera
00:05:17.866 00.001 3019784208 gear_dialog: DoConnectCamera [INDI Camera [QHY CCD QHY5LII-M-6047e]]
00:05:17.866 00.000 3019784208 Status Line: Connecting to Camera ...


INDI pentax

DEBUG 403.849648 sec : Downloading image... Name: (capt0014.pef) Folder: (/) Delete from SD card? (false)
DEBUG 403.869847 sec : Downloaded 0x0 (preview 0x0)
DEBUG 403.870917 sec : Cannot decode (Unsupported file format or not RAW file)
DEBUG 403.871164 sec : Exposure done, downloading image...
DEBUG 403.890505 sec : Uploading file. Ext: pef, Size: 16941436, sendImage? Yes, saveImage? No
DEBUG 403.896336 sec : Aborting exposure...
DEBUG 403.896471 sec : Closing internal shutter.
DEBUG 403.896499 sec : Using widget:bulb
DEBUG 403.896514 sec : Setting toggle widget bulb: 0
DEBUG 403.899209 sec : Setting new configuration OK.
DEBUG 403.901367 sec : Reading exposure...
DEBUG 403.901430 sec : Exposure complete.
DEBUG 404.246125 sec : BLOB transfer took 0.355503 seconds
DEBUG 404.246175 sec : Upload complete
DEBUG 404.958386 sec : Event timed out #1, retrying...
DEBUG 408.230841 sec : Event timed out #2, retrying...
DEBUG 409.272480 sec : Event timed out #3, retrying...
DEBUG 410.319105 sec : Event timed out #4, retrying...
DEBUG 411.351958 sec : Event timed out #5, retrying...
DEBUG 412.394803 sec : Event timed out #6, retrying...
DEBUG 414.467606 sec : Event timed out #7, retrying...
DEBUG 415.510348 sec : Event timed out #8, retrying...
DEBUG 416.552036 sec : Event timed out #9, retrying...
DEBUG 417.583880 sec : Event timed out #10, retrying...


INDI QHY

I couldn't find anything strange there

Attachments:

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

1 week 5 days ago
relicsraage
Junior Boarder
Junior Boarder
Posts: 23
More
QHY driver timeout when using gphoto at the same time #43135
I would like to add some more data to this thread. I have been experiencing nearly the same behaviour.

Running current version on two RP3+ and MacOs.

See log-rp3. Kstars was run solely on this RP3+ as a test. Canon can take and file pictures. When I select guide/capture/loop from guiding tab the Canon (photo) repeats " [Warning] could not wait for event". Power need to be recycled on Canon and all drivers halted and restarted.
From the Mac desktop with remote configuration to RP3+ (running drivers) the Canon is able to take and save photos. However, if I trigger 'capture' in guiding it get the" [Warning] could not wait for event" message under the Canon driver tab. Power need to be recycled on Canon and all drivers halted and restarted.

Otherwise, last night I used a similar setup with my Star Adventurer, Canon 60D, QHY5L mini guider, sim=telescope and phd2 running on another RP3+. This did work well for me. Mind you I started phd2 after all other drivers were running.

I will keep trying iterations with the desktop system to bracket the problem.

regards

Equipment

Sky Watcher 100ED APO
QHY5L-II Mini Guider
Pegasus PPB, DMFC
CGEM DX
RP3+

William Optics RedCat 51
Star Adventurer
RP3+

Software

KStars phd2 , Ubuntu Mac OS
AstroDSLR AstroGuider AstroTelescope, Mac OS
Attachments:

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

1 week 2 days ago
relicsraage
Junior Boarder
Junior Boarder
Posts: 23
More
QHY driver timeout when using gphoto at the same time #43244
Hello again,

I normally run everything through the RP3+. Tried many different things now; still causes the same strange error when guiding is enabled with gphoto collection shots.

However when the QHY5l-II is connected directly to my computer's USB port., the driver panics and from the log it shows @path/libghyccd.5.dylib has not been loaded.

What is strange, is the RP3+ can capture and process images. Fails when gphoto collects photos.

My Macs, RP3+ are at current versions.

For information: I have tested this QHY5 camera on another platform and it functions. (not a bad camera, cable or firmware)

Equipment

Sky Watcher 100ED APO
QHY5L-II Mini Guider
Pegasus PPB, DMFC
CGEM DX
RP3+

William Optics RedCat 51
Star Adventurer
RP3+

Software

KStars phd2 , Ubuntu Mac OS
AstroDSLR AstroGuider AstroTelescope, Mac OS
Attachments:

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

1 week 2 days ago
terryfitz
Fresh Boarder
Fresh Boarder
Posts: 5
More
QHY driver timeout when using gphoto at the same time #43280
I've just started having a similar problem. I'm running everything on a Tinker board a and my imaging camera is a Canon 100D with a QHY5L-IIM for guiding. The problem just seems to have started with the latest Indilib release, because prior to this everything worked flawlessly. However, now, I can collect images (using either CCDCiel or KStars), but as soon as I start looping images with the autoguider, the main imaging process hangs. The message that appears is that the image is downloading but it never completes and so the Canon eventually times out. However, the only way to get the Canon to work again is to power it off and remove the battery. All of which means that I can do no imaging at all. I assume it is a conflict between the QHY and Canon drivers, but I've no idea where to go from here.

Equipment:
EQ6R-Pro with SW 190MN, ATIK 383L+ and ATIK EFW2, guiding with QHY5LII-M on an Orion GuideScope (run from a PC in the observatory running SGPro)
EQ6R with SW 150PDS, Canon 100D (astro mod), guiding with with QHY5LII-M on an Orion GuideScope (run from a TinkerBoard S)

Terry

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

1 week 1 day ago
blemasle
Fresh Boarder
Fresh Boarder
Posts: 5
More
Topic Author
QHY driver timeout when using gphoto at the same time #43310
To be precise, the problem I described is "reversed" : it is the QHY driver that times out when using gphotos driver at the same time. But who knows, the consequences might be reversed but the cause might be identical :)

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

4 days 15 hours ago
blemasle
Fresh Boarder
Fresh Boarder
Posts: 5
More
Topic Author
QHY driver timeout when using gphoto at the same time #43517
@terryfitz I see you've describe your issue on this similar thread as well www.indilib.org/forum/ccds-dslrs/5713-eo...r-latest-update.html (pointed out by @alacant on another duplicate thread I made by mistake).
Hopefully, I'll have free time on the weekend to conduct more tests.

But I do not really know what to look for...

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

4 days 6 hours ago
relicsraage
Junior Boarder
Junior Boarder
Posts: 23
More
QHY driver timeout when using gphoto at the same time #43551
I tried testing with equipment/systems that I used. None of the combinations worked together for taking lights and guiding.
qhy5_canon_ubuntu - created an error on the Canon 60D
qhy5_canon_mac - the Indi server crashed and restarted
qh5_canon_rp3_mac - QHY5L-ll captures images, but Canon 60D posts 'cannot wait for events' in the logs
qhy5m_qhy5l_mac - caused one panic on desktop, upon retry gave me this log

I even tried using the ssag (QHY5M) through RP3 to two different OSs, but it error'd out

The RP3+ is Ubuntu 16.04.6 LTS -updated
The Mac version of Kstars is 3.3.6

Let me know if I can provide additional information or testing

arc

File Attachment:

File Name: qhy5_canon_mac.txt
File Size:342 KB

File Attachment:

File Name: ssag_rp3_ubuntu.txt
File Size:56 KB

File Attachment:

File Name: qhy5_canon..._mac.txt
File Size:691 KB

File Attachment:

File Name: ssag_rp3_to_mac.txt
File Size:403 KB

File Attachment:

File Name: qhy5_canon...untu.txt
File Size:5,607 KB

File Attachment:

File Name: qhy5_canon_ubuntu.txt
File Size:5,290 KB

File Attachment:

File Name: qhy5m_qhy5l_mac.txt
File Size:22 KB

Equipment

Sky Watcher 100ED APO
QHY5L-II Mini Guider
Pegasus PPB, DMFC
CGEM DX
RP3+

William Optics RedCat 51
Star Adventurer
RP3+

Software

KStars phd2 , Ubuntu Mac OS
AstroDSLR AstroGuider AstroTelescope, Mac OS
The following user(s) said Thank You knro, blemasle

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

4 days 3 hours ago
knro
Administrator
Administrator
Posts: 7185
Karma: 51
QHY driver timeout when using gphoto at the same time #43561
wow thanks for all the work!

I'm curious about one this, is this related to QHY? can you put any other camera there (e.g. ZWO)? same issue?

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

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

4 days 2 hours ago
relicsraage
Junior Boarder
Junior Boarder
Posts: 23
More
QHY driver timeout when using gphoto at the same time #43562
I only have two QHY cameras and the one Canon.Right now am trying to source another Canon camera (different model) and hopefully another guider.
It will take me a couple of days to acquire.

Equipment

Sky Watcher 100ED APO
QHY5L-II Mini Guider
Pegasus PPB, DMFC
CGEM DX
RP3+

William Optics RedCat 51
Star Adventurer
RP3+

Software

KStars phd2 , Ubuntu Mac OS
AstroDSLR AstroGuider AstroTelescope, Mac OS

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

Time to create page: 0.953 seconds