×

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

Bi-monthly release with minor bug fixes and improvements

QHY9 INDI driver using libqhyccd

  • Posts: 13
  • Thank you received: 1
Hi Dan,

I still can't see the log file attached. I noticed you edited the post for that reason, but it's still missing... :(

Just post a link to a pastebin.com/ paste... Probably the easiest.
Last edit: 9 years 8 months ago by Alex Roman. Reason: added pastebin info
9 years 8 months ago #1625

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

  • Posts: 155
  • Thank you received: 10
Let try this:
audela@dan-N61PC-M2S ~/Downloads/indi-qhy9-libqhyccd-master $ cmake .
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- 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
-- 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
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- checking for module 'libindi'
-- package 'libindi' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find INDI (missing: INDI_INCLUDE_DIR INDI_LIBRARIES
INDI_DRIVER_LIBRARIES INDI_MAIN_LIBRARIES INDI_CLIENT_LIBRARIES)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
cmake_modules/FindINDI.cmake:71 (find_package_handle_standard_args)
CMakeLists.txt:8 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/audela/Downloads/indi-qhy9-libqhyccd-master/CMakeFiles/CMakeOutput.log".

Dan
9 years 8 months ago #1626

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

  • Posts: 13
  • Thank you received: 1
Well, 'tis an easy one - you need the indi development libraries installed. This is generally distro-specific, but for debian/ubuntu you can try '$ sudo apt-get build-dep libindi0c' (at least on my system it's called that...).
9 years 8 months ago #1627

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

  • Posts: 155
  • Thank you received: 10
Hi Alex,
Finally, a true LInux man. We're getting closer...
audela@dan-N61PC-M2S ~/Downloads/indi-qhy9-libqhyccd-master $ sudo apt-get build-dep libindi0c
[sudo] password for audela:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Picking 'libindi' as source package instead of 'libindi0c'
The following NEW packages will be installed:
libgsl0-dev

OOps sorry, I will get the files....
Last edit: 9 years 8 months ago by Dan Holler. Reason: Error retrieving the correct files.
9 years 8 months ago #1628

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

  • Posts: 155
  • Thank you received: 10
Now, having a little problems with Make.

audela@dan-N61PC-M2S ~/indi-qhy9-libqhyccd-master $ make
Scanning dependencies of target indi_qhy9_libqhyccd_ccd
[100%] Building CXX object CMakeFiles/indi_qhy9_libqhyccd_ccd.dir/src/qhy9.cc.o
/home/audela/indi-qhy9-libqhyccd-master/src/qhy9.cc: In member function ‘virtual bool QHY9::StartExposure(float)’:
/home/audela/indi-qhy9-libqhyccd-master/src/qhy9.cc:165:33: error: ‘SHUTTER_CLOSED’ was not declared in this scope
SetQHYCCDShutter(m_hdl, SHUTTER_CLOSED);
^
/home/audela/indi-qhy9-libqhyccd-master/src/qhy9.cc:165:47: error: ‘SetQHYCCDShutter’ was not declared in this scope
SetQHYCCDShutter(m_hdl, SHUTTER_CLOSED);
^
/home/audela/indi-qhy9-libqhyccd-master/src/qhy9.cc:168:33: error: ‘SHUTTER_OPEN’ was not declared in this scope
SetQHYCCDShutter(m_hdl, SHUTTER_OPEN);
^
/home/audela/indi-qhy9-libqhyccd-master/src/qhy9.cc:168:45: error: ‘SetQHYCCDShutter’ was not declared in this scope
SetQHYCCDShutter(m_hdl, SHUTTER_OPEN);
^
/home/audela/indi-qhy9-libqhyccd-master/src/qhy9.cc: In member function ‘virtual void QHY9::TimerHit()’:
/home/audela/indi-qhy9-libqhyccd-master/src/qhy9.cc:238:37: error: ‘SHUTTER_FREE’ was not declared in this scope
SetQHYCCDShutter(m_hdl, SHUTTER_FREE);
^
/home/audela/indi-qhy9-libqhyccd-master/src/qhy9.cc:238:49: error: ‘SetQHYCCDShutter’ was not declared in this scope
SetQHYCCDShutter(m_hdl, SHUTTER_FREE);
^
make[2]: *** [CMakeFiles/indi_qhy9_libqhyccd_ccd.dir/src/qhy9.cc.o] Error 1
make[1]: *** [CMakeFiles/indi_qhy9_libqhyccd_ccd.dir/all] Error 2
make: *** [all] Error 2
9 years 8 months ago #1629

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

  • Posts: 155
  • Thank you received: 10
Hello Alex,
Rather than go back and forth on the forum, perhaps this is best worked out directly, then, we can post a single procedure for others to follow. Knowing you have posted on QHY forum, you can get my mail address from that forum.

I am thinking we need to list any dependencies, special directories, procedures, etc.

