David's Astronomy Pages
Notes - Session 1058 (2022-11-12)

 
Bullet Session Aims & Highlights
 - Observing Result
 - Night Summary Plot
 - Session Event Log
Bullet Operational Issues
  - Critical Issues (0),  Major Issues (0),  Minor Issues (1),  Small Defects (11),  Continuous Improvement (18)
 
Bullet Images from 2022-11-12 >>        [ Local Files >> ]    
2022-11-12 (pre-session)
Bullet Upgrade to ASCOM 6.6 SP1
Bullet DeviceHub 6.6.1.1
   
2022-11-14
Bullet TeleLink 1.0 - Telescope Driver
   
2022-11-18
Bullet MoesGo Portable Remote Control
   
   

Session Aims & Highlights (2022-11-12)

Main aims

  1. Targets.  Acquire images of a selection of variable stars, nearby stars, comets & deep sky targets as allowed by sky conditions.
  2. AstroMain.  Check new AstroMain version (3.57.1) for any issues introduced by recent changes and additions.
  3. CCDSoft / SBIG : Continue to check for  issues with CCDSoft .Camera (lockups, freezes, exceptions)
  4. Dome Slews : Check if dome slews are less prone to hold-ups  following attempt to change tension of Dome rotation drive. Up to 25% of dome slews in the previous session (S1056) were affected by hold-ups during slewing..

 Equipment & Software

Highlights

Notes:

Summary Plots & Logs

Observing Plan
Image
  
Observing Result
Image
   
Dome & Scope Slewing Performance
Image
  
Slew/Centering Performance
Image
  
Guiding Performance
Image
Image
  
Sky Conditions (Locate Frames)
Image
  
Night Sky Summary Plot
Top axis: Sky Brightness at Zenith (in ADU/s)
Lefthand axis: Local Time (hh LT). Righthand axis: Sun Altitude (degs)
Image   
  
Actual Weather vs Pre-Session Weather Forecast
Image
Image   
  
