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.
$ 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]
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.
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.