Re: [MaxImDL] REPOST: TheSky <-> ASCOM Drivers


May 18, 2003

 


----------------------------

#6671 May 18, 2003

I'm reposting this as a general message to all, so it is unburied from

the original thread and has an obvious subject line. The offer for phone

help with this issue is hereby extended to anyone who is experiencing

problems connecting from TeleAPI to a telescope, and who knows the

telescope COM port and and serial cable are already proven to be working.



---- break ----

> The problem you are having is with the ASCOM Platform. It's an open

> source effort, put together by a group of volunteers. It's also

> rather complex, and it has to work with quite a variety of hardware

> and software. Sometimes problems happen.



Actually, the Platform is *not* the problem (I know the above is just a

matter of semantics, but I don't want to see the ASCOM effort damaged by

a problem with a specific device driver). It's almost certainly related

to Windows security and permissions that are not being set properly by

the Platform installer. I am the author of the Platform installer, so...

> Was this released so they could show it off at the RTMC? It looks

> like a good product but if it doesn't work, what good is it?



We all try VERY hard to make our products really robust. Both

Diffraction and DC-3 Dreams are full-time professional software

companies whose reputation depends, at least in part, on software

quality. I don't think either of us have the reputation for shoddy software.



Andy and Carl, I totally understand your frustration. I'll try to

address specifics and try to get you going, Andy, for your trip.



BACKGROUND:

----------



The ASCOM Platform is designed to make device control independent from

programs. Imagine writing a word processor and facing the task of

printing. How many diffrerent printers are there out there? Many

hundreds. What if you had to write code to support them all? And what

happens the week after you release your program and a new

whiz-bang/cheap printer is announced? You'd have to spend years and

have a warehouse full of printers for testing. Fortunately, Windows has

a "driver" architecture where programmers make standard calls and the

printers are handled by drivers. Any program that wishes to print

simply calls the standard functions in the OS. This is what ASCOM is all

about, for astronomical instruments. Have a look at



ascom-standards.org/partners.html



for info on what programs are already using the standard calls provided

by the ASCOM platform. As Doug said, the effort is open source and the

drivers are written by individuals. We are not yet at the point where

the instrument manufacturers supply drivers. We hope to get there. The

benefits to the manufacturers are many, but they're still in the

"handbox" mode of thinking. A few have gotten the "Ah-Ha" experience though.



The reason I am writing so much here in the MaxIm group is that I am

responsible for the conditions under which drivers are activated on

NT/2K/XP (part of the installation process). The ASCOM Platform 2.2

production release (released 2 days ago) has what I think is the right

permission settings for EXE type drivers. DLL type drivers are not the

issue.



And the only time this comes into play is when the drivers are used from

TheSky, which uses a system called Distributed Common Object Model

(DCOM). This introduces a new layer of security into the object

activation process. As a result, any EXE hosted objects THAT ARE USED

FROM THESKY are subject to DCOM permission settings.



Astro-Physics Specifics

-----------------------



The logic specific to the Astro-Physics mounts is contained in the

driver AstroPhysics Driver.exe, which is a library of standard calls

accessible from any ASCOM-compatible program. This was written by Ajai

Sehgal. The drivers are located in c:\Program Files\Common

Files\ASCOM\Telescope (and \Focuser for focusers, etc). All of that

sholdn't be of any concern to you though, it's just background info.

Don't play with the EXE and DLL files there, as they are registered with

the OS as "objects" and are used as drivers by the Windows Common Object

system.



Forsberg: > I have set up TheSky by renaming the teleapi.dii and copying it to

> the system folder. When I go into TheSky setup program I select the

> telescope API controlled telescope. In the Ascom telescope chooser I

> select AP1200 telescope: I get an error that indicates the object not

> found and that I can not use multiple scopes. I do not have any thing

> else running.



Object not found means that for some reason the code in TeleAPI is not

able to attach to the driver object. The second message appears after