Session Event Log
Time     Event Detail
23:10:06 Session Monitoring AutoStart monitoring for Live Session opportunity between 23:10 & 05:39
23:10:09 Session AutoStarting Session autostarting (23:10)
23:10:29   CCDSoft Restarting CCDSoft being restarted (to set AutoSave No.)
23:10:42 Session Created Session Created (Live, 2022-11-12 S01058, ImageSaveNum: 1058001)
23:11:03   Scope Switched On Telescope Power has been switched on via UPB Powerbox.
23:12:49   Services Started Observatory Services started
23:12:56 Observatory (Auto) Observatory placed in Fully-Automated Mode
23:12:59 Session Pending Session pending (2022-11-12)
23:13:01 Session Initiating Session initiating (2022-11-12)
23:13:03   Plan Requested Observing Plan requested from AstroPlan (1.33.1)
23:13:52   Plan Loaded Observing Plan loaded to queue (Plan ID: 820)
23:14:14   Camera1 Connected SBIG Camera connected (set point -15°C)
23:14:21   Telescope Connected Telescope connected (TheSky6)
23:14:45 Session Equilibration Session ready to Open Dome
23:15:30   Dome Opened Dome opened (opening time 45s)
23:16:05 Session Running Session running
23:16:08   Queue Started Observing Queue started (22 targets selected)
23:16:11     Target Started (NrZen) Target started (Focus Field 3, HIP 14181)
23:16:25   Dome Unparked Dome unparked
23:21:17       Focusing Started-Foc1 Foc1 Focusing Started (TCF-S)
23:23:13       Focusing Completed Foc1 AutoFocus Completed (Profile No 1, wide)
23:25:02       Focusing Completed Foc1 AutoFocus Completed (Profile No 1)
23:25:04       Focusing Started-Foc2 Foc2 Focusing Started (Secondary Scope, using ShCap)
23:27:03       Focusing Completed Foc2 AutoFocus Completed (Profile No 2, wide)
23:28:46       Focusing Completed Foc2 AutoFocus Completed (Profile No 2)
23:29:03     Target Completed (NrZen) Target completed (Focus Field 3, HIP 14181)
23:29:31     Target Started (1/22) Target started (1/22, GCVS BL Lac)
23:33:56       Focusing Started-Foc1 Foc1 Focusing Started (TCF-S)
23:35:59       Focusing Completed Foc1 AutoFocus Completed (Profile No 3)
23:39:52     Target Completed Target completed (1/22, GCVS BL Lac)
23:39:56     Target Started (2/22) Target started (2/22, NGC 6745 w/SN2022prr)
23:42:33       SoftSuspend Called Soft Suspend is called due to Deteriorating Conditions (too few stars)
23:43:03     Target Failed Target failed due to cloud (2/22, NGC 6745 w/SN2022prr)
23:43:05   Queue Paused Queue paused for Session Suspension
23:43:07 Session Suspended Session suspended
23:43:49   Dome Closed Dome closed (closing time 45s)
23:49:14 Session Resuming Session resuming
23:49:59   Dome Opened Dome opened (opening time 45s)
23:50:01 Session Running Session running
23:50:03   Queue Resumed Observing Queue resumed
23:50:06     Target Started (2/22) Target started (2/22, NGC 6745 w/SN2022prr)
00:05:21     Target Completed Target partially completed (2/22, NGC 6745 w/SN2022prr)
00:05:26     Target Started (3/22) Target started (3/22, Jupiter)
00:12:13     Target Completed Target completed (3/22, Jupiter)
00:13:03     Target Started (4/22) Target started (4/22, UGC 6983 w/SN2022pru)
00:16:52       Focusing Skipped Foc1 focusing skipped - star is lost (TCF-S)
00:33:05     Target Completed Target completed (4/22, UGC 6983 w/SN2022pru)
00:35:03     Target Started (5/22) Target started (5/22, NGC 7448 w/SN2022wsp)
00:39:25       SoftSuspend Called Soft Suspend is called due to Deteriorating Conditions (too few stars)
00:40:02       Focusing Skipped Foc1 focusing skipped - star is lost (TCF-S)
00:51:26       SoftSuspend Cancelled Soft Suspend is cancelled due to improved conditions
00:55:32       SoftSuspend Called Soft Suspend is called due to Deteriorating Conditions (too few stars)
00:56:44     Target Completed Target completed (5/22, NGC 7448 w/SN2022wsp)
00:56:46   Queue Paused Queue paused for Session Suspension
00:56:47 Session Suspended Session suspended
00:57:37   Dome Closed Dome closed (closing time 50s)
01:15:59     Target Cancelled Target cancelled (6/22, NGC 7495 w/SN2022ubb) due to cloud
01:37:59     Target Cancelled Target cancelled (7/22, NGC 946 w/SN2022yid) due to cloud
01:50:01     Target Cancelled Target cancelled (8/22, GCVS GK Per) due to cloud
02:06:16     Target Cancelled Target cancelled (9/22, GCVS SS Cyg) due to cloud
02:25:31     Target Cancelled Target cancelled (10/22, NGC 5894 w/SN2022pgf) due to cloud
02:38:27     Target Cancelled Target cancelled (11/22, GCVS RZ LMi) due to cloud
03:01:17     Target Cancelled Target cancelled (12/22, C/2020 V2 (ZTF)) due to cloud
03:21:17     Target Cancelled Target cancelled (13/22, NGC 3938 w/SN2022xlp) due to cloud
03:43:17     Target Cancelled Target cancelled (14/22, UGC 8046 w/AT2022zxr) due to cloud
03:57:17     Target Cancelled Target cancelled (15/22, AT2022zkn (CV)) due to cloud
04:17:17     Target Cancelled Target cancelled (16/22, NGC 3859 w/AT2022zia) due to cloud
04:39:17     Target Cancelled Target cancelled (17/22, NGC 3810 w/SN2022zut) due to cloud
04:58:21     Target Cancelled Target cancelled (18/22, 81P/Wild) due to cloud
05:18:51     Target Cancelled Target cancelled (19/22, NGC 4257 w/AT2022zzk) due to cloud
05:40:51     Target Cancelled Target cancelled (20/22, UGC 8379 w/AT2022qza) due to cloud
05:59:55     Target Cancelled Target cancelled (21/22, C/2022 E3 (ZTF)) due to cloud
06:30:25     Target Cancelled Target cancelled (22/22, NGC 3705 w/SN2022xxf) due to cloud
06:30:30   Queue Completed Job Queue completed
06:30:36 Session Closing Session closing
06:30:41   Dome Closed Dome already closed (closed at 00:57, closing time 50s)
06:32:13   Dome Parked Dome parked (parking time 84s), Az: 90.0 deg
06:33:34   Telescope Parked Telescope parked (parking time 76s)
06:33:49   Telescope State Scope parked Turn scope off. (Handbox)
06:34:11   Telescope Switched Off Telescope Power has been switched off via UPB Switch.
06:35:04   Services Stopped Night Services stopped
06:35:06 Session Housekeeping Session Housekeeping started (Create Fits Summary, Transfer Files)
06:35:12 Session Finished Session Finished
 