Thoughts?

Best wishes,
Dan
9 years 8 months ago #1630

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

  • Posts: 13
  • Thank you received: 1
Make sure you have the latest version of the QHYCCD_Linux library installed. Check out the master branch from my tree on github and build and install that. It won't overwrite anything.

We can get in touch later today, or tomorrow if you still have issues. Sound like you're almost there though :)
9 years 8 months ago #1635

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

  • Posts: 155
  • Thank you received: 10
Hello Alex,
I'm sorry, but, I am still not getting what you want installed where. Here is my latest attempt using your links at the beginning of this thread. To me, the results below mean the code is not compiling correctly with, either, your master files or the development files. What am I missing?

audela@dan-N61PC-M2S ~/Downloads/indi-qhy9-libqhyccd-master $ sudo make
[sudo] password for audela:
Scanning dependencies of target indi_qhy9_libqhyccd_ccd
[100%] Building CXX object CMakeFiles/indi_qhy9_libqhyccd_ccd.dir/src/qhy9.cc.o
/home/audela/Downloads/indi-qhy9-libqhyccd-master/src/qhy9.cc: In member function ‘virtual bool QHY9::StartExposure(float)’:
/home/audela/Downloads/indi-qhy9-libqhyccd-master/src/qhy9.cc:165:33: error: ‘SHUTTER_CLOSED’ was not declared in this scope
SetQHYCCDShutter(m_hdl, SHUTTER_CLOSED);
^
/home/audela/Downloads/indi-qhy9-libqhyccd-master/src/qhy9.cc:165:47: error: ‘SetQHYCCDShutter’ was not declared in this scope
SetQHYCCDShutter(m_hdl, SHUTTER_CLOSED);
^
/home/audela/Downloads/indi-qhy9-libqhyccd-master/src/qhy9.cc:168:33: error: ‘SHUTTER_OPEN’ was not declared in this scope
SetQHYCCDShutter(m_hdl, SHUTTER_OPEN);
^
/home/audela/Downloads/indi-qhy9-libqhyccd-master/src/qhy9.cc:168:45: error: ‘SetQHYCCDShutter’ was not declared in this scope
SetQHYCCDShutter(m_hdl, SHUTTER_OPEN);
^
/home/audela/Downloads/indi-qhy9-libqhyccd-master/src/qhy9.cc: In member function ‘virtual void QHY9::TimerHit()’:
/home/audela/Downloads/indi-qhy9-libqhyccd-master/src/qhy9.cc:238:37: error: ‘SHUTTER_FREE’ was not declared in this scope
SetQHYCCDShutter(m_hdl, SHUTTER_FREE);
^
/home/audela/Downloads/indi-qhy9-libqhyccd-master/src/qhy9.cc:238:49: error: ‘SetQHYCCDShutter’ was not declared in this scope
SetQHYCCDShutter(m_hdl, SHUTTER_FREE);
^
make[2]: *** [CMakeFiles/indi_qhy9_libqhyccd_ccd.dir/src/qhy9.cc.o] Error 1
make[1]: *** [CMakeFiles/indi_qhy9_libqhyccd_ccd.dir/all] Error 2
make: *** [all] Error 2
audela@dan-N61PC-M2S ~/Downloads/indi-qhy9-libqhyccd-master $ cd '/home/audela/Downloads/indi-qhy9-libqhyccd-develop'
audela@dan-N61PC-M2S ~/Downloads/indi-qhy9-libqhyccd-develop $ cmake .
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- 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
-- 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
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- checking for module 'libindi'
-- found libindi, version 0.9.8
-- Found INDI: /usr/include/libindi (found version "0.9.8")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/audela/Downloads/indi-qhy9-libqhyccd-develop
audela@dan-N61PC-M2S ~/Downloads/indi-qhy9-libqhyccd-develop $ make
Scanning dependencies of target indi_qhy9_libqhyccd_ccd
[100%] Building CXX object CMakeFiles/indi_qhy9_libqhyccd_ccd.dir/src/qhy9.cc.o
/home/audela/Downloads/indi-qhy9-libqhyccd-develop/src/qhy9.cc: In member function ‘virtual bool QHY9::StartExposure(float)’:
/home/audela/Downloads/indi-qhy9-libqhyccd-develop/src/qhy9.cc:165:33: error: ‘SHUTTER_CLOSED’ was not declared in this scope
SetQHYCCDShutter(m_hdl, SHUTTER_CLOSED);
^
/home/audela/Downloads/indi-qhy9-libqhyccd-develop/src/qhy9.cc:165:47: error: ‘SetQHYCCDShutter’ was not declared in this scope
SetQHYCCDShutter(m_hdl, SHUTTER_CLOSED);
^
/home/audela/Downloads/indi-qhy9-libqhyccd-develop/src/qhy9.cc:168:33: error: ‘SHUTTER_OPEN’ was not declared in this scope
SetQHYCCDShutter(m_hdl, SHUTTER_OPEN);
^
/home/audela/Downloads/indi-qhy9-libqhyccd-develop/src/qhy9.cc:168:45: error: ‘SetQHYCCDShutter’ was not declared in this scope
SetQHYCCDShutter(m_hdl, SHUTTER_OPEN);
^
/home/audela/Downloads/indi-qhy9-libqhyccd-develop/src/qhy9.cc: In member function ‘virtual void QHY9::TimerHit()’:
/home/audela/Downloads/indi-qhy9-libqhyccd-develop/src/qhy9.cc:238:37: error: ‘SHUTTER_FREE’ was not declared in this scope
SetQHYCCDShutter(m_hdl, SHUTTER_FREE);
^
/home/audela/Downloads/indi-qhy9-libqhyccd-develop/src/qhy9.cc:238:49: error: ‘SetQHYCCDShutter’ was not declared in this scope
SetQHYCCDShutter(m_hdl, SHUTTER_FREE);
^
make[2]: *** [CMakeFiles/indi_qhy9_libqhyccd_ccd.dir/src/qhy9.cc.o] Error 1
make[1]: *** [CMakeFiles/indi_qhy9_libqhyccd_ccd.dir/all] Error 2
make: *** [all] Error 2
audela@dan-N61PC-M2S ~/Downloads/indi-qhy9-libqhyccd-develop $
9 years 8 months ago #1639

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

  • Posts: 13
  • Thank you received: 1
