Contents
The general syntax of a device identifier is:
qualifier:parameter=value+...
More specifically, with [brackets] meaning optional, the syntax is:
[qualifier:][parameter=]value[+parameter=value]...
The qualifier specifies which class of device is being identified. It is separated from the rest of the device identifier by a colon (:). It may be one of:
Qualifier Assumed First Parameter serial: name= usb: serialNumber= bluetooth: address= hid: address= null:
The qualifier is case insensitive, and any abbreviation may be used. For backward compatibility (to when a device identifier was strictly interpreted as the absolute path to a serial device), the qualifier (along with its colon delimiter) is optional, and, if it isn't supplied, serial is assumed.
One or more parameters may be supplied after the qualifier. Each parameter is specified as its name and its value, in that order, separated by an equals (=) sign. Parameters are separated from one another by a plus (+) sign. Parameter names are case insensitive, and any abbreviation may be used. Supplying a zero-length value means to use the parameter's default value.
For backward compatibility (to when device identifier parameters weren't supported), the first supplied parameter is special in that its name (along with its equals sign delimiter) is optional. If the name of the first parameter isn't supplied then the class-dependent parameter that most specifically identifies the device is assumed. See the table above for which parameter is assumed for each class.
It isn't possible to supply no parameters at all. Specifying only the qualifier is equivalent to also specifying a zero-length value for the assumed first parameter for that class. For example, specifying usb: is equivalent to specifying usb:serialNumber=.
An example to illustrate the optionality of both the qualifier and the name of the first supplied parameter:
On Linux, the name of the first serial device is ttyS0. All of the following device identifiers refer to the same serial device:
serial:name=ttyS0 serial:ttyS0 ttyS0 name=ttyS0
Serial device identifiers support the following parameters:
Name Value name name of, relative path to, or absolute path to the device baud the data transmission/reception rate (bits per second) dataBits the number of data bits per character stopBits the number of stop bits per character parity none, odd, even, space, mark flowControl none, hardware
All of the parameters are optional, although the name= parameter should be supplied. It shouldn't normally be necessary to supply any of the others, especially since, in most cases, the braille driver overrides them.
USB device identifiers support the following parameters:
Name Value serialNumber= one or more arbitrary characters vendorIdentifier= an integer within the range 1-65535 (0X0001-0XFFFF) productIdentifier= an integer within the range 1-65535 (0X0001-0XFFFF) genericDevices= yes, no
All of the parameters are optional. It shouldn't normally be necessary to supply any of them.
Bluetooth device identifiers support the following parameters:
Name Value address= six two-digit hexadecimal numbers separated by : or - name= one or more arbitrary characters channel= an integer within the range 1-30 discover= yes, no timeout= an integer within the range 1-59
All of the parameters are optional except that the address= parameter is required on platforms where BRLTTY can't yet detect a Bluetooth device based on its name. It shouldn't normally be necessary to supply any of the others.
BRLTTY can detect a Bluetooth device by name on the following platforms:
Specify whether or not service discovery is to be performed. In other words, this parameter specifies whether or not the device is to be "asked" for the RFCOMM channel number. It must be either yes or no. The check is case insensitive, and any abbreviation may be used. If this parameter isn't supplied then whether or not service discovery is performed is decided according to the following sequence of tests:
HID device identifiers support the following parameters:
Name Value address= Bluetooth MAC address name= Bluetooth device name manufacturer= USB device manufacturer description= USB product description serialNumber= USB serial number vendor= four hexadecimal digits product= four hexadecimal digits
All of the parameters are optional, although, in most cases, either the serialNumber= parameter (for a USB device) or the address= parameter (for a Bluetooth device) should be supplied. USB-specific and Bluetooth-specific parameters may not be combined.
A null endpoint has the following properties: