Welcome, Guest
Username: Password: Remember me
25 Jul 2018
Glad to announce of release of INDI Library v1.7.4 on 2018-07-25. A few drivers were added in this release as we continue to improve & stabilize existing drivers.
Read More...

TOPIC: Driver OnStep (LX200 like) for INDI

Driver OnStep (LX200 like) for INDI 2 years 2 months ago #9493

  • azwing
  • azwing's Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 128
  • Karma: 1
  • Thank you received: 19
Hi,

most probably the xml file in /usr/local/share/drivers.xml
Oups I forgot to update this one

should have an entry like
<device label="LX200 OnStep" focal_length="" aperture="">^M
<driver name="LX200 OnStep">indi_lx200_OnStep</driver>^M
<version>0.0</version>^M
</device>^M


Sorry I did not see your question about Audela.
No I am not involved in this one :( time is missing

Please Log in or Create an account to join the conversation.

Last Edit: by azwing.

Driver OnStep (LX200 like) for INDI 2 years 2 months ago #9496

Hello,
For some reason, I am still not seeing the driver. I do see the references you mention in /usr/local/share/indi/drivers.xml but not in /usr/local/share/drivers.xml. I do not have the same directory structure. Perhaps that is the error?
Best wishes,
Dan

Please Log in or Create an account to join the conversation.

Driver OnStep (LX200 like) for INDI 2 years 2 months ago #9499

  • azwing
  • azwing's Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 128
  • Karma: 1
  • Thank you received: 19
Hi Dan,.
Most probanly you left the indi package installed.
The normal place for indi if you install indi with apt or whatever tool (I am on Debian) is /usr/bin.

The compiled version is under /usr/bin/
============================= try to locate indiserver
alain@alain:/$ whereis indiserver
indiserver: /usr/bin/indiserver
============================= list /usr/share/indi
alain@alain:/$ ls -l /usr/share/indi/
total 16
-rw-r--r-- 1 root root 11192 août 3 18:54 drivers.xml <== verify if the OnStep Driver is listed (this is normally installed by make install since the file is in the libindi directory)
-rw-r--r-- 1 root root 1386 août 3 12:55 indi_tcfs_sk.xml
============================= list all the indi_lx200 drivers under /usr/bin
alain@alain:/$ ls -l /usr/bin/indi_lx200*
lrwxrwxrwx 1 root root 26 août 4 02:10 /usr/bin/indi_lx200_16 -> /usr/bin/indi_lx200generic
lrwxrwxrwx 1 root root 26 août 4 02:10 /usr/bin/indi_lx200ap -> /usr/bin/indi_lx200generic
lrwxrwxrwx 1 root root 26 août 4 02:10 /usr/bin/indi_lx200autostar -> /usr/bin/indi_lx200generic
-rwxr-xr-x 1 root root 178640 août 3 17:15 /usr/bin/indi_lx200basic
lrwxrwxrwx 1 root root 26 août 4 02:10 /usr/bin/indi_lx200classic -> /usr/bin/indi_lx200generic
lrwxrwxrwx 1 root root 26 août 4 02:10 /usr/bin/indi_lx200fs2 -> /usr/bin/indi_lx200generic
lrwxrwxrwx 1 root root 26 août 4 02:10 /usr/bin/indi_lx200gemini -> /usr/bin/indi_lx200generic
-rwxr-xr-x 1 root root 233624 août 4 02:10 /usr/bin/indi_lx200generic
lrwxrwxrwx 1 root root 26 août 4 02:10 /usr/bin/indi_lx200gps -> /usr/bin/indi_lx200generic
lrwxrwxrwx 1 root root 26 août 4 02:10 /usr/bin/indi_lx200_OnStep -> /usr/bin/indi_lx200generic
lrwxrwxrwx 1 root root 26 août 4 02:10 /usr/bin/indi_lx200pulsar2 -> /usr/bin/indi_lx200generic
lrwxrwxrwx 1 root root 26 août 4 02:10 /usr/bin/indi_lx200ss2000pc -> /usr/bin/indi_lx200generic
lrwxrwxrwx 1 root root 26 août 4 02:10 /usr/bin/indi_lx200zeq25 -> /usr/bin/indi_lx200generic
============================= then you can start the server in commandline typing
alain@alain:/$ indiserver indi_lx200_OnStep
2016-08-04T09:33:03: startup: indiserver indi_lx200_OnStep
2016-08-04T09:33:03: Driver indi_lx200_OnStep: initializing from LX200 OnStep device...
2016-08-04T09:33:03: Driver indi_lx200_OnStep: ERROR: Logger not configured!

Then you can connect to the server with kstars (see picture)


then everything should work.

Hope this works
Attachments:

Please Log in or Create an account to join the conversation.

Last Edit: by azwing.

Driver OnStep (LX200 like) for INDI 2 years 2 months ago #9503

Hello Alain,

I hope that I understand. You have modified the lx200_generic. You reference the OnStep device to this modified driver. You use root as user. And you are not able to use Ekos, only can call routine by using Device Manager? In addition, you are using a modified version of the Onstep firmware?

I will try to take more of a look at this over the weekend in a hope to sort my problems with testing it. First off, I think I must see the .ino for the Mega2560 which you modified. It seems this is required.

Best wishes and thank you in advance for any confirmation of my thoughts,
Dan

Please Log in or Create an account to join the conversation.

Driver OnStep (LX200 like) for INDI 2 years 2 months ago #9505

  • azwing
  • azwing's Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 128
  • Karma: 1
  • Thank you received: 19
Hi Astrodan,

The only modification I made on the OnStep firmware is the implementation of the Get Time Format Function in "Command.ino"
Already on Github github.com/hjd1964/OnStep/commit/85d6979...996135a9026152fc4256

// :Gc# Get the current time format
// Returns: 24#
// The current local time format
if (command[1]=='c') {
sprintf(reply,"%s", "24");
quietReply=true;
} else

This modification is not critical, I just wanted to stick to the indi standard that requests this and sends a warning if not implemented
I is working without this change.

For the driver, I tested it also from within Ekos without any issue.

For sure I am still not happy with everything.
Needs optimization on functions like error checking and so on, but it is usable as is

=============== DEVELOPMENT
Yes for the make install you need to be root
for the normal usage, normal user account is working.
Just start Kstars, select the driver either from device chooser or from Ekos and go

Regards


File Attachment:

File Name: libindi-16-08-05.tar.gz
File Size: 5,541 KB
Attachments:
The following user(s) said Thank You: knro

Please Log in or Create an account to join the conversation.

Last Edit: by azwing.

Driver OnStep (LX200 like) for INDI 2 years 2 months ago #9509

Hello Alain, Great job! Can you submit a Pull-Request on INDI's Github and I'll merge it after review?

Please Log in or Create an account to join the conversation.

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

Driver OnStep (LX200 like) for INDI 2 years 2 months ago #9519

  • azwing
  • azwing's Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 128
  • Karma: 1
  • Thank you received: 19
Hi Jasem,

already back from Holiday? Hope you enjoyed.

I will try do do this.
I was a little bit afraid to do it right now because I am still not happy with some implementations and it is not complete (Catalog and Focuser not implemented on both sides , firmware and Indi) but yes why not.
Since I am really a newbie on Indi developing I have still to learn a lot :)
I don't know how I can do to create a pull on github, but I guess I have to create an account on GitHub.

