×

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

Bi-monthly release with minor bug fixes and improvements

syntax for specifying driver serial port (not USB)

  • Posts: 2
  • Thank you received: 0
I interfaced a Raspberry Pi GPIO serial port with an Autostar/ETX using a custom made cable with the necessary voltage level shifting (3.3V TTL <-> RS-232), and can communicate with the telescope using a Python script that opens the port at /dev/ttyAMA0. I would like to run the INDI server and driver on the RPi, but I have not been able to figure out how to specify the serial port address on the command line; I assume that I would enter something like:
indiserver indi_lx200autostar -P /dev/ttyAMA0 &
but I haven't found any documentation about this; I just make up the "-P" part.

Could this alternatively be accomplished using a configuration file? Again, I haven't found any documentation on this subject either.

Any suggestions would be appreciated.
Thank you.
7 years 7 months ago #10044

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

  • Posts: 173
  • Thank you received: 19
Does this help?
$ indiserver [options] driver [driver ...]
Options:
 -l d     : log driver messages to <d>/YYYY-MM-DD.islog
 -m m     : kill client if gets more than this many MB behind, default 10
 -p p     : alternate IP port, default 7624
 -f path  : Path to fifo for dynamic startup and shutdown of drivers.
 -r r     : maximum driver restarts on error, default 10.
 -v       : show key events, no traffic
 -vv      : -v + key message content
 -vvv     : -vv + complete xml
driver    : executable or device@host[:port]

More here

--Jon
7 years 7 months ago #10045

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

You can't use indiserver to change the driver properties. If you want to do that on the command line, you need to either use indi_setprop or INDI Pyhon client to send that command. e.g.
indi_setprop "LX200 Autostar".DEVICE_PORT.PORT=/dev/ttyAMA0
7 years 7 months ago #10047

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

  • Posts: 2
  • Thank you received: 0
Thanks for the suggestions. I found that this worked:
indi_setprop -v -x indi_lx200autostar.DEVICE_PORT.PORT=/dev/ttyAMA0
but as I learn more about how INDI works, I now realize that I can accomplish the same thing from inside a client app such as xephem.

Clear Skies!
7 years 7 months ago #10057

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

Time to create page: 0.333 seconds