QHYCCD

Qhy2Pro not working?

Qhy2Pro not working?
« on: December 09, 2018, 11:44:56 pm »
Hi!

I have a QHY2 Pro that I was hoping would work with indi. When I start the driver it sees the camera and I am able to change things such as gain and offset in EKOS, but when I try to take an exposure from EKOS I get the message

[ERROR] Set expose time failed (-1).

I tried to run qhy_ccd_test which gives this output to the command line
-------
QHY Test CCD using SingleFrameMode, Version: 1.00
QHYCCD | qhyccd.cpp | InitQHYCCDResource | START
QHYCCD | qhyccd.cpp | InitQHYCCDResource | END
SDK resources initialized.
ScanQHYCCD
QHYCCD |  QHYCCD.CPP SCANQHYCCD | start
vid = 16c0 pid = 2971
QHYCCD QHYCCD.CPP InitQHYCCDClass(camtype,index):| 221 0
QHYCCDRD nSize | ccdimagew ccdimageh 1440 1050
imagequeuelength 0x6c17e0 framelength 0x6c17e0
QHYCCD | QHYCCD.CPP ScanQHYCCD | init the imagequeue,nSize=7084000
GetIdFromCam
ScanQHYCCD numdev=1
QHYCCD | QHYCCD.CPP ScanQHYCCD | finished. Return nid=1
Number of QHYCCD cameras found: 1
GetQHYCCDId
QHYCCD | qhyccd.cpp | GetQHYCCDId | START
QHYCCD QHYCCD.CPP GetQHYCCDId | index=0 id=QHY2PRO-M-010103XXXXXXXXXX
Application connected to the following camera from the list: Index: 1,  cameraID = QHY2PRO-M-010103XXXXXXXXXX
QHYCCD | qhyccd.cpp | OpenQHYCCD | START
OpenQHYCCD camid=QHY2PRO-M-010103XXXXXXXXXX
QHYCCD | QHYCCD.CPP OpenQHYCCD | camera id=QHY2PRO-M-010103XXXXXXXXXX
QHYBASE ConnectCamera
openCamera
ConnectCamera
Open QHYCCD success.
QHYCCD | qhyccd.cpp | SetQHYCCDStreamMode | START
QHYCCD | QHYCCD.CPP SetQHYCCDStreamMode | mode=0
QHYBASE SetStreamMode 0
QHYCCD | QHYCCD.CPP SetQHYCCDStreaMode | return value=0
SetQHYCCDStreamMode set to: 0, success.
QHYCCD | QHYCCD.CPP InitQHYCCD | return value=-1
QHYCCD_handle2index - index 0
will init QHYCCD
QHYCCD | QHYCCD.CPP InitQHYCCD | return value=0
InitQHYCCD success.
QHYBASE GetOverScanArea overScanStartX=1424 overScanStartY=30 overScanSizeX=10 overScanSizeY=1000
QHYCCD |  QHYCCD.CPP GetOverscanArea startx starty sizex sizey 1424 30 10 1000
GetQHYCCDOverScanArea:
Overscan Area startX x startY : 1424 x 30
Overscan Area sizeX  x sizeY  : 10 x 1000
QHYBASE GetOverScanArea overScanStartX=1424 overScanStartY=30 overScanSizeX=10 overScanSizeY=1000
QHYCCD |  QHYCCD.CPP GetOverscanArea startx starty sizex sizey 1424 30 10 1000
GetQHYCCDEffectiveArea:
Effective Area startX x startY: 1424 x 30
Effective Area sizeX  x sizeY : 10 x 1000
QHYBASE GetChipInfo ccdchipw=10.200000 ccdchiph=8.300000 ccdimagew=1440 ccdimageh=1050 ccdpixelw=6.450000 ccdpixelh=6.450000 cambits=16
QHYCCD | QHYCCD.CPP GetQHYCCDChipInfo | chipw,chiph,imagew,imageh,pixelw,pixelh,bpp 10.200000,8.300000,1440,1050,6.450000,6.450000,16
GetQHYCCDChipInfo:
Effective Area startX x startY: 1424 x 30
Chip  size width x height     : 10.200 x 8.300 [mm]
Pixel size width x height     : 6.450 x 6.450 [um]
Image size width x height     : 1440 x 1050
QHYCCD | qhyccd.cpp | IsQHYCCDControlAvailable | START
QHYCCD | QHYCCD.CPP IsQHYCCDControlAvailable | CONTROL_ID=20 return value=-1
This is a mono camera.
QHYCCD | qhyccd.cpp | IsQHYCCDControlAvailable | START
QHYCCD | QHYCCD.CPP IsQHYCCDControlAvailable | CONTROL_ID=12 return value=-1
QHYCCD | qhyccd.cpp | IsQHYCCDControlAvailable | START
QHYCCD | QHYCCD.CPP IsQHYCCDControlAvailable | CONTROL_ID=6 return value=0
SetQHYCCDParam CONTROL_GAIN failure, error: -1
--------

