PHD 2 synchronous pulse guide warning pop up


Peter Gottstein
 

Quick question should the synchronous pulse guide box in ASCOM driver be checked or not checked to minimize the chance of this warning coming up? As this has been happening almost every session. 

Best 

Peter 


Marc Blank
 

There's a thread about this from a while back; I'm not sure if there's anything more recent.   tl;dr Asynchronous is preferable, but the warning can still appear.  Apparently it's a PHD2 problem that they won't admit to.   What software are you using with PHD2?

Marc

https://ap-gto.groups.io/g/main/topic/phd2_warning_disable/85518761?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,85518761


Peter Gottstein
 

All latest versions of NINA, APCC, 


Rich
 

Is there any resolution to this issue short of disabling PHD2 auto guide?  PHD2 does not like my 1600GTO AE and I have set all the controls per the AP video on using PHD2 with AE mounts.


 

Rich

Well I know it works because i've been guiding with PHD2 and the latest ascom/apcc with my ap1600ae.

What versions of the ascom/apcc are you running?

What exactly is the error you are getting?

On Fri, Jan 27, 2023 at 8:29 PM Rich via groups.io <gibbonsrk=verizon.net@groups.io> wrote:
Is there any resolution to this issue short of disabling PHD2 auto guide?  PHD2 does not like my 1600GTO AE and I have set all the controls per the AP video on using PHD2 with AE mounts.




Rich
 

Hi Brian,

Thanks for the response.  Up until about a week ago PHD2 ran fine with my 1600 ae.  Only thing that changed was installing the latest SGP udate.

I’m running :

Ascom platform 6.6 SP1

Ascom APV2 driver V5.60.03

APCC v1.9.6.3

PHD2 2.6.11dev1

 

5 minutes ago got the same PHD2 error “Please disable the Synchronous Pulse Guide option in the mount ASCOM driver settings. Enabling this setting can cause unpredictable result.”  Tracking has gone crazy.  Last time a few hours ago I had to reset all software interfaces and eventually just reboot my machine. I’m at a loss as to how to access the APV2 driver config window. When I click the config button in APCC nothing happens.  I’m close to uninstalling/reinstalling all AP software.  The interfaces are scrambled, like a left hander trying to shake hands with a right hander.  Might work but it’s awkward.

 

From: main@ap-gto.groups.io <main@ap-gto.groups.io> On Behalf Of Brian Valente
Sent: Friday, January 27, 2023 10:10 PM
To: main@ap-gto.groups.io
Subject: Re: [ap-gto] PHD 2 synchronous pulse guide warning pop up

 

Rich

 

Well I know it works because i've been guiding with PHD2 and the latest ascom/apcc with my ap1600ae.

 

What versions of the ascom/apcc are you running?

 

What exactly is the error you are getting?

 

On Fri, Jan 27, 2023 at 8:29 PM Rich via groups.io <gibbonsrk=verizon.net@groups.io> wrote:

Is there any resolution to this issue short of disabling PHD2 auto guide?  PHD2 does not like my 1600GTO AE and I have set all the controls per the AP video on using PHD2 with AE mounts.


 

--


Ray Gralak
 

Hi Rich,

5 minutes ago got the same PHD2 error “Please disable the Synchronous Pulse Guide option in the mount
ASCOM driver settings. Enabling this setting can cause unpredictable result.” Tracking has gone crazy.
It's unfortunate that the PHD2 developers still have not been able to fix the COM interop bug in PHD2 and feel the need to popup that warning and destroy autoguiding. That's a problem with PHD2, not the AP V2 driver.

To change this setting the driver must be running. However in an attempt to simplify the use of APCC we put more control in the latest versions of APCC and driver. So, when started by APCC the driver will automatically hide itself. However, you can still bring up the driver from the system tray as follows:

1) Start APCC.
2) Start any ASCOM client application (e.g. the AP V2 driver's APJog application).
3) In the Windows System tray (usually far bottom right) you should see an icon for the AP V2 ASCOM driver.
4) You can show the driver's handbox by right mouse-clicking the icon and selecting the top item, "Driver Handbox…".

You can pictures and a description at the online link below or in the driver's help file.

https://www.gralak.com/apdriver/help/index.html?system_tray_icon.htm

Once the driver's handbox is visible, click the EXPAND>>>>>>> button . In the Additional Configuration Settings group box you will see the option for Synchronous PulseGuide calls. Uncheck that option. Here is the online help for that (same as included with the driver):

https://www.gralak.com/apdriver/help/index.html?additional_configuration_setti.htm

-Ray


Rich
 

Hi Ray,
Thank you very much. Thanks for the sanity check. Will disabling the Synchronous pulse guide maintain tracking accuracy or should I turn off PHD2 autoguide? One of the weird things is it can go for quite a while (hours) before PHD2 nose dives.

Thanks again,
Rich

