Instrument Neutral Distributed Interface INDI 2.2.5
alpaca Directory Reference

Directories

 
bridges

Files

 
alpaca_client.cpp
 
alpaca_client.h
 
alpaca_discovery.cpp
 
alpaca_discovery.h
 
device_manager.cpp
 
device_manager.h
 
indi_alpaca_server.cpp
 
indi_alpaca_server.h

Detailed Description

INDI Alpaca Server

The INDI Alpaca Server is a bridge that allows ASCOM Alpaca clients to connect to INDI devices. It provides an Alpaca REST API server that translates Alpaca requests to INDI commands and vice versa.

Features

Installation

Dependencies

Building

mkdir build
cd build
cmake ..
make
sudo make install

Usage

Start the INDI server with your devices:

indiserver indi_simulator_telescope

Then start the Alpaca server:

indi_alpaca_server

The Alpaca server will start automatically when the driver is connected, after a configurable startup delay (default: 3 seconds). This delay allows time for the INDI server to start. Each INDI device will be made available through Alpaca as soon as it is fully initialized and its driver interface is defined. By default, the server listens on port 11111, and the discovery service listens on port 32227. You can configure these settings in the INDI control panel under the Options tab.

Supported Devices

Currently, the following INDI device types are supported:

Support for the following device types is planned:

Alpaca API

The server implements the ASCOM Alpaca API as defined at https://ascom-standards.org/api/

Alpaca Discovery Protocol

The server implements the ASCOM Alpaca Discovery Protocol as defined at https://github.com/DanielVanNoord/AlpacaDiscoveryTests. This allows Alpaca clients to discover the server on the local network without knowing its IP address or port.

The discovery protocol works as follows:

  1. Clients broadcast a UDP message containing "alpacadiscovery" to port 32227
  2. The server responds with a JSON message containing the Alpaca API port: {"AlpacaPort": 11111}
  3. Clients can then connect to the server using the IP address from the response and the provided port

The discovery protocol supports both IPv4 broadcast and IPv6 multicast for maximum compatibility.

Management API

Device API

License

This project is licensed under the GNU General Public License v2.0.