and this to the logfile
-------
2018-12-08 09:41:17:611|QHYCCD | qhyccd.cpp | InitQHYCCDResource | START
2018-12-08 09:41:17:626|QHYCCD | qhyccd.cpp | InitQHYCCDResource | END
2018-12-08 09:41:17:627|ScanQHYCCD
2018-12-08 09:41:17:627|QHYCCD |  QHYCCD.CPP SCANQHYCCD | start
2018-12-08 09:41:17:627|vid = 16c0 pid = 2971
2018-12-08 09:41:17:627|QHYCCD QHYCCD.CPP InitQHYCCDClass(camtype,index):| 221 0
2018-12-08 09:41:17:627|QHYCCDRD nSize | ccdimagew ccdimageh 1440 1050
2018-12-08 09:41:17:627|imagequeuelength 0x6c17e0 framelength 0x6c17e0
2018-12-08 09:41:17:627|QHYCCD | QHYCCD.CPP ScanQHYCCD | init the imagequeue,nSize=7084000
2018-12-08 09:41:17:627|GetIdFromCam
2018-12-08 09:41:17:628|ScanQHYCCD numdev=1
2018-12-08 09:41:17:628|QHYCCD | QHYCCD.CPP ScanQHYCCD | finished. Return nid=1
2018-12-08 09:41:17:628|GetQHYCCDId
2018-12-08 09:41:17:628|QHYCCD | qhyccd.cpp | GetQHYCCDId | START
2018-12-08 09:41:17:628|QHYCCD QHYCCD.CPP GetQHYCCDId | index=0 id=QHY2PRO-M-010103XXXXXXXXXX
2018-12-08 09:41:17:628|QHYCCD | qhyccd.cpp | OpenQHYCCD | START
2018-12-08 09:41:17:628|OpenQHYCCD camid=QHY2PRO-M-010103XXXXXXXXXX
2018-12-08 09:41:17:628|QHYCCD | QHYCCD.CPP OpenQHYCCD | camera id=QHY2PRO-M-010103XXXXXXXXXX
2018-12-08 09:41:17:628|QHYBASE ConnectCamera
2018-12-08 09:41:17:628|openCamera
2018-12-08 09:41:17:628|ConnectCamera
2018-12-08 09:41:17:629|QHYCCD | qhyccd.cpp | SetQHYCCDStreamMode | START
2018-12-08 09:41:17:629|QHYCCD | QHYCCD.CPP SetQHYCCDStreamMode | mode=0
2018-12-08 09:41:17:629|QHYBASE SetStreamMode 0
2018-12-08 09:41:17:629|QHYCCD | QHYCCD.CPP SetQHYCCDStreaMode | return value=0
2018-12-08 09:41:17:629|QHYCCD | QHYCCD.CPP InitQHYCCD | return value=-1
2018-12-08 09:41:17:629|QHYCCD_handle2index - index 0
2018-12-08 09:41:17:629|will init QHYCCD
2018-12-08 09:41:17:629|QHYCCD | QHYCCD.CPP InitQHYCCD | return value=0
2018-12-08 09:41:17:629|QHYBASE GetOverScanArea overScanStartX=1424 overScanStartY=30 overScanSizeX=10 overScanSizeY=1000
2018-12-08 09:41:17:629|QHYCCD |  QHYCCD.CPP GetOverscanArea startx starty sizex sizey 1424 30 10 1000
2018-12-08 09:41:17:630|QHYBASE GetOverScanArea overScanStartX=1424 overScanStartY=30 overScanSizeX=10 overScanSizeY=1000
2018-12-08 09:41:17:630|QHYCCD |  QHYCCD.CPP GetOverscanArea startx starty sizex sizey 1424 30 10 1000
2018-12-08 09:41:17:630|QHYBASE GetChipInfo ccdchipw=10.200000 ccdchiph=8.300000 ccdimagew=1440 ccdimageh=1050 ccdpixelw=6.450000 ccdpixelh=6.450000 cambits=16
2018-12-08 09:41:17:630|QHYCCD | QHYCCD.CPP GetQHYCCDChipInfo | chipw,chiph,imagew,imageh,pixelw,pixelh,bpp 10.200000,8.300000,1440,1050,6.450000,6.450000,16
2018-12-08 09:41:17:630|QHYCCD | qhyccd.cpp | IsQHYCCDControlAvailable | START
2018-12-08 09:41:17:630|QHYCCD | QHYCCD.CPP IsQHYCCDControlAvailable | CONTROL_ID=20 return value=-1
2018-12-08 09:41:17:630|QHYCCD | qhyccd.cpp | IsQHYCCDControlAvailable | START
2018-12-08 09:41:17:630|QHYCCD | QHYCCD.CPP IsQHYCCDControlAvailable | CONTROL_ID=12 return value=-1
2018-12-08 09:41:17:630|QHYCCD | qhyccd.cpp | IsQHYCCDControlAvailable | START
2018-12-08 09:41:17:630|QHYCCD | QHYCCD.CPP IsQHYCCDControlAvailable | CONTROL_ID=6 return value=0
-------

