×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

QHY Driver problem wrong libqhy.so version

  • Posts: 45
  • Thank you received: 6
I am stuck with this :(
It prevents me from testing in the field ubuntu-MATE kstars/ekos on raspberry pi 2. I will spend a lot of time on the observatory next month and it is annoying not being able to put the time into good use.

But most important for QHY, it prevents me from buying its IC8300 camera. It's no sense to sell a linux camera to integrate INDI but not having working drivers! I lost my faith on that branch.
8 years 10 months ago #4287

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

  • a Guest
  • a Guest's Avatar
  • Visitor
  • Visitor

Replied by a Guest on topic QHY Driver problem wrong libqhy.so version

Hello

I have tested QHY9S with five holes color filter wheel.It seems working well.please see the following picture:

the following env is :
PI2 + ubuntu mate
INDI Library:1.1.0
indi-qhy:1.3
libqhy version 0.1.4






the following env is :
ubuntu 14.04 x86_64
INDI Library:1.1.0
indi-qhy:1.3
libqhy version 0.1.4





I updated the libindi indi-qhy libqhy to the latest verion.

So.If you find any problems.please tell me,I think all problems will find a way to fix.

BTW. I am a programer of QHYCCD.

Best Regards!

lzr
Last edit: 8 years 10 months ago by a Guest.
8 years 10 months ago #4288
Attachments:

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

  • Posts: 45
  • Thank you received: 6
Thank you lzr!

So there is a way to get it working!! I think I will find time tomorrow, so I will try to put some order on the lib versions, as I don't have same versions you show.

In the mean time, would you be so kind to let us know the way we can get the proper versions? I don't think I am discovering those through apt-get and knro repositories.

As soon as I got it working I will report how it works on the field
8 years 10 months ago #4296

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

  • Posts: 45
  • Thank you received: 6
I eventually got it working. After matching lib versions I still got two problems. First, it kept showing 0.1.2 missing. And second, udev rules not ready for my qhy5.

libqhy.so was a link to a missing file libqhy.so.0.
So I linked it to the libqhy.0.1.4. I don't recall a reason for that broken link so I guess it wasn't my fault ;)

Regarding udev rules I ended up adding as many as 4 lines. Don't ask me why, as I don't understand what i did.

So it would be pretty helpful to easy things...
8 years 10 months ago #4307

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

  • Posts: 171
  • Thank you received: 41
Can you post the lines you added to udev rules? Then we can analyze it and add them to the driver ;) Was the same for my QHY5, there seem to be a whole collection of PIDs.

@Libs: Looks like something went wrong there :( When the driver searched for 0.1.2 it was compiled against it. Then the driver (up to date one) should be recompiled against 0.1.4. As I'm the Fedora packager for INDI things I know very well that this is quite sensitive.

Greetings,
Christian
Last edit: 8 years 10 months ago by Christian. Reason: typo
8 years 10 months ago #4308

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

  • Posts: 45
  • Thank you received: 6
What I did for my qhy5 to work was adding 4 lines to 85-qhy.rules, as I said. Maybe the logic of what I did is wrong, but I worked ;)

I found 3 lines referening to the same qhy5 device:
ATTRS{idVendor}=="1618", ATTRS{idProduct}=="1002", RUN+="/sbin/fxload -t fx2 -I /lib/firmware/qhy/QHY5LOADER.HEX -D $env{DEVNAME}"
SYSFS{idVendor}=="1618", SYSFS{idProduct}=="1002", RUN+="/bin/sleep 5"
ATTRS{idVendor}=="1618", ATTRS{idProduct}=="1002", RUN+="/sbin/fxload -t fx2 -I /lib/firmware/qhy/QHY5.HEX -D $env{DEVNAME}"

So I duplicated those 3 lines and changed vids and pids for mines: 16c0 296a. And then went to the end of the file and duplicated this line:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="2971", MODE="0666"
changing again vid and pid for 16c0 and 296a

I hope it helps someone.

Regards,
Last edit: 8 years 10 months ago by gus.
8 years 10 months ago #4320

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

  • Posts: 13
  • Thank you received: 0
Hi, I'm a n00b to INDI trying to get up to speed and eventually contribute something. I've purchased a QHY5L-II and have it running nicely on LinGuider, but not quite running on a Pi 2 with indiserver. I've been reading all the relevant posts I can find, compiled and installed version 2286 from SVN, and fixed the Missing Link by pointing it to /usr/lib/libqhy.so.0.1.4.

