stellarium icon indicating copy to clipboard operation
stellarium copied to clipboard

Add support for original NexStar 5/8

Open kall2sollies opened this issue 5 years ago • 33 comments

Problem description Original NexStar 5/8 do not work with the Celestron NexStar provider included in Stellarium. According to what is said about HC compatibility at NexStar Website, the original NexStar 5/8 have a different protocol than newer ones.

Feature request Implement a "Original NexStar 5/8" provider different than the existing generic NexStar.

Helping resources The protocol of these models is described in the user manual. I successfully tested it in a terminal, and it works.

NexStar Observer List supports it too, and is working with this model. Unfortunately, the program's sources are not available.

I can provide the protocol details if required.

I read the source of the generic NexStar provider, and I think the protocols are similar, and may only differ on ASCII chars used to prefix the commands. If confirmed, it may be a good idea to override the base telescope provider in an abstract NexStar provider, then implement the generic and original NexStar by overriding the abstract NexStar.

kall2sollies avatar Mar 06 '19 22:03 kall2sollies

Please attach the User Guide.

alex-w avatar Mar 12 '19 03:03 alex-w

Here is the relevant page of the user guide. Ascii codes are provided as int and not as hex. NexStar_5_original_RS232

kall2sollies avatar Mar 12 '19 10:03 kall2sollies

At the moment one volunteer works on incorporate ASCOM support into Stellarium - is it will be solution for you or do you want to see separate driver for NexStar support (as LX200 and standard NexStar drivers)?

alex-w avatar Oct 31 '19 10:10 alex-w

I think it would be more clear and give better user experience in Stellarium to see a specific entry for a specific protocol.

kall2sollies avatar Nov 01 '19 16:11 kall2sollies

Then somebody with a physical NexStar 5/8 should develop, test and send this patch.

gzotti avatar Nov 01 '19 17:11 gzotti

Then somebody with a physical NexStar 5/8 should develop, test and send this patch.

In attached info about NexStar 5/8 protocol is not very difficult and we can implement it, but without guarantee for works due no hardware for testing.

alex-w avatar Nov 01 '19 18:11 alex-w

I can test this, since I own an original NextStar 5. I am a developer, but not a C++ one, so I prefer not be in charge of developing the whole thing. But if someone could provide me with a branch with the code canvas scaffolded, I may try to adapt it and test it.

kall2sollies avatar Nov 04 '19 10:11 kall2sollies

Please try build https://github.com/Stellarium/stellarium/tree/nextstar5 branch and test it - maybe it will be work...

alex-w avatar Nov 05 '19 13:11 alex-w

I cloned the repo and checked out the appropriate branch. Do I have to build stellarium completely ? Or can I just build the nexstar5 plugin and deploy it within my regular stellarium installation ?

kall2sollies avatar Nov 15 '19 15:11 kall2sollies

Currently you must build all. It takes about 5-10 minutes on a modern PC, or an hour on the oldest netbook available, separating that out takes much longer. When you find out how to build plugins dynamically on Windows, you would do us a great favour!

gzotti avatar Nov 15 '19 15:11 gzotti

Yes, you should build Stellarium completely because TCP is static plugin

alex-w avatar Nov 15 '19 15:11 alex-w

Any news?

alex-w avatar Nov 26 '19 15:11 alex-w

Not yet sorry, needed to order a new USB/Serial cable in order to be ready to test. Will try to build and let you know as soon as I can.

kall2sollies avatar Nov 26 '19 22:11 kall2sollies

Any news

alex-w avatar Jan 10 '20 18:01 alex-w

Not yet sorry, but I will build and try

Le ven. 10 janv. 2020 à 19:06, Alexander Wolf [email protected] a écrit :

Any news

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Stellarium/stellarium/issues/648?email_source=notifications&email_token=AASOWWNVGOD6NQPWYFZR633Q5C2LLA5CNFSM4G4H54XKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIUXWUY#issuecomment-573143891, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASOWWNUH473SBZLWW6E2GLQ5C2LLANCNFSM4G4H54XA .

kall2sollies avatar Jan 14 '20 23:01 kall2sollies

