×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Driver OnStep (LX200 like) for INDI

  • Posts: 452
  • Thank you received: 71
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
Last edit: 7 years 7 months ago by Alain Zwingelstein.
7 years 7 months ago #9493

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

  • Posts: 155
  • Thank you received: 10
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
7 years 7 months ago #9496

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

  • Posts: 452
  • Thank you received: 71
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
Last edit: 7 years 7 months ago by Alain Zwingelstein.
7 years 7 months ago #9499
Attachments:

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

  • Posts: 155
  • Thank you received: 10
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
7 years 7 months ago #9503

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

  • Posts: 452
  • Thank you received: 71
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...5.tar.gz
File Size:5,541 KB
The following user(s) said Thank You: Jasem Mutlaq
Last edit: 7 years 7 months ago by Alain Zwingelstein.
7 years 7 months ago #9505
Attachments:

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

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

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

  • Posts: 452
  • Thank you received: 71
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
7 years 7 months ago #9519

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

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.
7 years 7 months ago #9531

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

  • Posts: 452
  • Thank you received: 71
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
7 years 7 months ago #9677

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

  • Posts: 153
  • Thank you received: 29
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
7 years 7 months ago #9772

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

  • Posts: 153
  • Thank you received: 29
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
7 years 7 months ago #9773

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

  • Posts: 452
  • Thank you received: 71
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.
7 years 7 months ago #9787

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

Time to create page: 1.029 seconds