-----Original Message-----
From: main@ap-gto.groups.io <main@ap-gto.groups.io> On Behalf Of Ray Gralak
Sent: Saturday, January 28, 2023 4:10 AM
To: main@ap-gto.groups.io
Subject: Re: [ap-gto] PHD 2 synchronous pulse guide warning pop up

Hi Rich,

5 minutes ago got the same PHD2 error “Please disable the Synchronous
Pulse Guide option in the mount ASCOM driver settings. Enabling this setting can cause unpredictable result.” Tracking has gone crazy.
It's unfortunate that the PHD2 developers still have not been able to fix the COM interop bug in PHD2 and feel the need to popup that warning and destroy autoguiding. That's a problem with PHD2, not the AP V2 driver.

To change this setting the driver must be running. However in an attempt to simplify the use of APCC we put more control in the latest versions of APCC and driver. So, when started by APCC the driver will automatically hide itself. However, you can still bring up the driver from the system tray as follows:

1) Start APCC.
2) Start any ASCOM client application (e.g. the AP V2 driver's APJog application).
3) In the Windows System tray (usually far bottom right) you should see an icon for the AP V2 ASCOM driver.
4) You can show the driver's handbox by right mouse-clicking the icon and selecting the top item, "Driver Handbox…".

You can pictures and a description at the online link below or in the driver's help file.

https://www.gralak.com/apdriver/help/index.html?system_tray_icon.htm

Once the driver's handbox is visible, click the EXPAND>>>>>>> button . In the Additional Configuration Settings group box you will see the option for Synchronous PulseGuide calls. Uncheck that option. Here is the online help for that (same as included with the driver):

https://www.gralak.com/apdriver/help/index.html?additional_configuration_setti.htm

-Ray


Ray Gralak
 

Hi Rich,

Thank you very much. Thanks for the sanity check. Will disabling the Synchronous pulse guide maintain tracking
accuracy or should I turn off PHD2 autoguide?
Turning off synchronous pulseguide will have no effect on autoguiding. The only difference is that the driver returns immediately when in asynchronous mode versus waiting for the PulseGuide operation to complete, which may take many milliseconds for the mount to finish a move at the configured guide rate.

The bug in PHD2 occurs in synchronous mode when PHD2 (in a background thread) calls the driver before the driver returns from the synchronous Pulseguide call. This can cause the calling application (PHD2) to deadlock, as clients using COM interop are only allowed to communicate on the thread that created the COM interop instance.

ASCOM client applications using the Windows .NET Framework get this automatically, but since PHD2 is written in C++ it must take special care to serialize all COM interop calls to the thread on which it created the COM interop instance. However, it doesn't, thus a serious bug. The reason this is not seen with some other ASCOM drivers, is that most other drivers are coded in .NET Framework so the serialization inherently happens there. The AP V2 driver predates ASCOM moving to .NET Framework and is written in VB6 and thus there is no way to serialize requests from different threads in a client application like PHD2. In fact, if PHD2 deadlocks, the driver happily carries on servicing any other ASCOM clients!

One of the weird things is it can go for quite a while (hours) before PHD2 nose dives.
I can't help you there. Maybe a bug in PHD2?

-Ray


Peter Gottstein
 

I have unchecked the box in the Ascom driver but I continue to get the error. Is this the best option available? Is there anything else I can do to avoid PHD 2 from out of know where loose it’s guiding?_

I also set up the per instructions of video for encoder mounts as I have a Mach 2. 

Best 

Peter


Ray Gralak
 

Peter,

You should contact the PHD2 authors for an explanation.

-Ray

-----Original Message-----
From: main@ap-gto.groups.io [mailto:main@ap-gto.groups.io] On Behalf Of Peter Gottstein
Sent: Saturday, January 28, 2023 3:44 PM
To: main@ap-gto.groups.io
Subject: Re: [ap-gto] PHD 2 synchronous pulse guide warning pop up

I have unchecked the box in the Ascom driver but I continue to get the error. Is this the best option available? Is
there anything else I can do to avoid PHD 2 from out of know where loose it’s guiding?_

I also set up the per instructions of video for encoder mounts as I have a Mach 2.

Best

Peter


 

Hi Peter

I assume you mean warnings, and not errors?

Are you actually losing your guiding, or are you concerned you might lose your guiding?

Posting a guidelog would help



On Sat, Jan 28, 2023 at 3:44 PM Peter Gottstein <peetyg1@...> wrote:
I have unchecked the box in the Ascom driver but I continue to get the error. Is this the best option available? Is there anything else I can do to avoid PHD 2 from out of know where loose it’s guiding?_

I also set up the per instructions of video for encoder mounts as I have a Mach 2. 

Best 

Peter




Peter Gottstein
 

Brown and Ray last couple of runs guiding has been fine but I have had times where guiding has gone goofy. I will try to reach out to phd and see what they say. 


best 

Peter 


Matthew Hughes
 

Hi Peter,
Did you get a response from PHD?
thanks Matt 


Peter Gottstein
 

I did. They want me to send over my logs. I have not had a chance to do this.