×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

KStars under Ubuntu and RS232 connection

  • Posts: 151
  • Thank you received: 27
hi!
I am developing a Raspberry Pi drive controller and autoguider; I am right now implementing the LX200 basic protocol using the RS 232, and I have a question. KStars send an <ACK> when connecting via the telescope wizard and is happy with a reponse like 'P', and starts polling the position by issuing #:GR# and #:GD# - that works nicely (
). but i don't get any commands when issuing a sync or slew command - what am i doing wrong (it works nicely with carted du ciel and stellarium, that's why i am asking ...)

yours
wolfi
7 years 4 months ago #13138

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

Who is not receiving what commands? On Sync/Slew, KStars first updates ON_COORD_SET then sends EQUATORIAL_EOD_COORD to the driver. Are you implementing a new LX200-based driver? or what?
The following user(s) said Thank You: Wolfgang Birkfellner
7 years 4 months ago #13153

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

  • Posts: 151
  • Thank you received: 27
hi!
i am developing a telescope controller (that is, an interface to stepper drivers) based on Jessie and the Pi - github.com/selste/TwoStepperControl )...

my question is not directly related to INDI but to the RS232 connection of Kstars to the controller. when i connect my ubuntu 14.04 laptop via a nullmodem - cable to the Pi and i instantiate a LX-Basic connection via the telescope wizard in KStars, i get
<ACK>
which I answer with 'P"

after that, KStars polls Right Ascension and Declination by sending #:GR# and #:GD# ... i answer with the appropriate strings and KStars displays these coordinates, as seen in the video. but when i deploy Sync or Slew -the other two available commands, i don't get a request by KStars, it just keeps polling RA and Decl.
yours
wolfi
7 years 4 months ago #13160

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

When issuing Sync/Slew, the driver first sets the coords #:SR# and #:SD# IIRC, and then following that by either sync or slew (#:MS#) commands. Please enable the logs and you'll see the LX200 basic driver issuing them to the serial port.
The following user(s) said Thank You: Wolfgang Birkfellner
7 years 4 months ago #13179

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

  • Posts: 151
  • Thank you received: 27
hi!
sorry for not getting back earlier ... had to install the latest ubuntu (was running 14.04) and the latest KStars. now i do get sync or slew commands, but my replies are apparently not accepted from kstars now ... here is my log. i got a slew command, but now i don't get requests from KStars for actual position. here is my log:
2016-12-20T20:59:34.798 - DEBG - INDI Server: ""
2016-12-20T20:59:34.830 - DEBG - INDIListener: Processing device LX200 Basic
2016-12-20T20:59:34.831 - DEBG - < LX200 Basic >: < CONNECTION >
2016-12-20T20:59:34.864 - DEBG - < LX200 Basic >: < DRIVER_INFO >
2016-12-20T20:59:34.876 - DEBG - < LX200 Basic >: < DEBUG >
2016-12-20T20:59:34.888 - DEBG - < LX200 Basic >: < SIMULATION >
2016-12-20T20:59:34.893 - DEBG - < LX200 Basic >: < CONFIG_PROCESS >
2016-12-20T20:59:34.893 - DEBG - < LX200 Basic >: < DEVICE_PORT >
2016-12-20T20:59:34.894 - DEBG - < LX200 Basic >: < TELESCOPE_BAUD_RATE >
2016-12-20T20:59:34.895 - DEBG - < LX200 Basic >: < ACTIVE_DEVICES >
2016-12-20T20:59:34.896 - DEBG - < LX200 Basic >: < DOME_POLICY >
2016-12-20T20:59:36.805 - DEBG - LX200 Basic : "LX200 Basic is online. Retrieving basic data... "
2016-12-20T20:59:36.871 - DEBG - < LX200 Basic >: < ON_COORD_SET >
2016-12-20T20:59:36.885 - DEBG - < LX200 Basic >: < EQUATORIAL_EOD_COORD >
2016-12-20T20:59:36.893 - DEBG - < LX200 Basic >: < TELESCOPE_ABORT_MOTION >
2016-12-20T20:59:36.915 - DEBG - < LX200 Basic >: < TELESCOPE_MOTION_NS >
2016-12-20T20:59:36.931 - DEBG - < LX200 Basic >: < TELESCOPE_MOTION_WE >
2016-12-20T20:59:36.934 - DEBG - < LX200 Basic >: < TELESCOPE_INFO >
2016-12-20T20:59:36.937 - DEBG - < LX200 Basic >: < TARGET_EOD_COORD >
2016-12-20T20:59:36.938 - DEBG - < LX200 Basic >: < USEJOYSTICK >
2016-12-20T20:59:36.939 - DEBG - < LX200 Basic >: < Slew Accuracy >
2016-12-20T21:00:15.901 - DEBG - ISD:Telescope: Sending coords RA 5.93472 DEC 7.40634
2016-12-20T21:00:16.234 - DEBG - LX200 Basic : "Synchronization successful. "
2016-12-20T21:00:27.900 - DEBG - ISD:Telescope: Sending coords RA 5.60362 DEC -4.831
2016-12-20T21:00:28.196 - DEBG - LX200 Basic : "Error Slewing to JNow RA 5:36:13 - DEC -4:49:52 "
2016-12-20T21:00:28.237 - DEBG - LX200 Basic : "Object below horizon. "
2016-12-20T21:01:07.017 - DEBG - ISD:Telescope: Sending coords RA 5.93472 DEC 7.40634
2016-12-20T21:01:07.296 - DEBG - LX200 Basic : "Error Slewing to JNow RA 5:56:05 - DEC 7:24:23 "
2016-12-20T21:01:07.303 - DEBG - LX200 Basic : "Object below horizon. "
2016-12-20T21:01:27.504 - DEBG - LX200 Basic : "Slew aborted. "
2016-12-20T21:01:28.686 - DEBG - LX200 Basic : "Slew aborted. "