I am running ubuntu 16.04 on a Raspberry Pi with the latest indi from 'apt'.

Any ideas for getting this to work?

Best Regards
S?ren

Re: Qhy2Pro not working?
« Reply #1 on: December 11, 2018, 07:20:02 pm »
Hi,
    Sorry for my late reply,my colleague is working on Linux,you can inquire him for detail,his email is myq@qhyccd.com.
Best Regards,
QinXiaoXu

Re: Qhy2Pro not working?
« Reply #2 on: December 15, 2018, 01:18:06 am »
Thanks! I have emailed him, but no response yet. Maybe for the sake of helping others, it would be better if he replied on the forum?

The camera works fine under ascom on Windows 10, but I don't use Windows in the observatory.

I have also tested it under Ubuntu 18.04 on a laptop and here I get the same error as above, so it seems to be the Linux drivers that are broken.
« Last Edit: December 15, 2018, 01:20:19 am by masteroftheuniverse »

Re: Qhy2Pro not working?
« Reply #3 on: December 16, 2018, 08:21:09 am »
Hi!

I tried to download your 'old' and the 'new' Linux SDK and compile the SingleFrame example. Here is the output from the old SDK:
------
Init SDK success!
get info from camera failure QHY2PRO-0-M
Yes!Found QHYCCD,the num is 1
connected to the first camera from the list,id is QHY2PRO-0-M
Open QHYCCD success!
SetQHYCCDStreamMode success!
Init QHYCCD fail code:-1
some fatal error happened
------

and here is the output from the new:
------
SingleFrameMode test application, Version: 1.00
This is a simple test application which takes series of images from the first detected QHYCCD USB camera.
Press any key to start application...

SDK resources initialized.
InitQHYCCD failure, error: -1
Close QHYCCD success.
SDK resources released.
Press any key to exit application...
--------

Hope it helps find this bug.

Let me know if there is something to try.

Best Regards,
S?ren

Re: Qhy2Pro not working?
« Reply #4 on: December 17, 2018, 02:09:30 am »
    OK,I will report your issue to him to let him reply you or I know details to reply you.
