Analog output devices
This tutorial provides a step-by-step guide to managing analog output devices in a Nureva® audio system using the available API.
Supported devices
- HDL300, Dual HDL300
- HDL310, HDL410
- HDX
What can be controlled with the API?
- Add an analog output device to a Nureva system
- Set (update) properties of an analog output device
- Get information about configured analog output devices
- Remove an analog output device from the system
Minimum role required: general
generalThe Get devices, Get device, Post devices, Update device and Delete device endpoints can be accessed with the general role (recommended) or any role of a higher level. Follow the Authorization tutorial to authenticate with a general role and obtain YOUR_GENERAL_AUTHPARAMETERS which is required for the requests below.
Overview
-
Use Post devices to register new analog output device to Nureva system.
-
Use Get devices to get all peripheral configurations.
-
Use Get device to get a specific peripheral configuration.
-
Use Update device to update the peripheral configuration.
-
Use Delete device to remove peripheral from Nureva system.
Instructions
Step 1 - Make a request to register new peripheral to Nureva system
To add (register) a new analog output device, use the Post devices endpoint
- Set the path with the IP address of the Nureva device followed by
/api/v1/room/devices. - Update the headers to include
Authorizationas key and the value beingNurevafollowed by theauthParametersreceived from the login endpoint using thegeneralaccount. - Update the headers to include
Nureva-Client-Idas key andintegration_app_nameas the value. - Update the headers to include
Nureva-Client-Versionas key and0.0.1as the value. - Send the POST request with
"deviceType": "aux-out"andcustomName(optional). The code sample below is a request to add the analog output device for the device with the IP address of10.0.0.1.
Example of request
HDL410, HDL310, Dual HDL300, HDL300
curl --request POST \
--url https://10.0.0.1/api/v1/room/devices \
--header 'Authorization: Nureva <YOUR_GENERAL_AUTHPARAMETERS>' \
--header 'Nureva-Client-Id: integration_app_name' \
--header 'Nureva-Client-Version: 0.0.1' \
--header 'Content-Type: application/json' \
--data '{
"deviceType": "aux-out",
"customName": "Analog output device"
}'HDX
curl --request POST \
--url https://10.0.0.1/api/v1/room/devices \
--header 'Authorization: Nureva <YOUR_GENERAL_AUTHPARAMETERS>' \
--header 'Nureva-Client-Id: integration_app_name' \
--header 'Nureva-Client-Version: 0.0.1' \
--header 'Content-Type: application/json' \
--data '{
"deviceType": "aux-out",
"channelNumber": 1,
"channelType": "mono",
"customName": "Analog output device"
}'
- If the call is successful, an HTTP status code of 200 OK and a generated device ID (UUID v4) will be returned.
{
"deviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Step 2 - Make a request to get all peripheral configurations
To get all peripheral configurations, use the Get devices endpoint
- Set the path with the IP address of the Nureva device followed by
/api/v1/room/devices. - Update the headers to include
Authorizationas key and the value beingNurevafollowed by theauthParametersreceived from the login endpoint using thegeneralaccount. - Update the headers to include
Nureva-Client-Idas key andintegration_app_nameas the value. - Update the headers to include
Nureva-Client-Versionas key and0.0.1as the value. - Send the GET request. The code sample below is a request to retrieve the peripherals for the device with the IP address of
10.0.0.1.
Example of request
curl --request GET \
--url https://10.0.0.1/api/v1/room/devices \
--header 'Authorization: Nureva <YOUR_GENERAL_AUTHPARAMETERS>' \
--header 'Nureva-Client-Id: integration_app_name' \
--header 'Nureva-Client-Version: 0.0.1' \- If the call is successful, an HTTP status code of 200 OK and the Nureva device details together with all its peripherals will be returned.
Example of response
HDL410, HDL310, Dual HDL300, HDL300
{
"devices": [
{
"deviceId": "MK072S69M025060",
"deviceType": "nu-audio-device",
"audioDeviceType": "hdl410",
"deviceStatusColor": "green",
"hardwareComponents": [
{
"portNumber": 1,
"hardwareId": "AAFDE9C1E2E7",
"connectionStatus": "Connected",
"model": "Bar"
},
{
"portNumber": 2,
"hardwareId": "AAD7F5C1E2E7",
"connectionStatus": "Connected",
"model": "Bar"
}
]
},
{
"deviceType": "aux-out",
"deviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"customName": "Analog output device",
"auxiliaryOutputState": "LineLevel"
}
]
}HDX
{
"devices": [
{
"deviceId": "MK449D72M561236",
"deviceType": "nu-audio-device",
"audioDeviceType": "HDX",
"deviceStatusColor": "green",
"hardwareComponents": [
{
"portNumber": 1,
"connectionStatus": "Connected",
"hardwareId": "MK814G79N994444",
"model": "HDX_AudioBar"
},
{
"portNumber": 5,
"connectionStatus": "Connected",
"hardwareId": "MK782X79N994444",
"model": "HDX_MicPod"
}
]
},
{
"deviceType": "aux-out",
"deviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"customName": "Analog output device",
"channelNumber": 1,
"channelType": "mono",
"signalLevelGain": 0,
"noiseSuppressionEnabled": false,
"isMuted": false,
"outputMix": {
"hdxMicEnabled": false,
"usbSpeakerEnabled": false
}
}
]
}Step 3 - Make a request to get analog output device configuration
To get the analog output device configuration of a single peripheral, use the Get device endpoint
- Set the path with the IP address of the Nureva device followed by
/api/v1/room/devices/<deviceId>, wheredeviceIdis the ID of the peripheral. - Update the headers to include
Authorizationas key and the value beingNurevafollowed by theauthParametersreceived from the login endpoint using thegeneralaccount. - Update the headers to include
Nureva-Client-Idas key andintegration_app_nameas the value. - Update the headers to include
Nureva-Client-Versionas key and0.0.1as the value. - Send the GET request. The code sample below is a request to retrieve the analog output device settings for the device with the IP address of
10.0.0.1and device IDxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
Example of request
curl --request GET \
--url https://10.0.0.1/api/v1/room/devices/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx \
--header 'Authorization: Nureva <YOUR_GENERAL_AUTHPARAMETERS>' \
--header 'Nureva-Client-Id: integration_app_name' \
--header 'Nureva-Client-Version: 0.0.1' \- If the call is successful, an HTTP status code of 200 OK and the specified peripheral configuration will be returned.
Example of response
HDL410, HDL310, Dual HDL300, HDL300
{
"deviceType": "aux-out",
"deviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"customName": "Analog output device",
"auxiliaryOutputState": "LineLevel"
}HDX
{
"deviceType": "aux-out",
"deviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"customName": "Analog output device",
"channelNumber": 1,
"channelType": "mono",
"signalLevelGain": 0,
"noiseSuppressionEnabled": false,
"isMuted": false,
"outputMix": {
"hdxMicEnabled": false,
"usbSpeakerEnabled": false
}
}Step 4 - Make a request to update analog output device configuration
To set (update) an analog output device configuration, use the Update device endpoint
- Set the path with the IP address of the Nureva device followed by
/api/v1/room/devices/<deviceId>, wheredeviceIdis the ID of the peripheral. - Update the headers to include
Authorizationas key and the value beingNurevafollowed by theauthParametersreceived from the login endpoint using thegeneralaccount. - Update the headers to include
Nureva-Client-Idas key andintegration_app_nameas the value. - Update the headers to include
Nureva-Client-Versionas key and0.0.1as the value. - Send the PATCH request to update the peripheral settings. The code sample below is a request to update the peripheral settings for the device with the IP address of
10.0.0.1and device IDxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. The example includes all the optional properties. At least one property must be specified.
Example of request
HDL410, HDL310, Dual HDL300, HDL300
curl --request PATCH \
--url https://10.0.0.1/api/v1/room/devices/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx \
--header 'Authorization: Nureva <YOUR_GENERAL_AUTHPARAMETERS>' \
--header 'Nureva-Client-Id: integration_app_name' \
--header 'Nureva-Client-Version: 0.0.1' \
--header 'Content-Type: application/json' \
--data '{
"customName": "new name",
"auxiliaryOutputState": "MixedSignal"
}'HDX
curl --request PATCH \
--url https://10.0.0.1/api/v1/room/devices/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx \
--header 'Authorization: Nureva <YOUR_GENERAL_AUTHPARAMETERS>' \
--header 'Nureva-Client-Id: integration_app_name' \
--header 'Nureva-Client-Version: 0.0.1' \
--header 'Content-Type: application/json' \
--data '{
"customName": "new name",
"signalLevelGain": 5,
"noiseSuppressionEnabled": true,
"isMuted": true,
"outputMix": {
"hdxMicEnabled": true,
"usbSpeakerEnabled": true
}
}'- If the call is successful, an HTTP status code of 200 OK and the peripheral device ID will be returned.
Example of response
{
"deviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Step 5 - Make a request to remove analog output device configuration
To remove an analog output device from Nureva system, use the Delete device endpoint
- Set the path with the IP address of the Nureva device followed by
/api/v1/room/devices/<deviceId>, wheredeviceIdis the ID of the peripheral. - Update the headers to include
Authorizationas key and the value beingNurevafollowed by theauthParametersreceived from the login endpoint using thegeneralaccount. - Update the headers to include
Nureva-Client-Idas key andintegration_app_nameas the value. - Update the headers to include
Nureva-Client-Versionas key and0.0.1as the value. - Send the DELETE request. The code sample below is a request to delete the analog output device from the device with the IP address of
10.0.0.1and device IDxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
Example of request
curl --request DELETE \
--url https://10.0.0.1/api/v1/room/devices/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx \
--header 'Authorization: Nureva <YOUR_GENERAL_AUTHPARAMETERS>' \
--header 'Nureva-Client-Id: integration_app_name' \
--header 'Nureva-Client-Version: 0.0.1'- If the call is successful, an HTTP status code of 200 OK will be returned.
Tutorial complete!You now understand how to add, retrieve, configure, and remove analog output devices.
Updated 14 days ago