lg
wolfi
7 years 3 months ago #13237

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

  • Posts: 151
  • Thank you received: 27
hi!
so i tried to figure out what is going on, and I programmed a little bit on my own controller; so basically, KStars seems to process my coordinate output not properly. when is start up my program, i get these requests from KSTars with the LX200 Basic driver over the serial port:

and i answer them properly (at least CdC and Stellarium can process my responses). KStars does not track the telescope, but it reacts to Sync and Slew commands in the LX200 Basic protocol. here is the log. what am i doing wrong?????
yours
wolfi
2016-12-26T19:48:02.712 - DEBG - INDI Server: "2016-12-26T18:48:02: startup: /usr/bin/indiserver -v -p 7624 -m 100 -f /tmp/indififo55b26855 "
2016-12-26T19:48:02.712 - DEBG - INDI Server: "2016-12-26T18:48:02: listening to port 7624 on fd 3"
2016-12-26T19:48:02.712 - DEBG - INDI Server: "FIFO: start indi_lx200basic -n \"LX200 Basic\""
2016-12-26T19:48:02.713 - DEBG - INDI Server: "With name: LX200 Basic"
2016-12-26T19:48:02.713 - DEBG - INDI Server: "FIFO: Starting driver indi_lx200basic"
2016-12-26T19:48:02.713 - DEBG - INDI Server: "2016-12-26T18:48:02: Driver indi_lx200basic: pid=2575 rfd=4 wfd=7 efd=8"
2016-12-26T19:48:02.713 - DEBG - INDI Server: "2016-12-26T18:48:02: Client 5: new arrival from 127.0.0.1:46980 - welcome!"
2016-12-26T19:48:02.713 - DEBG - INDI Server: "2016-12-26T18:48:02: Driver indi_lx200basic: Initializing from LX200 Basic device..."
2016-12-26T19:48:02.713 - DEBG - INDI Server: "2016-12-26T18:48:02: Driver indi_lx200basic: snooping on GPS Simulator.GEOGRAPHIC_COORD"
2016-12-26T19:48:02.713 - DEBG - INDI Server: "2016-12-26T18:48:02: Driver indi_lx200basic: snooping on GPS Simulator.TIME_UTC"
2016-12-26T19:48:02.713 - DEBG - INDI Server: "2016-12-26T18:48:02: Driver indi_lx200basic: snooping on Dome Simulator.DOME_PARK"
2016-12-26T19:48:02.713 - DEBG - INDI Server: "2016-12-26T18:48:02: Driver indi_lx200basic: snooping on Dome Simulator.DOME_SHUTTER"
2016-12-26T19:48:02.713 - DEBG - INDI Server: ""
2016-12-26T19:48:02.734 - DEBG - INDIListener: Processing device LX200 Basic
2016-12-26T19:48:02.755 - DEBG - < LX200 Basic >: < CONNECTION >
2016-12-26T19:48:02.764 - DEBG - < LX200 Basic >: < DRIVER_INFO >
2016-12-26T19:48:02.794 - DEBG - < LX200 Basic >: < DEBUG >
2016-12-26T19:48:02.807 - DEBG - < LX200 Basic >: < SIMULATION >
2016-12-26T19:48:02.810 - DEBG - < LX200 Basic >: < CONFIG_PROCESS >
2016-12-26T19:48:02.811 - DEBG - < LX200 Basic >: < DEVICE_PORT >
2016-12-26T19:48:02.812 - DEBG - < LX200 Basic >: < TELESCOPE_BAUD_RATE >
2016-12-26T19:48:02.812 - DEBG - < LX200 Basic >: < ACTIVE_DEVICES >
2016-12-26T19:48:02.813 - DEBG - < LX200 Basic >: < DOME_POLICY >
2016-12-26T19:48:06.653 - DEBG - LX200 Basic : "Debug is enabled. "
2016-12-26T19:48:06.654 - DEBG - < LX200 Basic >: < DEBUG_LEVEL >
2016-12-26T19:48:06.659 - DEBG - < LX200 Basic >: < LOGGING_LEVEL >
2016-12-26T19:48:06.729 - DEBG - < LX200 Basic >: < LOG_OUTPUT >
2016-12-26T19:48:12.112 - DEBG - LX200 Basic : "Toggle Debug Level -- Scope Verbose "
2016-12-26T19:48:27.167 - DEBG - LX200 Basic : "CMD <#:GR#> "
2016-12-26T19:48:27.231 - DEBG - LX200 Basic : "RES <18:37:08> "
2016-12-26T19:48:27.233 - DEBG - LX200 Basic : "VAL [18.6189] "
2016-12-26T19:48:27.235 - DEBG - LX200 Basic : "LX200 Basic is online. Retrieving basic data... "
2016-12-26T19:48:27.258 - DEBG - < LX200 Basic >: < ON_COORD_SET >
2016-12-26T19:48:27.280 - DEBG - < LX200 Basic >: < EQUATORIAL_EOD_COORD >
2016-12-26T19:48:27.291 - DEBG - < LX200 Basic >: < TELESCOPE_ABORT_MOTION >
2016-12-26T19:48:27.304 - DEBG - < LX200 Basic >: < TELESCOPE_MOTION_NS >
2016-12-26T19:48:27.314 - DEBG - < LX200 Basic >: < TELESCOPE_MOTION_WE >
2016-12-26T19:48:27.316 - DEBG - < LX200 Basic >: < TELESCOPE_INFO >
2016-12-26T19:48:27.323 - DEBG - < LX200 Basic >: < TARGET_EOD_COORD >
2016-12-26T19:48:27.324 - DEBG - < LX200 Basic >: < USEJOYSTICK >
2016-12-26T19:48:27.325 - DEBG - < LX200 Basic >: < Slew Accuracy >
2016-12-26T19:48:27.329 - DEBG - LX200 Basic : "CMD <:GR#> "
2016-12-26T19:48:27.330 - DEBG - LX200 Basic : "RES <18:37:08> "
2016-12-26T19:48:27.331 - DEBG - LX200 Basic : "CMD <#:GR#> "
2016-12-26T19:48:27.430 - DEBG - LX200 Basic : "RES <18:37:08> "
2016-12-26T19:48:27.431 - DEBG - LX200 Basic : "VAL [18.6189] "
2016-12-26T19:48:27.433 - DEBG - LX200 Basic : "CMD <#:GD#> "
2016-12-26T19:48:27.531 - DEBG - LX200 Basic : "RES <+38?45:01> "
2016-12-26T19:48:27.532 - DEBG - LX200 Basic : "VAL [38.7503] "
2016-12-26T19:49:20.196 - DEBG - ISD:Telescope: Sending coords RA 18.6251 DEC 38.8024
2016-12-26T19:49:20.203 - DEBG - LX200 Basic : "<setObjectRA> "
2016-12-26T19:49:20.236 - DEBG - LX200 Basic : "CMD <:Sr 18:37:30#> "
2016-12-26T19:49:20.238 - DEBG - LX200 Basic : "CMD <:Sr 18:37:30#> successful. "
2016-12-26T19:49:20.240 - DEBG - LX200 Basic : "<setObjectDEC> "
2016-12-26T19:49:20.241 - DEBG - LX200 Basic : "CMD <:Sd +38:48:09#> "
2016-12-26T19:49:20.324 - DEBG - LX200 Basic : "CMD <:Sd +38:48:09#> successful. "
2016-12-26T19:49:20.325 - DEBG - LX200 Basic : "<Sync> "
2016-12-26T19:49:20.327 - DEBG - LX200 Basic : "CMD <:CM#> "
2016-12-26T19:49:30.359 - DEBG - ISD:Telescope: Sending coords RA 18.9929 DEC 32.7167
7 years 3 months ago #13316
Attachments:

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

