×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

QHY5 - [ERROR] GetQHYCCDSingleFrame error (-1)

Can you try this attached file? Unplug and replug the camera afterwards.

File Attachment:

File Name: 85-qhyccd.rules.zip
File Size:2 KB
The following user(s) said Thank You: Bowman
Last edit: 4 years 6 months ago by Jasem Mutlaq.
4 years 6 months ago #43782
Attachments:

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

  • Posts: 459
  • Thank you received: 69
replaced the Sept 13th version of /lib/udev/rules.d with this one. Unplugged and replugged -> no qhy camera detected.
rebooted, and tried again. This time the qhy camera appears in the Indi Control Panel as a device, but it is yellow rather than green (connected).
I will fiddle a bit.
4 years 6 months ago #43785

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

  • Posts: 459
  • Thank you received: 69
This is from dmesg

12.110345] usb 1-2.4: config 1 interface 0 altsetting 0 bulk endpoint 0x81 has invalid maxpacket 64
[ 12.110352] usb 1-2.4: config 1 interface 0 altsetting 0 bulk endpoint 0x1 has invalid maxpacket 64
[ 12.110543] usb 1-2.4: New USB device found, idVendor=1618, idProduct=0921
[ 12.110547] usb 1-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 12.110550] usb 1-2.4: Product: QHY5-II
[ 12.110552] usb 1-2.4: Manufacturer: QHY-CCD
[ 12.112625] usb 1-2.4: Unsupported device
[
Last edit: 4 years 6 months ago by Jerry Black. Reason: typo
4 years 6 months ago #43787

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

  • Posts: 459
  • Thank you received: 69

So I rebooted a 2nd time, and low and behold it was there connected (green). I was able to take both a Nikon primary camera test, and a QHY5IIM test image. Will try to break it now, by further dummy image tests. :)
The following user(s) said Thank You: Bowman
4 years 6 months ago #43789

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

  • Posts: 4
  • Thank you received: 0
I still have the " GetQHYCCDSingleFrame error (-1)" error with the new 85-qhyccd.rules

Orion StarShot Autoguider

dmesg
[ 105.788136] usb 1-1: new high-speed USB device number 4 using xhci_hcd
[ 105.936724] usb 1-1: New USB device found, idVendor=1856, idProduct=0011, bcdDevice= 0.00
[ 105.936740] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 106.029494] usb 1-1: USB disconnect, device number 4
[ 107.759853] wlp1s0: deauthenticating from e0:46:9a:4e:9a:ac by local choice (Reason: 3=DEAUTH_LEAVING)
[ 107.827689] usb 1-1: new high-speed USB device number 5 using xhci_hcd
[ 107.975822] usb 1-1: config 1 interface 0 altsetting 0 bulk endpoint 0x1 has invalid maxpacket 64
[ 107.976095] usb 1-1: New USB device found, idVendor=16c0, idProduct=296d, bcdDevice= 0.00
[ 107.976104] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 107.976111] usb 1-1: Product: QHY5-CMOS
[ 107.976143] usb 1-1: Manufacturer: QHY_CAMS



INDI Control Panel
2019-09-23T18:08:12: [INFO] World Coordinate System is enabled.
2019-09-23T18:08:11: [INFO] Device configuration applied.
2019-09-23T18:08:11: [INFO] Gain updated to 10
2019-09-23T18:08:11: [INFO] Upload settings set to client only.
2019-09-23T18:08:11: [INFO] Loading device configuration...
2019-09-23T18:08:10: [INFO] Gain Settings: Value: 10 Min: 0 Max: 100 Step 1
2019-09-23T18:08:10: [INFO] Current read mode: 0
2019-09-23T18:08:10: [INFO] Camera exposure limits: Min: 0.001000s Max: 3600s Step 0s
2019-09-23T18:08:10: [INFO] Number of read modes: 1



Ekos CCD module
2019-09-23T20:08:49 CCD capture aborted
2019-09-23T20:08:49 Capture failed. Check INDI Control Panel for details.
2019-09-23T20:08:49 Capturing 1,000-second image...



