From 4c631db418773eb94b46a163a1620518d763a5ff Mon Sep 17 00:00:00 2001 From: Alexander Lazarenko Date: Sat, 17 May 2025 19:10:22 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B5=D0=BD=20?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D1=8B=D0=B9=20=D1=80=D0=B0=D0=B7=D0=B4=D0=B5?= =?UTF-8?q?=D0=BB=20=D0=BD=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B5=D0=BA=20?= =?UTF-8?q?=D0=B8=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D1=8B?= =?UTF-8?q?=20=D0=BA=D0=BE=D0=BC=D0=BC=D0=B5=D0=BD=D1=82=D0=B0=D1=80=D0=B8?= =?UTF-8?q?=D0=B8=20=D0=BA=20=D0=BD=D0=B5=D0=BA=D0=BE=D1=82=D0=BE=D1=80?= =?UTF-8?q?=D1=8B=D0=BC=20=D0=B4=D1=80=D1=83=D0=B3=D0=B8=D0=BC=20=D1=80?= =?UTF-8?q?=D0=B0=D0=B7=D0=B4=D0=B5=D0=BB=D0=B0=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/parameters/params.go | 53 ++++++++++++++++++++++++++++++++++------ 1 file changed, 45 insertions(+), 8 deletions(-) diff --git a/pkg/parameters/params.go b/pkg/parameters/params.go index da63216..7840d5c 100644 --- a/pkg/parameters/params.go +++ b/pkg/parameters/params.go @@ -152,6 +152,8 @@ type SAP struct { UN int } +// 7.24.3 +// Alarm processing parameters type APR struct { AR ARR SS SS @@ -167,13 +169,6 @@ type SS struct { EN int } -type UAP struct { - EN int - AS int - VT int - SDT int -} - type PVLAS struct { EN int AS int @@ -257,8 +252,10 @@ type MCMS struct { SP []SP // Параметры сервера } +// 7.12.1 +// Central server configuration type SP struct { - EN int // Статус сервера + EN int // Флаг включения CP int // Протокол подключения NWT int // Способ подключения CS string // Адрес сервера @@ -269,7 +266,45 @@ type SP struct { MUPORT int // UDP-порт медиасервера } +// 7.28 +// NVR remote device parameters +type REDEV struct { + EN int // Флаг включения + LOCK int // ??? + CHL int // Номер канала на устройстве + RECHL int // ??? + ONLINE int // Доступно ли сейчас устройство + RETYPE int // Тип устройства + PROTYPE int // Тип протокола + IPTYPE int // Тип IP-адреса (IPv4/IPv6) + CONTYPE int // ??? + SW int // Источник поступаемого сигнала + REPORT int // Порт камеры + REIP int // IP камеры + ID int // Идентификатор камеры + RENAME string // Название устройства + USER string // Имя пользователя + PWD string // Пароль + URL string // ??? + CMDPORT string // ??? +} + +// 7.29 +// Panel emergency alarm +type UAP struct { + EN int // Флаг включения + AS int // Уровень тревоги + T int // ??? + VT int // ??? + UN string // Имя тревоги + UO string // Имя тривоги на экране водителя + APR APR // Параметры обработки тревоги + // AP AP // Параметры тревоги + SDT int // ??? +} + // 7.30 +// Network monitoring status parameters type PGDSM struct { PGPS PGPS `json:"PGPS,omitempty"` PDSM PDSM `json:"PDSM,omitempty"` @@ -286,6 +321,7 @@ type PGPS struct { } // 7.30.2 +// Device status parameter type PDSM struct { } @@ -323,6 +359,7 @@ type Setting struct { EOSD []EOSD `json:"EOSD,omitempty"` IOP []IOP `json:"IOP,omitempty"` SAP SAP `json:"SAP,omitempty"` + REDEV []REDEV `json:"REDEV,omitempty"` UAP UAP `json:"UAP,omitempty"` PGDSM PGDSM `json:"PGDSM,omitempty"` PVLAS PVLAS `json:"PVLAS,omitempty"`