Logs looks fine, what is exactly not working now?
The following user(s) said Thank You: Wolfgang Birkfellner
7 years 3 months ago #13317

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

  • Posts: 151
  • Thank you received: 27
hi!
kstars does not track - the positions reported by my software are not translated to a crosshair position on the screen ...
yours
wolfi
7 years 3 months ago #13318

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

Post the logs when you issue a SLEW command.
7 years 3 months ago #13320

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

  • Posts: 151
  • Thank you received: 27
hi!
here it is. the issue is that, upon establsihing connection, i get 3 #:GR# requests and one #:GD# - which i answer - and then position is no longer polled. SYNC and SLEW are reported to my software and are carried out by the steppers ...

yours
wolfi

2016-12-29T17:37:28.870 - DEBG - INDI: Starting local drivers...
2016-12-29T17:37:28.878 - DEBG - INDI: INDI Server started locally on port 7624
2016-12-29T17:37:28.879 - DEBG - INDIListener: Adding a new client manager to INDI listener..
2016-12-29T17:37:28.879 - DEBG - INDI: Connecting to local INDI server on port 7624 ...
2016-12-29T17:37:28.880 - DEBG - Connection to INDI server is successful
2016-12-29T17:37:28.883 - DEBG - Received new device LX200 Basic
2016-12-29T17:37:28.885 - DEBG - INDI Server: "2016-12-29T16:37:28: startup: /usr/bin/indiserver -v -p 7624 -m 100 -f /tmp/indififo95d2ec5c "
2016-12-29T17:37:28.885 - DEBG - INDI Server: "2016-12-29T16:37:28: listening to port 7624 on fd 3"
2016-12-29T17:37:28.885 - DEBG - INDI Server: "FIFO: start indi_lx200basic -n \"LX200 Basic\""
2016-12-29T17:37:28.885 - DEBG - INDI Server: "With name: LX200 Basic"
2016-12-29T17:37:28.885 - DEBG - INDI Server: "FIFO: Starting driver indi_lx200basic"
2016-12-29T17:37:28.885 - DEBG - INDI Server: "2016-12-29T16:37:28: Driver indi_lx200basic: pid=11678 rfd=4 wfd=7 efd=8"
2016-12-29T17:37:28.885 - DEBG - INDI Server: "2016-12-29T16:37:28: Client 5: new arrival from 127.0.0.1:56794 - welcome!"
2016-12-29T17:37:28.885 - DEBG - INDI Server: "2016-12-29T16:37:28: Driver indi_lx200basic: Initializing from LX200 Basic device..."
2016-12-29T17:37:28.885 - DEBG - INDI Server: "2016-12-29T16:37:28: Driver indi_lx200basic: snooping on GPS Simulator.GEOGRAPHIC_COORD"
2016-12-29T17:37:28.885 - DEBG - INDI Server: "2016-12-29T16:37:28: Driver indi_lx200basic: snooping on GPS Simulator.TIME_UTC"
2016-12-29T17:37:28.885 - DEBG - INDI Server: "2016-12-29T16:37:28: Driver indi_lx200basic: snooping on Dome Simulator.DOME_PARK"
2016-12-29T17:37:28.885 - DEBG - INDI Server: "2016-12-29T16:37:28: Driver indi_lx200basic: snooping on Dome Simulator.DOME_SHUTTER"
2016-12-29T17:37:28.885 - DEBG - INDI Server: ""
2016-12-29T17:37:28.906 - DEBG - INDIListener: Processing device LX200 Basic
2016-12-29T17:37:28.926 - DEBG - < LX200 Basic >: < CONNECTION >
2016-12-29T17:37:28.936 - DEBG - < LX200 Basic >: < DRIVER_INFO >
2016-12-29T17:37:28.965 - DEBG - < LX200 Basic >: < DEBUG >
2016-12-29T17:37:28.975 - DEBG - < LX200 Basic >: < SIMULATION >
2016-12-29T17:37:28.980 - DEBG - < LX200 Basic >: < CONFIG_PROCESS >
2016-12-29T17:37:28.981 - DEBG - < LX200 Basic >: < DEVICE_PORT >
2016-12-29T17:37:28.982 - DEBG - < LX200 Basic >: < TELESCOPE_BAUD_RATE >
2016-12-29T17:37:28.982 - DEBG - < LX200 Basic >: < ACTIVE_DEVICES >
2016-12-29T17:37:28.983 - DEBG - < LX200 Basic >: < DOME_POLICY >
2016-12-29T17:37:32.054 - DEBG - LX200 Basic : "Debug is enabled. "
2016-12-29T17:37:32.054 - DEBG - < LX200 Basic >: < DEBUG_LEVEL >
2016-12-29T17:37:32.060 - DEBG - < LX200 Basic >: < LOGGING_LEVEL >
2016-12-29T17:37:32.105 - DEBG - < LX200 Basic >: < LOG_OUTPUT >
2016-12-29T17:37:39.186 - DEBG - LX200 Basic : "CMD <#:GR#> "
2016-12-29T17:37:39.257 - DEBG - LX200 Basic : "RES <00:02:11> "
2016-12-29T17:37:39.259 - DEBG - LX200 Basic : "VAL [0.0363889] "
2016-12-29T17:37:39.261 - DEBG - LX200 Basic : "LX200 Basic is online. Retrieving basic data... "
2016-12-29T17:37:39.287 - DEBG - < LX200 Basic >: < ON_COORD_SET >
2016-12-29T17:37:39.311 - DEBG - < LX200 Basic >: < EQUATORIAL_EOD_COORD >
2016-12-29T17:37:39.326 - DEBG - < LX200 Basic >: < TELESCOPE_ABORT_MOTION >
2016-12-29T17:37:39.339 - DEBG - < LX200 Basic >: < TELESCOPE_MOTION_NS >
2016-12-29T17:37:39.346 - DEBG - < LX200 Basic >: < TELESCOPE_MOTION_WE >
2016-12-29T17:37:39.355 - DEBG - < LX200 Basic >: < TELESCOPE_INFO >
2016-12-29T17:37:39.362 - DEBG - < LX200 Basic >: < TARGET_EOD_COORD >
2016-12-29T17:37:39.364 - DEBG - < LX200 Basic >: < USEJOYSTICK >
2016-12-29T17:37:39.365 - DEBG - < LX200 Basic >: < Slew Accuracy >
2016-12-29T17:37:39.368 - DEBG - LX200 Basic : "CMD <:GR#> "
2016-12-29T17:37:39.369 - DEBG - LX200 Basic : "RES <00:02:11> "
2016-12-29T17:37:39.370 - DEBG - LX200 Basic : "CMD <#:GR#> "
2016-12-29T17:37:39.457 - DEBG - LX200 Basic : "RES <00:02:11> "
2016-12-29T17:37:39.458 - DEBG - LX200 Basic : "VAL [0.0363889] "
2016-12-29T17:37:39.459 - DEBG - LX200 Basic : "CMD <#:GD#> "
2016-12-29T17:37:39.558 - DEBG - LX200 Basic : "RES <+00*00:00> "
2016-12-29T17:37:39.560 - DEBG - LX200 Basic : "VAL [0] "
2016-12-29T17:38:16.550 - DEBG - ISD:Telescope: Sending coords RA 19.86 DEC 8.91583
2016-12-29T17:38:16.559 - DEBG - LX200 Basic : "<setObjectRA> "
2016-12-29T17:38:16.589 - DEBG - LX200 Basic : "CMD <:Sr 19:51:36#> "
2016-12-29T17:38:16.648 - DEBG - LX200 Basic : "CMD <:Sr 19:51:36#> successful. "
2016-12-29T17:38:16.650 - DEBG - LX200 Basic : "<setObjectDEC> "
2016-12-29T17:38:16.652 - DEBG - LX200 Basic : "CMD <:Sd +08:54:57#> "
2016-12-29T17:38:16.749 - DEBG - LX200 Basic : "CMD <:Sd +08:54:57#> successful. "
2016-12-29T17:38:16.751 - DEBG - LX200 Basic : "<Slew> "
2016-12-29T17:38:16.752 - DEBG - LX200 Basic : "CMD <:MS#> "
2016-12-29T17:38:16.849 - DEBG - LX200 Basic : "RES <1> "
2016-12-29T17:38:16.851 - DEBG - LX200 Basic : "Error Slewing to JNow RA 19:51:36 - DEC 8:54:57 "
2016-12-29T17:38:16.858 - DEBG - LX200 Basic : "Object below horizon. "
2016-12-29T17:38:48.396 - DEBG - ISD:Telescope: Sending coords RA 19.86 DEC 8.91583
2016-12-29T17:38:48.405 - DEBG - LX200 Basic : "<setObjectRA> "
2016-12-29T17:38:48.437 - DEBG - LX200 Basic : "CMD <:Sr 19:51:36#> "
2016-12-29T17:38:48.448 - DEBG - LX200 Basic : "CMD <:Sr 19:51:36#> successful. "
2016-12-29T17:38:48.450 - DEBG - LX200 Basic : "<setObjectDEC> "
2016-12-29T17:38:48.451 - DEBG - LX200 Basic : "CMD <:Sd +08:54:57#> "
2016-12-29T17:38:48.548 - DEBG - LX200 Basic : "CMD <:Sd +08:54:57#> successful. "
2016-12-29T17:38:48.550 - DEBG - LX200 Basic : "<Sync> "
2016-12-29T17:38:48.552 - DEBG - LX200 Basic : "CMD <:CM#> "
2016-12-29T17:39:11.123 - DEBG - ISD:Telescope: Sending coords RA 19.8023 DEC 18.58
7 years 3 months ago #13372

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

  • Posts: 151
  • Thank you received: 27