INDI Control Panel
2019-09-23T18:08:49: [INFO] Exposure aborted.
2019-09-23T18:08:49: [INFO] Exposure aborted.
2019-09-23T18:08:49: [ERROR] GetQHYCCDSingleFrame error (-1)
2019-09-23T18:08:10: [INFO] Connected to QHY5-M-.



cat /lib/udev/rules.d/85-qhyccd.rules
#===============================================================================
# Udev rules for QHYCCD cameras
#===============================================================================
# Initial Release
# Add rules for QHY2, QHY5, QHY6, QHY8
# Clive Rogers. 2 May 2009#
#
# Update 1
# Add rules for QHY10 and modified for libqhyccd
# YANG Xudong 21 Oct 2010
#
# Update 2
# Changed udev rules to get QHY163 and other FX3 cams working.
# Kept original rules at the end of rule's file.
# Jan Soldan, 2017-07-11
#
# Update 3
# Add usbfs memory limit
# Jasem Mutlaq 2019-09-21

#===============================================================================
# 1. Increase usbfs memory limit
#===============================================================================
# QHY-Based camera by other vendors
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="16c0", RUN+="/bin/sh -c '/bin/echo 256 >/sys/module/usbcore/parameters/usbfs_memory_mb'"
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1856", RUN+="/bin/sh -c '/bin/echo 256 >/sys/module/usbcore/parameters/usbfs_memory_mb'"
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1781", RUN+="/bin/sh -c '/bin/echo 256 >/sys/module/usbcore/parameters/usbfs_memory_mb'"
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="04b4", RUN+="/bin/sh -c '/bin/echo 256 >/sys/module/usbcore/parameters/usbfs_memory_mb'"
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0547", RUN+="/bin/sh -c '/bin/echo 256 >/sys/module/usbcore/parameters/usbfs_memory_mb'"
# QHYCCD
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1618", RUN+="/bin/sh -c '/bin/echo 256 >/sys/module/usbcore/parameters/usbfs_memory_mb'"
4 years 6 months ago #43792

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

  • Posts: 5
  • Thank you received: 0
My QHY5 seems to work as it should!
Looping and capturing works without errors.

I'm very pleased, thanks for the good work!

(in dmesg my QHY5 shows up with idVendor=1618, idProduct=0921, that number is not in 85-qhyccd.rules but it still works)
Last edit: 4 years 6 months ago by Hans.
4 years 6 months ago #43797

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

  • Posts: 4
  • Thank you received: 0

Your camera is in the rules :)

# QHYCCD
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1618", RUN+="/bin/sh -c '/bin/echo 256 >/sys/module/usbcore/parameters/usbfs_memory_mb'"
4 years 6 months ago #43803

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

  • Posts: 5
  • Thank you received: 0
Sorry, I had to be more specific; the idvendor (1618, QHYCCD) is clear, but my idproduct (0921) is not in the rules file to load a .HEX firmware file.

I expected something like this:
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1618", ATTRS{idProduct}=="0920", RUN+="/sbin/fxload -t fx2 -I /lib/firmware/qhy/QHY5II.HEX -D $env{DEVNAME}"

but than with {idproduct}=="0921"
4 years 6 months ago #43818

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

That's because it is 9020 and after the firmware is loaded, it becomes 9021.
The following user(s) said Thank You: Hans, David Moon
4 years 6 months ago #43819

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

  • Posts: 9
  • Thank you received: 1
Excellent, QHY5L, QHY PoleMaster, and QHY 168C all working now with the new 85-qhyccd.rules file. Thanks
4 years 6 months ago #43821

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

  • Posts: 459
  • Thank you received: 69
The only issue I have now is that Phd2 (for those so inclined) sees the camera via indi, but not with a direct connection (on an Odroid-N2 Ubuntu 18.04.3 LTS kernel 4.9.180-62 aarch64). Not sure I want to break things by tinkering this time.
4 years 6 months ago #43827

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

  • Posts: 6
  • Thank you received: 1
That seems to have dome the trick on my laptop running Linux, the Canon 100D and QHY5LII-M running happily together once again. Not had a chance to test it on the TinkerBoard yet - rain stops play :-(
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
4 years 6 months ago #43834

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

Time to create page: 1.965 seconds