RDM discovery response#
The RDM Discovery Response object is returned from RDM discovery requests. It includes both data and event handlers for the lifecycle of a discovery request.
Event handlers#
started_handler#
The handler has the following signature:
function(response)
The handler is called to indicate that the discovery process requested has started.
device_found_handler#
The handler has the following signature:
function(discovery_response, device_info, fixture_number)
This handler is called to indicate that a response has been received from discovery. It includes:
The response object
device_info - a table of information about the discovered device, see below
fixture_number - If the fixture corresponds to a patched fixture in Designer, the fixture number - if not, this will be
nil
finished_handler#
The handler has the following signature:
function(discovery_response, error, error_message)
This handler is called to indicate that the RDM discovery process has finished.
If the process completed without errors, error will be nil.
If there are errors, error will be an integer error code:
Error |
Description |
|---|---|
|
The discovery attempt timed out with no responses. |
|
There was an unexpected RDM collision. |
|
An internal error prevented discovery completing. |
|
Other user actions caused the discovery attempt to be cancelled. |
error_handler#
The handler has the following signature:
function(response, error, error_message)
If the discovery process failed due to errors, error_handler will be called. The error code will be one of those enumerated above.
device_info object#
The device info object contains the parameters from RDM discovery that describe a device. The members are:
Parameter |
Type |
Description |
|---|---|---|
|
integer |
The user number assigned to this fixture in designer, or 0 if not associated with a fixture |
|
An RDM device ID object |
The RDM Unique ID for the fixture. |
|
string |
The universe key ID of the device on which this RDM device was discovered. |
|
integer |
The RDM protocol version the device supports, packed into a single 16-bit value as described in the RDM standard. |
|
integer |
The RDM Model ID of the device. |
|
integer |
The RDM Product Category of the device, packed into a single 16-bit value as described in the RDM standard. |
|
integer |
The integer software version identifier of the device. |
|
integer |
The number of DMX addresses used by the device. |
|
integer |
The current DMX address of the device. |
|
integer |
The current DMX personality configured to the device. |
|
integer |
The number of subdevices the device reports. |
|
integer |
the number of personalities the device reports. |
|
integer |
The number of sensors the device reports. |