This is not a new problem for me, just the first time I’ve had a chance to really take a look at what is going on. The Moonlite ASCOM driver is running on 64 bit Windows 7, SGP is the latest beta version.
Here’s the symptom: The first time SGP tries to connect to the focuser (using “Connect All Equipment”, the connection will fail and throw a message box to that effect. Simply by clicking the Connect icon on the sequencer, the focuser will connect. Once I have gone through this cycle, for the rest of the session, the focuser will always connect on the first try. Here’s the pertinent part of a typical log:
21:44:19.958][DEBUG] [Cleaner Thread] Cleaning finished…
[08/03/17 21:44:19.961][DEBUG] [Main Thread] UI layout found, loading layout at C:\Users\OEM\AppData\Local\SequenceGenerator\sg_ui_config.xml
[08/03/17 21:45:09.406][DEBUG] [Main Thread] Performing deserialize…
[08/03/17 21:45:09.447][DEBUG] [Main Thread] Loading custom filter names…
[08/03/17 21:45:09.493][DEBUG] [Main Thread] ReflectDataModel: Transferring data model to the view…
[08/03/17 21:45:09.548][DEBUG] [Main Thread] Retreiving new equipment objects…
[08/03/17 21:45:09.548][DEBUG] [Main Thread] New camera object (SBIG Camera) dispatched…
[08/03/17 21:45:09.558][DEBUG] [Main Thread] New filter wheel object (SBIG Filter Wheel) dispatched…
[08/03/17 21:45:09.567][DEBUG] [Main Thread] New environment device object (No Environment Device) dispatched…
[08/03/17 21:45:09.570][DEBUG] [Main Thread] New focuser object (Moonlite DRO Focuser Driver) dispatched…
[08/03/17 21:45:09.580][DEBUG] [Main Thread] New telescope object (Gemini Telescope .NET) dispatched…
[08/03/17 21:45:09.598][DEBUG] [Main Thread] New rotator object (No Rotator) dispatched…
[08/03/17 21:45:09.601][DEBUG] [Main Thread] New dome object (No Observatory) dispatched…
[08/03/17 21:45:09.604][DEBUG] [Main Thread] New flat box object (Manual Flat Box) dispatched…
[08/03/17 21:45:09.615][DEBUG] [Main Thread] New safety monitor object (No Safety Monitor) dispatched…
[08/03/17 21:45:09.617][DEBUG] [Main Thread] New auto guider object (No Auto Guider) dispatched…
[08/03/17 21:45:09.617][DEBUG] [Main Thread] No change in plate solver object…
[08/03/17 21:45:09.868][DEBUG] [Main Thread] Populating the form controls…
[08/03/17 21:45:09.960][DEBUG] [Main Thread] Added row 0…
[08/03/17 21:45:10.065][DEBUG] [Main Thread] Added row 1…
[08/03/17 21:45:10.174][DEBUG] [Main Thread] Added row 2…
[08/03/17 21:45:10.304][DEBUG] [Main Thread] Added row 3…
[08/03/17 21:45:10.465][DEBUG] [Main Thread] Added row 4…
[08/03/17 21:45:25.074][DEBUG] [Main Thread] Connecting camera in main thread…
[08/03/17 21:45:25.088][DEBUG] [Main Thread] Connecting SBIG camera…
[08/03/17 21:45:25.147][DEBUG] [Main Thread] SBIG Driver name: SBIGUDrv.DLL Ver 4.92 Build 1
[08/03/17 21:45:25.147][DEBUG] [Main Thread] SBIG Driver version: 4.92
[08/03/17 21:45:26.134][DEBUG] [Main Thread] SBIG Camera Name: SBIG STF-8050 CCD Camera
[08/03/17 21:45:26.135][DEBUG] [Main Thread] SBIG Camera Firmware: 2.48
[08/03/17 21:45:26.135][DEBUG] [Main Thread] SBIG Camera Num Readout Modes: 11
[08/03/17 21:45:26.137][DEBUG] [Main Thread] Connecting SBIG guider camera…
[08/03/17 21:45:26.137][DEBUG] [Main Thread] SBIG Guider: Could not query tracking information info (CCD_INFO_TRACKING)
[08/03/17 21:45:26.137][DEBUG] [Main Thread] SBIG Camera does not have onboard guider
[08/03/17 21:45:26.210][DEBUG] [Main Thread] Camera cooler detected…
[08/03/17 21:45:26.211][DEBUG] [Main Thread] Camera cooler is OFF…
[08/03/17 21:45:26.242][DEBUG] [Main Thread] SBIG CFW Firmware: 65
[08/03/17 21:45:26.242][DEBUG] [Main Thread] SBIG CFW Num Positions: 8
[08/03/17 21:45:26.284][DEBUG] [Main Thread] Connecting ASCOM focuser…
[08/03/17 21:45:28.739][DEBUG] [Main Thread] Failed to connect to focuser. : Exception has been thrown by the target of an invocation. (System.Runtime.InteropServices.COMException (0x80040407): Command error in Connected)
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object args, Boolean byrefModifiers, Int32 culture, String namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object providedArgs, ParameterModifier modifiers, CultureInfo culture, String namedParams)
at qy.ml(Boolean A_0)
at qs.ic()
[08/03/17 21:45:28.740][DEBUG] [Main Thread] Disconnecting ASCOM Focuser: ASCOM.MoonliteDRO.Focuser
It is almost like the driver is slow to instantiate (even though SGP is giving it somewhere around “forever” to get its act together). This is not a big problem now, since I am not doing unattended remote, but it probably will be in the future. Any clues as to where to look?
Thanks for any input.