×
INDI Library v1.8.5 Released (19 Apr 2020)

April 2020 release of INDI Library v1.8.5 introduces new drivers while providing fixes and improvements to existing devices and core framework.

QHY5 not found by Ekos

1 year 1 month ago 1 year 1 month ago by crw4096.
crw4096
Expert Boarder
Expert Boarder
Posts: 94
More
Topic Author
QHY5 not found by Ekos #40341

AradoSKYindi wrote: Hello CRW4096,
This session variable is setup in 85-QHY-Cameras.rules. The 85-QHYCCD.rules has the device parameters.


There *is* no "85-QHY-Cameras.rules" file. There is only "/lib/udev/rules.d/85-qhyccd.rules". I have grep'd the entire system:
<code>$ sudo find / \( -name '*QHY*.rules' -o -name '*qhy*.rules' \) -print
/lib/udev/rules.d/85-qhyccd.rules
/home/pi/git/indi/3rdparty/libqhy/85-qhyccd.rules</code>
These are the only rules file for QHY products, and as you can see, one of them is in my copy of the git repo and hence not active. I am attaching this file for your scrutiny.

Charles

(Sorry - looks like I forgot to attach the file. I'll get it later when I'm home)

Ubuntu 18.04 and Raspbian Jessie; INDI 1.7.4
Mounts: CEM-60 chiefly; iEQ45
Cameras: Atik 383L+, QHY5-II-M
Focuser: Moonlite

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

1 year 1 month ago 1 year 1 month ago by AradoSKYindi.
AradoSKYindi
Gold Boarder
Gold Boarder
Posts: 302
More
QHY5 not found by Ekos #40366
Hello CRW4096,

This is how I approached the problem. I look at the RULES files on my systems for QHYCCD. I had two.

I created this one. It had specific actions of setup for the QHY5LII-C. Looked over each 1618:0920 with QHY5II.hex entry. I used this template to configur the device.

85-qhy-camera-rules-local.rules

ACTION!="add", GOTO="qhy_end"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="qhy_test"
SUBSYSTEM!="usb_device", GOTO="qhy_end"

LABEL="qhy_test"

ATTRS{idVendor}=="1618", ATTRS{idProduct}=="0921", RUN+="/sbin/fxload -t fx2 -I /usr/local/openastro/lib/firmware/qhy/QHY5II.HEX -D $env{DEVNAME}"

ATTRS{idVendor}=="1618", ATTRS{idProduct}=="0941", RUN+="/sbin/fxload -t fx2 -I /usr/local/openastro/lib/firmware/qhy/POLEMASTER.HEX -D $env{DEVNAME}"

LABEL="qhy_end"

# This section is reached after the device has loaded the firmware and reset

ACTION!="add", GOTO="qhy_fw_end"
SUBSYSTEMS=="usb", GOTO="qhy_fw"
GOTO="qhy_fw_end"

LABEL="qhy_fw"

ATTRS{idVendor}=="1618", ATTRS{idProduct}=="0921*", OWNER="root", GROUP="users", MODE="0660", PROGRAM="/bin/sh -c 'i=0;while [ -e QHY5L-$i ]; do i=$(($i+1)); done; echo $i'", SYMLINK+="QHY5L-%c"

LABEL="qhy_fw_end"

This file sets up the USB communications and SYMLINK.

The next file has these additional commands. They could be combined together. I stuck with what I had. Besides, the code had terminations arleady setup. It works.

85-qhyccd.local.rules

#===============================================================================
# 1. Pre-enumerated device IDs:
#===============================================================================

# QHY
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1618", ATTRS{idProduct}=="0921", RUN+="/sbin/fxload -t fx2 -I /usr/local/lib/qhy/firmware/QHY5II.HEX -D $env{DEVNAME}"

ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1618", ATTRS{idProduct}=="0941", RUN+="/sbin/fxload -t fx2lp -I /usr/local/lib/qhy/firmware/POLEMASTER.HEX -D $env{DEVNAME}"

#===============================================================================
# 2. Post-enumeration device IDs:
#===============================================================================


# QHYCCD
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1618", ATTRS{idProduct}=="0921", MODE="0666", GROUP="plugdev"
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1618", ATTRS{idProduct}=="0941", MODE="0666", GROUP="plugdev"