I have an original NexStar5 and the required USB to Serial and connection cable etc. Plus I am very invested in having this work also. Though I am an astronomer not a developer. So not entirely sure how to go about building the code at the link above to test.

aros71 avatar Sep 29 '20 01:09 aros71

I wonder again if there is ASCOM support for this.

gzotti avatar Sep 29 '20 09:09 gzotti

I wonder again if there is ASCOM support for this.

No exactly, because OP was want to get extended Stellarium's driver for Celestron mounts.

@aros71 could you create a development environment and successful build Stellarium from source code by instructions: https://github.com/Stellarium/stellarium/blob/master/BUILDING.md at the startup point?

alex-w avatar Sep 29 '20 13:09 alex-w

I have also read that OP wants native support. However, if it is possible to use an existing ASCOM support, what's the point?

gzotti avatar Sep 29 '20 13:09 gzotti

I have also read that OP wants native support. However, if it is possible to use an existing ASCOM support, what's the point?

The request was created after release version 0.19.1 - no ASCOM yet ;)

alex-w avatar Sep 29 '20 13:09 alex-w

That's not the point. If the problem of "Driving an Original NexStar" can be solved by using existing drivers in ASCOM/INDI, now, in 2020, why would we need an extra mode in addition? Less code - less maintenance.

The question is now: Is there ASCOM/INDI support for the original NexStar?

gzotti avatar Sep 29 '20 19:09 gzotti

OP back in the thread! Well actually I don't know what ASCOM is, and how supporting it would solve the request. But I agree to the fact that less code means less maintenance. Could anyone provide me with a link to understand what ASCOM would imply?

kall2sollies avatar Sep 29 '20 19:09 kall2sollies

From https://ascom-standards.org/

ASCOM is a many-to-many and language-independent architecture, supported by most astronomy devices which connect to Windows and now Linux and MacOS computers.

It has been around for 20-something years now. https://en.wikipedia.org/wiki/ASCOM_(standard)

gzotti avatar Sep 29 '20 19:09 gzotti

Ok I have to try if my original NexStar 5 is supported (the support list does not provide enough details on supported NexStar iterations).

kall2sollies avatar Sep 29 '20 20:09 kall2sollies

@kall2sollies Any news here?

gzotti avatar Aug 07 '21 12:08 gzotti

I'm unable to test because my old NexStar5 mount has died.

Adam Rosner @.*** | http://www.rosner.net.nz +64 (0)22 610 6496

On Sun, 8 Aug 2021 at 00:24, Georg Zotti @.***> wrote:

@kall2sollies https://github.com/kall2sollies Any news here?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Stellarium/stellarium/issues/648#issuecomment-894648185, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARFXYXJLPONCDE2G56ERTYLT3UQZLANCNFSM4G4H54XA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

aros71 avatar Aug 11 '21 03:08 aros71

I am a (semi) retired C++ Qt programmer with a NexStar8 GPS and may be interested in taking this on. The link to the nexstar5 branch appears to be dead. I will try to get the latest and build it.
BTW, what version of Qt are you using. I am currently setup to build Qt 5.15 on PopOS 20.02, Windows 10 and Mac

theraaen avatar Jul 04 '22 18:07 theraaen

Please read BUILDING.md in the repository. We have been based on Qt5 for years and are in transition to Qt6, or actually, compatibility with both. The difference is fortunately not that great for us. However, it should run with 5.9 and later. (Again, still usually just a minor effort.)

gzotti avatar Jul 04 '22 20:07 gzotti

I was able to build in QtCreator with 5.15.2 (had to ln -s 5.15.2 5.15), with a ton of warnings. Can you point to where the appropriate code for telescope control and perhaps resurrect the nexstar5 branch for me to use as a starting point? Is there an API for telescope control?

I have to build a cable before I can try any testing, and probably some sort of serial sniffer. The display on my hand controller is flaky but I think the rest of it works.

What I would really like to end up with is a WiFi interface, perhaps using a ESP 32 as a WiFi to serial bridge....

theraaen avatar Jul 04 '22 23:07 theraaen

The code for the Telescope Control plugin is in plugins/TelescopeControl.

gzotti avatar Jul 04 '22 23:07 gzotti