Session Alerts & Alarms
Time     Type       Name Detail
--             No Alerts                --                              
 

Back to Top


Operational Issues (2022-11-12, S1058)

[ Prev | Next ]

Critical Issues

Major Issues

Minor Issues

Small Defects

Continuous Improvement

[ Prev | Next ]

Back to Top


2022-11-12 (pre-session)


Upgrade to ASCOM 6.6 SP1

ASCOM Platform upgraded on Development and Observatory Computers today (2022-11-12) from version 6.6  to the new 6.6 SP1 version (dated 2022-08-17).

The following installations were made:

- AscomPlatform661.3673.exe
- AscomDeveloper661.3673.exe
- Conform.6.6.8048.17861.setup.exe

Notes:
- The installation of ASCOM 6.6.1  upgraded DeviceHub from 6.6.0.16 to 6.6.1
- Following installation of ASCOM 6.6 the DeviceHub program was updated to 6.6.1.1

- Installation of Developer Components gave some important information regarding a change to how ASCOM templates are accessed in ASCOM 6.6 SP1 compared to previously.

Image

Back to Top


DeviceHub 6.6.1.1

Following upgrade to ASCOM 6.6 SP1 (which took Device Hub from 6.6.0.16 to 6.6.1), DeviceHub was upgraded on Development and Observatory Computers to the 6.6.1.1 version (dated 2022-09-08).

The new version has the following changes

- Improved support for management of offset tracking, including the ability to view and change the RA and Dec rate values. (6.6.0.17)
- Improved accuracy of sidereal tracking offset calculation.
- Display focuser step size with one decimal place.
- Fixed telescope current tracking rate offset values to use the regional decimal separator.

>> Device Hub Releases :  https://github.com/ASCOMInitiative/ASCOMDeviceHub/releases

Activity Log
After installation of the new version the Activity Log Capacity value (which was reset to its standard default value (125000) during installation ) was again increased ten-fold (1250000) by editing the DeviceHub configuration file (see notes DeviceHub 6.6.0.10, 2022-06-02 ).
Note : that file properties of config file have to be changed to Full Control (incl write) before editing the file.

Back to Top


2022-11-14


TeleLink 1.0 - Telescope 'Driver'

1) About TeleLink
TeleLink is my first attempt at building an ASCOM Driver.

It is intended to be an ASCOM telescope 'driver' that doesn't actually drive telescope hardware itself but is designed instead to sit between TeleAPI and DeviceHub.Telescope. Except for checking the dRA parameter in SlewToCoordinatesAsync() calls, adding 24 if dRa is < 0 or subtracting 24 if dRA is > 24, it will do nothing more that pass communications to and fro between TheSky6/TeleApi and DeviceHub.Telescope.

TeleLink is intended to deliver a final workaround for the bug in TheSky6 where Ra values slightly less than 0 or slightly greated that 24 can be generated and sent to DeviceHub.Telescope when the target RA is very close to either RA 0 or RA 24.  This is because TheSky6 doesn't check and wrap the TPoint modified RA value when it less than 0 or greater than 24.

2) Creating the TeleLink Project