Regards

Please Log in or Create an account to join the conversation.

Driver OnStep (LX200 like) for INDI 2 years 2 months ago #9531

Yes create an account on github, fork INDI, then make changes to your INDI fork, then after than you can submit a "Pull Request" to merge your changes back to the primary INDI repo.

Please Log in or Create an account to join the conversation.

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

Driver OnStep (LX200 like) for INDI 2 years 1 month ago #9677

  • azwing
  • azwing's Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 128
  • Karma: 1
  • Thank you received: 19
Hi DragonLost,

made any progress on your setup with the OnStep Arduino Controller.
Did you have the opportunity to test the driver that is now include in the master Indi on Github?

Would be nice to receive some feed back on what is not going well!

Regards

Please Log in or Create an account to join the conversation.

Driver OnStep (LX200 like) for INDI 2 years 1 month ago #9772

Hi azwing,
Thanks for this driver! I'm attempting to test with my OnStep (Teensy, if that matters) setup and am not getting very far...

I'm using OnStep-alpha so I have the changes you submitted to the controller for :Gc#. I'm also built the latest version of indi directly for Jasem's github repo. Here is the error that I see:

DEBUG 632.829915 sec : Toggle Debug Level -- Scope Verbose
DEBUG 633.449983 sec : Toggle Logging Level -- Scope Verbose
DEBUG 635.944619 sec : Testing telescope connection using ACK...
DEBUG 646.055417 sec : Failure. Telescope is not responding to ACK!
ERROR 646.055583 sec : Error connecting to Telescope. Telescope is offline.

I have tried connecting both via bluetooth (rfcomm) and the virtual serial port from the USB connection. The OnStep controller works just fine when I use the Android application. I don't see that the OnStep controller code supports the <ACK> LX200 command, but I didn't look very hard and suspect that I'm wrong about this. Any ideas?

Thanks,
Ben

Please Log in or Create an account to join the conversation.

Driver OnStep (LX200 like) for INDI 2 years 1 month ago #9773

Well I'm not quite sure what I did to make it work, but it seems to be functional now. Now I just need to figure out how the heck to use it...

Thanks!
-Ben

Please Log in or Create an account to join the conversation.

Driver OnStep (LX200 like) for INDI 2 years 1 month ago #9787

  • azwing
  • azwing's Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 128
  • Karma: 1
  • Thank you received: 19
Hi Ben,

The ack command is implmented in the OnStep firmware even if it is hidden somewhere in command.ino

look for this in the source
// Build up a command
boolean buildCommand_serial_zero(char c) {
// (chr)6 is a special status command for the LX200 protocol
if ((c==(char)6) && (bufferPtr_serial_zero==0)) {
#ifdef MOUNT_TYPE_ALTAZM
Serial_print("A");
#else
Serial_print("P");
#endif
}
=======================

Happy that it works for you.
I tried the package installation to verify also this is working (I am using Debian Strech) so I have the packages and on Kubuntu you can install the last version always.

Please Log in or Create an account to join the conversation.

Time to create page: 0.329 seconds

Login



3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!


Gallery

Replica

Why INDI

Replica