hi!
one thing just came to my mind ... when i look at
2016-12-29T17:37:39.370 - DEBG - LX200 Basic : "CMD <#:GR#> "
2016-12-29T17:37:39.457 - DEBG - LX200 Basic : "RES <00:02:11> "
2016-12-29T17:37:39.458 - DEBG - LX200 Basic : "VAL [0.0363889] "
2016-12-29T17:37:39.459 - DEBG - LX200 Basic : "CMD <#:GD#> "
2016-12-29T17:37:39.558 - DEBG - LX200 Basic : "RES <+00*00:00> "
2016-12-29T17:37:39.560 - DEBG - LX200 Basic : "VAL [0] "

it seems to me that commands are issued at a pace of 90 ms. assuming a baud rate of 9600, this is 860 bits at best. the response to #:GR# is already 88 bits - is there a possibility to tame the pace of requests over the RS232 line?
yours
wolfi
PS: could that be a related problem? www.indilib.org/forum/general/1780-mount...s-stopped.html#13400
Last edit: 7 years 3 months ago by Wolfgang Birkfellner.
7 years 3 months ago #13399

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

This is never an issue when used with previous Meade based mounts. Here is the main issue as I see it:
2016-12-29T17:38:16.752 - DEBG - LX200 Basic : "CMD <:MS#> "
2016-12-29T17:38:16.849 - DEBG - LX200 Basic : "RES <1> "

Why are you returning 1 here for Slew?
The following user(s) said Thank You: Wolfgang Birkfellner
7 years 3 months ago #13450

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

Time to create page: 0.894 seconds