Hi Dan,

You're using an older versoin of QHYCCD_Linux from my github tree. Go to where you checked out my version of the QHY lib and do the following:
$ git checkout master
$ git pull

Then re-run cmake and make.

One recommendation, to keep everything nice and clean is to create a separate build directory. So, if your code was in ~/QHYCCD_Linux, I would create ~/QHYCCD_Linux-build, and from there run:
$ cmake -DCMAKE_INSTALL_PREFIX=/usr/local ../QHYCCD_Linux
$ make
$ sudo make install

Of course, replace /usr/local with the path where you would like to install this... I recommend /usr/local, but you may have your preference. It doesn't really matter where, as long as LD_LIBRARY_PATH points to that location.
9 years 8 months ago #1641

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

  • Posts: 155
  • Thank you received: 10
Hello Alex,
THANK YOU SIR! :cheer: After somewhat of a struggle, I can confirm the QHY9C camera does work with your driver and KStars Ekos. I tested the camera in 1x1, 2x2, and 4x4. I think they are ok. 3x3 has a framing error and does not display correctly. Your dark frame shutter control appeared to be working . (well somewhat, my camera might have a light leak). The TEC control appeared to be seeking a temperature at full PWM, so, I would recommend you take a look at Giampiero's github site for a suitable code. Such rapid high power temperature swings are not to be recommended. All in ALL, a big thumbs up and thanks.
BTW, there is a file which I needed to rename. The indi-qhy9.xml file my system had needed to be indi-qhy9_libqhyccd_ccd.xml for me to use the install. Great work and help,

Best wishes,
Dan
9 years 8 months ago #1642

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

  • Posts: 13
  • Thank you received: 1
Hey Dan,

Glad to hear it's (almost) all sorted out!

3x3 has a framing error (I think) because the width/height don't divide evenly, and so QHY's driver uses a bit of extra "overscan" to make it an integer number, and so I have to figure out that exact number and sort out the framing.

The shutter control... I have the same issue. I think you really need the lens cap on to do any real dark frames...

The temperature control code comes directly from QHY, I think the main reason why they don't recommend it is that most people connect the DC201 controller straight to a 12V car/marine battery, which is bad, because it expects regulated 12VDC. The battery is NOT regulated and, fully charged, is at 13.6V or so, thus you're over-driving the TEC controller, and at full duty cycle, you are likely to burn it out more rapidly than at the designed 12V operating voltage. I run my camera through a DC-DC converter with 8-40V input and 12V regulated 3.5A output. It works very well and there is no noise, and barely any loss. There could also be an issue with the rapid temperature change, but given that this code is from QHY I am somewhat reluctant to think that it would cause damage. It is implemented like that for all their cameras. I will ask them on their board though, you got me worried...

I will check in a fix for the file name change.

Now if only QHY would answer questions more quickly... :(
Last edit: 9 years 8 months ago by Alex Roman.
9 years 8 months ago #1643

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

  • Posts: 13
  • Thank you received: 1
What about addressing the TEC problem in two ways:
1. Have a control for the maximum TEC PWM in % set to 75% by default
2. Provide a Warm-Up control that slowly brings the temperature down at a configurable rate. How do other INDI drivers deal with this?
9 years 8 months ago #1644

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

Time to create page: 0.882 seconds