TwiceAsNice  2019-02-18
Variables
Standard Properties - Serial: Properties used to communicate with and manage serial devices.

Serial communication over RS232/485 and Bluetooth. More...

Variables

const char * INDI::SP::DEVICE_PORT = "DEVICE_PORT"
 Device serial (or bluetooth) connection port. More...
 
const char * INDI::SP::DEVICE_AUTO_SEARCH = "DEVICE_AUTO_SEARCH"
 Toggle device auto search. More...
 
const char * INDI::SP::DEVICE_BAUD_RATE = "DEVICE_BAUD_RATE"
 Set device baud rate

Name Type Member Default Description
DEVICE_BAUD_RATE SWITCH 9600 ON 9600
DEVICE_BAUD_RATE SWITCH 19200 OFF 19200
DEVICE_BAUD_RATE SWITCH 38400 OFF 38400
DEVICE_BAUD_RATE SWITCH 57600 OFF 57600
DEVICE_BAUD_RATE SWITCH 115200 OFF 115200
DEVICE_BAUD_RATE SWITCH 230400 OFF 230400
More...
 

Detailed Description

Serial communication over RS232/485 and Bluetooth.

Unless otherwise noted, all the properties are saved in the configuration file so that they are remembered across sessions.

Variable Documentation

◆ DEVICE_AUTO_SEARCH

const char * INDI::SP::DEVICE_AUTO_SEARCH = "DEVICE_AUTO_SEARCH"

Toggle device auto search.

If enabled and on connection failure with the default port, the SerialInterface class shall scan the system for available serial ports and attempts connection and handshake with each until successful. Please note if this option is enabled it can take a while before connection is established depending on how many ports are available on the system and the handshake timeout of the the underlying device.

Name Type Member Default Description
DEVICE_AUTO_SEARCH SWITCH ENABLED ON Auto Search ON
DEVICE_AUTO_SEARCH SWITCH DISABLED OFF Auto Search OFF

◆ DEVICE_BAUD_RATE

const char * INDI::SP::DEVICE_BAUD_RATE = "DEVICE_BAUD_RATE"

Set device baud rate

Name Type Member Default Description
DEVICE_BAUD_RATE SWITCH 9600 ON 9600
DEVICE_BAUD_RATE SWITCH 19200 OFF 19200
DEVICE_BAUD_RATE SWITCH 38400 OFF 38400
DEVICE_BAUD_RATE SWITCH 57600 OFF 57600
DEVICE_BAUD_RATE SWITCH 115200 OFF 115200
DEVICE_BAUD_RATE SWITCH 230400 OFF 230400

◆ DEVICE_PORT

const char * INDI::SP::DEVICE_PORT = "DEVICE_PORT"

Device serial (or bluetooth) connection port.

The default value on Linux is /dev/ttyUSB0 while on MacOS it is /dev/cu.usbserial It is part of Connection::SerialInterface to manage connections to serial devices.

Name Type Member Default Description
DEVICE_PORT TEXT PORT /dev/ttyUSB0 Device serial connection port