Firstly the "ASCOM Driver Project Templates" needs to be downloaded / added as a Visual Studio Extension if not already available. This is done using Visual Studio's "Extensions/Manage Extensions" menu option
Image

Next a new project solution is created from Visual Studio's "Getting Started - Create a new project" option, and then filtering on "Visual Basic / Windows / ASCOM " templates, selecting "ASCOM Device Driver (VB)

Image

The Next button is then clicked and the "Configure your new project" form filled in

Image

Clicking 'Create'  leads to the "ASCOM Device Driver Project Wizard" where the driver's Device Class and Device Name are completed.

Image

Clicking 'Create'  then creates and opens the project solution in Visual Studio.


(In an initial trial attempt a 'Test Forms App' project was added to the solution, and set as the startup project,  according to the 'Templates'  but this was found to be unnecessary and not included in the final project. )

3) Developing the Code

The driver's Driver.vb file (TelescopeDriver.vb in case of the TeleLink driver) is then edited & extended to include the required functionality.

The 'SetupDialogForm.vb' form this edited as required.  In the case of the TeleLink driver this meant the removal of the COM Port (not required as TeleLink is not an  'End-Driver', and the addition of a Telescope ID field (for defining the Telescope that TeleLink is connected to)
Image

The principal coding features in TeleLink's  TelescopeDriver.vb file are as follows:

Customised variables:

' Telescope ID
Friend Shared telescopeIdProfileName As String = "Telescope ID" 'More Constants used for Profile persistence
Friend Shared telescopeIdDefault As String = "ASCOM.DeviceHub.Telescope"
Friend Shared TelescopeID As String = "ASCOM.DeviceHub.Telescope"

Private objScope As ASCOM.DriverAccess.Telescope

Customised Connected Property

Public Property Connected() As Boolean Implements ITelescopeV3.Connected

  Get
    Dim bIsConnected

    bIsConnected = IsConnected

    TL.LogMessage("Connected Get", bIsConnected.ToString())
    Return bIsConnected
  End Get

  Set(value As Boolean)

    TL.LogMessage("Set Connected", value.ToString())

    If value = IsConnected Then
      Return
    End If

    If value Then

      ' check DeviceHub is running
      ' ....

      ' Create Scope
      TL.LogMessage("Creating objScope", "Setting objScope = New ASCOM.DriverAccess.Telescope(" + TelescopeID + ")")

      objScope = New ASCOM.DriverAccess.Telescope(TelescopeID)

      ' Connect Scope
      TL.LogMessage("Connect Scope", "Setting objScope.Connected " + value.ToString())

      objScope.Connected = True

      TL.LogMessage("Connect Scope", "Setting connectedState = True")

      connectedState = True

    Else

      ' Disconnect Scope
      TL.LogMessage("Disconnect Scope", "Disconnecting from " + TelescopeID)

      objScope.Connected = False

      TL.LogMessage("Disconnect Scope", "Should now be disconnected from " + TelescopeID)

      If IsNothing(objScope) = False Then
        TL.LogMessage("Disconnect Scope", "Disposing objScope")
        objScope.Dispose()
        objScope = Nothing

      End If

      TL.LogMessage("Disconnect Scope", "Setting connectedState = False")
 
      connectedState = False
    End If
  End Set
End Property

Customised properties and methods which simply pass-on requests and return results, e.g.

 Public ReadOnly Property Declination() As Double Implements ITelescopeV3.Declination
  Get
    Dim dec As Double

    dec = objScope.Declination()

    TL.LogMessage("Declination", "Get - " & utilities.DegreesToDMS(dec, ":", ":"))

    Return dec

  End Get
End Property

Key Customised Methods which fix issue with RightAscension parameters from TheSky6/TPoint sometimes having a value outside the range 0.0 to 24.0, e.g.

 Public Sub SlewToCoordinatesAsync(RightAscension As Double, Declination As Double) Implements ITelescopeV3.SlewToCoordinatesAsync

    Dim RightAscension0 As Double

    ' check RA value and wrap around if appropriate ' this is to workaround a bug in TheSky
    ' ---------------------------------------------
    If RightAscension < 0 Then
      RightAscension0 = RightAscension
      TL.LogMessage("SlewToCoordinatesAsync", "Error: RA value (" + CStr(RightAscension0) + ") is less than 0.0, and will be wrapped.")
      RightAscension = RightAscension + 24
      TL.LogMessage("SlewToCoordinatesAsync", "Info: RA value is reset to (" + CStr(RightAscension) + ")")

   ElseIf RightAscension > 24 Then
     RightAscension0 = RightAscension
     TL.LogMessage("SlewToCoordinatesAsync", "Error: RA value (" + CStr(RightAscension0) + ") is greater than 24.0, and will be wrapped.")
     RightAscension = RightAscension - 24
     TL.LogMessage("SlewToCoordinatesAsync", "Info: RA value is reset to (" + CStr(RightAscension) + ")")
   End If

   TL.LogMessage("SlewToCoordinatesAsync", "RA: " + utilities.HoursToHMS(RightAscension) + ", Dec: " + utilities.DegreesToDMS(Declination, ":", ":"))

   objScope.SlewToCoordinatesAsync(RightAscension, Declination)

End Sub

4) Driver Installation

