{
  "schemaVersion": 1,
  "minEngineVersion": 2,
  "deviceType": 205,
  "name": "Vega SGBM 1.6",
  "advertisingNames": [
    "VEGA SGBM 1.6"
  ],
  "pairing": "onDemand",
  "parameters": [
    {
      "id": 1,
      "title": "Частотный план",
      "readonly": false,
      "wire": {
        "type": "uint8",
        "size": 1,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "choice",
        "format": "raw",
        "options": [
          {
            "value": 1,
            "title": "EU868"
          },
          {
            "value": 2,
            "title": "RU864"
          },
          {
            "value": 3,
            "title": "Пользовательский"
          },
          {
            "value": 4,
            "title": "AU915, каналы 0–7"
          },
          {
            "value": 5,
            "title": "AU915, каналы 8–15"
          },
          {
            "value": 6,
            "title": "AS923"
          },
          {
            "value": 7,
            "title": "KR920"
          },
          {
            "value": 8,
            "title": "IN865"
          },
          {
            "value": 9,
            "title": "CN779"
          },
          {
            "value": 10,
            "title": "US915"
          },
          {
            "value": 11,
            "title": "US915 Hybrid"
          },
          {
            "value": 12,
            "title": "KZ865"
          }
        ]
      }
    },
    {
      "id": 3,
      "title": "Активация сети",
      "readonly": false,
      "wire": {
        "type": "uint8",
        "size": 1,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "choice",
        "format": "raw",
        "options": [
          {
            "value": 1,
            "title": "OTAA"
          },
          {
            "value": 2,
            "title": "ABP"
          }
        ]
      }
    },
    {
      "id": 4,
      "title": "Подтверждение доставки",
      "readonly": false,
      "wire": {
        "type": "uint8",
        "size": 1,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "choice",
        "format": "raw",
        "options": [
          {
            "value": 1,
            "title": "Запрашивать"
          },
          {
            "value": 2,
            "title": "Не запрашивать"
          }
        ]
      },
      "constraints": {
        "min": 1,
        "max": 2
      }
    },
    {
      "id": 5,
      "title": "Автоматическая скорость",
      "readonly": false,
      "wire": {
        "type": "uint8",
        "size": 1,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "choice",
        "format": "raw",
        "options": [
          {
            "value": 1,
            "title": "Вкл."
          },
          {
            "value": 2,
            "title": "Выкл."
          }
        ]
      }
    },
    {
      "id": 6,
      "title": "Задержка приёма RX1",
      "readonly": false,
      "wire": {
        "type": "uint8",
        "size": 1,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "choice",
        "format": "raw",
        "options": [
          {
            "value": 1,
            "title": "1 сек."
          },
          {
            "value": 2,
            "title": "2 сек."
          },
          {
            "value": 3,
            "title": "3 сек."
          },
          {
            "value": 4,
            "title": "4 сек."
          },
          {
            "value": 5,
            "title": "5 сек."
          },
          {
            "value": 6,
            "title": "6 сек."
          },
          {
            "value": 7,
            "title": "7 сек."
          },
          {
            "value": 8,
            "title": "8 сек."
          },
          {
            "value": 9,
            "title": "9 сек."
          },
          {
            "value": 10,
            "title": "10 сек."
          },
          {
            "value": 11,
            "title": "11 сек."
          },
          {
            "value": 12,
            "title": "12 сек."
          },
          {
            "value": 13,
            "title": "13 сек."
          },
          {
            "value": 14,
            "title": "14 сек."
          },
          {
            "value": 15,
            "title": "15 сек."
          }
        ]
      },
      "constraints": {
        "min": 1,
        "max": 15
      }
    },
    {
      "id": 7,
      "title": "Задержка подключения",
      "readonly": false,
      "wire": {
        "type": "uint8",
        "size": 1,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "choice",
        "format": "raw",
        "options": [
          {
            "value": 1,
            "title": "1 сек."
          },
          {
            "value": 2,
            "title": "2 сек."
          },
          {
            "value": 3,
            "title": "3 сек."
          },
          {
            "value": 4,
            "title": "4 сек."
          },
          {
            "value": 5,
            "title": "5 сек."
          },
          {
            "value": 6,
            "title": "6 сек."
          },
          {
            "value": 7,
            "title": "7 сек."
          },
          {
            "value": 8,
            "title": "8 сек."
          },
          {
            "value": 9,
            "title": "9 сек."
          },
          {
            "value": 10,
            "title": "10 сек."
          },
          {
            "value": 11,
            "title": "11 сек."
          },
          {
            "value": 12,
            "title": "12 сек."
          },
          {
            "value": 13,
            "title": "13 сек."
          },
          {
            "value": 14,
            "title": "14 сек."
          },
          {
            "value": 15,
            "title": "15 сек."
          }
        ]
      },
      "constraints": {
        "min": 1,
        "max": 15
      }
    },
    {
      "id": 8,
      "title": "Число повторов",
      "readonly": false,
      "wire": {
        "type": "uint8",
        "size": 1,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "choice",
        "format": "raw",
        "options": [
          {
            "value": 1,
            "title": "1 раз"
          },
          {
            "value": 2,
            "title": "2 раза"
          },
          {
            "value": 3,
            "title": "3 раза"
          },
          {
            "value": 4,
            "title": "4 раза"
          },
          {
            "value": 5,
            "title": "5 раз"
          },
          {
            "value": 6,
            "title": "6 раз"
          },
          {
            "value": 7,
            "title": "7 раз"
          },
          {
            "value": 8,
            "title": "8 раз"
          },
          {
            "value": 9,
            "title": "9 раз"
          },
          {
            "value": 10,
            "title": "10 раз"
          },
          {
            "value": 11,
            "title": "11 раз"
          },
          {
            "value": 12,
            "title": "12 раз"
          },
          {
            "value": 13,
            "title": "13 раз"
          },
          {
            "value": 14,
            "title": "14 раз"
          },
          {
            "value": 15,
            "title": "15 раз"
          }
        ]
      },
      "constraints": {
        "min": 1,
        "max": 15
      }
    },
    {
      "id": 9,
      "title": "Мощность передатчика",
      "readonly": false,
      "wire": {
        "type": "uint8",
        "size": 1,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "choice",
        "format": "raw",
        "options": [
          {
            "value": 0,
            "title": "20 дБи"
          },
          {
            "value": 1,
            "title": "14 дБи"
          },
          {
            "value": 2,
            "title": "11 дБи"
          },
          {
            "value": 3,
            "title": "8 дБи"
          },
          {
            "value": 4,
            "title": "5 дБи"
          },
          {
            "value": 5,
            "title": "2 дБи"
          }
        ]
      }
    },
    {
      "id": 10,
      "title": "Скорость передачи",
      "readonly": false,
      "wire": {
        "type": "uint8",
        "size": 1,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "choice",
        "format": "raw",
        "options": [
          {
            "value": 0,
            "title": "DR0"
          },
          {
            "value": 1,
            "title": "DR1"
          },
          {
            "value": 2,
            "title": "DR2"
          },
          {
            "value": 3,
            "title": "DR3"
          },
          {
            "value": 4,
            "title": "DR4"
          },
          {
            "value": 5,
            "title": "DR5"
          },
          {
            "value": 6,
            "title": "DR6"
          }
        ]
      }
    },
    {
      "id": 57,
      "title": "Новый AppEUI",
      "readonly": false,
      "wire": {
        "type": "hex",
        "size": 8,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "hex",
        "format": "hex"
      }
    },
    {
      "id": 58,
      "title": "Новый AppKey",
      "readonly": false,
      "sensitive": true,
      "wire": {
        "type": "hex",
        "size": 16,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "hex",
        "format": "hex"
      }
    },
    {
      "id": 59,
      "title": "Новый NwkSKey",
      "readonly": false,
      "sensitive": true,
      "wire": {
        "type": "hex",
        "size": 16,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "hex",
        "format": "hex"
      }
    },
    {
      "id": 60,
      "title": "Новый AppSKey",
      "readonly": false,
      "sensitive": true,
      "wire": {
        "type": "hex",
        "size": 16,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "hex",
        "format": "hex"
      }
    },
    {
      "id": 61,
      "title": "Новый DevAddr",
      "readonly": false,
      "wire": {
        "type": "hex",
        "size": 4,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "hex",
        "format": "hex"
      }
    },
    {
      "id": 126,
      "title": "Период передачи данных",
      "readonly": false,
      "wire": {
        "type": "uint8",
        "size": 1,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "choice",
        "format": "raw",
        "options": [
          {
            "value": 1,
            "title": "1 сутки"
          },
          {
            "value": 2,
            "title": "2 суток"
          },
          {
            "value": 3,
            "title": "3 суток"
          },
          {
            "value": 4,
            "title": "4 суток"
          },
          {
            "value": 5,
            "title": "5 суток"
          },
          {
            "value": 6,
            "title": "6 суток"
          },
          {
            "value": 7,
            "title": "7 суток"
          },
          {
            "value": 8,
            "title": "8 суток"
          },
          {
            "value": 9,
            "title": "9 суток"
          },
          {
            "value": 10,
            "title": "10 суток"
          },
          {
            "value": 11,
            "title": "11 суток"
          },
          {
            "value": 12,
            "title": "12 суток"
          },
          {
            "value": 13,
            "title": "13 суток"
          },
          {
            "value": 14,
            "title": "14 суток"
          },
          {
            "value": 15,
            "title": "15 суток"
          }
        ]
      }
    },
    {
      "id": 55,
      "title": "Часовой пояс",
      "readonly": false,
      "wire": {
        "type": "int16",
        "size": 2,
        "byteOrder": "little"
      },
      "ui": {
        "editor": "number",
        "format": "raw",
        "unit": "мин"
      }
    },
    {
      "id": 1157,
      "title": "MAC-адрес BLE-модуля",
      "readonly": true,
      "wire": {
        "type": "hex",
        "size": 6,
        "byteOrder": "little"
      },
      "ui": {
        "editor": "readOnly",
        "format": "hex"
      }
    },
    {
      "id": 1177,
      "title": "Версия ПО BLE",
      "readonly": true,
      "wire": {
        "type": "ascii",
        "size": 12,
        "byteOrder": "big",
        "trimZeroPadding": true
      },
      "ui": {
        "editor": "readOnly",
        "format": "firmwareVersion"
      }
    },
    {
      "id": 1001,
      "title": "DevEUI",
      "readonly": true,
      "wire": {
        "type": "hex",
        "size": 8,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "readOnly",
        "format": "hex"
      }
    },
    {
      "id": 1002,
      "title": "AppEUI",
      "readonly": true,
      "wire": {
        "type": "hex",
        "size": 8,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "readOnly",
        "format": "hex"
      }
    },
    {
      "id": 1003,
      "title": "AppKey",
      "readonly": true,
      "sensitive": true,
      "wire": {
        "type": "hex",
        "size": 16,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "readOnly",
        "format": "hex"
      }
    },
    {
      "id": 1005,
      "title": "NwkSKey",
      "readonly": true,
      "sensitive": true,
      "wire": {
        "type": "hex",
        "size": 16,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "readOnly",
        "format": "hex"
      }
    },
    {
      "id": 1006,
      "title": "AppSKey",
      "readonly": true,
      "sensitive": true,
      "wire": {
        "type": "hex",
        "size": 16,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "readOnly",
        "format": "hex"
      }
    },
    {
      "id": 1004,
      "title": "DevAddr",
      "readonly": true,
      "wire": {
        "type": "hex",
        "size": 4,
        "byteOrder": "little"
      },
      "ui": {
        "editor": "readOnly",
        "format": "hex"
      }
    },
    {
      "id": 1029,
      "title": "OTAA DevAddr",
      "readonly": true,
      "wire": {
        "type": "hex",
        "size": 4,
        "byteOrder": "little"
      },
      "ui": {
        "editor": "readOnly",
        "format": "hex"
      }
    },
    {
      "id": 1028,
      "title": "Класс LoRaWAN",
      "readonly": true,
      "wire": {
        "type": "uint8",
        "size": 1,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "readOnly",
        "format": "raw",
        "options": [
          {
            "value": 1,
            "title": "Класс A"
          },
          {
            "value": 2,
            "title": "Класс C"
          },
          {
            "value": 3,
            "title": "Класс B"
          }
        ]
      }
    },
    {
      "id": 1007,
      "title": "Модель",
      "readonly": true,
      "wire": {
        "type": "uint8",
        "size": 1,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "readOnly",
        "format": "deviceType"
      }
    },
    {
      "id": 1098,
      "title": "Версия платы (PCB)",
      "readonly": true,
      "wire": {
        "type": "uint32",
        "size": 4,
        "byteOrder": "little"
      },
      "ui": {
        "editor": "readOnly",
        "format": "raw"
      }
    },
    {
      "id": 1008,
      "title": "Время (UTC)",
      "readonly": false,
      "wire": {
        "type": "uint32",
        "size": 4,
        "byteOrder": "little"
      },
      "ui": {
        "editor": "number",
        "format": "unixSeconds"
      }
    },
    {
      "id": 1009,
      "title": "Версия ПО",
      "readonly": true,
      "wire": {
        "type": "ascii",
        "size": 20,
        "byteOrder": "big",
        "trimZeroPadding": true
      },
      "ui": {
        "editor": "readOnly",
        "format": "firmwareVersion"
      }
    },
    {
      "id": 1010,
      "title": "Подключение к сети",
      "readonly": true,
      "wire": {
        "type": "uint8",
        "size": 1,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "readOnly",
        "format": "raw",
        "options": [
          {
            "value": 1,
            "title": "В сети"
          },
          {
            "value": 2,
            "title": "Не в сети"
          }
        ]
      }
    },
    {
      "id": 1018,
      "title": "Температура",
      "readonly": true,
      "wire": {
        "type": "int8",
        "size": 1,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "readOnly",
        "format": "raw",
        "unit": "°C"
      }
    },
    {
      "id": 1106,
      "title": "Батарея радиомодуля",
      "readonly": true,
      "wire": {
        "type": "uint8",
        "size": 1,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "readOnly",
        "format": "raw",
        "unit": "%"
      },
      "constraints": {
        "min": 0,
        "max": 100
      }
    },
    {
      "id": 1030,
      "title": "Счётчик пакетов",
      "readonly": true,
      "wire": {
        "type": "uint32",
        "size": 4,
        "byteOrder": "little"
      },
      "ui": {
        "editor": "readOnly",
        "format": "raw"
      }
    },
    {
      "id": 1048,
      "title": "Заводской тест",
      "readonly": true,
      "wire": {
        "type": "uint8",
        "size": 1,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "readOnly",
        "format": "raw",
        "options": [
          {
            "value": 1,
            "title": "Выполняется"
          },
          {
            "value": 2,
            "title": "Успешно"
          },
          {
            "value": 3,
            "title": "Неизвестная ошибка"
          }
        ]
      }
    },
    {
      "id": 1147,
      "title": "Скорость приёма",
      "readonly": true,
      "wire": {
        "type": "uint16",
        "size": 2,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "readOnly",
        "format": "raw"
      }
    },
    {
      "id": 1148,
      "title": "Скорость передачи",
      "readonly": true,
      "wire": {
        "type": "uint16",
        "size": 2,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "readOnly",
        "format": "raw"
      }
    },
    {
      "id": 1149,
      "title": "Обмен по FSK",
      "readonly": true,
      "wire": {
        "type": "uint8",
        "size": 1,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "readOnly",
        "format": "raw"
      }
    },
    {
      "id": 1152,
      "title": "Ключ FSK",
      "readonly": true,
      "sensitive": true,
      "wire": {
        "type": "hex",
        "size": 8,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "readOnly",
        "format": "hex"
      }
    },
    {
      "id": 1146,
      "title": "Потеряно пакетов",
      "readonly": true,
      "wire": {
        "type": "uint32",
        "size": 4,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "readOnly",
        "format": "raw"
      }
    },
    {
      "id": 1151,
      "title": "Дата производства",
      "readonly": true,
      "wire": {
        "type": "uint32",
        "size": 4,
        "byteOrder": "little"
      },
      "ui": {
        "editor": "readOnly",
        "format": "raw"
      }
    },
    {
      "id": 1105,
      "title": "Версия протокола",
      "readonly": true,
      "wire": {
        "type": "hex",
        "size": 4,
        "byteOrder": "little"
      },
      "ui": {
        "editor": "readOnly",
        "format": "hex"
      }
    },
    {
      "id": 1176,
      "title": "Версия LoRaWAN",
      "readonly": true,
      "wire": {
        "type": "hex",
        "size": 4,
        "byteOrder": "little"
      },
      "ui": {
        "editor": "readOnly",
        "format": "hex"
      }
    },
    {
      "id": 1172,
      "title": "Магнитная пломба",
      "readonly": true,
      "wire": {
        "type": "uint8",
        "size": 1,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "readOnly",
        "format": "raw"
      }
    },
    {
      "id": 1173,
      "title": "Объём газа",
      "readonly": true,
      "wire": {
        "type": "uint32",
        "size": 4,
        "byteOrder": "little"
      },
      "ui": {
        "editor": "readOnly",
        "format": "raw",
        "unit": "м³",
        "decimalPlaces": 3,
        "scale": {
          "numerator": 1,
          "denominator": 1000
        }
      }
    }
  ],
  "screens": [
    {
      "kind": "info",
      "title": "Информация",
      "groups": [
        {
          "title": "Текущее состояние",
          "parameterIds": [
            1157,
            1177,
            1001,
            1002,
            1003,
            1005,
            1006,
            1004,
            1029,
            1028,
            1007,
            1098,
            1008,
            1009,
            1010,
            1018,
            1106,
            1030,
            1048,
            1147,
            1148,
            1149,
            1152,
            1146,
            1151,
            1105,
            1176,
            1172,
            1173
          ]
        }
      ],
      "commands": [
        "joinNetwork",
        "linkCheck",
        "factoryReset"
      ]
    },
    {
      "kind": "lora",
      "title": "LoRaWAN",
      "groups": [
        {
          "title": "Сеть",
          "parameterIds": [
            1,
            3,
            7
          ]
        },
        {
          "title": "Радиоканал",
          "parameterIds": [
            5,
            10,
            9
          ]
        },
        {
          "title": "Доставка",
          "parameterIds": [
            4,
            8,
            6
          ]
        },
        {
          "title": "Дополнительно",
          "parameterIds": [
            57,
            58,
            59,
            60,
            61
          ]
        }
      ]
    },
    {
      "kind": "settings",
      "title": "Настройки",
      "groups": [
        {
          "title": "Настройки устройства",
          "parameterIds": [
            126,
            55
          ]
        }
      ]
    }
  ],
  "commands": [
    {
      "code": 1,
      "key": "joinNetwork",
      "title": "Подключиться к LoRaWAN",
      "refreshAfter": true
    },
    {
      "code": 2,
      "key": "linkCheck",
      "title": "Проверить связь",
      "refreshAfter": true
    },
    {
      "code": 4,
      "key": "factoryReset",
      "title": "Сбросить настройки",
      "requiresConfirmation": true,
      "refreshAfter": true
    }
  ],
  "firmware": {
    "chip": "wch",
    "dfu": "wchBleUart"
  }
}