# Stock QHY
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1618", ATTRS{idProduct}=="0921", MODE="0666"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1618", ATTRS{idProduct}=="0941", MODE="0666"
ATTRS{idVendor}=="1618",ATTRS{idProduct}=="0921", ENV[ID_MM_DEVICE}="1"
ATTRS{idVendor}=="1618",ATTRS{idProduct}=="0921", ENV{MTP_NO_PROBE="1"

LABEL="qhy-rules-end"


I separated out the originals and created new local files. This will prevent the orginals from being overwritten.

Clear skies.

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

1 year 1 month ago 1 year 1 month ago by han.k.
han.k
Gold Boarder
Gold Boarder
Posts: 303
Karma: 6
More
QHY5 not found by Ekos #40903
I have a new setup with Raspbian Buster and want to connect an original QHY5 (2011) to PHD2. The original QHY5 seems not supported by PHD2, but also the INDI driver indi_qhy_ccd doesn't work. With -vvv option the driver reports waiting for the hardware to be connected.

Is it still possible to use the original QHY5 using an older INDI driver?
Any additional driver required?

Han

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

1 year 1 month ago 1 year 1 month ago by han.k.
han.k
Gold Boarder
Gold Boarder
Posts: 303
Karma: 6
More
QHY5 not found by Ekos #40909
I just got the first generation QHY5 working using an old virtual machine running Ubuntu Astronomy 16.04, Indi 1.6.3, indi_qhy_CCD driver v1.8. I will look if I can install the old QHY driver.

Is it not better to keep this old driver in the library as suggested earlier?

Han

Later, downloaded INDI 1.6.2 but what to do with this error? Folder libqhy is in 3rdparty??

pi@raspberrypi:~/indi_old/build/indi-qhy $ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ../../3rdparty/indi-qhy
-- The CXX compiler identification is GNU 8.3.0
-- The C compiler identification is GNU 8.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found CFITSIO 3.45: /usr/lib/arm-linux-gnueabihf/libcfitsio.so
-- Found INDI: /usr/lib/arm-linux-gnueabihf/libindidriver.so;/usr/lib/arm-linux-gnueabihf/libindiAlignmentDriver.so (found version "1.6.2")
CMake Error at /home/pi/indi_old/cmake_modules/FindQHY.cmake:44 (message):
QHY not found. Please install libqhy www.indilib.org
Call Stack (most recent call first):
CMakeLists.txt:13 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/pi/indi_old/build/indi-qhy/CMakeFiles/CMakeOutput.log".

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

1 year 1 month ago 1 year 1 month ago by han.k.
han.k
Gold Boarder
Gold Boarder
Posts: 303
Karma: 6
More
QHY5 not found by Ekos #40927
Okay found a solution at :
indilib.org/forum/general/693-qhy-driver...pped-by-default.html

first go to directory libqhy
cmake -DCMAKE_INSTALL_PREFIX=/usr
sudo make install

But still the driver still doesn't detect the original QHY5. Strange is the new INDI not fully overwritten by the old?. It works using an old virtual machine.

Later:
Installed INDI v1.6.2. on a new Raspian Buster installation, same problem. Driver doesn't see the QHY5. "NO QHY camera detected. Power on?"
Installed v.1.6.2 on a virtual machine Lubuntu 18.04, the QHY5 camera is seen. Images can be taken

Why does it work in Ubuntu virtual machine and not on Pi 3 with Raspbian Buster??? Different USB behavior?

The QHY5 is on device 004 and is not recognised:

pi@raspberrypi:/usr/bin $ lsusb
Bus 001 Device 004: ID 1618:0901
Bus 001 Device 006: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory
Bus 001 Device 005: ID 046d:c03d Logitech, Inc. M-BT96a Pilot Optical Mouse
Bus 001 Device 007: ID 0424:7800 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pi@raspberrypi:/usr/bin $

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

1 year 1 month ago
Odiug
Senior Boarder
Senior Boarder
Posts: 45
More
QHY5 not found by Ekos #40940
You could also try to use indi-ssag. The Starshoot Autoguider is in fact a QHY5.

However this driver works a bit different. For indi-qhy, the firmware for the QHY5 is loaded by the udev kernel mechanism, with the help of fxload and a udev rule which can either be found in /lib/udev/rules.d or /etc/udev/rules.d. In my case it is 85-qhy.rules.

The indi-ssag driver needs to find an uninitialized SSAG or QHY5, because it loads the firmware on its own. For this the loading of the firmware via udev must be prevented. If 85-qhy.rules is found in /lib/udev/rules.d the cleanest way to disable is "ln -s /dev/null /etc/udev/rules.d/85-qhy.rules", because a rule file under /etc/udev/rules.d shadows a rule file with the same name under /lib/udev/rules.d.

What do you want to use the QHY5 for? It's quite outdated and especially the Linux firmware has some (hidden) issues (Indeed for some strange reason, Windows loads a different, slightly simpler and I assume slightly older firmware ).
I probably should write down my findings about the QHY5/SSAG from my experience in building a QHY5 clone and analyzing the firmware, but I didn't find the time yet.

CS
Guido

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

1 year 1 month ago
han.k
Gold Boarder
Gold Boarder
Posts: 303
Karma: 6
More
QHY5 not found by Ekos #40942
Guido,

Thanks for your advice. At this moment I come to the conclusion that the USB detection is causing the problem. i have installed INDI 1.6.2 in both a Raspberry Pi3B and virtual machine running Lubuntu . In the virtual machine it works most of the time. lsusb reports the QHY5 correctly. In Pi3, lsusb doesn't do that for the QHY5 only.

I tried tonight also my classic QHY8 (for guiding), but it seems to suffer from the same problem.

To conclude, I just found and will buy a secondhand QHY5-II. This should solve my problems and I will sell the QHY5 for use in Windows. The QHY5 served me well since 2011 using the ASCOM driver. The large sensor is still great for guiding and in 99.8% of the time a guide star is within range. Modern guide camera have often a smaller sensors and cost a few hunderd euros/dollars.

Maybe the USB of the Pi4 (which will arrive in one or two days) will behave differently, but the QHY5-II will solve any problems and can be read by PHD2 directly.

Han

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

1 year 1 month ago 1 year 1 month ago by han.k.
han.k
Gold Boarder
Gold Boarder
Posts: 303
Karma: 6
More
QHY5 not found by Ekos #40966
Okay , I have now QHY5-II mono. Still the same problem also in the Pi 4 . It is not reported in the USB list :(

pi@raspberrypi:/usr/bin $ lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory
Bus 001 Device 015: ID 1618:0920
Bus 001 Device 014: ID 046d:c03d Logitech, Inc. M-BT96a Pilot Optical Mouse
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Bus 001 Device 015: ID 1618:0920 is added as soon I connect the QHY5-II mono
Anyone an idea how to solve this?

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

1 year 1 month ago
wvreeven
Platinum Boarder
Platinum Boarder
Posts: 1576
Karma: 8
More
QHY5 not found by Ekos #40967
Han,

Open a terminal and type

dmesg -w

This will print out all kernel messages since boot time and then will wait for more. Then connect the camera and see what messages you get. They will give you a hint as to why the camera doesn't get recognised.


Wouter

ASI6200 and filter wheel with a SkyWatcher Esprit 80 ED on a SkyWatcher HEQ5-Pro
ASI1600MM-Pro Cooled and filter wheel with an 8" TS Ritchey-Chrétien on a SkyWatcher EQ6-R

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

1 year 1 month ago 1 year 1 month ago by han.k.
han.k
Gold Boarder
Gold Boarder
Posts: 303
Karma: 6
More
QHY5 not found by Ekos #40968
Hello Wouter,

This are the messages of the QHY5-II

[ 5005.050149] usb 1-1.3: new high-speed USB device number 22 using xhci_hcd
[ 5005.190417] usb 1-1.3: New USB device found, idVendor=1618, idProduct=0920, bcdDevice= 0.00
[ 5005.190434] usb 1-1.3: New USB device strings: Mfr=0, Product=0, SerialNumber=0

No device strings?

Met vriendelijke groet, Han

Later, maybe this gives an hint:
www.indilib.org/forum/ccds-dslrs/1158-qh...i-camera-driver.html

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

1 year 1 month ago 1 year 1 month ago by han.k.
han.k
Gold Boarder
Gold Boarder
Posts: 303
Karma: 6
More
QHY5 not found by Ekos #40970
Okay got it working after entering:

sudo apt-get install fxload

I'm not sure if this did the trick, but I will try the same trick with my Pi 3. lsusb till reports the same.
Imaging works!

Finally :) :)

Later, also my original QHY5 works now in the Raspberry Pi3 using INDI driver 1.6.2. The orginal QHY5 didn't work with INDI 1.7.9. The only thing to do is:

sudo apt-get install fxload
The following user(s) said Thank You hades

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

1 year 1 month ago
wvreeven
Platinum Boarder
Platinum Boarder
Posts: 1576
Karma: 8
More
QHY5 not found by Ekos #40971
Hallo Han,

The fact that the device string is not displayed simply means that the vendor and device id are not known to your system but it doesn’t mean that the device won’t work. Good job on getting the camera to work. Happy imaging!!!


Groetjes, Wouter

ASI6200 and filter wheel with a SkyWatcher Esprit 80 ED on a SkyWatcher HEQ5-Pro
ASI1600MM-Pro Cooled and filter wheel with an 8" TS Ritchey-Chrétien on a SkyWatcher EQ6-R

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

Time to create page: 1.390 seconds