QHYCCD

LiveFrameSample.cpp really works?

LiveFrameSample.cpp really works?
« on: November 07, 2017, 03:31:32 AM »
Hi, I use QHY 5II Monochrome camera and UBUNTU 16.04

I could capture the image using testapp/SingleFrameMode/SingleFrameMode.cpp in the qhyccdsdk-1.0.2-linux
But using testapp/LiveFrameMode/LiveFrameSample.cpp, I can't capture image at all.
The GetQHYCCDLiveFrame API always returns with QHYCCD_ERROR (-1)

To make things clear, I added a printf() statement like below.

-------------------------------
    ret = QHYCCD_ERROR;
    while(ret != QHYCCD_SUCCESS)
    {
        ret = GetQHYCCDLiveFrame(camhandle,&w,&h,&bpp,&channels,ImgData);
        if(ret == QHYCCD_SUCCESS)
        {
            ...
        }
        else printf("GetQHYCCDLiveFrame failed %d\n", ret); // this line is added
    }
--------------------------
The output of the a.out is like this;

Init SDK success!
camtype = 3001 index = 0
nid:0
Yes!Found QHYCCD,the num is 1
connected to the first camera from the list,id is QHY5II-M-1077e97093527242d
Open QHYCCD success!
Init QHYCCD success!
GetQHYCCDChipInfo success!
CCD/CMOS chip information:
Chip width 6.660000 mm,Chip height 5.320000 mm
Chip pixel width 5.200000 um,Chip pixel height 5.200000 um
Chip Max Resolution is 1280 x 1024,depth is 8
SetQHYCCDResolution success!
BeginQHYCCDLive success!
GetQHYCCDLiveFrame failed -1
GetQHYCCDLiveFrame failed -1
GetQHYCCDLiveFrame failed -1
GetQHYCCDLiveFrame failed -1
GetQHYCCDLiveFrame failed -1
GetQHYCCDLiveFrame failed -1
GetQHYCCDLiveFrame failed -1
GetQHYCCDLiveFrame failed -1
GetQHYCCDLiveFrame failed -1
GetQHYCCDLiveFrame failed -1
GetQHYCCDLiveFrame failed -1
GetQHYCCDLiveFrame failed -1
GetQHYCCDLiveFrame failed -1
...


If you have any information, please let me know.

Thanks.

Re: LiveFrameSample.cpp really works?
« Reply #1 on: November 08, 2017, 02:18:01 AM »
Ok,I will solve it.Well,maybe you could wait a few days,because I am test EZCAP_QT for linux,this software can control cameras' single&live mode.I will release it after testing.

Re: LiveFrameSample.cpp really works?
« Reply #2 on: November 23, 2017, 10:05:17 AM »
Hi, did you have any progress for this issue? :-)

Ok,I will solve it.Well,maybe you could wait a few days,because I am test EZCAP_QT for linux,this software can control cameras' single&live mode.I will release it after testing.

astrosoft

  • *
  • 104
  • Astronomical software developer C,C++,Java,Android
    • View Profile
    • Email
Re: LiveFrameSample.cpp really works?
« Reply #3 on: November 23, 2017, 11:55:05 AM »
We are fixing some issues inside the SDK running on Ubuntu linux.
Currently, only Single Frame mode works, the live frame video mode
was not updated yet. Sorry for that, will will fix it in the next run.
On the other hand, I would personally prefer to use a single frame mode
in astronomy.
Jan
Jan Soldan 
Astronomical software development
QHYCCD distributor and European Warranty, Repair,
Warehouse centre

V Lukach 451,
251 65 Ondrejov,
Czech Republic

Email : astrosoft@email.cz
Mobile : +420 728 403 811
http://www.linkedin.com/in/jansoldan

Re: LiveFrameSample.cpp really works?
« Reply #4 on: November 27, 2017, 11:09:49 PM »

