jlecomte / ascom-switch-hub Goto Github PK
View Code? Open in Web Editor NEWOpen-Source ASCOM Switch Hub
License: MIT License
Open-Source ASCOM Switch Hub
License: MIT License
My setup uses a Pegasus Astro Powerbox Micro and a Pegasus Astro USB Control Hub. Both devices have a 'Voltage' gauge and it's not immediately apparent which gauge corresponds to which device.
Perhaps the name of the device could be appended to the gauge/switch name in some way?
Fantastic software, fantastic implementation too!!
Thanks for writing this.
Is there a way to control more than one switch of the same type?. I have three digital logger pros, one controls everything on the telescope and the mount. A second controls the weather instruments and their computer that is located in the lower lever of the observatory. The third one controls the dome louvers and fans and is located in a third locations in the observatory.
Is there a way to solve this?
During registration of the dll a warning is produced about the assembly being unsigned:
RegAsm : warning RA0000 : Registering an unsigned assembly with /codebase can cause your assembly to interfere with other applications that may be installed on the same computer. The /codebase switch is intended to be used only with signed assemblies. Please give your assembly a strong name and re-register it.
Note, the ascom switch hub still is able to function just fine despite the warning.
Fantastic software, fantastic implementation too!!
When using the switch hub with DigitalLogger switch experience an ASCOM exception - ASCOM.DriverException: WebClient does not support concurrent I/O operations.
This occurs when calling switch a second time in sequence: Log snippets:
Start of sequence switch usage:
2023-09-13T18:25:40.8304|INFO|SequenceItem.cs|Run|206|Starting Category: Connector, Item: ConnectEquipment, Selected device: Switch, Selected device id: ASCOM.DarkSkyGeek.SwitchHub
2023-09-13T18:25:49.8965|INFO|SwitchVM.cs|Connect|266|Successfully connected Switch. Id: ASCOM.DarkSkyGeek.SwitchHub Name: DarkSkyGeek’s ASCOM Switch Hub Driver Version: 1.0
2023-09-13T18:25:49.8966|INFO|SequenceItem.cs|Run|224|Finishing Category: Connector, Item: ConnectEquipment, Selected device: Switch, Selected device id: ASCOM.DarkSkyGeek.SwitchHub
2023-09-13T18:25:50.6375|INFO|SequenceItem.cs|Run|206|Starting Category: Switch, Item: SetSwitchValue, SwitchIndex 3, Value: 1
2023-09-13T18:56:56.2120|INFO|SequenceItem.cs|Run|206|Starting Category: Switch, Item: SetSwitchValue, SwitchIndex 3, Value: 0
2023-09-13T18:57:04.8718|INFO|SequenceItem.cs|Run|224|Finishing Category: Switch, Item: SetSwitchValue, SwitchIndex 3, Value: 0
End of sequence usage:
2023-09-14T03:56:11.1509|INFO|SequenceItem.cs|Run|206|Starting Category: Switch, Item: SetSwitchValue, SwitchIndex 3, Value: 1
2023-09-14T03:56:11.1519|ERROR|SequenceItem.cs|Run|233|Category: Switch, Item: SetSwitchValue, SwitchIndex 3, Value: 1 -
ASCOM.DriverException: WebClient does not support concurrent I/O operations.
---> System.Exception: WebClient does not support concurrent I/O operations.
--- End of inner exception stack trace ---
at ASCOM.Com.DriverAccess.DynamicAccess.CheckDotNetExceptions(String memberName, Exception e)
at ASCOM.Com.DriverAccess.DynamicAccess.TryInvokeMember(InvokeMemberBinder binder, Object[] args, Object& result)
at CallSite.Target(Closure, CallSite, Object, Int16, Double)
at ASCOM.Com.DriverAccess.Switch.SetSwitchValue(Int16 id, Double value)
at NINA.Equipment.Equipment.MySwitch.Ascom.AscomWritableSwitch.SetValue() in C:\Projects\nina\NINA.Equipment\Equipment\MySwitch\Ascom\AscomWritableSwitch.cs:line 36
at NINA.WPF.Base.ViewModel.Equipment.Switch.SwitchVM.SetSwitchValue(Object arg) in C:\Projects\nina\NINA.WPF.Base\ViewModel\Equipment\Switch\SwitchVM.cs:line 91
at NINA.Sequencer.SequenceItem.SequenceItem.Run(IProgress`1 progress, CancellationToken token) in C:\Projects\nina\NINA.Sequencer\SequenceItem\SequenceItem.cs:line 27
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.