To install the new driver a setup file needs to be created using the 'Inno Setup' Program (accessed from "Start/ASCOM Platform 6/Developer Tools/Inno Installer Web Site" or direct from https://jrsoftware.org/isinfo.php to install latest stable version 6.2.1 as at 2022-11-12)  and a script file that is built by running  "Start/ASCOM Platform 6/Developer Tools/Driver Install Script Generator" .

Image

After filling in the relevant details and clicking Save a script file ("TeleLink Telescope Setup.iss) is then generated.

Inno Setup is then run and the script file selected, or the .iss file can be simply clicked upon.  This is then checked and Built / Run to generate a setup file (TeleLink Telescope Setup.exe) which can be either immediately lauched,  or launched later, in order to register the driver in ASCOM and in Windows.

The Setup.exe file can also be copied to the Observatory Computer, where it can launched in order to install the driver on the Observatory Computer.

When the Setup.exe is run is copies the driver DLL file to "C:\Program Files (x86)Common Files\ASCOM\Telescope\" folder and an entry is created in  ASCOM Profile Root\Telescope Drivers (viewable via Profile Explorer).

Note on RegSvr32 failure and 'Technology'

[When the Driver Setup file was first run an error dialog popped up during the  windows registration process
   C:\Program Files (x86)\Common Files\ASCOM\Telescope\ASCOM.AstroTele1.Telescope.dll

   Unable to register the DLL/OCX: RegSvr32 failed with exit code0x4.


with options are 'Try Again', 'Continue' or 'Cancel Installation' (the latter rolls back the installation)


With regard to this error the following help was found in this ASCOM Developer Forum post  (Re: Unable to register the DLL/OCX: RegSrv32 failed with exit code 0x4)

If your driver written in VB.NET starting with a skeleton driver created from the ASCOM Visual Studio templates and your installation script is calling RegSvr32, then you used the wrong option when you ran the Install Script Generator.

In the Technology dropdown you probably chose "In-process COM (dll)" but you should have chosen ".NET Assembly (dll)". Choosing the latter option should use RegAsm to register your driver. The generated script contains commands for both 32-bit and 64-bit registration. You would need to remove whichever option is not needed.

If you want your driver to be used by both 32-bit and 64-bit applications then you should build it for "Any CPU" and should register it for both 32-bit and 64-bit operation on 64-bit versions of Windows.


Changing the 'Technlogy' field in the Driver Installer Script Generator to contain  ".Net Assembly (dll)"  resolved the issue.

5) Driver Set-Up & Use

From the TheSky6's 'Telescope Setup' and with 'TeleAPI' selected as normal. Click on Settings.

Image

Then click on Settings to get to 'ASCOM Telescope Chooser' form and select "TeleLink Telescope"

Image

Then click on Settings again (these must be setup at least once)  to get to the TeleLink Setup' form. Choose  'ASCOM.DeviceHub.Telescope'  (if using) or other Telescope, and optionally turn on Trace.

Image

Ok is then clicked on the various forms to save the setup.

6) Progress

The first working version (my first ever ASCOM driver) was developed in a matter of just a few hours. After testing & addressing some minor issues, TeleLink 1.0 was released on 2022-11-14 and installed on Observatory Computer ready for its first live session test. 

TeleLink is used with AstroMain 3.57.2 to finally resolved the issue that TheSky6 doesn't check and wrap the TPoint modified RA value when it is less than 0 or greater than 24, leading to an exception from DeviceHub, and a modal error dialog from TheSky6.

Update 2022-11-20

The TeleLink driver was successfully used during a 13 hour live session on 2022-11-20 (S1059).

Back to Top


2022-11-18


MoesGo Portable Remote Control

The MoesGo Portable Remote Control is a Zigbee device than can be used to control other devices on the network, set scences or provide customised remote control capability.

Image 

The remote is battery operated (Alkaline LR23A 12V), and has 4 buttons (labelled 1, 2, 3, 4). 

Each button has 3 actions (single-click, double-click & long press).
 Double click have to be made in quick succession otherwise they are perceived as two single-clicks. Long Press is 5s

(Caution : a press of 10s or more on certain button(s) can be perceived as a Reset, this will be known by flashing blue light on the remote)

 
Purchase & Delivery
[ See product page on the Moes House WebSite :  Tuya-smart-life-zigbee-smart-home-wireless-switch-4-gang-remote-point-to-point-control ]

The remote control was purchased from Amazon  (MoesGo Tuya Smart Life Zigbee Smart Home Wireless Switch 4 Speed Remote Control Portable ) and arrived today (2022-11-18).

Installation
The remote control was installed onto the Observatory's Zigbee Network using the Phoscon App. The device as loaded as a 'Switch' in Phoscon and appeared on the deCONZ REST API as a 'sensor' with id = 7 ( id =8 after 2022-11-22),  manufacturename:  "_TZ3000_abci1hiu",  modelid:  "TS0044",  type:  "ZHASwitch"

Button Events
The 12 possible button events from the remote controller are mapped as follows

Value    Button   Action
1002 1 Single Click
1003 1 Long Press
1004 1 Double Click
     
2002 2 Single Click
2003 2 Long Press
2004 2 Double Click
     
3002 3 Single Click
3003 3 Long Press
3004 3 Double Click
     
4002 4 Single Click
4003 4 Long Press
4004 4 Double Click

Network Map showing the new Remote device is shown below
Image

Aux Light control
As a useful first application of the MoesGo Remote Control, it was programmed to turn on the Observatory's Aux Light (double-click) and turn it off again (single-click)

Update 2022-11-19
Attempt to turn on the Aux Light with programmed double-click didn't work today (2022-11-19) even though it was working the previous evening.  Investigating show that no events from the Remote were being logged.   Furthermore the network map in deCONZ showed no connection lines going to the 'Remote' node. Moving to a position that was closer to the Observatory (closer than when the Remote was when it was joined to the network, didn't fix the issue.  Attempt to reset the device by holding the button down for 10s+ didn't produce the expected blue falshing lights.  Checking the battery showed that its voltage was only 4.5V compared to the expected 12V.

The battery came pre-installed in the Remote, without any plastic pull -out tab, so it's possible that due to a prolonged period since manufacture & packing the battery power had drained or it was a cheap battery.   I have however read reports of some zigbee end-devices having very poor battery performance (draining away in 48 hours or in 1-2 months, and not the expected 1-2 years of life)

A pack of 5 new batteries have been ordered ( https://www.amazon.co.uk/gp/product/B000CSLIP6 )

Update 2022-11-22
Set of 23A 12V batteries arrived today (2022-11-22). First battery tried was a dud (only 6.6 V).  Second battery tried was ok (12.5 V) and was installed in the MoesGo Remote control.   Remote control was re-joined via Phoscon App (the previous entry having been deleted in vain attempts to restablish a connection between network and the remote).  Remote now has the Sensor ID 8. AstroMain updated and it was establish that the remote can again be used to turn-on/turn-off the Observatory's Aux Light.

Back to Top