Best Regards,
QinXiaoXu

Re: Qhy2Pro not working?
« Reply #5 on: December 20, 2018, 10:19:17 pm »
    OK,I will report your issue to him to let him reply you or I know details to reply you.
Best Regards,
QinXiaoXu

Any news on this issue?

Re: Qhy2Pro not working?
« Reply #6 on: December 23, 2018, 09:04:04 pm »
    OK,I will report your issue to him to let him reply you or I know details to reply you.
Best Regards,
QinXiaoXu

Any news on this issue?
    Sorry,I inquired this camera to our storeroom clerk,she told me this camera have stopped producing and we didn't have this camera repertory now,so I have no method to test it,sorry.
Best Regards,
QinXiaoXu

Re: Qhy2Pro not working?
« Reply #7 on: December 23, 2018, 09:07:43 pm »
    Maybe I can modify SDK,and you test it in your side,this maybe can solve issue,but it's so tiring and need many time,do you want do it like this?
Best Regards,
QinXiaoXu

Re: Qhy2Pro not working?
« Reply #8 on: December 26, 2018, 01:13:04 am »
    Maybe I can modify SDK,and you test it in your side,this maybe can solve issue,but it's so tiring and need many time,do you want do it like this?
Best Regards,
QinXiaoXu

Yes, that would be great. What should I do? I have a RPI with Ubuntu and a laptop also with Ubuntu, btw.

Re: Qhy2Pro not working?
« Reply #9 on: December 27, 2018, 03:06:45 am »
    Maybe I can modify SDK,and you test it in your side,this maybe can solve issue,but it's so tiring and need many time,do you want do it like this?
Best Regards,
QinXiaoXu

Yes, that would be great. What should I do? I have a RPI with Ubuntu and a laptop also with Ubuntu, btw.
    I will send a new SDK to you later,this SDK contain many debug output information,please use this SDK test in your device,and send its debug output to me,I will analyze and judge how to modify the SDK by these debug information.
    And you know,when I test this issue with you,I also maybe have to other work,this is a long process.
Best Regards,
QinXiaoXu

Re: Qhy2Pro not working?
« Reply #10 on: December 28, 2018, 11:14:32 pm »
Hi,
    I'm compiling test SDK for you,I compile it on RPI3B with Ubuntu MATE 16.04,is it OK?
    And I'm also compiling EZCAP_Qt which can help you test SDK,this software will need some time,when I solve it,I will send it and SDK to you.
Best Regards,
QinXiaoXu

Re: Qhy2Pro not working?
« Reply #11 on: December 30, 2018, 03:29:29 am »
Hi,
    I'm compiling test SDK for you,I compile it on RPI3B with Ubuntu MATE 16.04,is it OK?
    And I'm also compiling EZCAP_Qt which can help you test SDK,this software will need some time,when I solve it,I will send it and SDK to you.
Best Regards,
QinXiaoXu

That sounds fantastic!

Best regards,
Soren

Re: Qhy2Pro not working?
« Reply #12 on: January 06, 2019, 07:30:53 pm »
Hi,
    I compiled EZCAP_Qt and SDK on my RPI 3B device,but EZCAP_Qt has some UI issues,these issues don't influence normal function.If you don't mind these issues,I can send it to you.
Best Regards,
QinXiaoXu

Re: Qhy2Pro not working?
« Reply #13 on: January 06, 2019, 10:13:26 pm »
Hi,
    I compiled EZCAP_Qt and SDK on my RPI 3B device,but EZCAP_Qt has some UI issues,these issues don't influence normal function.If you don't mind these issues,I can send it to you.
Best Regards,
QinXiaoXu

Please send it, and I will try it out.

Soren

Re: Qhy2Pro not working?
« Reply #14 on: January 08, 2019, 02:54:25 am »
Hi,
    Here is the program and SDK,please install SDK first,and run program on terminal.https://www.dropbox.com/sh/yktikm7pkc4h5u8/AACfD7GRn1xwTPwVsEy-IDwma?dl=0
Best Regards,
QinXiaoXu