Welcome, Guest
Username: Password: Remember me
02 Jan 2018
INDI development team is happy to announce the release of INDI Library v1.6.0. This new exciting release builds on the maturity of INDI Library and comes with many new supported devices and fixes for existing drivers.
Read More...
  • Page:
  • 1
  • 2

TOPIC: V4L2 CCD PHD2 stacking not working

V4L2 CCD PHD2 stacking not working 1 week 1 day ago #23279

  • pch
  • pch's Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 63
  • Thank you received: 35
At the moment this is not supported in PHD2 INDI camera.
I think less and less people use webcam for guiding and I use a v4l2 camera that support long exposure (DMK21) so I not take the time to implement this function when I rewrite the interface a few years ago.

But I let comments in the code where you can do that if you are interested:
github.com/OpenPHDGuiding/phd2/blob/master/cam_INDI.cpp#L183
github.com/OpenPHDGuiding/phd2/blob/master/cam_INDI.cpp#L638

Contribution are welcome!
The following user(s) said Thank You: knro, topaz

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

V4L2 CCD PHD2 stacking not working 6 days 23 hours ago #23299

  • topaz
  • topaz's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 1
Thank you.
I have looked into cam_wdm.cpp to get an idea how it stacking is done, but I could not figure it out.
Any suggestions?

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

V4L2 CCD PHD2 stacking not working 6 days 16 hours ago #23305

  • pch
  • pch's Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 63
  • Thank you received: 35
I take a look and remark that streaming in PHD2 do not work at all because the INDI property name changed from VIDEO_STREAM to CCD_VIDEO_STREAM, and the switch name from ON/OFF to STREAM_ON/STREAM_OFF since the last time I check that.

I make the fix in PHD2:
github.com/OpenPHDGuiding/phd2/commit/8d...03f2b471147487c4cee0

This is why you see an image in phd2 only when you turn streaming manually in the driver.

Can you compile phd2 from source and try with my last change?
There is information here:
github.com/OpenPHDGuiding/phd2/wiki/BuildingPHD2OnLinux

This must now show and image when you start capture from phd2. If this work we can continue with the stacking process.

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

V4L2 CCD PHD2 stacking not working 6 days 14 hours ago #23310

  • pch
  • pch's Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 63
  • Thank you received: 35
I resurrect a webcam from the attic and continue my testing.

It still not work because the v4l2_ccd driver report an EXPOSURE property even it is not supported by the camera.
When I write the phd2 client in 2015 it was not reported and I use this missing property to know the driver must use streaming instead.

I attached a debug log, it show a warning as exposure is not supported but it still send a defNumberVector for CCD_EXPOSURE.

Jasem, is it possible to not report this property in this case? or is there another way to know I must use streaming instead of standard exposure?

File Attachment:

File Name: indi_v4l2_ccd_144857.log
File Size: 8 KB
Attachments:

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

V4L2 CCD PHD2 stacking not working 6 days 13 hours ago #23312

  • topaz
  • topaz's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 1
I have compiled as per instructions given.
Still not working,
PHD works when stream is on, if I turn it off :
INDI server localhost/7624 disconnected.
Segmentation fault (core dumped)
Attachments:

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

Last Edit: by topaz.

V4L2 CCD PHD2 stacking not working 6 days 13 hours ago #23313

  • topaz
  • topaz's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 1
I have also tried with EKOS (like sombody in other topic here) and there even if I turn stream on nothing is captured and guiding does not work.

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

V4L2 CCD PHD2 stacking not working 2 days 16 hours ago #23386

  • pch
  • pch's Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 63
  • Thank you received: 35
Now the webcam can basically work phd2 if you compile today last git.
See:
www.indilib.org/forum/ccds-dslrs/3078-v4...-property.html#23384

If this work for you we can continue with the implementation of stacking.

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

V4L2 CCD PHD2 stacking not working 2 days 15 hours ago #23391

Unfortunately, there is no way to remove it since it is based on INDI::CCD now. Maybe you can add a checkbox in PHD2 to use streaming over standard capture when available? A user preference.

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

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

V4L2 CCD PHD2 stacking not working 2 days 14 hours ago #23393

  • pch
  • pch's Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 63
  • Thank you received: 35
I am a bit reluctant to add a checkbox because many user like to check the options they not need, and the risk is they use a less performant guiding by forcing to streaming a camera that also support long exposure.
At least all the users of ZWO and QHY are at risk. On the other side the users of webcam or video acquisition card are probably very few because this is not working with phd2 for nearly two years before we get a report.

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

V4L2 CCD PHD2 stacking not working 2 days 14 hours ago #23395

  • topaz
  • topaz's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 1
Thank you.
It works with my webcam, it falls to streaming after trying exposure. I don't need to turn on streaming in indi driver control panel.
How could we make stacking work?

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

Last Edit: by topaz.

V4L2 CCD PHD2 stacking not working 2 days 11 hours ago #23405

  • pch
  • pch's Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 63
  • Thank you received: 35
I implemented stacking now:
github.com/OpenPHDGuiding/phd2/commit/18...570b88a5dbc2b1201c13

Can you compile the last git and try it?

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

V4L2 CCD PHD2 stacking not working 2 days 9 hours ago #23407

  • topaz
  • topaz's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 1
It works very nice. Thank you very much.
I have just noticed that it starts streaming and works for the time set in PHD's exposure control and then stops and starts again (This behaviour started in the version without stacking ( github.com/OpenPHDGuiding/phd2/commit/8e...c203243953f11290b6f5 ))
It only lowers number of frames available for stacking if exposure time is set to 1, or 2 seconds (15 instead of 20 for 1s).

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

Last Edit: by topaz.
  • Page:
  • 1
  • 2
Time to create page: 0.209 seconds

Login



3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!


Gallery

Replica

Why INDI

Replica