you try the first time. In this case the driver (it's an executable) is

active but will not allow multiple attachments (one object-one

instrument rule). We need to figure out why you weren't able to get to

the driver in the first place. It's almost certainly a permissions

problem. Here's a test to perform:



Install the ASCOM Platform 2.2f production release. If you haven't

downloaded it within the last 2 days, you have a test version.

Re-download it and resintall. DO NOT UNINSTALL.



Create a file with Notepad, called test.vbs (don't include the "snip"

lines). I suggest you copy the code out of this mail message and paste

it into Notepad. This little script talks directly to the driver. Put

test.vbs anywhere that's easy to double click.



----- snip -----

Set t = CreateObject("AstroPhysics.Telescope")

t.SetupDialog

t.Connected = True

WScript.Echo t.RightAscension

----- snip -----



Start your AP scope and make sure it's connected to the serial port, and

that you know which COM port it is connected to.



Double click the above file. What happens? My guess is that you'll first

get the setup screen for AP GTO mounts. Select yor COM port, etc. Click

OK and you'll probably get a popup that will show the RA of the scope

(in decimal, not H:M:S). If so, then the problem IS getting to the

driver from within TheSky, and that translates to DCOM permission

problems. Ajai will not be able to help as his driver is functioning

fine. THe problem is on my head.



After doing this test, if you do see the RA, please email me your phone

number (privately please, to rdenny@...) and I will call to walk

through checking DCOM permissions. It won't take very long (5 minutes).



Carl and Andy, the above applies to both of you. I'll be happy to get to

the root of this by phone, which will be much more efficient.



-- Bob











To unsubscribe from this group, send an email to:

MaxImDL-unsubscribe@yahoogroups.com







Your use of Yahoo! Groups is subject to docs.yahoo.com/info/terms/







----------------------------

#6676 May 18, 2003

Hi Bob,



I happen to have my AP1200GTO setup now because I have been testing with my PulseGuide

program. I just downloaded and installed ASCOM 2.2 Final then ran the script you suggested

below. The AP setup screen came up and I selected the COM port. This message came up

when I pressed "OK" in a message box titled "AP Driver":



"Settings Saved On Local Machine But No Astro-Physics Mount Found."



After I pressed OK to close that message box a windows scripting dialog popped up with the

correct Right Ascension of the mount in floating point. So it seems to work OK but I'm

puzzled by that message above.



-Ray Gralak





Install the ASCOM Platform 2.2f production release. If you haven't

downloaded it within the last 2 days, you have a test version.

Re-download it and resintall. DO NOT UNINSTALL.



Create a file with Notepad, called test.vbs (don't include the "snip"

lines). I suggest you copy the code out of this mail message and paste

it into Notepad. This little script talks directly to the driver. Put

test.vbs anywhere that's easy to double click.



----- snip -----

Set t = CreateObject("AstroPhysics.Telescope")

t.SetupDialog

t.Connected = True

WScript.Echo t.RightAscension

----- snip -----



Start your AP scope and make sure it's connected to the serial port, and

that you know which COM port it is connected to.



Double click the above file. What happens? My guess is that you'll first

get the setup screen for AP GTO mounts. Select yor COM port, etc. Click

OK and you'll probably get a popup that will show the RA of the scope

(in decimal, not H:M:S). If so, then the problem IS getting to the

driver from within TheSky, and that translates to DCOM permission

problems. Ajai will not be able to help as his driver is functioning

fine. THe problem is on my head.



After doing this test, if you do see the RA, please email me your phone

number (privately please, to rdenny@...) and I will call to walk

through checking DCOM permissions. It won't take very long (5 minutes).



Carl and Andy, the above applies to both of you. I'll be happy to get to

the root of this by phone, which will be much more efficient.



-- Bob











To unsubscribe from this group, send an email to:

MaxImDL-unsubscribe@yahoogroups.com







Your use of Yahoo! Groups is subject to docs.yahoo.com/info/terms/











Yahoo! Groups Sponsor.



ADVERTISEMENT



rd.yahoo.com/M=244522.3313099.4604523.1261774/D=egroupweb/S=1705082806:HM/A=1588188/R=0/*ashnin.com/clk/muryutaitaken

attogyo?YH=%LINEID%&yhad=1588188> Click Here!.

us.adserver.yahoo.com/l?M=244522.3313099.4604523.1261774/D=egroupmail/S=:HM/A=1588188/rand=364795454> .



To unsubscribe from this group, send an email to:

MaxImDL-unsubscribe@yahoogroups.com







Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service docs.yahoo.com/info/terms/> .









[Non-text portions of this message have been removed]



----------------------------

#6679 May 18, 2003

Oh, and I am running on Windows XP Pro.



-Ray

-----Original Message-----

From: Ray Gralak [mailto:ray@...]

Sent: Sunday, May 18, 2003 11:06 AM

To: MaxImDL@yahoogroups.com

Subject: RE: [MaxImDL] REPOST: TheSky -> ASCOM Drivers





Hi Bob,



I happen to have my AP1200GTO setup now because I have been testing with

my PulseGuide

program. I just downloaded and installed ASCOM 2.2 Final then ran the

script you suggested

below. The AP setup screen came up and I selected the COM port. This

message came up

when I pressed "OK" in a message box titled "AP Driver":



"Settings Saved On Local Machine But No Astro-Physics Mount Found."



After I pressed OK to close that message box a windows scripting dialog

popped up with the

correct Right Ascension of the mount in floating point. So it seems to

work OK but I'm

puzzled by that message above.



-Ray Gralak





Install the ASCOM Platform 2.2f production release. If you haven't

downloaded it within the last 2 days, you have a test version.

Re-download it and resintall. DO NOT UNINSTALL.



Create a file with Notepad, called test.vbs (don't include the "snip"

lines). I suggest you copy the code out of this mail message and paste

it into Notepad. This little script talks directly to the driver. Put

test.vbs anywhere that's easy to double click.



----- snip -----

Set t = CreateObject("AstroPhysics.Telescope")

t.SetupDialog

t.Connected = True

WScript.Echo t.RightAscension

----- snip -----



Start your AP scope and make sure it's connected to the serial port, and

that you know which COM port it is connected to.



Double click the above file. What happens? My guess is that you'll first

get the setup screen for AP GTO mounts. Select yor COM port, etc. Click

OK and you'll probably get a popup that will show the RA of the scope

(in decimal, not H:M:S). If so, then the problem IS getting to the

driver from within TheSky, and that translates to DCOM permission

problems. Ajai will not be able to help as his driver is functioning

fine. THe problem is on my head.



After doing this test, if you do see the RA, please email me your phone

number (privately please, to rdenny@...) and I will call to walk

through checking DCOM permissions. It won't take very long (5 minutes).



Carl and Andy, the above applies to both of you. I'll be happy to get to

the root of this by phone, which will be much more efficient.



-- Bob











To unsubscribe from this group, send an email to:

MaxImDL-unsubscribe@yahoogroups.com







Your use of Yahoo! Groups is subject to docs.yahoo.com/info/terms/











Yahoo! Groups Sponsor



ADVERTISEMENT





rd.yahoo.com/M=244522.3313099.4604523.1261774/D=egroupweb/S=17050828

06:HM/A=1588188/R=0/*ashnin.com/clk/muryutaitaken

attogyo?YH=%LINEID%&yhad=1588188> Click Here!



us.adserver.yahoo.com/l?M=244522.3313099.4604523.1261774/D=egroupmai

l/S=:HM/A=1588188/rand=364795454>



To unsubscribe from this group, send an email to:

MaxImDL-unsubscribe@yahoogroups.com







Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service

docs.yahoo.com/info/terms/> .









[Non-text portions of this message have been removed]





Yahoo! Groups Sponsor







To unsubscribe from this group, send an email to:

MaxImDL-unsubscribe@yahoogroups.com







Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.





[Non-text portions of this message have been removed]







----------------------------

#6686 May 18, 2003

"Settings Saved On Local Machine But No Astro-Physics Mount Found."



I'm not sure what that message is supposed to mean. Maybe it means that

there is no connection open tot he AP and therefore the settings cannot

be applied immediately to the scope. THey will be applied when you do

connect. I'm rather pressed for time getting ready for IAPPP where I'm

giving demos and a talk, so pardon my not digging into the AP sources

for the answer to the above...



Thanks to Chuck Faranda and a phone call, I know what's missing in

MaxPoint's installer and just telegraphed it to Doug, who will fix it

forthwith. The problem only affects connecting from TheSky via TeleAPI

to MaxPoint under 2K/XP.



-- Bob



----------------------------

#6688 May 18, 2003

Bob, thanks for the great customer service! I'm sure everyone is grateful

for your efforts.



Regards,



Chuck Faranda

ccdastro.net

----- Original Message -----

From: "Bob Denny" rdenny@...>

To: MaxImDL@yahoogroups.com>

Sent: Sunday, May 18, 2003 4:26 PM

Subject: Re: [MaxImDL] REPOST: TheSky -> ASCOM Drivers





> > "Settings Saved On Local Machine But No Astro-Physics Mount Found."

>

> I'm not sure what that message is supposed to mean. Maybe it means that

> there is no connection open tot he AP and therefore the settings cannot

> be applied immediately to the scope. THey will be applied when you do

> connect. I'm rather pressed for time getting ready for IAPPP where I'm

> giving demos and a talk, so pardon my not digging into the AP sources

> for the answer to the above...

>

> Thanks to Chuck Faranda and a phone call, I know what's missing in

> MaxPoint's installer and just telegraphed it to Doug, who will fix it

> forthwith. The problem only affects connecting from TheSky via TeleAPI

> to MaxPoint under 2K/XP.

>

> -- Bob

>

>

>

> To unsubscribe from this group, send an email to:

> MaxImDL-unsubscribe@yahoogroups.com

>

>

>

> Your use of Yahoo! Groups is subject to docs.yahoo.com/info/terms/

>

>

>



----------------------------

#6689 May 18, 2003

Bob Denny wrote:

> Thanks to Chuck Faranda and a phone call, I know what's missing in

> MaxPoint's installer and just telegraphed it to Doug, who will fix it

> forthwith. The problem only affects connecting from TheSky via TeleAPI

> to MaxPoint under 2K/XP.



Yes, it seems the installer was missing a Registry key, which was

adversely affecting the DCOM permissions setup. I have tweaked the

installer to fix that; the updated version is available on our web site.

This should fix the TheSky problem.



A big thanks to Bob for all the help!



Doug



---------------



Doug George

dgeorge@...



Diffraction Limited

Makers of Cyanogen Imaging Products

www.cyanogen.com



100 Craig Henry Drive, Unit 106,

Ottawa, Ontario, Canada, K2G 5W3



Phone: (613) 225-2732

Fax: (613) 225-9688



---------------



----------------------------

#6690 May 18, 2003

Will the GSC-ACT catalog allow auto mapping?



Steve



-----Original Message-----

From: Douglas B. George [mailto:dgeorge@...]

Sent: Sunday, May 18, 2003 8:35 PM

To: MaxImDL@yahoogroups.com

Subject: Re: [MaxImDL] REPOST: TheSky -> ASCOM Drivers





Bob Denny wrote:

> Thanks to Chuck Faranda and a phone call, I know what's missing in

> MaxPoint's installer and just telegraphed it to Doug, who will fix it

> forthwith. The problem only affects connecting from TheSky via TeleAPI

> to MaxPoint under 2K/XP.



Yes, it seems the installer was missing a Registry key, which was

adversely affecting the DCOM permissions setup. I have tweaked the

installer to fix that; the updated version is available on our web site.



This should fix the TheSky problem.



A big thanks to Bob for all the help!



Doug



---------------



Doug George

dgeorge@...



Diffraction Limited

Makers of Cyanogen Imaging Products

www.cyanogen.com



100 Craig Henry Drive, Unit 106,

Ottawa, Ontario, Canada, K2G 5W3



Phone: (613) 225-2732

Fax: (613) 225-9688



---------------







To unsubscribe from this group, send an email to:

MaxImDL-unsubscribe@yahoogroups.com







Your use of Yahoo! Groups is subject to

docs.yahoo.com/info/terms/



----------------------------

#6691 May 18, 2003

That did the trick! Thanks Bob and Doug.



Regards,



Chuck Faranda

ccdastro.net

----- Original Message -----

From: "Douglas B. George" dgeorge@...>

To: MaxImDL@yahoogroups.com>

Sent: Sunday, May 18, 2003 8:35 PM

Subject: Re: [MaxImDL] REPOST: TheSky -> ASCOM Drivers





> Bob Denny wrote:

>

> > Thanks to Chuck Faranda and a phone call, I know what's missing in

> > MaxPoint's installer and just telegraphed it to Doug, who will fix it

> > forthwith. The problem only affects connecting from TheSky via TeleAPI

> > to MaxPoint under 2K/XP.

>

> Yes, it seems the installer was missing a Registry key, which was

> adversely affecting the DCOM permissions setup. I have tweaked the

> installer to fix that; the updated version is available on our web site.

> This should fix the TheSky problem.

>

> A big thanks to Bob for all the help!

>

> Doug

>

---------------

>

> Doug George

> dgeorge@...

>

> Diffraction Limited

> Makers of Cyanogen Imaging Products

> www.cyanogen.com

>

> 100 Craig Henry Drive, Unit 106,

> Ottawa, Ontario, Canada, K2G 5W3

>

> Phone: (613) 225-2732

> Fax: (613) 225-9688

>

---------------

>

>

>

> To unsubscribe from this group, send an email to:

> MaxImDL-unsubscribe@yahoogroups.com

>

>

>

> Your use of Yahoo! Groups is subject to docs.yahoo.com/info/terms/

>

>

>







----------------------------

#6692 May 18, 2003

Steve Reilly wrote: > Will the GSC-ACT catalog allow auto mapping?



Yes. That catalog -- along with PinPoint LE -- is what makes the auto

mapping work.



Doug



---------------



Doug George

dgeorge@...



Diffraction Limited

Makers of Cyanogen Imaging Products

www.cyanogen.com



100 Craig Henry Drive, Unit 106,

Ottawa, Ontario, Canada, K2G 5W3



Phone: (613) 225-2732

Fax: (613) 225-9688



---------------



----------------------------

#6697 May 19, 2003

Doug,



I am still having a problem with Maxpoint and The sky.



I loaded the updated version last night and I am now get the following error selecting Teleapi and clicking the setting button



Run-time error - 2147220416(80040440)

failed to open sub-key chooser



I hit ok and get this message

run-time error 440

automation error



I checked the component services and the authentication level (none).



Any ideas?



Richard ----- Original Message -----

From: Douglas B. George

To: MaxImDL@yahoogroups.com

Sent: Sunday, May 18, 2003 8:35 PM

Subject: Re: [MaxImDL] REPOST: TheSky -> ASCOM Drivers





Bob Denny wrote:



> Thanks to Chuck Faranda and a phone call, I know what's missing in

> MaxPoint's installer and just telegraphed it to Doug, who will fix it

> forthwith. The problem only affects connecting from TheSky via TeleAPI

> to MaxPoint under 2K/XP.



Yes, it seems the installer was missing a Registry key, which was

adversely affecting the DCOM permissions setup. I have tweaked the

installer to fix that; the updated version is available on our web site.

This should fix the TheSky problem.



A big thanks to Bob for all the help!



Doug



---------------



Doug George

dgeorge@...



Diffraction Limited

Makers of Cyanogen Imaging Products

www.cyanogen.com



100 Craig Henry Drive, Unit 106,

Ottawa, Ontario, Canada, K2G 5W3



Phone: (613) 225-2732

Fax: (613) 225-9688



---------------





Yahoo! Groups Sponsor











To unsubscribe from this group, send an email to:

MaxImDL-unsubscribe@yahoogroups.com







Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.







[Non-text portions of this message have been removed]



----------------------------

#6699 May 19, 2003

[oops, he sent this to me directly too, and I inadvertently replied back

to his personal address]



Richard:

> Run-time error - 2147220416(80040440)

> failed to open sub-key chooser





Doug and I went back and forth yesterday relating to Windows permission

settings in the registry to solve the "outbound connections from TheSky"

problem, and in the process he added the new ASCOM Platform 2.2 chooser

into his installer. You apparently are running the ASCOM Platform 2.1.

There are a couple of ways to proceed:



(1, preferred) Download and install the ASCOM Platform 2.2



ASCOM-Standards.org/



or



(2) If you know how to run the registry editor, create the following:



in HKEY_LOCAL_MACHINE\Software\ASCOM



create a new KEY "Chooser"



I'm sorry about this. The MaxPoint installer includes bits from the

Platform, and I asked him to include the latest, but forgot to tell him

that the new Chooser requires this new key.



The good news is that the MaxPoint installer now creates the registry

info needed to establish the required Windows permissions for outbound

ASCOM connections from TheSky (via Telescope API).



-- Bob



----------------------------

#6703 May 19, 2003

Richard wrote: > Doug,

>

> I am still having a problem with Maxpoint and The sky.

>

> I loaded the updated version last night and I am now get the

> following error selecting Teleapi and clicking the setting button

>

> Run-time error - 2147220416(80040440) failed to open sub-key chooser

>

> I hit ok and get this message run-time error 440 automation error

>

> I checked the component services and the authentication level (none).

>

> Any ideas?



Something is wrong with your ASCOM Platform. I suggest re-installing it.



Doug



---------------



Doug George

dgeorge@...



Diffraction Limited

Makers of Cyanogen Imaging Products

www.cyanogen.com



100 Craig Henry Drive, Unit 106,

Ottawa, Ontario, Canada, K2G 5W3



Phone: (613) 225-2732

Fax: (613) 225-9688



---------------



Contact Us
This Site's Privacy Policy
Google's privacy policies

S
e
n
i
o
r
T
u
b
e
.
o
r
g