Axxon One 구성 설정은 ConfigurationService.proto 프로토 파일에 설명되어 있습니다.
사용되는 메서드는 2가지입니다.
- Changeconfig.
- ListConfig.
ChangeConfig 메서드
ChangeConfig 메서드는 시스템의 모든 객체를 생성, 편집 및 삭제할 수 있게 합니다.
이후, 모든 시스템 객체나 요소는 단위라고 불립니다.
입력 데이터
- added – 추가해야 할 단위 배열
- changed – 변경해야 할 단위 배열
- remove – 삭제해야 할 단위 배열
단위 구조
type 필드는 단위가 무엇인지를 결정합니다.
단위는 서브단위를 포함할 수 있습니다(units 필). 예를 들어, VideoChannel.0 단위는 하위 단위인 Streaming.0을 가질 수 있습니다.
각 단위는 uid 필드를 가집니다. 이는 단위 식별자로, 단위의 모든 "부모"들을 "/" 기호로 구분하여 구성됩니다. 예를 들어, Streaming.0 단위의 uid 필드는 다음과 같습니다: hosts/Node1/DeviceIpint.1/VideoChannel.0/Streaming.0.
여기서
- uid 는 "hosts"로 시작합니다.
- Node1 은 노드 이름입니다.
- DeviceIpint.1 은 장치 이름입니다.
- VideoChannel.0 은 카메라의 첫 번째 비디오 채널입니다.
- Streaming.0 은 채널의 첫 번째 비디오 스트림입니다.
추가적으로, 단위는 properties 필드에 설정을 여러 개 포함할 수 있습니다.
Output data
In response to the method, the following data will be received:
- failed – the units that could not be added.
- added – the uid of the successfully added unit.
ListConfig method
The method allows to get a list of units.
Input data
unit_uids is an array of the units' uids to be obtained.
Output data
- units is a list of successfully found units.
- unreachable_objects is a list of temporarily unavailable units.
- not_found_objects is a list of not found units.
The units field is of UnitDescriptor type.
Data parameters:
- uid is a unit identifier, which consists of all the "parents" of the unit, separated by the "/" symbol. For example, the uid field of the Streaming.0 unit will be as follows: hosts/Node1/DeviceIpint.1/VideoChannel.0/Streaming.0.
- display_id is a short id, which is usually unique in a parent scope. For example, for a DeviceIpint.1 unit, the field display_id == 1 (sometimes type can go together with it).
- type is a unit type. For example, for a DeviceIpint.1 unit, the field type == DeviceIpint.
- properties is a list of unit settings.
- units are included units that can have either a full description or a short one. In this case, the field stripped == true, and the only fields that are available from the description are: display_id, type, uid.
- factory are included units that can be created for a given unit. The available fields are:
- type – a type of subunit that can be created;
- properties – a list of subunit properties.