moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / doc / kstars / indi.docbook
blobad988091de5b12ac551c038449a24d2ea39b8750
1 <chapter id="indi">
2 <title>Astronomical Device Control with <acronym>INDI</acronym></title>
3 <indexterm><primary>INDI Control</primary>
4 <secondary>Overview</secondary>
5 </indexterm>
7 <para>KStars provides an interface to configure and control astronomical instruments via
8 the <acronym><link linkend="what-is-indi">INDI</link></acronym> protocol.</para>
10 <para>The <acronym>INDI</acronym> protocol supports a variety of astronomical instruments
11 such as CCD cameras and focusers. Currently, KStars supports the following
12 devices:</para>
14 <table id="device-table" pgwide="1" frame="all">
15 <title>Supported Telescopes</title>
16 <tgroup cols="3" colsep="1" rowsep="1">
17 <thead>
18 <row>
19 <entry>Telescope</entry>
20 <entry>Device driver</entry>
21 <entry>Version</entry>
22 </row>
23 </thead>
24 <tbody>
25 <row>
26 <entry>LX200 8"-12" Classic</entry>
27 <entry>LX200 Classic</entry>
28 <entry>1.0</entry>
29 </row>
30 <row>
31 <entry>Autostar based telescopes</entry>
32 <entry>LX200 Autostar</entry>
33 <entry>1.0</entry>
34 </row>
35 <row>
36 <entry>LX200 GPS 8"-16"</entry>
37 <entry>LX200 GPS</entry>
38 <entry>1.0</entry>
39 </row>
40 <row>
41 <entry>LX200 Classic 16"</entry>
42 <entry>LX00 16"</entry>
43 <entry>1.0</entry>
44 </row>
45 <row>
46 <entry>NexStar GPS, CGE, AS-GT</entry>
47 <entry>Celestron GPS</entry>
48 <entry>0.9</entry>
49 </row>
50 <row>
51 <entry>New GT, NexStar 5i/8i</entry>
52 <entry>Celestron GPS</entry>
53 <entry>0.9</entry>
54 </row>
55 <row>
56 <entry>Takahashi Temma</entry>
57 <entry>temma</entry>
58 <entry>0.1</entry>
59 </row>
60 <row>
61 <entry>Astro-Physics AP</entry>
62 <entry>apmount</entry>
63 <entry>0.1</entry>
64 </row>
65 <row>
66 <entry>Astro-Electronic FS-2</entry>
67 <entry>LX200 Generic</entry>
68 <entry>0.1</entry>
69 </row>
70 <row>
71 <entry>Losmandy Gemini</entry>
72 <entry>LX200 Generic</entry>
73 <entry>0.1</entry>
74 </row>
75 <row>
76 <entry>Mel Bartels Controllers</entry>
77 <entry>LX200 Generic</entry>
78 <entry>0.1</entry>
79 </row>
80 </tbody>
81 </tgroup>
82 </table>
83 <para></para>
84 <table id="focuser-table" pgwide="1" frame="all">
85 <title>Supported Focusers</title>
86 <tgroup cols="3" colsep="1" rowsep="1">
87 <thead>
88 <row>
89 <entry>Focuser</entry>
90 <entry>Device driver</entry>
91 <entry>Version</entry>
92 </row>
93 </thead>
94 <tbody>
95 <row>
96 <entry>Meade LX200GPS Microfocuser</entry>
97 <entry>LX200 GPS</entry>
98 <entry>0.9</entry>
99 </row>
100 <row>
101 <entry>Meade 1206 Primary Mirror Focuser</entry>
102 <entry>LX200 Generic</entry>
103 <entry>0.9</entry>
104 </row>
105 <row>
106 <entry>JMI NGF Series</entry>
107 <entry>LX200 Generic</entry>
108 <entry>0.1</entry>
109 </row>
110 <row>
111 <entry>JMI MOTOFOCUS</entry>
112 <entry>LX200 Generic</entry>
113 <entry>0.1</entry>
114 </row>
115 </tbody>
116 </tgroup>
117 </table>
119 <para></para>
120 <table id="ccd-table" pgwide="1" frame="all">
121 <title>Supported CCDs</title>
122 <tgroup cols="3" colsep="1" rowsep="1">
123 <thead>
124 <row>
125 <entry>CCD</entry>
126 <entry>Device driver</entry>
127 <entry>Version</entry>
128 </row>
129 </thead>
130 <tbody>
131 <row>
132 <entry>Finger Lakes Instruments CCDs</entry>
133 <entry>fliccd</entry>
134 <entry>1.0</entry>
135 </row>
136 <row>
137 <entry>Santa Barbara Instrument CCDs</entry>
138 <entry>sbigccd</entry>
139 <entry>0.1</entry>
140 </row>
141 <row>
142 <entry>Apogee CCDs</entry>
143 <entry>apogee_ppi, apogee_pci, apogee_isa, apogee_usb</entry>
144 <entry>0.1</entry>
145 </row>
146 </tbody>
147 </tgroup>
148 </table>
150 <table id="filter-table" pgwide="1" frame="all">
151   <title>Supported Filter Wheels</title>
152   <tgroup cols="3" colsep="1" rowsep="1">
153     <thead>
154       <row>
155         <entry>Filter Wheel</entry>
156         <entry>Device driver</entry>
157         <entry>Version</entry>
158       </row>
159     </thead>
160     <tbody>
161       <row>
162         <entry>FLI Filter Wheels</entry>
163         <entry>fliwheel</entry>
164         <entry>0.9</entry>
165       </row>
166     </tbody>
167   </tgroup>
168   </table>
169   
170 <para></para>
171 <table id="video-table" pgwide="1" frame="all">
172 <title>Supported Webcams</title>
173 <tgroup cols="3" colsep="1" rowsep="1">
174 <thead>
175 <row>
176 <entry>Webcam</entry>
177 <entry>Device driver</entry>
178 <entry>Version</entry>
179 </row>
180 </thead>
181 <tbody>
182 <row>
183 <entry>Any Video4Linux compatible device</entry>
184 <entry>v4ldriver</entry>
185 <entry>1.0</entry>
186 </row>
187 <row>
188 <entry>Philips webcam</entry>
189 <entry>v4lphilips</entry>
190 <entry>1.0</entry>
191 </row>
192 </tbody>
193 </tgroup>
194 </table>
196 <sect1 id="indi-kstars-setup">
197 <title>INDI Setup</title>
198 <indexterm><primary>INDI</primary>
199 <secondary>Setup</secondary>
200 </indexterm>
201 <para>
202 KStars can control local and remote devices seamlessly via the <link linkend="what-is-indi">INDI</link> server/client architecture. INDI devices may be run in three different modes:</para>
204 <orderedlist>
205 <listitem><para>Local: The local mode is the most common and is used to control local device (&ie; a device attached to your machine).</para></listitem>
206 <listitem><para>Server: The server mode establishes an INDI server for a particular device and waits for connections from remote clients. You cannot operate server devices, you can only start and shut them down.</para></listitem>
207 <listitem><para>Client: The client mode is used to connect to remote INDI servers running INDI devices. You can control remote devices seamlessly like local devices.</para></listitem>
208 </orderedlist>
210 <para>You can run local device, establish INDI servers, and connect to remote clients from the <guimenuitem>Device Manager</guimenuitem> in the <guimenu>Devices</guimenu> menu.</para>
212 <para>Here is a screenshot of the <guilabel>Device Manager</guilabel>
213 window:</para>
215 <screenshot>
216 <screeninfo>Running device drivers</screeninfo>
217 <mediaobject>
218 <imageobject>
219 <imagedata fileref="devicemanager.png" format="PNG"/>
220 </imageobject>
221 <textobject>
222 <phrase>Start device drivers</phrase>
223 </textobject>
224 </mediaobject>
225 </screenshot>
227 <para>You can run devices by browsing the device tree, selecting a specific device, and then clicking on the <guibutton>Run Service button</guibutton>. You can select the operation mode, either local or server as defined above.</para>
229 <para>To control remove devices, refer to the <link linkend="indi-remote-control">remote device control</link> section.</para>
230 </sect1>
232 <sect1 id="indi-telescope-setup">
233 <title>Telescope Setup</title>
234 <indexterm><primary>INDI</primary>
235 <secondary>Setup</secondary>
236 </indexterm>
238 <para>Most telescopes are equipped with <hardware>RS232</hardware> interface
239 for remote control. Connect the RS232 jack in your telescope to your
240 computer's <hardware>Serial/USB</hardware> port. Traditionally, the RS232
241 connects to the serial port of your computer, but since many new laptops
242 abandoned the serial port in favor of <hardware>USB/FireWire</hardware>
243 ports, you might need to obtain a Serial to USB adaptor to use with new
244 laptops.</para>
246 <para>After connecting your telescope to the Serial/USB port, turn your
247 telescope on. It is <emphasis>highly</emphasis> recommended that you
248 download and install the latest firmware for your telescope
249 controller.</para>
251 <para>The telescope needs to be aligned before it can be used properly.
252 Align your telescope (one or two stars alignment) as illustrated in your
253 telescope manual.</para>
255 <para>&kstars; needs to verify time and location settings before connecting to the telescope. This insures proper tracking and synchronization between the telescope and &kstars;. The following steps will enable you to connect to a device that is connected to your computer. To connect and control remote devices, please refer to <link linkend="indi-remote-control">remote device control</link> section.</para>
257 <para>You can use the Telescope Setup Wizard and it will verify all the required information in the process. It can automatically scan ports for attached telescopes. You can run the wizard by selecting <guimenuitem>Telescope Setup Wizard</guimenuitem> from the <guimenu>Devices</guimenu> menu.</para>
259 <para>Alternatively, you can connect to a local telescope by performing the following
260 steps:</para>
262 <orderedlist>
263 <listitem><para>Set your geographical location. Open the <guilabel>Set
264 Geographic Location</guilabel> window by selecting
265 <guimenuitem>Set Geographic Location...</guimenuitem> from the
266 <guimenu>Settings</guimenu> menu, or by pressing the <guiicon>Globe</guiicon> icon in the toolbar, or by pressing <keycombo
267 action="simul">&Ctrl;<keycap>g</keycap></keycombo>.</para>
268 </listitem>
269 <listitem><para>Set your local time and date. You can change to any time or
270 date by selecting <guimenuitem>Set Time...</guimenuitem> from the <guimenu>Time</guimenu> menu, or by
271 pressing the <guiicon>time</guiicon> icon in the toolbar. The <guilabel>Set Time</guilabel> window uses a standard &kde; Date Picker widget, coupled with three spinboxes for setting the hours, minutes and seconds. If you ever need to reset the clock back to the current time, just select <guimenuitem>Set Time to Now</guimenuitem> from the <guimenu>Time</guimenu> menu.</para>
272 </listitem>
273 <listitem>
274 <para>Click on the <guimenu>Devices</guimenu> menu and select the
275 <guimenuitem>Device Manager</guimenuitem>.</para>
276 </listitem>
277 <listitem>
278 <para>Under the <guilabel>Device</guilabel> column, select your telescope model.</para>
279 </listitem>
280 <listitem>
281 <para> <mousebutton>Right</mousebutton>-click on the device and select
282 <guilabel>Run Service</guilabel>.</para>
283 </listitem>
284 <listitem>
285 <para>Click <guibutton>Ok</guibutton> to close the Device Manager
286 Dialog.</para>
287 </listitem>
288 </orderedlist>
290 <note id="geo-time-note">
291 <title>Frequent Settings</title>
292 <para>You do not need to set the geographic location and time every time you connect to a telescope. Only adjust the settings as needed.</para></note>
294 <para>You are now ready to use the device features, &kstars; conveniently provides two interchangeable GUI interfaces for controlling telescopes:</para>
296 <orderedlist>
297 <title>Controlling your telescope</title>
298 <listitem>
299 <para>
300 <guilabel>Sky map Control</guilabel>: For each device you run in the <guilabel>Device Manager</guilabel>, a corresponding entry will show up in popup menu that allows you to control the properties of the device. You can
301 issue commands like <command>Slew, Sync,</command> and
302 <command>Track</command> directly from the sky map.
303 </para>
304 <para>Here is a screenshot of the popup menu with an active LX200 Classic
305 device:</para>
306 <screenshot>
307 <screeninfo>Controlling devices from sky map</screeninfo>
308 <mediaobject>
309 <imageobject>
310 <imagedata fileref="skymapdevice.png" format="PNG"/>
311 </imageobject>
312 </mediaobject>
313 </screenshot>
314 </listitem>
316 <listitem>
317 <para>
318 <guilabel>INDI Control Panel</guilabel>: The panel offers the user with all the
319 features supported by a device.
320 </para>
322 <para>The panel is divided into three main sections:</para>
323 <itemizedlist>
324 <listitem>
325 <para>
326 <guilabel>Device tabs</guilabel>: Each additional active device occupies a
327 tab in the INDI panel. Multiple devices can run simultaneously without
328 affecting the operation of other devices.
329 </para>
330 </listitem>
331 <listitem>
332 <para>
333 <guilabel>Property view</guilabel>: Properties are the key element in INDI
334 architecture. Each device defines a set of properties to communicate with
335 the client. The current position of the telescope is an example of a
336 property. Semantically similar properties are usually contained in logical
337 blocks or groupings.
338 </para>
339 </listitem>
340 <listitem>
341 <para>
342 <guilabel>Log viewers</guilabel>: Devices report their status and acknowledge commands by sending INDI messages. Each device has its own log view, and all devices share one generic log viewer. A device usually sends messages to its device driver only, but a device is permitted to send a generic message when appropriate.
343 </para>
344 </listitem>
345 </itemizedlist>
346 <screenshot>
347 <screeninfo>INDI Control Panel</screeninfo>
348 <mediaobject>
349 <imageobject>
350 <imagedata fileref="indicontrolpanel.png" format="PNG"/>
351 </imageobject>
352 </mediaobject>
353 </screenshot>
354 </listitem>
355 </orderedlist>
357 <para>You are not restricted on using one interface over another as they can be both used simultaneously. Actions from the <guilabel>Sky map</guilabel> are automatically reflected in the <guilabel>INDI Control Panel</guilabel>
358 and vice versa.</para>
360 <para>To connect to your telescope, you can either select <guimenuitem>Connect</guimenuitem> from your device popup menu or
361 alternatively, you can press <guibutton>Connect</guibutton> under your device tab in the <guilabel>INDI Control Panel</guilabel>.</para>
363 <important><para>By default, KStars will try to connect to the <constant>/dev/ttyS0</constant>
364 port. To change the connection port, select <guilabel>INDI Control Panel</guilabel> from the <guimenu>Devices</guimenu> menu and change the port under your device tab.</para></important>
366 <para>&kstars; automatically updates the telescope's longitude, latitude, and
367 time based on current settings in &kstars;. You can enable/disable these
368 updates from <guimenuitem>Configure INDI</guimenuitem> dialog under the
369 <guimenu>Devices</guimenu> menu.
370 </para>
372 <para>If &kstars; communicates successfully with the telescope, it will retrieve the current <abbrev>RA</abbrev> and <abbrev>DEC</abbrev> from the telescope and will display a crosshair on the sky map indicating the telescope position.</para>
374 <note id="indi-sync">
375 <title>Synchronizing your telescope</title>
376 <para>If you aligned your telescope and the last alignment star was, for example, Vega, then the crosshair should be centered around Vega. If the crosshair was off target, then you can <mousebutton>right</mousebutton>-click Vega from the sky map and select
377 <command>Sync</command> from your telescope menu. This action will instruct the telescope to synchronize its internal coordinates to match those of Vega, and the telescope's crosshair should now be centered around Vega.
378 </para>
379 </note>
381 <para>That is it: your telescope is ready to explore the heavens.</para>
383 <warning>
384 <title>WARNING</title>
385 <para>Never use the telescope to look at the sun. Looking at the sun might cause irreversible damage to your eyes and as well as your equipment.</para>
386 </warning>
387 </sect1>
389 <sect1 id="indi-other-setup">
390 <title>CCD and Video-Capture Setup</title>
391 <indexterm><primary>CCD Video Control</primary>
392 <secondary>Setup</secondary>
393 </indexterm>
395 <para>KStars supports the following imaging devices:</para>
396 <itemizedlist>
397   <listitem><para>Finger Lakes instruments CCDs</para></listitem>
398   <listitem><para>Apogee CCDs: Parallel, ISA, PCI, and USB modes are supported. You need to install <ulink url="http://indi.sf.net/apogee_kernel.tar.gz">Apogee kernel drivers</ulink> for your specific mode (for USB mode, you only need libusb).</para></listitem>
399   <listitem><para><ulink url="http://www.exploits.org/v4l/">Video4Linux</ulink> compatible devices. Philips webcam extended features are supported as well.</para></listitem>
400 </itemizedlist>
402 <para>You can run CCD and Video Capture devices from the <guimenuitem>Device Manager</guimenuitem> in the <guimenu>Devices</guimenu> menu. Like all INDI devices, some of the device controls will be accessible from the skymap. The device can be controlled fully from the <guimenuitem>INDI Control Panel.</guimenuitem></para>
404 <para>The standard format for image capture is FITS. Once an image is captured and downloaded, it will be automatically displayed in the KStars <link linkend="tool-fitsviewer">FITS Viewer</link>. To capture a sequence of images, use the <guimenuitem>Capture Image Sequence</guimenuitem> tool from the <guimenu>Devices</guimenu> menu. This tool is inactive until you establish a connection to an image device.</para>
406 <important>
407 <para>The FLICCD driver requires root privileges in order to operate properly. Note that running the driver as root is considered a security risk</para>
408 </important>
409 </sect1>
411 <sect1 id="indi-capture">
412 <title>Capture Image Sequence</title>
413 <indexterm><primary>Capture</primary>
414 <secondary>Image</secondary>
415 </indexterm>
417 <para>The Capture Image Sequence tool can be used to aquire images from cameras and CCDs in interactive and batch modes. Furthermore, you can select which filter, if any, you want to use for your images. The capture tool remains disabled until you establish a connection to an imaging device.</para> 
419 <screenshot>
420 <screeninfo>Capture Image Sequence</screeninfo>
421 <mediaobject>
422 <imageobject>
423 <imagedata fileref="indicapture.png" format="PNG"/>
424 </imageobject>
425 </mediaobject>
426 </screenshot>
428 <para>The above screenshot depicts a sample capture session. The tool provides the following options:</para>
429 <itemizedlist>
430   <listitem><para>Camera/CCD</para>
431      <itemizedlist>
432          <listitem><para><option>Device:</option> The desired imaging device.</para></listitem>
433          <listitem><para><option>Prefix:</option> The image prefix which will be prepended to each captured filename.</para></listitem>
434          <listitem><para><option>Exposure:</option> The number of seconds to expose each frame.</para></listitem>
435          <listitem><para><option>Count:</option> The number of images to aquire.</para></listitem>
436          <listitem><para><option>Delay:</option> The delay in seconds between consecutive images.</para></listitem>
437          <listitem><para><option>ISO 8601 time stamp:</option> Append ISO 8601 time stamp to the filename. (e.g. image_01_20050427T09:48:05).</para></listitem>
438      </itemizedlist>
439     </listitem>
440    <listitem><para>Filter</para>
441       <itemizedlist>
442           <listitem><para><option>Device:</option> The desired filter device.</para></listitem>
443           <listitem><para><option>Filter:</option> The desired filter slot. You can assign color values to slot numbers using the <link linkend="indi-configure">Configure INDI</link> window (e.g. Slot #1 = Red, Slot #2 = Blue..etc).</para></listitem>          
444        </itemizedlist>
445    </listitem>
446 </itemizedlist>
448 <para>After you fill in the desired options, you can begin the capture procedure by pressing the <guibutton>Start</guibutton> button. You may cancel at any time using the <guibutton>Stop</guibutton> button. All captured images will be saved to the default FITS directory which can be specified in the <link linkend="indi-configure">Configure INDI</link> window.</para>
450 <para>If you have more complex capturing requirements and conditions to fulfil, it is recommended to create a script to meet your specific needs using the <link linkend="tool-scriptbuilder">Script Builder</link> tool in the <guimenu>Tools</guimenu> menu.</para>
451 </sect1>
453 <sect1 id="indi-configure">
454 <title>Configure INDI</title>
455 <indexterm><primary>Configure</primary>
456 <secondary>INDI</secondary>
457 </indexterm>
459 <para>The Configure INDI window allows you to modify <emphasis>Client side</emphasis> INDI specific options. The window is divided into four main categories: General, Automatic device updates, Display, and Filter Wheel:</para>
461  <itemizedlist>
462    <listitem><para>General</para>
463       <itemizedlist>
464          <listitem><para><option>Default FITS directory:</option> Specify the directory where all captured FITS images will be saved to. If no directory is specified, images will be stored in $HOME.</para></listitem>
465          <listitem><para><option>Automatic Display of FITS upon capture:</option> When checked, KStars will display captured FITS in KStars <link linkend="tool-fitsviewer">FITS Viewer</link> tool. If you use the <link linkend="indi-capture">Capture Image Sequence</link> tool, all captured images will be saved to disk regardless of this option.</para></listitem>
466          <listitem><para><option>Telescope port:</option> The default telescope port. When you connect to a local or remote telescope service, KStars will automatically fill the telescope's device port with the specified default port.</para></listitem>
467          <listitem><para><option>Video port:</option> The default video port. When you connect to a local or remote video service, KStars will automatically fill the webcam's device port with the specified default port.</para></listitem>
468       </itemizedlist>
469    </listitem>
470    <listitem><para>Automatic device updates</para>
471     <itemizedlist>
472        <listitem><para><option>Time:</option> Update the telescope's date and time, if supported, upon connection.</para></listitem>
473        <listitem><para><option>Geographic location:</option> Update the telescope's geographical location information (current longitude and latitude), if supported, upon connection.</para></listitem>
474     </itemizedlist>
475    </listitem>
476    <listitem><para>Display</para>
477     <itemizedlist>
478      <listitem><para><option>Device target crosshair:</option> When checked, KStars displays the telescope's target crosshair on the sky map. The crosshair is displayed upon a successful connection to the telescope and its location is updated periodically. The telescope's name is displayed next to the crosshair. KStars displays one crosshair per each connected telescope. To change the color of the telescope's crosshair, open the <link linkend="viewops">Configure KStars</link> window. Select the <guilabel>Colors</guilabel> tab, and then change the color of the <emphasis>Target Indicator</emphasis> item to the desired color.</para></listitem>
479      <listitem><para><option>INDI messages in status bar:</option> When checked, KStars displays INDI status messages in the KStars status bar.</para></listitem>
480     </itemizedlist>
481    </listitem>
482   <listitem><para>Filter Wheel: Assign color codes to the filter wheel slots (e.g. Slot #0 Red, Slot #1 Blue..etc). You can assign color codes for up to 10 filter slots (0 to 9). To assign a color code, select a slot number from the drop down combo box, and then type the corresponding color code in the edit field. Repeat the process for all desired slots and then press OK.</para>
483   </listitem>
484   </itemizedlist>
486 </sect1>
488 <sect1 id="indi-concepts">
489 <title>INDI Concepts</title>
490 <indexterm><primary>Telescope Control</primary>
491 <secondary>Concepts</secondary>
492 </indexterm>
494 <para>
495 The main key concept in INDI is that devices have the ability to describe themselves. This is accomplished by using XML to describe a generic hierarchy that can represent both canonical and non-canonical devices. In INDI, all <emphasis>devices</emphasis> may contain one or more <emphasis>properties</emphasis>. Any <emphasis>property</emphasis> may contain one or more <emphasis>elements</emphasis>. There are four types of INDI properties:</para>
496 <itemizedlist>
497 <listitem><para>Text property.</para></listitem>
498 <listitem><para>Number property.</para></listitem>
499 <listitem><para>Switch property (Represented in GUI by buttons and checkboxes).</para></listitem>
500 <listitem><para>Light property (Represented in GUI by colored LEDs).</para></listitem>
501 </itemizedlist>
503 <para>For example, all INDI devices share the CONNECTION standard switch <emphasis>property</emphasis>. The CONNECTION property has two elements: CONNECT and DISCONNECT switches. KStars parses the generic XML description of properties and builds a GUI representation suitable for direct human interaction.</para>
505 <para>The INDI control panel offers many device properties not accessible from the sky map. The properties offered differ from one device to another. Nevertheless, all properties share common features that constrains how they are displayed and used:</para>
507 <itemizedlist>
508 <listitem>
509 <para>
510 Permission: All properties can either be read-only, write-only, or read and
511 write enabled. An example of a read-write property is the telescope's Right
512 Ascension. You can enter a new Right Ascension and the telescope, based on
513 current settings, will either slew or sync to the new input. Furthermore,
514 when the telescope slews, its Right Ascension gets updated and sent back to
515 the client.</para><para></para>
516 </listitem>
517 <listitem>
518 <para>State: Prefixed to each property is a state indicator (round LED).
519 Each property has a state and an associated color code:</para>
520 <table frame="top"><title>INDI State color code</title>
521 <tgroup cols="3" colsep="1" rowsep="1">
522 <thead>
523 <row>
524 <entry>State</entry>
525 <entry>Color</entry>
526 <entry>Description</entry>
527 </row>
528 </thead>
529 <tbody>
530 <row>
531 <entry>Idle</entry>
532 <entry>Gray</entry>
533 <entry>Device is performing no action with respect to this property</entry>
534 </row>
535 <row>
536 <entry>Ok</entry>
537 <entry>Green</entry>
538 <entry>Last operation performed on this property was successful and
539 active</entry>
540 </row>
541 <row>
542 <entry>Busy</entry>
543 <entry>Yellow</entry>
544 <entry>The property is performing an action</entry>
545 </row>
546 <row>
547 <entry>Alert</entry>
548 <entry>Red</entry>
549 <entry>The property is in critical condition and needs immediate
550 attention</entry>
551         </row>
552         </tbody>
553 </tgroup>
554 </table>
555 <para></para>
556 <para>The device driver updates the property state in real-time when
557 necessary. For example, if the telescope is in the process of slewing to a
558 target, then the RA/DEC properties will be signaled as
559 <guilabel>Busy</guilabel>. When the slew process is completed successfully,
560 the properties will be signaled as
561 <guilabel>Ok</guilabel>.</para><para></para>
562 </listitem>
563 <listitem>
564 <para>
565 Context: Numerical properties can accept and process numbers in two formats:
566 decimal and sexagesimal. The sexagesimal format is convenient when expressing
567 time or equatorial/geographical coordinates. You can use any format at your
568 convenience. For example, all the following numbers are equal:</para>
569 <itemizedlist>
570 <listitem><para>-156.40</para></listitem>
571 <listitem><para>-156:24:00</para></listitem>
572 <listitem><para>-156:24</para><para></para></listitem>
573 </itemizedlist>
574 </listitem>
575 <listitem>
576 <para>
577 Time: The standard time for all INDI-related communications is Universal Time UTC specified as YYYY-MM-DDTHH:MM:SS in accord with ISO 8601. &kstars; communicates the correct UTC time with device drivers automatically. You can enable/disable automatic time updates from the <guimenuitem>Configure INDI</guimenuitem> dialog under the <guimenu>Devices</guimenu> menu.
578 </para>
579 </listitem>
580 </itemizedlist>
581 </sect1>
583 <sect1 id="indi-remote-control">
584 <title>Remote Device Control</title>
585 <indexterm><primary>Telescope Control</primary>
586 <secondary>Remote Devices</secondary>
587 </indexterm>
589 <para>KStars provides a simple yet powerful layer for remote device control.
590 A detailed description of the layer is described in the INDI <ulink
591 url="http://www.clearskyinstitute.com/INDI/INDI.pdf">white
592 paper</ulink>.</para>
594 <para>You need to configure both the server and client machines for remote
595 control:</para>
597 <orderedlist>
598 <listitem>
599 <para>Server: To prepare a device for remote control, follow the same steps in the <link linkend="indi-kstars-setup">local/server</link> setup. When you start a device service in the <guimenu>Device Manager</guimenu>, a port number is displayed under the <guilabel>Listening port</guilabel> column. In addition to the port number, you also need the hostname or IP address of your server.
600 </para>
601 <para></para>
602 </listitem>
603 <listitem>
604 <para>Client: Select the <guimenuitem>Device Manager</guimenuitem> from the <guimenu>Device</guimenu> menu and click on the <guilabel>Client</guilabel> tab. You can add, modify, or delete hosts under the <guilabel>Client</guilabel> tab. Add a host by clicking on the <guibutton>Add</guibutton> button. Enter the hostname/IP address of the server in the <guilabel>Host</guilabel> field, and enter the port number obtained from the <emphasis>server</emphasis> machine in step 1.
605 </para>
606 </listitem>
607 </orderedlist>
609 <screenshot>
610 <screeninfo>INDI Client</screeninfo>
611 <mediaobject>
612 <imageobject>
613 <imagedata fileref="indiclient.png" format="PNG"/>
614 </imageobject>
615 </mediaobject>
616 </screenshot>
618 <para>After you add a host, right click on the host to
619 <guimenuitem>Connect</guimenuitem> or <guimenuitem>Disconnect</guimenuitem>.
620 If a connection is established, you can control the telescope from the
621 <guilabel>Sky map</guilabel> or <guilabel>INDI Control Panel</guilabel>
622 exactly as described in the <link linkend="indi-kstars-setup">local/server</link> section. It is as easy at that.
623 </para>
625 <sect2 id="indi-commandline">
626 <title>Running an INDI server from the command line</title>
627 <para>While &kstars; allows you to easily deploy an INDI server; you can launch an INDI server from the command line.
628 </para>
630 <para>
631 Since INDI is an independent backend component, you can run an INDI server on a host without KStars. INDI can be compiled separately to run on remote hosts. Furthermore, device drivers log messages to <constant>stderr</constant> and that can be helpful in a debugging situation.  The syntax for INDI server is
632 as following:</para>
634 <para>$ <command>indiserver</command> [options] [<filename>driver</filename>
635 ...]</para>
637 <para>Options:</para>
638 <para> -p p  : alternate IP port, default 7624</para>
639 <para> -r n  : max restart attempts, default 2</para>
640 <para> -v    : more verbose to stderr</para>
642 <para>For example, if you want to start an INDI server running an LX200 GPS
643 driver and listening to connections on port 8000, you would run the
644 following command:</para>
646 <para>$ <command>indiserver</command> -p 8000 <filename>lx200gps</filename></para>
647 </sect2>
649 <sect2 id="indi-secure-remote">
650 <title>Secure Remote Operation</title>
652 <para>Suppose we want to run an indiserver with INDI drivers on a remote host,
653 <constant>remote_host</constant>, and connect them to &kstars; running on the local machine.</para>
655 <para>From the local machine log onto the remote host, <constant>remote_host</constant>, by typing:</para>
657 <para>$ <command>ssh</command> -L <varname>local_port</varname>:<constant>remote_host</constant>:<varname>remote_port</varname></para>
659 <para>This binds the <varname>local_port</varname> on the local machine to the <varname>remote_port</varname> on the <constant>remote_host</constant>. After logging in, run indiserver on the remote host:</para>
661 <para>$ <command>indiserver</command> -p <varname>remote_port</varname> [<filename>driver</filename>...]</para>
663 <para>Back on the local machine, start &kstars; then open the <guimenuitem>Device Manager</guimenuitem> and add a host under the <guilabel>Client</guilabel> tab. The host should be the local host (usually 127.0.0.1) and the port number should be the <varname>local_port</varname> used in the steps above. <mousebutton>Right</mousebutton>-click on the host and select <guimenuitem>Connect</guimenuitem> from the popup menu. &kstars; will connect to the remote INDI server securely. The host information will be saved for future sessions.</para>
664 </sect2>
665 </sect1>
667 <sect1 id="indi-faq">
668 <title>INDI Frequently Asked Questions</title>
669 <indexterm><primary>Telescope Control</primary>
670 <secondary><acronym>FAQ</acronym></secondary>
671 </indexterm>
673 <qandaset defaultlabel="qanda">
674 <qandaentry>
675 <question id="what-is-indi">
676 <para>What is INDI?</para>
677 </question>
678 <answer>
679 <para> <acronym>INDI</acronym> is the <ulink url="http://indi.sourceforge.net"> Instrument-Neutral-Distributed-Interface</ulink> control protocol developed by <author><firstname>Elwood</firstname><surname>C.
680 Downey</surname></author> of <ulink url="http://www.clearskyinstitute.com/">ClearSky Institute</ulink>. &kstars; employs device drivers that are compatible with the INDI protocol. INDI has many advantages including loose coupling between hardware devices and
681 software drivers. Clients that use the device drivers (like &kstars;) are completely unaware of the device capabilities. In run time, &kstars; communicates with the device drivers and builds a completely dynamical GUI based on services provided by the device. Therefore, new device drivers can be written or updated and KStars can take full advantage of them without any changes on the client side.</para>
682 </answer>
683 </qandaentry>
685 <qandaentry>
686 <question>
687 <para>
688 Do you plan to support more devices?
689 </para>
690 </question>
691 <answer>
692 <para>
693 Yes. We plan to support major CCD cameras and focusers and extend support
694 for more telescopes. If you would like INDI to support a particular device,
695 please send an email to <email>indi-devel@lists.sourceforge.net</email>
696 </para>
697 </answer>
698 </qandaentry>
700 <qandaentry>
701 <question>
702 <para>I do not have a serial port, how can I connect to the telescope?</para>
703 </question>
704 <answer>
705 <para>Many modern laptops do not have a serial port. You will need a
706 Serial To USB adaptor that is supported under Linux. For example,
707 <trademark>Keyspan</trademark>'s USA-19QW Serial to USB adaptor is well
708 supported under Linux and had been tested with &kstars;. You need to refer
709 to your adaptor's documentation to find which ports they provide (e.g.
710 <constant>/dev/ttyUSB0 .... /dev/ttyUSB9</constant>).
711 </para>
712 </answer>
713 </qandaentry>
715 <qandaentry>
716 <question>
717 <para>
718 When I try to <guibutton>Connect</guibutton>, &kstars; reports that the
719 telescope is not connected to the serial/USB port. What can I do?
720 </para>
721 </question>
722 <answer>
723 <para>This message is triggered when &kstars; cannot communicate with the telescope. Here are few things you can do:</para>
725    <orderedlist>
726    <listitem>
727 <para>Check that you have both reading and writing permission for the port you are trying to connect to.</para>
728    </listitem>
729    <listitem>
730 <para>Check the connection cable, make sure it is in good condition and test it with other applications.</para>
731    </listitem>
732    <listitem>
733 <para>Check your telescope power, make sure the power is on and that the telescope is getting enough power.</para>
734    </listitem>
735    <listitem>
736 <para>Set the correct port in the <guilabel>INDI Control Panel</guilabel> under the <guimenu>Devices</guimenu> menu. The default port is <constant>/dev/ttyS0</constant></para>
737    </listitem>
738    <listitem>
739    <para>Restart &kstars; and retry again.</para>
740    </listitem>
741    </orderedlist>
742 </answer>
743 </qandaentry>
745 <qandaentry>
746 <question>
747 <para>&kstars; reports that the telescope is online and ready, but I cannot find the telescope's crosshair, where is it?</para>
748 </question>
749 <answer>
750 <para>&kstars; retrieves the telescopes RA and DEC coordinates upon connection. If your alignment was performed correctly, then you should see the crosshair around your target in the Sky Map. However, the RA and DEC coordinates provided by the telescope may be incorrect (even below the horizon) and you need to <link linkend="indi-sync">Sync</link> your telescope to your current target.</para>
751 </answer>
752 </qandaentry>
754 <qandaentry>
755 <question>
756 <para>The telescope is moving erratically or not moving at all. What can I do?</para>
757 </question>
758 <answer>
759 <para>This behavior is mostly due to incorrect settings, please verify the following check list:</para>
760 <orderedlist>
761 <listitem>
762 <para>Is the telescope aligned?</para>
763 </listitem>
764 <listitem>
765 <para>Is the telescope alignment mode correct? Use <guilabel>INDI Control Panel</guilabel> to check and change these settings (<constant>Alt/Az,Polar, Land</constant>).</para>
766 </listitem>
767 <listitem>
768 <para>Are the telescope's time and date settings correct?</para>
769 </listitem>
770 <listitem>
771 <para>Are the telescope's longitude and latitude settings correct?</para>
772 </listitem>
773 <listitem>
774 <para>Is the telescope's UTC offset correct?</para>
775 </listitem>
776 <listitem>
777 <para>Are the telescope's RA and DEC axis locked firmly?</para>
778 </listitem>
779 <listitem>
780 <para>Is the telescope's N/S switch (when applicable) setup correctly for your hemisphere?</para>
781 </listitem>
782 <listitem>
783 <para>Is the cable between the telescope and computer in good condition?</para>
784 </listitem>
785 </orderedlist>
787 <para>If you think all settings are correct but the telescope still moves erratically or not at all, then please send a report to
788 <email>kstars-devel@kde.org</email></para>
789 </answer>
790 </qandaentry>
791 </qandaset>
792 </sect1>
793 </chapter>