On the other hand, I would personally prefer to use a single frame mode
in astronomy.
Jan
Thanks for your efforts for this issue.
But I can use single frame mode for application test purpose, but I really need for Liveframe mode for my purpose
like electric view finder, satellite tracking system, because using single frame mode can get images only about 1 frame/sec even if exposure time is 20msec.
I really look forward to fixed SDK for this issue. Thanks

astrosoft

  • *
  • 104
  • Astronomical software developer C,C++,Java,Android
    • View Profile
    • Email
Re: LiveFrameSample.cpp really works?
« Reply #5 on: December 17, 2017, 11:48:04 PM »
I am now working on video mode, so hope have it soon. BTW, this live frame mode is similar to single frame mode, except, that application need not start exposure time including asking for image download. I am not sure, this will increase
frame per seconds significantly. Could you please exactly specify which camera are you talking about ?
Jan
Jan Soldan 
Astronomical software development
QHYCCD distributor and European Warranty, Repair,
Warehouse centre

V Lukach 451,
251 65 Ondrejov,
Czech Republic

Email : astrosoft@email.cz
Mobile : +420 728 403 811
http://www.linkedin.com/in/jansoldan

Re: LiveFrameSample.cpp really works?
« Reply #6 on: December 18, 2017, 11:27:00 AM »
As I wrote in first post, I  use QHY 5II Monochrome camera and UBUNTU 16.04(amd64)

I am now working on video mode, so hope have it soon. BTW, this live frame mode is similar to single frame mode, except, that application need not start exposure time including asking for image download. I am not sure, this will increase
frame per seconds significantly. Could you please exactly specify which camera are you talking about ?
Jan

astrosoft

  • *
  • 104
  • Astronomical software developer C,C++,Java,Android
    • View Profile
    • Email
Re: LiveFrameSample.cpp really works?
« Reply #7 on: December 18, 2017, 01:21:10 PM »
So, if I understand you well, you can use SingleFrameMode testing app., and it works with your QHY5II, but you are waiting for video mode.
I am asking because I do not have QHY5IIM, I only have newer QHY5L-II Mono camera as the closest type to your one.
Jan
Jan Soldan 
Astronomical software development
QHYCCD distributor and European Warranty, Repair,
Warehouse centre

V Lukach 451,
251 65 Ondrejov,
Czech Republic

Email : astrosoft@email.cz
Mobile : +420 728 403 811
http://www.linkedin.com/in/jansoldan

Re: LiveFrameSample.cpp really works?
« Reply #8 on: December 21, 2017, 01:37:40 AM »
Yes, exactly.

So, if I understand you well, you can use SingleFrameMode testing app., and it works with your QHY5II, but you are waiting for video mode.
I am asking because I do not have QHY5IIM, I only have newer QHY5L-II Mono camera as the closest type to your one.
Jan

astrosoft

  • *
  • 104
  • Astronomical software developer C,C++,Java,Android
    • View Profile
    • Email
Re: LiveFrameSample.cpp really works?
« Reply #9 on: January 04, 2018, 11:38:57 PM »
The video mode is under re-implementation inside the sdk right now. Hope, I will post it soon.
Jan
Jan Soldan 
Astronomical software development
QHYCCD distributor and European Warranty, Repair,
Warehouse centre

V Lukach 451,
251 65 Ondrejov,
Czech Republic

Email : astrosoft@email.cz
Mobile : +420 728 403 811
http://www.linkedin.com/in/jansoldan

Re: LiveFrameSample.cpp really works?
« Reply #10 on: February 16, 2018, 01:24:32 AM »
Did you get any progress? :-)

The video mode is under re-implementation inside the sdk right now. Hope, I will post it soon.
Jan

Re: LiveFrameSample.cpp really works?
« Reply #11 on: February 25, 2018, 07:51:18 PM »
Hi,
    I have tested QHY5-II-M live mode on my Ubuntu machine,it work well.Attach is my library and test program.
    If it can't help you,please let me know.
Best Regrads,
QinXiaoXu

Re: LiveFrameSample.cpp really works?
« Reply #12 on: February 28, 2018, 07:19:47 PM »
It worked. Thanks a lot!