At this point, running KStars/Ekos from a desktop gets a connection to the camera, but asking it to take an image results in the client getting stuck waiting for the capture to finish. I think the camera is being set up correctly based on the following from dmesg:
[ 1870.399548] usb 1-1.5: new high-speed USB device number 6 using dwc_otg
[ 1870.499964] usb 1-1.5: New USB device found, idVendor=1618, idProduct=0920
[ 1870.499988] usb 1-1.5: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1870.675465] usb 1-1.5: USB disconnect, device number 6
[ 1872.449601] usb 1-1.5: new high-speed USB device number 7 using dwc_otg
[ 1872.549918] usb 1-1.5: config 1 interface 0 altsetting 0 bulk endpoint 0x81 has invalid maxpacket 64
[ 1872.549943] usb 1-1.5: config 1 interface 0 altsetting 0 bulk endpoint 0x1 has invalid maxpacket 64
[ 1872.550376] usb 1-1.5: New USB device found, idVendor=1618, idProduct=0921
[ 1872.550398] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1872.550415] usb 1-1.5: Product: QHY5-II 12-5-1   
[ 1872.550432] usb 1-1.5: Manufacturer: QHC-CCD
However, in the terminal in which indiserver is running, I get this:
$ sudo indiserver -v -m 100 indi_qhy_ccd
2015-06-07T18:17:22: startup: indiserver -v -m 100 indi_qhy_ccd 
2015-06-07T18:17:22: Driver indi_qhy_ccd: pid=2303 rfd=3 wfd=6 efd=7
2015-06-07T18:17:22: listening to port 7624 on fd 4
2015-06-07T18:17:22: Driver indi_qhy_ccd: snooping on Telescope Simulator.EQUATORIAL_EOD_COORD
2015-06-07T18:17:22: Driver indi_qhy_ccd: snooping on Telescope Simulator.TELESCOPE_INFO
2015-06-07T18:17:22: Driver indi_qhy_ccd: snooping on CCD Simulator.FILTER_SLOT
2015-06-07T18:17:22: Driver indi_qhy_ccd: snooping on CCD Simulator.FILTER_NAME
2015-06-07T18:18:26: Client 0: new arrival from 192.168.1.44:38786 - welcome!
2015-06-07T18:19:33: Driver indi_qhy_ccd: stdin EOF
2015-06-07T18:19:33: Driver indi_qhy_ccd: restart #1
2015-06-07T18:19:33: Driver indi_qhy_ccd: pid=2306 rfd=3 wfd=7 efd=8
2015-06-07T18:19:33: Driver indi_qhy_ccd: snooping on Telescope Simulator.EQUATORIAL_EOD_COORD
2015-06-07T18:19:33: Driver indi_qhy_ccd: snooping on Telescope Simulator.TELESCOPE_INFO
2015-06-07T18:19:33: Driver indi_qhy_ccd: snooping on CCD Simulator.FILTER_SLOT
2015-06-07T18:19:33: Driver indi_qhy_ccd: snooping on CCD Simulator.FILTER_NAME
2015-06-07T18:19:52: Driver indi_qhy_ccd: indi_qhy_ccd dispatch error: 
...and trying to do much of anything with the camera driver -- set the exposure or gain, for example -- results in the message
Driver indi_qhy_ccd: indi_qhy_ccd dispatch error:
with the corresponding state indicator stuck in busy lemon mode.

So, some questions:
  • Anything obviously dumb I'm doing? :dry:
  • There doesn't seem to be firmware specific to the QHY5L-II, just QHY5II.HEX. Is that the right file to be loaded for the L version?
  • Any other suggestions as to where my debugging efforts should be directed? I'm somewhat competent with C/C++ and Debian and would like to help squash some bugs.

Thanks
8 years 10 months ago #4336

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

You're not doing anything wrong, QHY also crashes for me. I emailed QHY and still waiting for response. The problem is that only binary blob is available from QHY and no debug symbols, so we have to wait on QHY to resolve this.
8 years 10 months ago #4337

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

  • Posts: 13
  • Thank you received: 0
OK, thanks for the information.
8 years 10 months ago #4338

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

  • a Guest
  • a Guest's Avatar
  • Visitor
  • Visitor

Replied by a Guest on topic QHY Driver problem wrong libqhy.so version

Hello adinghi

I have tested on PI2 with ubuntu mate.you could check my post link:

indilib.org/forum/ccds-dslrs/741-qhy-dri...on.html?start=6#4320

I did not think this problem is just libqhy's problem.But I need some help from you.I want to have a online talk with you.please help me...

Best Regads!

lzr
Last edit: 8 years 10 months ago by a Guest.
8 years 10 months ago #4339

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

  • Posts: 13
  • Thank you received: 0
OK, how can I help? I'm happy to try, within the usual time constraints imposed by the day job, etc.

I had looked at your post before I wrote my first message on this thread, and I tried the method used by gus_ to see if it would work. It didn't work for my QHY5L-II, which would seem to make sense given the new camera's different firmware process.

One thing about the new camera has worked spectacularly well: Since the camera arrived, my town has been covered in dense fog... :S
8 years 10 months ago #4340

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

  • a Guest
  • a Guest's Avatar
  • Visitor
  • Visitor

Replied by a Guest on topic QHY Driver problem wrong libqhy.so version

I am sure the good weather will come soon :)

I tested ubuntu mate last time.I have QHY5LII and PI2.tell me more details I will test and find the problem for you.

1.did you use usb hub with external power?

2.which system img are you using for PI2?
8 years 10 months ago #4341

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

Time to create page: 1.284 seconds