-- Table structure for table `mdm_gateways_daily_summary_grouped`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `mdm_gateways_daily_summary_grouped` (
  `id` int NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `idgroup` int NOT NULL,
  `summary` varchar(2000) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `idtypes` varchar(2000) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `firmwares` varchar(2000) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `firmwares_deployment` text COLLATE utf8mb4_unicode_ci,
  `CTS` datetime DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `date` (`date`),
  KEY `idgroup` (`idgroup`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mdm_gateways_daily_summary_grouped`
--


--
-- Table structure for table `mdm_gateways_daily_summary_labels`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `mdm_gateways_daily_summary_labels` (
  `id` int NOT NULL AUTO_INCREMENT,
  `label` varchar(450) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `groupLabel` enum('vitals','rssi','rsrp','rsrq','sinr','tx_power','b') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mdm_gateways_daily_summary_labels`
--


--
-- Table structure for table `mdm_meter_models`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `mdm_meter_models` (
  `id` int NOT NULL AUTO_INCREMENT,
  `id_BUS_type` int NOT NULL,
  `manufacturer` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `model` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `settings` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `gw_config` varchar(450) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id_BUS_type` (`id_BUS_type`),
  KEY `manufacturer` (`manufacturer`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mdm_meter_models`
--


--
-- Table structure for table `mdm_metering_external_data`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `mdm_metering_external_data` (
  `id` int NOT NULL AUTO_INCREMENT,
  `iddevice` int DEFAULT NULL,
  `BUS_iddevice` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `id_metering_point` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `date` datetime DEFAULT NULL,
  `data` varchar(450) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `TS` datetime DEFAULT NULL,
  `endpoint_sent` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT '0',
  `endpoint_sending_date` datetime DEFAULT NULL,
  `endpoint_attempts` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT '0',
  `endpoint_response` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mdm_metering_external_data`
--


--
-- Table structure for table `mdm_metering_points`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `mdm_metering_points` (
  `id` int NOT NULL AUTO_INCREMENT,
  `idMeteringPoint` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` varchar(450) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `utility_type` enum('Water','Electricity','Gas') COLLATE utf8mb4_unicode_ci NOT NULL,
  `idPriority` int DEFAULT NULL,
  `status` enum('In service') COLLATE utf8mb4_unicode_ci NOT NULL,
  `idpremise` int DEFAULT NULL,
  `idmeter` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `iddevice` int DEFAULT NULL,
  `idgroup` int DEFAULT NULL,
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `updated_at` datetime DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `idmeter` (`idmeter`),
  KEY `idgroup` (`idgroup`),
  KEY `utility_type` (`utility_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mdm_metering_points`
--


--
-- Table structure for table `mdm_metering_points_data`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `mdm_metering_points_data` (
  `id` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  `data_main` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `data_main_date` datetime DEFAULT NULL,
  `data_main_prev` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `data_main_date_prev` datetime DEFAULT NULL,
  `data_main_increase` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `data` varchar(4500) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `TS` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mdm_metering_points_data`
--


--
-- Table structure for table `mdm_metering_points_data_day_log`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `mdm_metering_points_data_day_log` (
  `id` int NOT NULL AUTO_INCREMENT,
  `idmp` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  `day` date NOT NULL,
  `data_main` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `data_main_date` datetime DEFAULT NULL,
  `data_main_increase` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `data_summary` varchar(450) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `data` text COLLATE utf8mb4_unicode_ci,
  `TS` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `idmp_day` (`idmp`,`day`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mdm_metering_points_data_day_log`
--


--
-- Table structure for table `mdm_metering_points_data_day_log_flash`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `mdm_metering_points_data_day_log_flash` (
  `id` int NOT NULL AUTO_INCREMENT,
  `idmp` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  `data_main` decimal(18,6) DEFAULT NULL,
  `data_main_date` datetime DEFAULT NULL,
  `data` varchar(4000) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `TS` datetime DEFAULT NULL,
  `processed` int NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`,`processed`),
  KEY `idmp` (`idmp`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
/*!50500 PARTITION BY LIST  COLUMNS(processed)
(PARTITION p0 VALUES IN (0) ENGINE = InnoDB,
 PARTITION p1 VALUES IN (1) ENGINE = InnoDB) */;

--
-- Dumping data for table `mdm_metering_points_data_day_log_flash`
--


--
-- Table structure for table `mdm_metering_points_data_month_log`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `mdm_metering_points_data_month_log` (
  `id` int NOT NULL AUTO_INCREMENT,
  `idmp` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  `month` int NOT NULL,
  `data_main` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `data_main_date` datetime DEFAULT NULL,
  `data_main_increase` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `data_summary` varchar(450) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `data` text COLLATE utf8mb4_unicode_ci,
  `TS` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `idmp_month` (`idmp`,`month`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mdm_metering_points_data_month_log`
--


--
-- Table structure for table `mdm_metering_points_groups`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `mdm_metering_points_groups` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` varchar(450) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `idlevel` int DEFAULT NULL,
  `parent` int DEFAULT NULL,
  `lft` int DEFAULT NULL,
  `rgt` int DEFAULT NULL,
  `CTS` datetime DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `left_rgt` (`lft`,`rgt`),
  KEY `name` (`name`),
  KEY `idlevel` (`idlevel`),
  KEY `lft` (`lft`),
  KEY `rgt` (`rgt`),
  KEY `parent` (`parent`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mdm_metering_points_groups`
--


--
-- Table structure for table `mdm_metering_points_groups_data`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `mdm_metering_points_groups_data` (
  `id` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  `data_main` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `data_main_date` datetime DEFAULT NULL,
  `data_main_prev` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `data_main_date_prev` datetime DEFAULT NULL,
  `data_main_increase` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `TS` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mdm_metering_points_groups_data`
--


--
-- Table structure for table `mdm_metering_points_groups_data_day_log`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `mdm_metering_points_groups_data_day_log` (
  `id` int NOT NULL AUTO_INCREMENT,
  `idgroup` int NOT NULL,
  `day` date NOT NULL,
  `data_main_date` datetime DEFAULT NULL,
  `data_main_increase` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `data_summary` varchar(450) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `data` text COLLATE utf8mb4_unicode_ci,
  `TS` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `idgroup_day` (`idgroup`,`day`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mdm_metering_points_groups_data_day_log`
--


--
-- Table structure for table `mdm_metering_points_groups_data_month_log`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `mdm_metering_points_groups_data_month_log` (
  `id` int NOT NULL AUTO_INCREMENT,
  `idgroup` int NOT NULL,
  `month` int NOT NULL,
  `data_main` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `data_main_date` datetime DEFAULT NULL,
  `data_main_increase` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `data_summary` varchar(450) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `data` text COLLATE utf8mb4_unicode_ci,
  `TS` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `idgroup_month` (`idgroup`,`month`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mdm_metering_points_groups_data_month_log`
--


--
-- Table structure for table `mdm_meters`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `mdm_meters` (
  `id` int NOT NULL AUTO_INCREMENT,
  `iddevice` int DEFAULT NULL,
  `utilityIdMeter` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `BUS_iddevice` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `BUS_type` int DEFAULT NULL,
  `manufacturer` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `model` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `protocolConfig` json DEFAULT NULL,
  `protocolConfigDate` datetime DEFAULT NULL,
  `CTS` datetime DEFAULT CURRENT_TIMESTAMP,
  `descriptors_BUS` text COLLATE utf8mb4_unicode_ci,
  `image_name` varchar(128) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `GPS_lat` decimal(25,20) DEFAULT NULL,
  `GPS_lng` decimal(25,20) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `BUS_iddevice_UNIQUE` (`BUS_iddevice`),
  KEY `iddevice` (`iddevice`),
  KEY `BUS_iddevice` (`BUS_iddevice`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mdm_meters`
--

INSERT INTO `mdm_meters` VALUES (1,678912345,'678912345_m2','678912345_MD2',2,'KROHNE','WAFX3070','{\"parity\": \"Even\", \"framing\": \"8,N,1\", \"slaveId\": \"1\", \"baudrate\": 9600, \"meterBrand\": \"KROHNE\", \"meterModel\": \"WAFX3070\", \"protocolType\": \"modbus\"}','2024-12-13 12:17:53','2024-12-13 11:58:11',NULL,NULL,NULL,NULL),(2,678912345,'678912345_m1','678912345_MD1',2,'KROHNE','WAFX3070','{\"parity\": \"Even\", \"framing\": \"8,N,1\", \"slaveId\": \"1\", \"baudrate\": 9600, \"meterBrand\": \"KROHNE\", \"meterModel\": \"WAFX3070\", \"protocolType\": \"modbus\"}','2024-12-13 12:17:53','2024-12-13 11:58:11',NULL,NULL,NULL,NULL);

--
-- Table structure for table `mdm_meters_daily_summary`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `mdm_meters_daily_summary` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `BUS_iddevice` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  `iddevice` int DEFAULT NULL,
  `date` date NOT NULL,
  `BUS_type` tinyint DEFAULT NULL,
  `meterBrand` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `meterModel` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `idmetering` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `labels` varchar(150) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `measurements_date_last` datetime DEFAULT NULL,
  `last_days_sendings` json DEFAULT NULL,
  `protocolConfig` json DEFAULT NULL,
  `CTS` datetime DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`,`date`),
  KEY `date` (`date`),
  KEY `iddevice` (`iddevice`),
  KEY `BUS_iddevice` (`BUS_iddevice`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
/*!50500 PARTITION BY RANGE  COLUMNS(`date`)
(PARTITION p202407 VALUES LESS THAN ('2024-07-23') ENGINE = InnoDB,
 PARTITION p20240723 VALUES LESS THAN ('2024-07-24') ENGINE = InnoDB,
 PARTITION p20240724 VALUES LESS THAN ('2024-07-25') ENGINE = InnoDB,
 PARTITION p20240725 VALUES LESS THAN ('2024-07-26') ENGINE = InnoDB,
 PARTITION p20240726 VALUES LESS THAN ('2024-07-27') ENGINE = InnoDB,
 PARTITION p20240727 VALUES LESS THAN ('2024-07-28') ENGINE = InnoDB,
 PARTITION p20240728 VALUES LESS THAN ('2024-07-29') ENGINE = InnoDB,
 PARTITION p20240729 VALUES LESS THAN ('2024-07-30') ENGINE = InnoDB,
 PARTITION p20240730 VALUES LESS THAN ('2024-07-31') ENGINE = InnoDB,
 PARTITION p20240731 VALUES LESS THAN ('2024-08-01') ENGINE = InnoDB,
 PARTITION p20240801 VALUES LESS THAN ('2024-08-02') ENGINE = InnoDB,
 PARTITION p20240802 VALUES LESS THAN ('2024-08-03') ENGINE = InnoDB,
 PARTITION p20240803 VALUES LESS THAN ('2024-08-04') ENGINE = InnoDB,
 PARTITION p20240804 VALUES LESS THAN ('2024-08-05') ENGINE = InnoDB,
 PARTITION p20240805 VALUES LESS THAN ('2024-08-06') ENGINE = InnoDB,
 PARTITION p20240806 VALUES LESS THAN ('2024-08-07') ENGINE = InnoDB,
 PARTITION p20240807 VALUES LESS THAN ('2024-08-08') ENGINE = InnoDB,
 PARTITION p20240808 VALUES LESS THAN ('2024-08-09') ENGINE = InnoDB,
 PARTITION p20240809 VALUES LESS THAN ('2024-08-10') ENGINE = InnoDB,
 PARTITION p20240810 VALUES LESS THAN ('2024-08-11') ENGINE = InnoDB,
 PARTITION p20240811 VALUES LESS THAN ('2024-08-12') ENGINE = InnoDB,
 PARTITION p20240812 VALUES LESS THAN ('2024-08-13') ENGINE = InnoDB,
 PARTITION p20240813 VALUES LESS THAN ('2024-08-14') ENGINE = InnoDB,
 PARTITION p20240814 VALUES LESS THAN ('2024-08-15') ENGINE = InnoDB,
 PARTITION p20240815 VALUES LESS THAN ('2024-08-16') ENGINE = InnoDB,
 PARTITION p20240816 VALUES LESS THAN ('2024-08-17') ENGINE = InnoDB,
 PARTITION p20240817 VALUES LESS THAN ('2024-08-18') ENGINE = InnoDB,
 PARTITION p20240818 VALUES LESS THAN ('2024-08-19') ENGINE = InnoDB,
 PARTITION p20240819 VALUES LESS THAN ('2024-08-20') ENGINE = InnoDB,
 PARTITION p20240820 VALUES LESS THAN ('2024-08-21') ENGINE = InnoDB,
 PARTITION p20240821 VALUES LESS THAN ('2024-08-22') ENGINE = InnoDB,
 PARTITION p20240822 VALUES LESS THAN ('2024-08-23') ENGINE = InnoDB,
 PARTITION p20240823 VALUES LESS THAN ('2024-08-24') ENGINE = InnoDB,
 PARTITION p20240824 VALUES LESS THAN ('2024-08-25') ENGINE = InnoDB,
 PARTITION p20240825 VALUES LESS THAN ('2024-08-26') ENGINE = InnoDB,
 PARTITION p20240826 VALUES LESS THAN ('2024-08-27') ENGINE = InnoDB,
 PARTITION p20240827 VALUES LESS THAN ('2024-08-28') ENGINE = InnoDB,
 PARTITION p20240828 VALUES LESS THAN ('2024-08-29') ENGINE = InnoDB,
 PARTITION p20240829 VALUES LESS THAN ('2024-08-30') ENGINE = InnoDB,
 PARTITION p20240830 VALUES LESS THAN ('2024-08-31') ENGINE = InnoDB,
 PARTITION p20240831 VALUES LESS THAN ('2024-09-01') ENGINE = InnoDB,
 PARTITION p20240901 VALUES LESS THAN ('2024-09-02') ENGINE = InnoDB,
 PARTITION p20240902 VALUES LESS THAN ('2024-09-03') ENGINE = InnoDB,
 PARTITION p20240903 VALUES LESS THAN ('2024-09-04') ENGINE = InnoDB,
 PARTITION p20240904 VALUES LESS THAN ('2024-09-05') ENGINE = InnoDB,
 PARTITION p20240905 VALUES LESS THAN ('2024-09-06') ENGINE = InnoDB,
 PARTITION p20240906 VALUES LESS THAN ('2024-09-07') ENGINE = InnoDB,
 PARTITION p20240907 VALUES LESS THAN ('2024-09-08') ENGINE = InnoDB,
 PARTITION p20240908 VALUES LESS THAN ('2024-09-09') ENGINE = InnoDB,
 PARTITION p20240909 VALUES LESS THAN ('2024-09-10') ENGINE = InnoDB,
 PARTITION p20240910 VALUES LESS THAN ('2024-09-11') ENGINE = InnoDB,
 PARTITION p20240911 VALUES LESS THAN ('2024-09-12') ENGINE = InnoDB,
 PARTITION p20240912 VALUES LESS THAN ('2024-09-13') ENGINE = InnoDB,
 PARTITION p20240913 VALUES LESS THAN ('2024-09-14') ENGINE = InnoDB,
 PARTITION p20240914 VALUES LESS THAN ('2024-09-15') ENGINE = InnoDB,
 PARTITION p202409 VALUES LESS THAN ('2024-09-20') ENGINE = InnoDB,
 PARTITION p20240920 VALUES LESS THAN ('2024-09-21') ENGINE = InnoDB,
 PARTITION p20240921 VALUES LESS THAN ('2024-09-22') ENGINE = InnoDB,
 PARTITION p20240922 VALUES LESS THAN ('2024-09-23') ENGINE = InnoDB,
 PARTITION p20240923 VALUES LESS THAN ('2024-09-24') ENGINE = InnoDB,
 PARTITION p20240924 VALUES LESS THAN ('2024-09-25') ENGINE = InnoDB,
 PARTITION p20240925 VALUES LESS THAN ('2024-09-26') ENGINE = InnoDB,
 PARTITION p20240926 VALUES LESS THAN ('2024-09-27') ENGINE = InnoDB,
 PARTITION p20240927 VALUES LESS THAN ('2024-09-28') ENGINE = InnoDB,
 PARTITION p20240928 VALUES LESS THAN ('2024-09-29') ENGINE = InnoDB,
 PARTITION p20240929 VALUES LESS THAN ('2024-09-30') ENGINE = InnoDB,
 PARTITION p20240930 VALUES LESS THAN ('2024-10-01') ENGINE = InnoDB,
 PARTITION p20241001 VALUES LESS THAN ('2024-10-02') ENGINE = InnoDB,
 PARTITION p20241002 VALUES LESS THAN ('2024-10-03') ENGINE = InnoDB,
 PARTITION p20241003 VALUES LESS THAN ('2024-10-04') ENGINE = InnoDB,
 PARTITION p20241004 VALUES LESS THAN ('2024-10-05') ENGINE = InnoDB,
 PARTITION p20241005 VALUES LESS THAN ('2024-10-06') ENGINE = InnoDB,
 PARTITION p20241006 VALUES LESS THAN ('2024-10-07') ENGINE = InnoDB,
 PARTITION p20241007 VALUES LESS THAN ('2024-10-08') ENGINE = InnoDB,
 PARTITION p20241008 VALUES LESS THAN ('2024-10-09') ENGINE = InnoDB,
 PARTITION p20241009 VALUES LESS THAN ('2024-10-10') ENGINE = InnoDB,
 PARTITION p20241010 VALUES LESS THAN ('2024-10-11') ENGINE = InnoDB,
 PARTITION p20241011 VALUES LESS THAN ('2024-10-12') ENGINE = InnoDB,
 PARTITION p20241012 VALUES LESS THAN ('2024-10-13') ENGINE = InnoDB,
 PARTITION p20241013 VALUES LESS THAN ('2024-10-14') ENGINE = InnoDB,
 PARTITION p20241014 VALUES LESS THAN ('2024-10-15') ENGINE = InnoDB,
 PARTITION p20241015 VALUES LESS THAN ('2024-10-16') ENGINE = InnoDB,
 PARTITION p20241016 VALUES LESS THAN ('2024-10-17') ENGINE = InnoDB,
 PARTITION p20241017 VALUES LESS THAN ('2024-10-18') ENGINE = InnoDB,
 PARTITION p20241018 VALUES LESS THAN ('2024-10-19') ENGINE = InnoDB,
 PARTITION p20241019 VALUES LESS THAN ('2024-10-20') ENGINE = InnoDB,
 PARTITION p20241020 VALUES LESS THAN ('2024-10-21') ENGINE = InnoDB,
 PARTITION p20241021 VALUES LESS THAN ('2024-10-22') ENGINE = InnoDB,
 PARTITION p20241022 VALUES LESS THAN ('2024-10-23') ENGINE = InnoDB,
 PARTITION p20241023 VALUES LESS THAN ('2024-10-24') ENGINE = InnoDB,
 PARTITION p20241024 VALUES LESS THAN ('2024-10-25') ENGINE = InnoDB,
 PARTITION p20241025 VALUES LESS THAN ('2024-10-26') ENGINE = InnoDB,
 PARTITION p20241026 VALUES LESS THAN ('2024-10-27') ENGINE = InnoDB,
 PARTITION p20241027 VALUES LESS THAN ('2024-10-28') ENGINE = InnoDB,
 PARTITION p20241028 VALUES LESS THAN ('2024-10-29') ENGINE = InnoDB,
 PARTITION p20241029 VALUES LESS THAN ('2024-10-30') ENGINE = InnoDB,
 PARTITION p20241030 VALUES LESS THAN ('2024-10-31') ENGINE = InnoDB,
 PARTITION p20241031 VALUES LESS THAN ('2024-11-01') ENGINE = InnoDB,
 PARTITION p20241101 VALUES LESS THAN ('2024-11-02') ENGINE = InnoDB,
 PARTITION p20241102 VALUES LESS THAN ('2024-11-03') ENGINE = InnoDB,
 PARTITION p20241103 VALUES LESS THAN ('2024-11-04') ENGINE = InnoDB,
 PARTITION p20241104 VALUES LESS THAN ('2024-11-05') ENGINE = InnoDB,
 PARTITION p20241105 VALUES LESS THAN ('2024-11-06') ENGINE = InnoDB,
 PARTITION p20241106 VALUES LESS THAN ('2024-11-07') ENGINE = InnoDB,
 PARTITION p20241107 VALUES LESS THAN ('2024-11-08') ENGINE = InnoDB,
 PARTITION p20241108 VALUES LESS THAN ('2024-11-09') ENGINE = InnoDB,
 PARTITION p20241109 VALUES LESS THAN ('2024-11-10') ENGINE = InnoDB,
 PARTITION p20241110 VALUES LESS THAN ('2024-11-11') ENGINE = InnoDB,
 PARTITION p20241111 VALUES LESS THAN ('2024-11-12') ENGINE = InnoDB,
 PARTITION p20241112 VALUES LESS THAN ('2024-11-13') ENGINE = InnoDB,
 PARTITION pMAX VALUES LESS THAN (MAXVALUE) ENGINE = InnoDB) */;

--
-- Dumping data for table `mdm_meters_daily_summary`
--

INSERT INTO `mdm_meters_daily_summary` VALUES (1,'1',678912345,'2024-12-11',2,NULL,NULL,NULL,'2,5,10,13,18,','2024-12-11 11:07:26','{\"0\": 14, \"1\": null, \"2\": null, \"3\": null, \"4\": null, \"5\": null, \"6\": null}',NULL,'2024-12-12 03:32:02'),(2,'240411279215B20',485096706,'2024-12-11',1,'HYDRUS','HYD171',NULL,'6,9,13,17,3,','2024-12-11 11:26:26','{\"0\": null, \"1\": null, \"2\": null, \"3\": null, \"4\": null, \"5\": null, \"6\": null}','{\"address\": \"240411279215B207\", \"baudrate\": 2400, \"meterBrand\": \"HYDRUS\", \"meterModel\": \"HYD171\", \"protocolType\": \"mbus\"}','2024-12-12 03:32:02'),(3,'240411279215B20',485096706,'2024-12-11',1,'ITRON','ECHODIS',NULL,'6,9,13,17,3,','2024-12-11 11:26:26','{\"0\": null, \"1\": null, \"2\": null, \"3\": null, \"4\": null, \"5\": null, \"6\": null}','{\"address\": \"240411279215B207\", \"baudrate\": 2400, \"meterBrand\": \"ITRON\", \"meterModel\": \"ECHODIS\", \"protocolType\": \"mbus\"}','2024-12-12 03:32:02'),(4,'1',678912345,'2024-12-12',2,NULL,NULL,NULL,'2,5,10,13,18,','2024-12-11 11:07:26','{\"0\": null, \"1\": 14, \"2\": null, \"3\": null, \"4\": null, \"5\": null, \"6\": null}',NULL,'2024-12-13 03:32:03'),(5,'240411279215B20',485096706,'2024-12-12',1,'HYDRUS','HYD171',NULL,'6,9,13,17,3,','2024-12-11 11:26:26','{\"0\": null, \"1\": null, \"2\": null, \"3\": null, \"4\": null, \"5\": null, \"6\": null}','{\"address\": \"240411279215B207\", \"baudrate\": 2400, \"meterBrand\": \"HYDRUS\", \"meterModel\": \"HYD171\", \"protocolType\": \"mbus\"}','2024-12-13 03:32:03'),(6,'240411279215B20',485096706,'2024-12-12',1,'ITRON','ECHODIS',NULL,'6,9,13,17,3,','2024-12-11 11:26:26','{\"0\": null, \"1\": null, \"2\": null, \"3\": null, \"4\": null, \"5\": null, \"6\": null}','{\"address\": \"240411279215B207\", \"baudrate\": 2400, \"meterBrand\": \"ITRON\", \"meterModel\": \"ECHODIS\", \"protocolType\": \"mbus\"}','2024-12-13 03:32:03'),(7,'240411279215B20',485096706,'2024-12-13',1,'HYDRUS','HYD171',NULL,'6,9,13,17,3,','2024-12-13 07:55:41','{\"0\": null, \"1\": null, \"2\": null, \"3\": null, \"4\": null, \"5\": null, \"6\": null}','{\"address\": \"240411279215B20\", \"baudrate\": 2400, \"meterBrand\": \"HYDRUS\", \"meterModel\": \"HYD171\", \"protocolType\": \"mbus\"}','2024-12-14 03:32:03'),(8,'240411279215B20',485096706,'2024-12-13',1,'HYDRUS','HYD171',NULL,'6,9,13,17,3,','2024-12-13 07:55:42','{\"0\": null, \"1\": null, \"2\": null, \"3\": null, \"4\": null, \"5\": null, \"6\": null}','{\"address\": \"240411279215B207\", \"baudrate\": 2400, \"meterBrand\": \"HYDRUS\", \"meterModel\": \"HYD171\", \"protocolType\": \"mbus\"}','2024-12-14 03:32:03'),(9,'240411279215B20',485096706,'2024-12-13',1,'ITRON','ECHODIS',NULL,'6,9,13,17,3,','2024-12-13 07:55:42','{\"0\": null, \"1\": null, \"2\": null, \"3\": null, \"4\": null, \"5\": null, \"6\": null}','{\"address\": \"240411279215B207\", \"baudrate\": 2400, \"meterBrand\": \"ITRON\", \"meterModel\": \"ECHODIS\", \"protocolType\": \"mbus\"}','2024-12-14 03:32:03'),(10,'678912345_MD2',678912345,'2024-12-13',2,'KROHNE','WAFX3070',NULL,'6,9,13,18,3,','2024-12-13 12:08:21','{\"0\": null, \"1\": null, \"2\": null, \"3\": null, \"4\": null, \"5\": null, \"6\": null}','{\"parity\": \"Even\", \"framing\": \"8,N,1\", \"slaveId\": \"1\", \"baudrate\": 9600, \"meterBrand\": \"KROHNE\", \"meterModel\": \"WAFX3070\", \"protocolType\": \"modbus\"}','2024-12-14 03:32:03'),(11,'678912345_MD1',678912345,'2024-12-13',2,'KROHNE','WAFX3070',NULL,'6,9,13,18,3,','2024-12-13 12:16:05','{\"0\": null, \"1\": null, \"2\": null, \"3\": null, \"4\": null, \"5\": null, \"6\": null}','{\"parity\": \"Even\", \"framing\": \"8,N,1\", \"slaveId\": \"1\", \"baudrate\": 9600, \"meterBrand\": \"KROHNE\", \"meterModel\": \"WAFX3070\", \"protocolType\": \"modbus\"}','2024-12-14 03:32:03'),(12,'240411279215B20',485096706,'2024-12-14',1,'HYDRUS','HYD171',NULL,'6,9,13,17,3,','2024-12-13 07:55:41','{\"0\": null, \"1\": null, \"2\": null, \"3\": null, \"4\": null, \"5\": null, \"6\": null}','{\"address\": \"240411279215B20\", \"baudrate\": 2400, \"meterBrand\": \"HYDRUS\", \"meterModel\": \"HYD171\", \"protocolType\": \"mbus\"}','2024-12-15 03:32:03'),(13,'240411279215B20',485096706,'2024-12-14',1,'HYDRUS','HYD171',NULL,'6,9,13,17,3,','2024-12-13 07:55:42','{\"0\": null, \"1\": null, \"2\": null, \"3\": null, \"4\": null, \"5\": null, \"6\": null}','{\"address\": \"240411279215B207\", \"baudrate\": 2400, \"meterBrand\": \"HYDRUS\", \"meterModel\": \"HYD171\", \"protocolType\": \"mbus\"}','2024-12-15 03:32:03'),(14,'240411279215B20',485096706,'2024-12-14',1,'ITRON','ECHODIS',NULL,'6,9,13,17,3,','2024-12-13 07:55:42','{\"0\": null, \"1\": null, \"2\": null, \"3\": null, \"4\": null, \"5\": null, \"6\": null}','{\"address\": \"240411279215B207\", \"baudrate\": 2400, \"meterBrand\": \"ITRON\", \"meterModel\": \"ECHODIS\", \"protocolType\": \"mbus\"}','2024-12-15 03:32:03'),(15,'678912345_MD2',678912345,'2024-12-14',2,'KROHNE','WAFX3070',NULL,'6,9,13,18,3,','2024-12-13 12:08:21','{\"0\": null, \"1\": null, \"2\": null, \"3\": null, \"4\": null, \"5\": null, \"6\": null}','{\"parity\": \"Even\", \"framing\": \"8,N,1\", \"slaveId\": \"1\", \"baudrate\": 9600, \"meterBrand\": \"KROHNE\", \"meterModel\": \"WAFX3070\", \"protocolType\": \"modbus\"}','2024-12-15 03:32:03'),(16,'678912345_MD1',678912345,'2024-12-14',2,'KROHNE','WAFX3070',NULL,'6,9,13,18,3,','2024-12-13 12:16:05','{\"0\": null, \"1\": null, \"2\": null, \"3\": null, \"4\": null, \"5\": null, \"6\": null}','{\"parity\": \"Even\", \"framing\": \"8,N,1\", \"slaveId\": \"1\", \"baudrate\": 9600, \"meterBrand\": \"KROHNE\", \"meterModel\": \"WAFX3070\", \"protocolType\": \"modbus\"}','2024-12-15 03:32:03'),(17,'240411279215B20',485096706,'2024-12-15',1,'HYDRUS','HYD171',NULL,'6,9,13,17,3,','2024-12-13 07:55:41','{\"0\": null, \"1\": null, \"2\": null, \"3\": null, \"4\": null, \"5\": null, \"6\": null}','{\"address\": \"240411279215B20\", \"baudrate\": 2400, \"meterBrand\": \"HYDRUS\", \"meterModel\": \"HYD171\", \"protocolType\": \"mbus\"}','2024-12-16 03:32:03'),(18,'240411279215B20',485096706,'2024-12-15',1,'HYDRUS','HYD171',NULL,'6,9,13,17,3,','2024-12-13 07:55:42','{\"0\": null, \"1\": null, \"2\": null, \"3\": null, \"4\": null, \"5\": null, \"6\": null}','{\"address\": \"240411279215B207\", \"baudrate\": 2400, \"meterBrand\": \"HYDRUS\", \"meterModel\": \"HYD171\", \"protocolType\": \"mbus\"}','2024-12-16 03:32:03'),(19,'240411279215B20',485096706,'2024-12-15',1,'ITRON','ECHODIS',NULL,'6,9,13,17,3,','2024-12-13 07:55:42','{\"0\": null, \"1\": null, \"2\": null, \"3\": null, \"4\": null, \"5\": null, \"6\": null}','{\"address\": \"240411279215B207\", \"baudrate\": 2400, \"meterBrand\": \"ITRON\", \"meterModel\": \"ECHODIS\", \"protocolType\": \"mbus\"}','2024-12-16 03:32:03'),(20,'678912345_MD2',678912345,'2024-12-15',2,'KROHNE','WAFX3070',NULL,'6,9,13,18,3,','2024-12-13 12:08:21','{\"0\": null, \"1\": null, \"2\": null, \"3\": null, \"4\": null, \"5\": null, \"6\": null}','{\"parity\": \"Even\", \"framing\": \"8,N,1\", \"slaveId\": \"1\", \"baudrate\": 9600, \"meterBrand\": \"KROHNE\", \"meterModel\": \"WAFX3070\", \"protocolType\": \"modbus\"}','2024-12-16 03:32:03'),(21,'678912345_MD1',678912345,'2024-12-15',2,'KROHNE','WAFX3070',NULL,'6,9,13,18,3,','2024-12-13 12:16:05','{\"0\": null, \"1\": null, \"2\": null, \"3\": null, \"4\": null, \"5\": null, \"6\": null}','{\"parity\": \"Even\", \"framing\": \"8,N,1\", \"slaveId\": \"1\", \"baudrate\": 9600, \"meterBrand\": \"KROHNE\", \"meterModel\": \"WAFX3070\", \"protocolType\": \"modbus\"}','2024-12-16 03:32:03');

--
-- Table structure for table `mdm_meters_daily_summary_grouped`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `mdm_meters_daily_summary_grouped` (
  `id` int NOT NULL AUTO_INCREMENT,
  `date` date DEFAULT NULL,
  `idgroup` int DEFAULT NULL,
  `summary` json DEFAULT NULL,
  `meterModels` json DEFAULT NULL,
  `CTS` datetime DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `date` (`date`),
  KEY `idgroup` (`idgroup`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mdm_meters_daily_summary_grouped`
--


--
-- Table structure for table `mdm_meters_daily_summary_labels`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `mdm_meters_daily_summary_labels` (
  `id` int NOT NULL AUTO_INCREMENT,
  `label` varchar(450) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mdm_meters_daily_summary_labels`
--


--
-- Table structure for table `mdm_points_assignment_history`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `mdm_points_assignment_history` (
  `id` int NOT NULL AUTO_INCREMENT,
  `idMeteringPoint` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `idmeter` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `assigned_date` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mdm_points_assignment_history`
--


--
-- Table structure for table `mdm_premises`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `mdm_premises` (
  `id` int NOT NULL AUTO_INCREMENT,
  `description` varchar(450) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `idPremiseType` int NOT NULL,
  `idLocation` int NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mdm_premises`
--


--
-- Table structure for table `mdm_premises_groupLayer_group_relation`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `mdm_premises_groupLayer_group_relation` (
  `idgroupLayer` int NOT NULL,
  `idgroup` int NOT NULL,
  PRIMARY KEY (`idgroupLayer`,`idgroup`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mdm_premises_groupLayer_group_relation`
--


--
-- Table structure for table `mdm_premises_locations`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `mdm_premises_locations` (
  `id` int NOT NULL AUTO_INCREMENT,
  `idparent` int DEFAULT NULL,
  `name` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  `idLayer` int NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mdm_premises_locations`
--


--
-- Table structure for table `mdm_premises_locations_layers`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `mdm_premises_locations_layers` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  `idLayer` int DEFAULT NULL,
  `idgroupLayer` int DEFAULT NULL,
  `high` int DEFAULT NULL,
  `requiered` tinyint NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `unique_high_idgroup` (`high`,`idgroupLayer`,`idLayer`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mdm_premises_locations_layers`
--


--
-- Table structure for table `mdm_premises_types`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `mdm_premises_types` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mdm_premises_types`
--


--
-- Table structure for table `mdm_reports_requests`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `mdm_reports_requests` (
  `id` int NOT NULL AUTO_INCREMENT,
  `date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `iduser` int NOT NULL,
  `idsession` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `filter` json NOT NULL,
  `status` int NOT NULL DEFAULT '0',
  `filename` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `date` (`date`),
  KEY `iduser` (`iduser`),
  KEY `status` (`status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mdm_reports_requests`
--


--
-- Table structure for table `measurements_log`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `measurements_log` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `iddevice` int NOT NULL,
  `date` datetime NOT NULL,
  `start_date` datetime DEFAULT NULL,
  `power_active` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `power_reactive` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `power_apparent` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `power_factor` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `energy` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `switching_on` int NOT NULL DEFAULT '0',
  `switch_on_time` bigint NOT NULL DEFAULT '0',
  `voltage` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `current` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `line_impedance` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `battery_status` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `input1` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `input2` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `input3` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `input4` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `input5` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `input6` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `input7` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `input8` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `input9` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `input10` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `frequency` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `power_active2` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `power_reactive2` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `voltage2` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `current2` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `power_active3` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `power_reactive3` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `voltage3` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `current3` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `energy_reactive` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `power_factor2` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `power_factor3` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `power_active1` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `power_reactive1` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `power_factor1` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `voltage1` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `current1` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `energy_3phase` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `energy_reactive_3phase` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `power_factor_total` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `logged_by` varchar(450) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `idtrigger_type` int DEFAULT NULL,
  `idmode` int DEFAULT NULL,
  `idstatus` int DEFAULT NULL,
  `dimmer` int DEFAULT NULL,
  `modbus_idslave` int DEFAULT '0',
  `gross_measure` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `iddevice` (`iddevice`),
  KEY `date` (`date`),
  KEY `ts` (`ts`),
  KEY `modbus_idslave` (`modbus_idslave`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `measurements_log`
--


--
-- Table structure for table `measurements_log_altered`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `measurements_log_altered` (
  `id` int NOT NULL AUTO_INCREMENT,
  `date` datetime DEFAULT NULL,
  `iddevice` int DEFAULT NULL,
  `measures_original` text COLLATE utf8mb4_unicode_ci,
  `measures_altered` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `altered_by` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `date` (`date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `measurements_log_altered`
--


--
-- Table structure for table `measurements_log_flash`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `measurements_log_flash` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `iddevice` int NOT NULL,
  `date` datetime NOT NULL,
  `start_date` datetime DEFAULT NULL,
  `power_active` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `power_reactive` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `power_apparent` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `power_factor` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `energy` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `switching_on` int NOT NULL DEFAULT '0',
  `switch_on_time` bigint NOT NULL DEFAULT '0',
  `voltage` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `current` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `line_impedance` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `battery_status` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `input1` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `input2` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `input3` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `input4` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `input5` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `input6` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `input7` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `input8` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `input9` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `input10` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `frequency` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `power_active2` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `power_reactive2` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `voltage2` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `current2` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `power_active3` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `power_reactive3` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `voltage3` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `current3` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `energy_reactive` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `power_factor2` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `power_factor3` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `power_active1` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `power_reactive1` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `power_factor1` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `voltage1` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `current1` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `energy_3phase` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `energy_reactive_3phase` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `power_factor_total` decimal(25,5) NOT NULL DEFAULT '0.00000',
  `logged_by` varchar(450) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `idtrigger_type` int DEFAULT NULL,
  `idmode` int DEFAULT NULL,
  `idstatus` int DEFAULT NULL,
  `dimmer` int DEFAULT NULL,
  `modbus_idslave` int DEFAULT '0',
  `gross_measure` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `iddevice` (`iddevice`),
  KEY `date` (`date`),
  KEY `ts` (`ts`),
  KEY `modbus_idslave` (`modbus_idslave`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `measurements_log_flash`
--


--
-- Table structure for table `measurements_modes`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `measurements_modes` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` varchar(450) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `frecuency` time DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `measurements_modes`
--


--
-- Table structure for table `measurements_trigger_types`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `measurements_trigger_types` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` varchar(450) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `measurements_trigger_types`
--


--
-- Table structure for table `middleware_BUS_devices_types`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `middleware_BUS_devices_types` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `version` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `medium` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'water',
  `csv_headers` text COLLATE utf8mb4_unicode_ci,
  `csv_fields_description` text COLLATE utf8mb4_unicode_ci,
  `idfield_partner_id` int DEFAULT NULL,
  `rawTelegram_data_fields` int DEFAULT NULL,
  `idEndPoint_alternative` int DEFAULT NULL,
  `frame_data_format` varchar(450) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `frame_data_profile_parser` text COLLATE utf8mb4_unicode_ci,
  `frame_data_events_parser` text COLLATE utf8mb4_unicode_ci,
  `EF_field` tinyint DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `name` (`name`),
  KEY `version` (`version`)
) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `middleware_BUS_devices_types`
--

INSERT INTO `middleware_BUS_devices_types` VALUES (1,'ELR','1','water','#serial-number;device-identification;created;value-data-count;manufacturer;version;device-type;access-number;status;signature;dif=0e,vif=13,unit=m3,description=volume,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=0e,vif=3b,unit=m3/h,description=volume-flow,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=0d,vif=fd10,description=customer-location,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=0e,vif=933c,unit=m3,description=volume-acc-of-abs-value-only-if-neg-contr,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=04,vif=6d,description=datetime,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=44,vif=6d,description=datetime,kind=inst-value,tariff=0,subunit=0,storagenumber=1;dif=4e,vif=13,unit=m3,description=volume,kind=inst-value,tariff=0,subunit=0,storagenumber=1;dif=0a,vif=67,unit=°C,description=ext-temp,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=948200,vif=6d,description=datetime,kind=max-value,tariff=0,subunit=0,storagenumber=4;dif=9a8200,vif=67,unit=°C,description=ext-temp,kind=max-value,tariff=0,subunit=0,storagenumber=4;dif=0a,vif=fd74,unit=day(s),description=remaining-battery-lifetime,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=0c,vif=26,unit=hour(s),description=op-time,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=3c,vif=26,unit=hour(s),description=op-time,kind=err-value,tariff=0,subunit=0,storagenumber=0;unit=level,description=signal-strength,kind=inst-value;unit=p,description=battery-capacity,kind=inst-value;dif=d48100,vif=6d,description=datetime,kind=max-value,tariff=0,subunit=0,storagenumber=3;dif=de8100,vif=3b,unit=m3/h,description=volume-flow,kind=max-value,tariff=0,subunit=0,storagenumber=3;dif=a48100,vif=6d,description=datetime,kind=min-value,tariff=0,subunit=0,storagenumber=2;dif=ae8100,vif=3b,unit=m3/h,description=volume-flow,kind=min-value,tariff=0,subunit=0,storagenumber=2;dif=cc8200,vif=b85c,unit=m3/h-second(s),description=volume-flow duration-of-last-upper-limit-exceeded,kind=inst-value,tariff=0,subunit=0,storagenumber=5;dif=8c03,vif=a56c,unit=minute(s),description=op-time value-during-upper-limit-exceeded,kind=inst-value,tariff=0,subunit=0,storagenumber=6;dif=01,vif=fd17,description=error-flags-dev-spec,kind=inst-value,tariff=0,subunit=0,storagenumber=0','Gateway SN;Meter ID;Telegram Date;Access Number;Manufacturer Code;Device Version;Device Type;Telegram Counter;Meter State;Signature;Total Volume;Flow Rate;Dewa ID;Reverse Volume;Date/Time;Special Read Date;Special Read Value;Module Temperature;Peak Temperature Date;Peak Temperature Value;Meter Battery Remaining;Operating Hours;Error Hours;Coverage;Battery;Peak Flow Rate Date;Peak Flow Rate Value;Minimum Flow Rate Date;Minimum Flow Rate Value;Last Overload Duration;Total Overload Duration;Alarm Code',13,23,NULL,NULL,'{\"meter/waterprofile\":{\"1\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"2\":{\"channel\": \"N_F\", \"magnitude\": \"\", \"unit\": \"m3/h\"}, \"8\":{\"channel\": \"F_Temp\", \"magnitude\": \"Cº\", \"unit\": \"ºC\"}, \"9\":{\"channel\": \"DAT\", \"magnitude\": \"\", \"unit\": \"\"}}}',NULL,1),(2,'BMI','5','water','#serial-number;device-identification;created;value-data-count;manufacturer;version;device-type;access-number;status;signature;dif=05,vif=13,unit=m3,description=volume,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=8540,vif=13,unit=m3,description=volume,kind=inst-value,tariff=0,subunit=1,storagenumber=0;dif=858040,vif=13,unit=m3,description=volume,kind=inst-value,tariff=0,subunit=2,storagenumber=0;dif=85c040,vif=13,unit=m3,description=volume,kind=inst-value,tariff=0,subunit=3,storagenumber=0;dif=85808040,vif=13,unit=m3,description=volume,kind=inst-value,tariff=0,subunit=4,storagenumber=0;dif=85c08040,vif=13,unit=m3,description=volume,kind=inst-value,tariff=0,subunit=5,storagenumber=0;dif=05,vif=7c,description=flow-velocity [mm/s],kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=05,vif=3c,unit=m3/h,description=volume-flow,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=0d,vif=fd11,description=customer,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=05,vif=5b,unit=°C,description=flow-temp,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=05,vif=67,unit=°C,description=ext-temp,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=04,vif=26,unit=hour(s),description=op-time,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=04,vif=a618,unit=hour(s),description=op-time data-error,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=01,vif=fd17,description=error-flags-dev-spec,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=04,vif=6d,description=datetime,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=05,vif=7c,description=Ah,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=45,vif=7c,description=Ah,kind=inst-value,tariff=0,subunit=0,storagenumber=1;dif=02,vif=7c,description=%,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=05,vif=fd6d,unit=day(s),description=operation-time-battery,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=02,vif=fd17,description=error-flags-dev-spec,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=04,vif=fd61,description=cum-counter,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=04,vif=964e,description=volume datetime-of-begin-of-last-upper-limit-exceeded,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=04,vif=964f,description=volume datetime-of-end-of-last-upper-limit-exceeded,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=04,vif=965e,unit=m3 hour(s),description=volume duration-of-last-upper-limit-exceeded,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=8407,vif=fd61,description=cum-counter,kind=inst-value,tariff=0,subunit=0,storagenumber=14;dif=c407,vif=fd61,description=cum-counter,kind=inst-value,tariff=0,subunit=0,storagenumber=15;dif=8408,vif=fd61,description=cum-counter,kind=inst-value,tariff=0,subunit=0,storagenumber=16;dif=c408,vif=fd61,description=cum-counter,kind=inst-value,tariff=0,subunit=0,storagenumber=17;dif=8408,vif=a618,unit=hour(s),description=op-time data-error,kind=inst-value,tariff=0,subunit=0,storagenumber=16','Gateway SN;Meter ID;Telegram Date;Access Number;Manufacturer Code;Device Version;Device Type;Telegram Counter;Meter State;Signature;Totalizer T1+;Totalizer T1-;Totalizer T1N;Totalizer T2+;Totalizer T2-;Totalizer T2N;Flow velocity;Flow rate;Customer Ident No;Medium temperature;Ambient temperature;Total operating time;Error timer;Alarm flags;Actual date and time;Used battery capacity;Intial battery capacity;Actual battery capacity;Remaining Battery lifetime;Error flags;Power on;Start flow overflow Q4;End flow overflow Q4;Flow overflow timer;Measuring error;Temp. out of range;Empty pipe;Flow overflow;Empty pipe timer\n',19,29,NULL,NULL,'{\"meter/waterprofile\":{\"1\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}}}',NULL,1),(3,'DME','112','water','#serial-number;device-identification;created;value-data-count;manufacturer;version;device-type;access-number;status;signature;dif=01,vif=fd08,description=access-number,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=0c,vif=78,description=fabrication-no,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=0d,vif=fd11,description=customer,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=0c,vif=13,unit=m3,description=volume,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=8c10,vif=13,unit=m3,description=volume,kind=inst-value,tariff=1,subunit=0,storagenumber=0;dif=0b,vif=3b,unit=m3/h,description=volume-flow,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=02,vif=5a,unit=°C,description=flow-temp,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=02,vif=66,unit=°C,description=ext-temp,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=02,vif=fd70,description=datetime-of-battery-change,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=0b,vif=26,unit=hour(s),description=op-time,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=0a,vif=a618,unit=hour(s),description=op-time data-error,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=04,vif=a46d,unit=second(s),description=op-time overflow-values,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=02,vif=fde16d,description=cum-counter overflow-values,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=04,vif=6d,description=datetime,kind=inst-value,tariff=0,subunit=0,storagenumber=0','Gateway SN;Meter ID;Telegram Date;Access Number;Manufacturer Code;Device Version;Device Type;Telegram Counter;Meter State;Signature;radio telegram counter;Meter number (MSN);ownership number (DSN);current volume;reverse volume;flow rate;medium temperature;ambient temperature;battery empty date;operating hours;error hours;overflow seconds counter;overflow event counter;current time;',0,13,NULL,NULL,'{\"meter/waterprofile\":{\"1\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"6\":{\"channel\": \"F_Temp\", \"magnitude\": \"Cº\", \"unit\": \"ºC\"}, \"8\":{\"channel\": \"DAT\", \"magnitude\": \"\", \"unit\": \"\"}}, \"meter/billingprofile\":{\"9\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"billing_date_iddata\":\"12\"}}','{\"status\":{\"2\":\"LEAK\", \"4\":\"LO_BATT\", \"8\":\"MEM_ERR\", \"16\":\"TEMP_OUT\", \"48\":\"AIR_PIPE\", \"80\":\"F_OVRFLW\", \"112\":\"MES_ERR\", \"144\":\"NO_CONS\", \"176\":\"R_FLOW\", \"208\":\"LO_TEMP\", \"240\":\"AIR_PIPE\"}}',1),(4,'BMI','32','water','#serial-number;device-identification;created;value-data-count;manufacturer;version;device-type;access-number;status;signature;dif=03,vif=74,unit=second(s),description=act-duration,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=04,vif=12,unit=m3,description=volume,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=44,vif=12,unit=m3,description=volume,kind=inst-value,tariff=0,subunit=0,storagenumber=1;dif=42,vif=6c,description=date,kind=inst-value,tariff=0,subunit=0,storagenumber=1;dif=02,vif=fd74,unit=day(s),description=remaining-battery-lifetime,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=04,vif=6d,description=datetime,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=04,vif=943c,unit=m3,description=volume acc-of-abs-value-only-if-neg-contr,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=04,vif=3a,unit=m3/h,description=volume-flow,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=01,vif=5b,unit=°C,description=flow-temp,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=0d,vif=fd11,description=customer,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=03,vif=26,unit=hour(s),description=op-time,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=03,vif=a6ff01,unit=hour(s),description=op-time manufacturer-specific-01,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=04,vif=ed4f,description=datetime datetime-of-end-of-last-upper-limit-exceeded,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=03,vif=a65e,unit=hour(s) hour(s),description=op-time duration-of-last-upper-limit-exceeded,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=01,vif=67,unit=°C,description=ext-temp,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=04,vif=fd17,description=error-flags-dev-spec,kind=inst-value,tariff=0,subunit=0,storagenumber=0','Gateway SN;Meter ID;Telegram Date;Access Number;Manufacturer Code;Device Version;Device Type;Telegram Counter;Meter State;signature;1.actuality duration;2.volume;3.volume;4.time point;5.parameter id;6.time point;7.volume acc;8.volume flow;9.flow temperature;10.parameter id;11.on time;12.on time;13.date-time;14.on time;15.external temp;16.parameter id',20,NULL,NULL,NULL,'{\"meter/waterprofile\":{\"1\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}}}',NULL,1),(5,'BMI','5','water','#serial-number;device-identification;created;value-data-count;manufacturer;version;device-type;access-number;status;signature;dif=05,vif=13,unit=m3,description=volume,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=8540,vif=13,unit=m3,description=volume,kind=inst-value,tariff=0,subunit=1,storagenumber=0;dif=858040,vif=13,unit=m3,description=volume,kind=inst-value,tariff=0,subunit=2,storagenumber=0;dif=85c040,vif=13,unit=m3,description=volume,kind=inst-value,tariff=0,subunit=3,storagenumber=0;dif=85808040,vif=13,unit=m3,description=volume,kind=inst-value,tariff=0,subunit=4,storagenumber=0;dif=85c08040,vif=13,unit=m3,description=volume,kind=inst-value,tariff=0,subunit=5,storagenumber=0;dif=05,vif=7c,description=flow-velocity [mm/s],kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=05,vif=3c,unit=m3/h,description=volume-flow,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=0d,vif=fd11,description=customer,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=04,vif=26,unit=hour(s),description=op-time,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=04,vif=a618,unit=hour(s),description=op-time data-error,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=01,vif=fd17,description=error-flags-dev-spec,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=04,vif=6d,description=datetime,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=05,vif=7c,description=Ah,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=45,vif=7c,description=Ah,kind=inst-value,tariff=0,subunit=0,storagenumber=1;dif=02,vif=7c,description=%,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=05,vif=fd6d,unit=day(s),description=operation-time-battery,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=02,vif=fd17,description=error-flags-dev-spec,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=04,vif=fd61,description=cum-counter,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=04,vif=964e,description=volume datetime-of-begin-of-last-upper-limit-exceeded,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=04,vif=964f,description=volume datetime-of-end-of-last-upper-limit-exceeded,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=04,vif=965e,unit=m3 hour(s),description=volume duration-of-last-upper-limit-exceeded,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=8407,vif=fd61,description=cum-counter,kind=inst-value,tariff=0,subunit=0,storagenumber=14;dif=c407,vif=fd61,description=cum-counter,kind=inst-value,tariff=0,subunit=0,storagenumber=15;dif=8408,vif=fd61,description=cum-counter,kind=inst-value,tariff=0,subunit=0,storagenumber=16;dif=c408,vif=fd61,description=cum-counter,kind=inst-value,tariff=0,subunit=0,storagenumber=17;dif=8408,vif=a618,unit=hour(s),description=op-time data-error,kind=inst-value,tariff=0,subunit=0,storagenumber=16','Gateway SN;Meter ID;Telegram Date;Access Number;Manufacturer Code;Device Version;Device Type;Telegram Counter;Meter State;Signature;Totalizer T1+;Totalizer T1-;Totalizer T1N;Totalizer T2+;Totalizer T2-;Totalizer T2N;Flow velocity;Flow rate;Customer Ident No;Total operating time;Error timer;Alarm flags;Actual date and time;Used battery capacity;Intial battery capacity;Actual battery capacity;Remaining Battery lifetime;Error flags;Power on;Start flow overflow Q4;End flow overflow Q4;Flow overflow timer;Measuring error;Temp. out of range;Empty pipe;Flow overflow;Empty pipe timer',19,27,NULL,NULL,'{\"meter/waterprofile\":{\"1\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"2\":{\"channel\": \"R_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"3\":{\"channel\": \"Fwd_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"8\":{\"channel\": \"N_F\", \"magnitude\": \"\", \"unit\": \"m3/h\"}, \"13\":{\"channel\": \"DAT\", \"magnitude\": \"\", \"unit\": \"\"}}}',NULL,1),(6,'BMI','5','water','#serial-number;device-identification;created;value-data-count;manufacturer;version;device-type;access-number;status;signature;dif=05,vif=13,unit=m3,description=volume,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=8540,vif=13,unit=m3,description=volume,kind=inst-value,tariff=0,subunit=1,storagenumber=0;dif=858040,vif=13,unit=m3,description=volume,kind=inst-value,tariff=0,subunit=2,storagenumber=0;dif=85c040,vif=13,unit=m3,description=volume,kind=inst-value,tariff=0,subunit=3,storagenumber=0;dif=85808040,vif=13,unit=m3,description=volume,kind=inst-value,tariff=0,subunit=4,storagenumber=0;dif=85c08040,vif=13,unit=m3,description=volume,kind=inst-value,tariff=0,subunit=5,storagenumber=0;dif=05,vif=7c,description=flow-velocity [mm/s],kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=05,vif=3c,unit=m3/h,description=volume-flow,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=0d,vif=fd11,description=customer,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=05,vif=5b,unit=°C,description=flow-temp,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=05,vif=67,unit=°C,description=ext-temp,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=04,vif=26,unit=hour(s),description=op-time,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=04,vif=a618,unit=hour(s),description=op-time data-error,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=01,vif=fd17,description=error-flags-dev-spec,kind=inst-value,tariff=0,subunit=0,storagenumber=0;dif=04,vif=6d,description=datetime,kind=inst-value,tariff=0,subunit=0,storagenumber=0','Gateway SN;Meter ID;Telegram Date;Access Number;Manufacturer Code;Device Version;Device Type;Telegram Counter;Meter State;Signature;Totalizer T1+;Totalizer T1-;Totalizer T1N;Totalizer T2+;Totalizer T2-;Totalizer T2N;Flow velocity;Flow rate;Customer Ident No;Medium temperature;Ambient temperature;Total operating time;Error timer;Alarm flags;Actual date and time',19,15,NULL,NULL,'{\"meter/waterprofile\":{\"1\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}}}',NULL,1),(7,'KAM','53','water','#','Fabrication number; Energy; Volume; Operating time; Flow temperature; Return temperature; Temperature difference; Power; Maximum power; Volume flow; Maximum volume flow; Energy; Energy; Volume; Volume; Energy; Time point; Energy; Volume; Maximum power; Maximum volume flow; Energy; Energy; Volume; Volume; Energy; Time point; Manufacturer data',0,28,NULL,NULL,'{\"meter/waterprofile\":{\"4\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"10\":{\"channel\": \"F_Temp\", \"magnitude\": \"Cº\", \"unit\": \"ºC\"}}}',NULL,4),(8,'ACW','12','water','#','Fabrication number; Volume; Volume Flow; Time Point;On Time;parameter set identification;parameter set identification;date-time reverse flow;manufacturer data',1,11,NULL,'{\"status\":\"dec2binary\"}','{\"meter/waterprofile\":{\"2\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}}}','{\"status\":{\"5\":\"R_FLOW\", \"6\":\"AIR_PIPE\", \"7\":\"F_OVRFLW\", \"8\":\"MEM_ERR\", \"9\":\"MES_ERR\", \"10\":\"HW_ERR\", \"12\":\"TAMPER\"}}',2),(9,'HYD','36','water','#','Gateway SN;Meter ID;Telegram Date;Access Number;Manufacturer Code;Device Version;Device Type;Telegram Counter;Meter State;Signature;radio telegram counter;Meter number (MSN);ownership number (DSN);current volume;reverse volume;flow rate;medium temperature;ambient temperature;battery empty date;operating hours;error hours;overflow seconds counter;overflow event counter;current time;',0,13,NULL,NULL,'{\"meter/waterprofile\":{\"1\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"4\":{\"channel\": \"N_F\", \"magnitude\": \"\", \"unit\": \"m3/h\"}, \"6\":{\"channel\": \"F_Temp\", \"magnitude\": \"Cº\", \"unit\": \"ºC\"}, \"8\":{\"channel\": \"DAT\", \"magnitude\": \"\", \"unit\": \"\"}}, \"meter/billingprofile\":{\"9\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"billing_date_iddata\":\"12\"}}','{\"status\":{\"2\":\"LEAK\", \"4\":\"LO_BATT\", \"8\":\"MEM_ERR\", \"16\":\"TEMP_OUT\", \"48\":\"AIR_PIPE\", \"80\":\"F_OVRFLW\", \"112\":\"MES_ERR\", \"144\":\"NO_CONS\", \"176\":\"R_FLOW\", \"208\":\"LO_TEMP\", \"240\":\"AIR_PIPE\"}}',1),(10,'ELR','178','water','#','Volume;Time Point;Time Point;Volume;Time Point;Volume;Time Point;Volume Flow;Volume Flow;Time Point;Time Point;Manufacturer Data ',0,12,NULL,NULL,'{\"meter/waterprofile\":{\"1\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}}}',NULL,1),(11,'DME','112','water','#','Gateway SN;Meter ID;Telegram Date;Access Number;Manufacturer Code;Device Version;Device Type;Telegram Counter;Meter State;Signature;radio telegram counter;Meter number (MSN);ownership number (DSN);current volume;reverse volume;flow rate;medium temperature;ambient temperature;battery empty date;operating hours;error hours;overflow seconds counter;overflow event counter;current time;',0,16,NULL,NULL,'{\"meter/waterprofile\":{\"2\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"5\":{\"channel\": \"F_Temp\", \"magnitude\": \"Cº\", \"unit\": \"ºC\"}}, \"meter/billingprofile\":{\"14\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"billing_date_iddata\":\"13\"}}','{\"status\":{\"2\":\"LEAK\", \"4\":\"LO_BATT\", \"8\":\"MEM_ERR\", \"16\":\"TEMP_OUT\", \"48\":\"AIR_PIPE\", \"80\":\"F_OVRFLW\", \"112\":\"MES_ERR\", \"144\":\"NO_CONS\", \"176\":\"R_FLOW\", \"208\":\"LO_TEMP\", \"240\":\"AIR_PIPE\"}}',2),(12,'KAM','29','water','#','Fabrication number; Energy; Volume; Operating time; Flow temperature; Return temperature; Temperature difference; Power; Maximum power; Volume flow; Maximum volume flow; Energy; Energy; Volume; Volume; Energy; Time point; Energy; Volume; Maximum power; Maximum volume flow; Energy; Energy; Volume; Volume; Energy; Time point; Manufacturer data',0,27,NULL,'{\"status\":\"dec2binary\"}','{\"meter/waterprofile\":{\"1\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"4\":{\"channel\": \"N_F\", \"magnitude\": \"\", \"unit\": \"m3/h\"}, \"5\":{\"channel\": \"F_Temp\", \"magnitude\": \"Cº\", \"unit\": \"ºC\"}, \"14\":{\"channel\": \"DAT\", \"magnitude\": \"\", \"unit\": \"\"}}}','{\"status\":{\"1\":\"AIR_PIPE\", \"2\":\"R_FLOW\", \"3\":\"LEAK\"}}',1),(13,'DME','112','hot water','#','access number;volume;volume;volume flow;flow temperature;parameter set identification;volume;volume;volume;time point;external temperature\n',0,11,NULL,NULL,'{\"meter/waterprofile\":{\"2\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"4\":{\"channel\": \"N_F\", \"magnitude\": \"\", \"unit\": \"m3/h\"}, \"11\":{\"channel\": \"F_Temp\", \"magnitude\": \"Cº\", \"unit\": \"ºC\"}}, \"meter/billingprofile\":{\"7\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"billing_date_iddata\":\"10\"}}','{\"status\":{\"2\":\"LEAK\", \"4\":\"LO_BATT\", \"8\":\"MEM_ERR\", \"16\":\"TEMP_OUT\", \"48\":\"AIR_PIPE\", \"80\":\"F_OVRFLW\", \"112\":\"MES_ERR\", \"144\":\"NO_CONS\", \"176\":\"R_FLOW\", \"208\":\"LO_TEMP\", \"240\":\"AIR_PIPE\"}}',2),(14,'DME','112','hot water','#','access number;volume;volume;volume flow;flow temperature;parameter set identification;volume;volume;volume;time point;external temperature;parameter set identification;maximum volume flow;minimum volume flow;time point;volume;minimum volume flow;maximum volume flow\n',0,18,NULL,'{\"12\":\"dec2binary\"}','{\"meter/waterprofile\":{\"2\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"3\":{\"channel\": \"R_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"4\":{\"channel\": \"F_R\", \"magnitude\": \"m3/h\", \"unit\": \"m3/h\"}, \"5\":{\"channel\": \"F_Temp\", \"magnitude\": \"Cº\", \"unit\": \"ºC\"}, \"6\":{\"channel\": \"BAT_L\", \"magnitude\": \"\", \"unit\": \"\"}}, \"meter/billingprofile\":{\"16\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"billing_date_iddata\":\"15\"}}','{\"status\":{\"2\":\"LEAK\", \"4\":\"LO_BATT\", \"8\":\"MEM_ERR\", \"16\":\"TEMP_OUT\", \"48\":\"AIR_PIPE\", \"80\":\"F_OVRFLW\", \"112\":\"MES_ERR\", \"144\":\"NO_CONS\", \"176\":\"R_FLOW\", \"208\":\"LO_TEMP\", \"240\":\"AIR_PIPE\"}, \"12\":{\"1\":\"AIR_PIPE\", \"2\":\"MES_ERR\", \"4\":\"NO_CONS\", \"5\":\"R_FLOW\", \"6\":\"F_OVRFLW\", \"7\":\"F_OVRFLW\", \"8\":\"HW_ERR\", \"11\":\"HW_ERR\", \"12\":\"MES_ERR\", \"13\":\"AIR_PIPE\", \"16\":\"LEAK\"}}\n',2),(15,'SEN','73','water','#','Volume,Volume(accumulated),Volume Flow,Fabrication number,Parameter set identification,Time point,Parameter set identification,Time point,Volume,Time point,Volume,Manufacturer data\n',0,12,NULL,NULL,'{\"meter/waterprofile\":{\"1\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"8\":{\"channel\": \"F_Temp\", \"magnitude\": \"Cº\", \"unit\": \"ºC\"}}}',NULL,1),(16,'KAM','29','cold water','#','Volume;Volume(accumulated);Operating time; Volume flow; External temperature; Min volume flow; Max volume flow; Min external temperature;Max external temperatura; External temperature; Time point; Volume; Min volume flow; Max volume flow; Min external temperature; Max external temperature; External temperature; Time point; Manufacturer specific vife; Manufacturer specific vife; Manufacturer specific vife; Parameter set id',0,22,NULL,'{\"status\":\"dec2binary\"}','{\"meter/waterprofile\":{\"1\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"4\":{\"channel\": \"N_F\", \"magnitude\": \"\", \"unit\": \"m3/h\"}, \"5\":{\"channel\": \"F_Temp\", \"magnitude\": \"Cº\", \"unit\": \"ºC\"}, \"11\":{\"channel\": \"DAT\", \"magnitude\": \"\", \"unit\": \"\"}}, \"meter/billingprofile\":{\"12\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"billing_date_iddata\":\"18\"}}','{\"status\":{\"1\":\"AIR_PIPE\", \"2\":\"R_FLOW\", \"3\":\"LEAK\"}}',1),(17,'ITW','50','water','#','Volume;Volume(accumulated);Operating time; Volume flow; External temperature; Min volume flow; Max volume flow; Min external temperature;Max external temperatura; External temperature; Time point; Volume; Min volume flow; Max volume flow; Min external temperature; Max external temperature; External temperature; Time point; Manufacturer specific vife; Manufacturer specific vife; Manufacturer specific vife; Parameter set id',0,10,NULL,'{\"5\":\"dec2binary\"}','{\"meter/waterprofile\":{\"2\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"9\":{\"channel\": \"N_F\", \"magnitude\": \"\", \"unit\": \"m3/h\"}, \"10\":{\"channel\": \"F_Temp\", \"magnitude\": \"Cº\", \"unit\": \"ºC\"}, \"3\":{\"channel\": \"DAT\", \"magnitude\": \"\", \"unit\": \"\"}}, \"meter/billingprofile\":{\"8\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"billing_date_iddata\":\"7\"}}','{\"5\":{\"1\":\"F_OVRFLW\", \"5\":\"HI_TEMP\", \"7\":\"LO_TEMP\", \"12\":\"R_FLOW\", \"15\":\"AIR_PIPE\", \"16\":\"AIR_PIPE\", \"17\":\"NO_CONS\", \"20\":\"MES_ERR\", \"22\":\"LO_BATT\", \"23\":\"LO_BATT\", \"24\":\"LEAK\", \"25\":\"MEM_ERR\", \"26\":\"LO_BATT\", \"28\":\"HW_ERR\"}}',2),(18,'HYD','37','water','#','Gateway SN;Meter ID;Telegram Date;Access Number;Manufacturer Code;Device Version;Device Type;Telegram Counter;Meter State;Signature;radio telegram counter;Meter number (MSN);ownership number (DSN);current volume;reverse volume;flow rate;medium temperature;ambient temperature;battery empty date;operating hours;error hours;overflow seconds counter;overflow event counter;current time;',0,10,NULL,NULL,'{\"meter/waterprofile\":{\"1\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"3\":{\"channel\": \"N_F\", \"magnitude\": \"m3/h\", \"unit\": \"m3/h\"}, \"5\":{\"channel\": \"F_Temp\", \"magnitude\": \"Cº\", \"unit\": \"ºC\"}, \"6\":{\"channel\": \"DAT\", \"magnitude\": \"\", \"unit\": \"\"}}, \"meter/billingprofile\":{\"7\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"billing_date_iddata\":\"9\"}}','{\"status\":{\"2\":\"LEAK\", \"4\":\"LO_BATT\", \"8\":\"MEM_ERR\", \"16\":\"TEMP_OUT\", \"48\":\"HW_ERR\", \"80\":\"AIR_PIPE\", \"112\":\"MES_ERR\", \"144\":\"NO_CONS\", \"176\":\"R_FLOW\", \"208\":\"LO_TEMP\", \"240\":\"AIR_PIPE\"}}',1),(19,'KAM','29','cold water','#','volume, volume (accumulated), operating time, volume flow,flow temperature,external temperature,min volume flow,max volume flow, min flow temperature, flow temperature, min external temperature, max external temperature,external temperature,time point,volume, min volume flow, max volume flow, min flow temperature,flow temperature, min external temperature, max external temperature, external temperature,time point (date), manufacturer specific vife\'s and data, manufacturer specific vife\'s and data,manufacturer specific vife\'s and data, parameter set identification',0,27,NULL,'{\"status\":\"dec2binary\"}','{\"meter/waterprofile\":{\"2\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"5\":{\"channel\": \"F_Temp\", \"magnitude\": \"Cº\", \"unit\": \"ºC\"}}}','{\"status\":{\"1\":\"AIR_PIPE\", \"2\":\"R_FLOW\", \"3\":\"LEAK\"}}',2),(20,'DME','112','water','#','access number;volume;volume;volume flow;flow temperature;parameter set identification;volume;volume;volume;time point;external temperature;parameter set identification;maximum volume flow;minimum volume flow;time point;volume;minimum volume flow;maximum volume flow\n',0,18,NULL,NULL,'{\"meter/waterprofile\":{\"2\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"3\":{\"channel\": \"R_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"4\":{\"channel\": \"F_R\", \"magnitude\": \"m3/h\", \"unit\": \"m3/h\"}, \"5\":{\"channel\": \"F_Temp\", \"magnitude\": \"Cº\", \"unit\": \"ºC\"}, \"6\":{\"channel\": \"BAT_L\", \"magnitude\": \"\", \"unit\": \"\"}}, \"meter/billingprofile\":{\"16\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"billing_date_iddata\":\"15\"}}','{\"status\":{\"2\":\"LEAK\", \"4\":\"LO_BATT\", \"8\":\"MEM_ERR\", \"16\":\"TEMP_OUT\", \"48\":\"AIR_PIPE\", \"80\":\"F_OVRFLW\", \"112\":\"MES_ERR\", \"144\":\"NO_CONS\", \"176\":\"R_FLOW\", \"208\":\"LO_TEMP\", \"240\":\"AIR_PIPE\"}}',2),(21,'ELS','10','water','#','Volume, Volume(accumulated), Time Point (time&date), Time Point(date), Volume, Time Point(date), Volume flow max, Volume flow, Manufacturer data',0,10,NULL,NULL,'{\"meter/waterprofile\":{\"1\":{\"channel\":\"T_V\",\"magnitude\":\"m3\",\"unit\":\"m3\"}}}',NULL,1),(23,'DME','112','water','#','access number;volume;volume;volume flow;flow temperature;parameter set identification;volume;volume;volume;time point;external temperature\n',0,11,NULL,NULL,'{\"meter/waterprofile\":{\"2\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"3\":{\"channel\": \"R_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"4\":{\"channel\": \"F_R\", \"magnitude\": \"m3/h\", \"unit\": \"m3/h\"}, \"5\":{\"channel\": \"F_Temp\", \"magnitude\": \"Cº\", \"unit\": \"ºC\"}, \"6\":{\"channel\": \"BAT_L\", \"magnitude\": \"\", \"unit\": \"\"}}, \"meter/billingprofile\":{\"7\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"8\":{\"channel\": \"R_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"9\":{\"channel\": \"Fwd_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"billing_date_iddata\":\"10\"}}\n','{\"status\":{\"2\":\"LEAK\", \"4\":\"LO_BATT\", \"8\":\"MEM_ERR\", \"16\":\"TEMP_OUT\", \"48\":\"AIR_PIPE\", \"80\":\"F_OVRFLW\", \"112\":\"MES_ERR\", \"144\":\"NO_CONS\", \"176\":\"R_FLOW\", \"208\":\"LO_TEMP\", \"240\":\"AIR_PIPE\"}}',2),(24,'DME','112','hot water','#','access number;volume;volume;volume flow;flow temperature;parameter set identification;volume;volume;volume;time point;external temperature',0,13,NULL,'{\"5\":{\"divisor\":\"60\"}}','{\"meter/waterprofile\":{\"1\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"2\":{\"channel\": \"R_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"3\":{\"channel\": \"Fwd_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"4\":{\"channel\": \"F_R\", \"magnitude\": \"m3/h\", \"unit\": \"m3/h\"}, \"5\":{\"channel\": \"BAT_L\", \"magnitude\": \"\", \"unit\": \"\"}, \"6\":{\"channel\": \"F_Temp\", \"magnitude\": \"Cº\", \"unit\": \"ºC\"}, \"8\":{\"channel\": \"DAT\", \"magnitude\": \"\", \"unit\": \"\"}, \"meter_date_iddata\":\"8\"}, \"meter/billingprofile\":{\"9\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"10\":{\"channel\": \"R_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"11\":{\"channel\": \"Fwd_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"billing_date_iddata\":\"12\"}}\r ','{\"status\":{\"2\":\"LEAK\", \"4\":\"LO_BATT\", \"8\":\"MEM_ERR\", \"16\":\"TEMP_OUT\", \"48\":\"AIR_PIPE\", \"80\":\"F_OVRFLW\", \"112\":\"MES_ERR\", \"144\":\"NO_CONS\", \"176\":\"R_FLOW\", \"208\":\"LO_TEMP\", \"240\":\"AIR_PIPE\"}}',1),(25,'ITW','65','water','#','Volume;Identification parameter;Reverse Volume;Volume flow; Flow temperature',0,5,NULL,NULL,'{\"meter/waterprofile\":{\"1\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}}}',NULL,1),(26,'HYD','36','water','#','Gateway SN;Meter ID;Telegram Date;Access Number;Manufacturer Code;Device Version;Device Type;Telegram Counter;Meter State;Signature;radio telegram counter;Meter number (MSN);ownership number (DSN);current volume;reverse volume;flow rate;medium temperature;ambient temperature;battery empty date;operating hours;error hours;overflow seconds counter;overflow event counter;current time;',0,10,NULL,NULL,'{\"meter/waterprofile\":{\"2\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"3\":{\"channel\": \"R_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"4\":{\"channel\": \"F_R\", \"magnitude\": \"m3/h\", \"unit\": \"m3/h\"}, \"5\":{\"channel\": \"F_Temp\", \"magnitude\": \"Cº\", \"unit\": \"ºC\"}}, \"meter/billingprofile\":{\"7\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"billing_date_iddata\":\"10\"}}','{\"status\":{\"2\":\"LEAK\", \"4\":\"LO_BATT\", \"8\":\"MEM_ERR\", \"16\":\"TEMP_OUT\", \"48\":\"HW_ERR\", \"80\":\"AIR_PIPE\", \"112\":\"MES_ERR\", \"144\":\"NO_CONS\", \"176\":\"R_FLOW\", \"208\":\"LO_TEMP\"}}',2),(27,'BMI','8','water','#','Actuality duration (in seconds),Volume,Volume,Time point (date),Parameter set identification,Time point (time & date),Volume accumulated abs value if negative,Volume flow,Flow temperature,Parameter set identification,On time (in hours),On time (in hours) (mfg specific data in next VIFEs and data),Date-time of end of last upper time point (time & date) limit exceeded,On time (in minutes) last upper limit exceed for duration of 1,External temperature,Parameter set identification',0,16,NULL,NULL,'{\"meter/waterprofile\":{\"2\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"9\":{\"channel\": \"F_Temp\", \"magnitude\": \"Cº\", \"unit\": \"ºC\"}}}',NULL,2),(28,'ITW','0','heat Cost Allocator','#','Units for H.C.A., Time point (time & date), Units for H.C.A. (During Error), Time point (date), Manufacturer Specific Data',0,5,NULL,NULL,'{\"meter/energyprofile\":{\"1\":{\"channel\": \"T_V\", \"magnitude\": \"HCA\", \"unit\": \"HCA\"}}}',NULL,1),(29,'ITW','0','water','#','Volume, Time point (time & date), Volume, Time point (time), Manufacturer Specific Data, Manufacturer Specific Data, Unknown',0,7,NULL,NULL,'{\"meter/energyprofile\":{\"1\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}}}',NULL,1),(30,'KAM','27','cold water',NULL,'Info, Volume, Target volume, Min water temp month, Min amb temp month',0,5,NULL,NULL,'{\"meter/energyprofile\":{\"2\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}}}',NULL,2),(32,'DME','112','hot water','#','access number;volume;volume;error volume flow;parameter set identification;flow temperature;parameter set identification;volume;volume;volume;time point;external temperature',0,12,NULL,NULL,'{\"meter/waterprofile\":{\"2\":{\"channel\": \"Fwd_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"3\":{\"channel\": \"R_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"4\":{\"channel\": \"F_R\", \"magnitude\": \"m3/h\", \"unit\": \"m3/h\"}, \"6\":{\"channel\": \"F_Temp\", \"magnitude\": \"Cº\", \"unit\": \"ºC\"}, \"7\":{\"channel\": \"BAT_L\", \"magnitude\": \"\", \"unit\": \"\"}}, \"meter/billingprofile\":{\"8\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"9\":{\"channel\": \"R_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"10\":{\"channel\": \"Fwd_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"billing_date_iddata\":\"11\"}}\r ','{\"status\":{\"2\":\"LEAK\", \"4\":\"LO_BATT\", \"8\":\"MEM_ERR\", \"16\":\"TEMP_OUT\", \"48\":\"AIR_PIPE\", \"80\":\"F_OVRFLW\", \"112\":\"MES_ERR\", \"144\":\"NO_CONS\", \"176\":\"R_FLOW\", \"208\":\"LO_TEMP\", \"240\":\"AIR_PIPE\"}}',2),(33,'DME','117','hot water','#','access number;volume;volume;error volume flow;parameter set identification;flow temperature;parameter set identification;volume;volume;volume;time point;external temperature',0,12,NULL,NULL,'{\"meter/waterprofile\":{\"1\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"2\":{\"channel\": \"Fwd_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"3\":{\"channel\": \"R_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"4\":{\"channel\": \"F_R\", \"magnitude\": \"m3/h\", \"unit\": \"m3/h\"}, \"5\":{\"channel\": \"F_Temp\", \"magnitude\": \"Cº\", \"unit\": \"ºC\"}, \"7\":{\"channel\": \"BAT_L\", \"magnitude\": \"\", \"unit\": \"\"}}, \"meter/billingprofile\":{\"10\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"billing_date_iddata\":\"9\"}}\n','{\"status\":{\"2\":\"LEAK\", \"4\":\"LO_BATT\", \"8\":\"MEM_ERR\", \"16\":\"TEMP_OUT\", \"48\":\"AIR_PIPE\", \"80\":\"F_OVRFLW\", \"112\":\"MES_ERR\", \"144\":\"NO_CONS\", \"176\":\"R_FLOW\", \"208\":\"LO_TEMP\", \"240\":\"AIR_PIPE\"}}',1);

--
-- Table structure for table `middleware_BUS_types`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `middleware_BUS_types` (
  `id` int NOT NULL AUTO_INCREMENT,
  `code` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name` varchar(450) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` varchar(4500) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `typeParameters` json DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `middleware_BUS_types`
--

INSERT INTO `middleware_BUS_types` VALUES (1,'mbus','MBUS','MBUS','{\"address\": {\"type\": {\"input\": \"String\", \"output\": \"String\"}, \"label\": \"Address\"}, \"baudrate\": {\"type\": {\"input\": [{\"label\": 300, \"value\": 300}, {\"label\": 1200, \"value\": 1200}, {\"label\": 2400, \"value\": 2400}, {\"label\": 9600, \"value\": 9600}], \"output\": \"INT\"}, \"label\": \"Baudrate\"}}'),(2,'modbus','MODBUS','MODBUS','{\"parity\": {\"type\": {\"input\": [{\"label\": \"Even\", \"value\": \"Even\"}, {\"label\": \"Odd\", \"value\": \"Odd\"}, {\"label\": \"No Parity\", \"value\": \"No Parity\"}], \"output\": \"String\"}, \"label\": \"Parity\"}, \"framing\": {\"type\": {\"input\": [{\"label\": \"8,N,1\", \"value\": \"8,N,1\"}, {\"label\": \"8,N,2\", \"value\": \"8,N,2\"}, {\"label\": \"7,E,1\", \"value\": \"7,E,1\"}], \"output\": \"String\"}, \"label\": \"Framing\"}, \"slaveId\": {\"type\": {\"input\": \"INT\", \"output\": \"INT\"}, \"label\": \"Slave Id\"}, \"baudrate\": {\"type\": {\"input\": [{\"label\": 1200, \"value\": 1200}, {\"label\": 2400, \"value\": 2400}, {\"label\": 4800, \"value\": 4800}, {\"label\": 9600, \"value\": 9600}, {\"label\": 14400, \"value\": 14400}, {\"label\": 19200, \"value\": 19200}, {\"label\": 28800, \"value\": 28800}, {\"label\": 38400, \"value\": 38400}, {\"label\": 57600, \"value\": 57600}, {\"label\": 115200, \"value\": 115200}, {\"label\": 230400, \"value\": 230400}], \"output\": \"INT\"}, \"label\": \"Baudrate\"}}'),(3,'dlms','DLMS','DLMS','{\"framing\": {\"type\": {\"input\": [{\"label\": \"8,N,1\", \"value\": \"8,N,1\"}, {\"label\": \"8,N,2\", \"value\": \"8,N,2\"}, {\"label\": \"7,E,1\", \"value\": \"7,E,1\"}], \"output\": \"String\"}, \"label\": \"Framing\"}, \"baudrate\": {\"type\": {\"input\": [{\"label\": 1200, \"value\": 1200}, {\"label\": 2400, \"value\": 2400}, {\"label\": 4800, \"value\": 4800}, {\"label\": 9600, \"value\": 9600}, {\"label\": 14400, \"value\": 14400}, {\"label\": 19200, \"value\": 19200}, {\"label\": 28800, \"value\": 28800}, {\"label\": 38400, \"value\": 38400}, {\"label\": 57600, \"value\": 57600}, {\"label\": 115200, \"value\": 115200}, {\"label\": 230400, \"value\": 230400}], \"output\": \"INT\"}, \"label\": \"Baudrate\"}, \"clientId\": {\"type\": {\"input\": \"HEX;INT\", \"output\": \"HEX\"}, \"label\": \"Client Id\"}, \"hdlcAddress\": {\"type\": {\"input\": \"HEX;INT\", \"output\": \"HEX\"}, \"label\": \"HDLC Address\"}, \"meterPassword\": {\"type\": {\"input\": \"String\", \"output\": \"String\"}, \"label\": \"Password\"}, \"referenceType\": {\"type\": {\"input\": [{\"label\": \"LN\", \"value\": \"LN\"}, {\"label\": \"SN\", \"value\": \"SN\"}], \"output\": \"String\"}, \"label\": \"Reference Type\"}, \"logicalAddress\": {\"type\": {\"input\": \"HEX;INT\", \"output\": \"HEX\"}, \"label\": \"Logical Address\"}, \"levelAuthentication\": {\"type\": {\"input\": [{\"label\": \"None\", \"value\": \"none\"}, {\"label\": \"Low\", \"value\": \"low\"}, {\"label\": \"Medium\", \"value\": \"medium\"}, {\"label\": \"High\", \"value\": \"high\"}], \"output\": \"String\"}, \"label\": \"Autentication Level\"}}'),(4,'st','SEVERN TRENT','SEVERN TRENT','{\"framing\": {\"type\": {\"input\": [{\"label\": \"7,E,1\", \"value\": \"7,E,1\"}], \"output\": \"String\"}, \"label\": \"Framing\"}, \"baudrate\": {\"type\": {\"input\": [{\"label\": 1200, \"value\": 1200}], \"output\": \"INT\"}, \"label\": \"Baudrate\"}}'),(5,'pulse','PULSES','PULSES','{\"unit\": {\"type\": {\"input\": [{\"label\": \"m3\", \"value\": \"m3\"}, {\"label\": \"L\", \"value\": \"L\"}, {\"label\": \"gal\", \"value\": \"gal\"}, {\"label\": \"ft3\", \"value\": \"ft3\"}], \"output\": \"String\"}, \"label\": \"Unit\"}, \"mFactor\": {\"type\": {\"input\": [{\"label\": 1, \"value\": 1}, {\"label\": 10, \"value\": 10}, {\"label\": 100, \"value\": 100}, {\"label\": 1000, \"value\": 1000}, {\"label\": 10000, \"value\": 10000}], \"output\": \"INT\"}, \"label\": \"K Factor\"}, \"lastReading\": {\"type\": {\"input\": \"Float\", \"output\": \"Float\"}, \"label\": \"Last Reading\"}}'),(6,'euridis','EURIDIS','EURIDIS','{\"framing\": {\"type\": {\"input\": [{\"label\": \"8,N,1\", \"value\": \"8,N,1\"}, {\"label\": \"8,N,2\", \"value\": \"8,N,2\"}, {\"label\": \"7,E,1\", \"value\": \"7,E,1\"}], \"output\": \"String\"}, \"label\": \"Framing\"}, \"baudrate\": {\"type\": {\"input\": [{\"label\": 1200, \"value\": 1200}, {\"label\": 2400, \"value\": 2400}, {\"label\": 4800, \"value\": 4800}, {\"label\": 9600, \"value\": 9600}, {\"label\": 14400, \"value\": 14400}, {\"label\": 19200, \"value\": 19200}, {\"label\": 28800, \"value\": 28800}, {\"label\": 38400, \"value\": 38400}, {\"label\": 57600, \"value\": 57600}, {\"label\": 115200, \"value\": 115200}, {\"label\": 230400, \"value\": 230400}], \"output\": \"INT\"}, \"label\": \"Baudrate\"}, \"adsAddress\": {\"type\": {\"input\": \"HEX;INT\", \"output\": \"HEX\"}, \"label\": \"ADS Address\"}, \"decryptionKey\": {\"type\": {\"input\": \"String\", \"output\": \"String\"}, \"label\": \"Decryption Key\"}, \"referenceType\": {\"type\": {\"input\": [{\"label\": \"LN\", \"value\": \"LN\"}, {\"label\": \"SN\", \"value\": \"SN\"}], \"output\": \"String\"}, \"label\": \"Reference Type\"}, \"levelAuthentication\": {\"type\": {\"input\": [{\"label\": \"None\", \"value\": \"none\"}, {\"label\": \"Low\", \"value\": \"low\"}, {\"label\": \"Medium\", \"value\": \"medium\"}, {\"label\": \"High\", \"value\": \"high\"}], \"output\": \"String\"}, \"label\": \"Autentication Level\"}}'),(7,'une','UNE','UNE','{}'),(8,'wmbus','WMBUS','WMBUS','{\"meterMode\": {\"type\": {\"input\": [{\"label\": \"01\", \"value\": \"01\"}, {\"label\": \"02\", \"value\": \"02\"}, {\"label\": \"03\", \"value\": \"03\"}, {\"label\": \"04\", \"value\": \"04\"}, {\"label\": \"05\", \"value\": \"05\"}, {\"label\": \"06\", \"value\": \"06\"}], \"output\": \"String\"}, \"label\": \"Meter Mode\"}, \"decryptionKey\": {\"type\": {\"input\": \"String\", \"output\": \"String\"}, \"label\": \"Decryption Key\"}}'),(9,'pressure','PRESSURE','PRESSURE','{\"offset\": {\"type\": {\"input\": \"Float\", \"output\": \"Float\"}, \"label\": \"Offset (bar)\"}, \"idsensor\": {\"type\": {\"input\": \"Int\", \"output\": \"Int\"}, \"label\": \"Sensor input port\"}, \"idsensor_type\": {\"type\": {\"input\": \"Int\", \"output\": \"Int\"}}}'),(10,'analog_sensor','ANALOG','ANALOG','{\"idsensor\": {\"type\": {\"input\": \"Int\", \"output\": \"Int\"}, \"label\": \"Sensor input port\"}, \"idsensor_type\": {\"type\": {\"input\": \"Int\", \"output\": \"Int\"}}}'),(11,NULL,'DEFAULT','DEFAULT','{\"utilityId\": {\"type\": {\"input\": \"String\", \"output\": \"String\"}, \"label\": \"Utility Id\"}, \"meterBrand\": {\"type\": {\"input\": [], \"output\": \"String\"}, \"label\": \"Manufacturer\"}, \"meterModel\": {\"type\": {\"input\": [], \"output\": \"String\"}, \"label\": \"Model\"}, \"protocolType\": {\"type\": {\"input\": [{\"label\": \"WMBUS\", \"value\": \"WMBUS\"}, {\"label\": \"MBUS\", \"value\": \"MBUS\"}, {\"label\": \"MODBUS\", \"value\": \"MODBUS\"}, {\"label\": \"DLMS\", \"value\": \"DLMS\"}, {\"label\": \"SEVERN TRENT\", \"value\": \"SEVERN TRENT\"}, {\"label\": \"EURIDIS\", \"value\": \"EURIDIS\"}, {\"label\": \"UNE\", \"value\": \"UNE\"}, {\"label\": \"PULSES\", \"value\": \"PULSES\"}, {\"label\": \"PRESSURE\", \"value\": \"PRESSURE\"}, {\"label\": \"ANALOG\", \"value\": \"ANALOG\"}], \"output\": \"String\"}, \"label\": \"Bus Type\"}, \"serialNumber\": {\"type\": {\"input\": \"String\", \"output\": \"String\"}, \"label\": \"Serial Number\"}}');

--
-- Table structure for table `middleware_COAP_MQTT_log`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `middleware_COAP_MQTT_log` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `date` datetime DEFAULT NULL,
  `server` varchar(450) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `topic` varchar(2000) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `payload` text COLLATE utf8mb4_unicode_ci,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `middleware_COAP_MQTT_log`
--


--
-- Table structure for table `middleware_COAP_commands`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `middleware_COAP_commands` (
  `id` int NOT NULL AUTO_INCREMENT,
  `command` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `topic` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` varchar(450) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `idtype` tinyint DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `command` (`command`),
  KEY `idtype` (`idtype`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `middleware_COAP_commands`
--


--
-- Table structure for table `middleware_COAP_device_command_queue`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `middleware_COAP_device_command_queue` (
  `id` int NOT NULL AUTO_INCREMENT,
  `idlog` int DEFAULT NULL,
  `date` datetime DEFAULT NULL,
  `iddevice` bigint DEFAULT NULL,
  `idRequest` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `command` varchar(450) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `topic` varchar(450) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `payload` text COLLATE utf8mb4_unicode_ci,
  `device_command` text COLLATE utf8mb4_unicode_ci,
  `sent_date` datetime DEFAULT NULL,
  `status` tinyint DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `sent_date` (`sent_date`),
  KEY `iddevice` (`iddevice`),
  KEY `idRequest` (`idRequest`),
  KEY `status` (`status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `middleware_COAP_device_command_queue`
--


--
-- Table structure for table `middleware_COAP_device_log`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `middleware_COAP_device_log` (
  `id` int NOT NULL AUTO_INCREMENT,
  `date` datetime DEFAULT NULL,
  `iddevice` bigint DEFAULT NULL,
  `command` varchar(450) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `payload` text COLLATE utf8mb4_unicode_ci,
  `response` text COLLATE utf8mb4_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `iddevice` (`iddevice`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `middleware_COAP_device_log`
--

INSERT INTO `middleware_COAP_device_log` VALUES (1,'2024-12-11 10:16:19',485096706,'gatewayconfig','{\"idRequest\":\"bf02838b-3a14-4e46-ba4e-a9352aca0a15\",\"gWsn\":485096706,\"meterList\":[{\"serialNumber\":\"240411279215B2071\",\"utilityId\":\"METER1\",\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"serialNumber\":\"240411279215B2072\",\"utilityId\":\"METER1\",\"protocolConfig\":{\"meterBrand\":\"ITRON\",\"meterModel\":\"ECHODIS\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}}]}','{\"device\":[{\"type\":2,\"date\":\"2024-12-11 10:16:19\",\"result\":\"Sent message to 485096706 device: localhost:1883\",\"topic\":\"/device/9/485096706/set/command/gatewayconfig\",\"payload\":{\"idRequest\":\"bf02838b-3a14-4e46-ba4e-a9352aca0a15\",\"gWsn\":485096706,\"meterList\":[{\"serialNumber\":\"240411279215B2071\",\"utilityId\":\"METER1\",\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"serialNumber\":\"240411279215B2072\",\"utilityId\":\"METER1\",\"protocolConfig\":{\"meterBrand\":\"ITRON\",\"meterModel\":\"ECHODIS\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}}]}}]}'),(2,'2024-12-11 10:54:39',485096706,'gatewayconfig','{\"idRequest\":\"23f10e6b-e0ce-4e25-946b-365dbd186735\",\"gWsn\":485096706,\"meterList\":[{\"serialNumber\":\"240411279215B2071\",\"utilityId\":\"METER1\",\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"serialNumber\":\"240411279215B2072\",\"utilityId\":\"Meter 2\",\"protocolConfig\":{\"meterBrand\":\"ITRON\",\"meterModel\":\"ECHODIS\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}}]}','{\"device\":[{\"type\":2,\"date\":\"2024-12-11 10:54:39\",\"result\":\"Sent message to 485096706 device: localhost:1883\",\"topic\":\"/device/9/485096706/set/command/gatewayconfig\",\"payload\":{\"idRequest\":\"23f10e6b-e0ce-4e25-946b-365dbd186735\",\"gWsn\":485096706,\"meterList\":[{\"serialNumber\":\"240411279215B2071\",\"utilityId\":\"METER1\",\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"serialNumber\":\"240411279215B2072\",\"utilityId\":\"Meter 2\",\"protocolConfig\":{\"meterBrand\":\"ITRON\",\"meterModel\":\"ECHODIS\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}}]}}]}'),(3,'2024-12-11 11:26:16',485096706,'gatewayconfig','{\"idRequest\":\"baefba43-c0b8-4245-b3cb-1f7c3ec753de\",\"gWsn\":485096706,\"meterList\":[{\"serialNumber\":\"240411279215B2073\",\"utilityId\":\"METER3\",\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"serialNumber\":\"240411279215B2071\",\"utilityId\":\"METER1\",\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"serialNumber\":\"240411279215B2072\",\"utilityId\":\"Meter 2\",\"protocolConfig\":{\"meterBrand\":\"ITRON\",\"meterModel\":\"ECHODIS\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}}]}','{\"device\":[{\"type\":2,\"date\":\"2024-12-11 11:26:16\",\"result\":\"Sent message to 485096706 device: localhost:1883\",\"topic\":\"/device/9/485096706/set/command/gatewayconfig\",\"payload\":{\"idRequest\":\"baefba43-c0b8-4245-b3cb-1f7c3ec753de\",\"gWsn\":485096706,\"meterList\":[{\"serialNumber\":\"240411279215B2073\",\"utilityId\":\"METER3\",\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"serialNumber\":\"240411279215B2071\",\"utilityId\":\"METER1\",\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"serialNumber\":\"240411279215B2072\",\"utilityId\":\"Meter 2\",\"protocolConfig\":{\"meterBrand\":\"ITRON\",\"meterModel\":\"ECHODIS\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}}]}}]}'),(4,'2024-12-11 11:26:26',485096706,'gatewayconfig','{\"idRequest\":\"7f8299b3-90c7-4999-95cd-652e311c8951\",\"gWsn\":485096706,\"meterList\":[{\"serialNumber\":\"240411279215B2071\",\"utilityId\":\"METER1\",\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"serialNumber\":\"240411279215B2072\",\"utilityId\":\"Meter 2\",\"protocolConfig\":{\"meterBrand\":\"ITRON\",\"meterModel\":\"ECHODIS\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}}]}','{\"device\":[{\"type\":2,\"date\":\"2024-12-11 11:26:26\",\"result\":\"Sent message to 485096706 device: localhost:1883\",\"topic\":\"/device/9/485096706/set/command/gatewayconfig\",\"payload\":{\"idRequest\":\"7f8299b3-90c7-4999-95cd-652e311c8951\",\"gWsn\":485096706,\"meterList\":[{\"serialNumber\":\"240411279215B2071\",\"utilityId\":\"METER1\",\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"serialNumber\":\"240411279215B2072\",\"utilityId\":\"Meter 2\",\"protocolConfig\":{\"meterBrand\":\"ITRON\",\"meterModel\":\"ECHODIS\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}}]}}]}'),(5,'2024-12-13 07:10:49',485096706,'gatewayconfig','{\"idRequest\":\"62027450-5a90-47dd-95fc-25fa632dc185\",\"gWsn\":485096706,\"utilityIdGw\":\"48509670601\",\"utilityNameGw\":\"OP00707F021224C000001\",\"meterList\":[{\"idmeter\":null,\"serialNumber\":\"240411279215B207\",\"utilityIdMeter\":\"METER3\",\"action\":1,\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B20\",\"baudrate\":2400}},{\"idmeter\":null,\"serialNumber\":\"240411279215B2071\",\"utilityIdMeter\":\"METER1\",\"action\":0,\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"idmeter\":null,\"serialNumber\":\"240411279215B2072\",\"utilityIdMeter\":\"Meter 2\",\"action\":0,\"protocolConfig\":{\"meterBrand\":\"ITRON\",\"meterModel\":\"ECHODIS\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}}],\"unassignedMeterList\":[]}','{\"device\":[{\"type\":2,\"date\":\"2024-12-13 07:10:49\",\"result\":\"Sent message to 485096706 device: localhost:1883\",\"topic\":\"/device/9/485096706/set/command/gatewayconfig\",\"payload\":{\"idRequest\":\"62027450-5a90-47dd-95fc-25fa632dc185\",\"gWsn\":485096706,\"utilityIdGw\":\"48509670601\",\"utilityNameGw\":\"OP00707F021224C000001\",\"meterList\":[{\"idmeter\":null,\"serialNumber\":\"240411279215B207\",\"utilityIdMeter\":\"METER3\",\"action\":1,\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B20\",\"baudrate\":2400}},{\"idmeter\":null,\"serialNumber\":\"240411279215B2071\",\"utilityIdMeter\":\"METER1\",\"action\":0,\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"idmeter\":null,\"serialNumber\":\"240411279215B2072\",\"utilityIdMeter\":\"Meter 2\",\"action\":0,\"protocolConfig\":{\"meterBrand\":\"ITRON\",\"meterModel\":\"ECHODIS\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}}],\"unassignedMeterList\":[]}}]}'),(6,'2024-12-13 07:21:13',485096706,'gatewayconfig','{\"idRequest\":\"85793581-def0-4adc-ad8c-4f0a39901525\",\"gWsn\":485096706,\"utilityIdGw\":\"48509670601\",\"utilityNameGw\":\"OP00707F021224C000001\",\"meterList\":[{\"idmeter\":null,\"serialNumber\":\"240411279215B2073\",\"utilityIdMeter\":\"Meter4\",\"action\":1,\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"idmeter\":null,\"serialNumber\":\"240411279215B207\",\"utilityIdMeter\":\"Meter1\",\"action\":2,\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B20\",\"baudrate\":2400}},{\"idmeter\":null,\"serialNumber\":\"240411279215B2071\",\"utilityIdMeter\":\"Meter2\",\"action\":2,\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"idmeter\":null,\"serialNumber\":\"240411279215B2072\",\"utilityIdMeter\":\"Meter3\",\"action\":2,\"protocolConfig\":{\"meterBrand\":\"ITRON\",\"meterModel\":\"ECHODIS\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}}],\"unassignedMeterList\":[]}','{\"device\":[{\"type\":2,\"date\":\"2024-12-13 07:21:13\",\"result\":\"Sent message to 485096706 device: localhost:1883\",\"topic\":\"/device/9/485096706/set/command/gatewayconfig\",\"payload\":{\"idRequest\":\"85793581-def0-4adc-ad8c-4f0a39901525\",\"gWsn\":485096706,\"utilityIdGw\":\"48509670601\",\"utilityNameGw\":\"OP00707F021224C000001\",\"meterList\":[{\"idmeter\":null,\"serialNumber\":\"240411279215B2073\",\"utilityIdMeter\":\"Meter4\",\"action\":1,\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"idmeter\":null,\"serialNumber\":\"240411279215B207\",\"utilityIdMeter\":\"Meter1\",\"action\":2,\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B20\",\"baudrate\":2400}},{\"idmeter\":null,\"serialNumber\":\"240411279215B2071\",\"utilityIdMeter\":\"Meter2\",\"action\":2,\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"idmeter\":null,\"serialNumber\":\"240411279215B2072\",\"utilityIdMeter\":\"Meter3\",\"action\":2,\"protocolConfig\":{\"meterBrand\":\"ITRON\",\"meterModel\":\"ECHODIS\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}}],\"unassignedMeterList\":[]}}]}'),(7,'2024-12-13 07:36:10',678912345,'gatewayconfig','{\"idRequest\":\"892b6858-4525-4303-b004-798b06aafa05\",\"gWsn\":678912345,\"utilityIdGw\":\"67891234501\",\"utilityNameGw\":\"OP00023F110727C000001\",\"meterList\":[{\"idmeter\":1,\"serialNumber\":\"678912345_MD1\",\"utilityIdMeter\":\"678912345_MD1\",\"action\":1,\"protocolConfig\":{\"meterBrand\":\"KROHNE\",\"meterModel\":\"WAFX3070\",\"protocolType\":\"modbus\",\"parity\":\"Even\",\"framing\":\"8,N,1\",\"slaveId\":\"1\",\"baudrate\":9600}}]}','{\"device\":[{\"type\":2,\"date\":\"2024-12-13 07:36:10\",\"result\":\"Sent message to 678912345 device: localhost:1883\",\"topic\":\"/device/9/678912345/set/command/gatewayconfig\",\"payload\":{\"idRequest\":\"892b6858-4525-4303-b004-798b06aafa05\",\"gWsn\":678912345,\"utilityIdGw\":\"67891234501\",\"utilityNameGw\":\"OP00023F110727C000001\",\"meterList\":[{\"idmeter\":1,\"serialNumber\":\"678912345_MD1\",\"utilityIdMeter\":\"678912345_MD1\",\"action\":1,\"protocolConfig\":{\"meterBrand\":\"KROHNE\",\"meterModel\":\"WAFX3070\",\"protocolType\":\"modbus\",\"parity\":\"Even\",\"framing\":\"8,N,1\",\"slaveId\":\"1\",\"baudrate\":9600}}]}}]}'),(8,'2024-12-13 07:55:42',485096706,'gatewayconfig','{\"idRequest\":\"fe0d0081-30af-41a2-8f5a-5d2bb94cc516\",\"gWsn\":485096706,\"utilityIdGw\":\"48509670601\",\"utilityNameGw\":\"OP00707F021224C000001\",\"meterList\":[{\"idmeter\":null,\"serialNumber\":\"240411279215B207\",\"utilityIdMeter\":\"METER3\",\"action\":1,\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B20\",\"baudrate\":2400}},{\"idmeter\":null,\"serialNumber\":\"240411279215B2071\",\"utilityIdMeter\":\"METER1\",\"action\":0,\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"idmeter\":null,\"serialNumber\":\"240411279215B2072\",\"utilityIdMeter\":\"Meter 2\",\"action\":0,\"protocolConfig\":{\"meterBrand\":\"ITRON\",\"meterModel\":\"ECHODIS\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}}],\"unassignedMeterList\":[]}','{\"device\":[{\"type\":2,\"date\":\"2024-12-13 07:55:41\",\"result\":\"Sent message to 485096706 device: localhost:1883\",\"topic\":\"/device/9/485096706/set/command/gatewayconfig\",\"payload\":{\"idRequest\":\"fe0d0081-30af-41a2-8f5a-5d2bb94cc516\",\"gWsn\":485096706,\"utilityIdGw\":\"48509670601\",\"utilityNameGw\":\"OP00707F021224C000001\",\"meterList\":[{\"idmeter\":null,\"serialNumber\":\"240411279215B207\",\"utilityIdMeter\":\"METER3\",\"action\":1,\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B20\",\"baudrate\":2400}},{\"idmeter\":null,\"serialNumber\":\"240411279215B2071\",\"utilityIdMeter\":\"METER1\",\"action\":0,\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"idmeter\":null,\"serialNumber\":\"240411279215B2072\",\"utilityIdMeter\":\"Meter 2\",\"action\":0,\"protocolConfig\":{\"meterBrand\":\"ITRON\",\"meterModel\":\"ECHODIS\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}}],\"unassignedMeterList\":[]}}]}'),(9,'2024-12-13 07:57:28',678912345,'gatewayconfig','{\"idRequest\":\"852340e1-f30e-439a-a4fe-0255cd718b7b\",\"gWsn\":678912345,\"utilityIdGw\":\"67891234501\",\"utilityNameGw\":\"OP00023F110727C000001\",\"meterList\":[{\"idmeter\":null,\"serialNumber\":\"678912345_MD2\",\"utilityIdMeter\":\"METER2\",\"action\":1,\"protocolConfig\":{\"meterBrand\":\"KROHNE\",\"meterModel\":\"WAFX3070\",\"protocolType\":\"modbus\",\"parity\":\"Even\",\"framing\":\"8,N,1\",\"slaveId\":\"1\",\"baudrate\":9600}},{\"idmeter\":1,\"serialNumber\":\"678912345_MD1\",\"utilityIdMeter\":\"METER1\",\"action\":2,\"protocolConfig\":{\"meterBrand\":\"KROHNE\",\"meterModel\":\"WAFX3070\",\"protocolType\":\"modbus\",\"parity\":\"Even\",\"framing\":\"8,N,1\",\"slaveId\":\"1\",\"baudrate\":9600}}],\"unassignedMeterList\":[]}','{\"device\":[{\"type\":2,\"date\":\"2024-12-13 07:57:28\",\"result\":\"Sent message to 678912345 device: localhost:1883\",\"topic\":\"/device/9/678912345/set/command/gatewayconfig\",\"payload\":{\"idRequest\":\"852340e1-f30e-439a-a4fe-0255cd718b7b\",\"gWsn\":678912345,\"utilityIdGw\":\"67891234501\",\"utilityNameGw\":\"OP00023F110727C000001\",\"meterList\":[{\"idmeter\":null,\"serialNumber\":\"678912345_MD2\",\"utilityIdMeter\":\"METER2\",\"action\":1,\"protocolConfig\":{\"meterBrand\":\"KROHNE\",\"meterModel\":\"WAFX3070\",\"protocolType\":\"modbus\",\"parity\":\"Even\",\"framing\":\"8,N,1\",\"slaveId\":\"1\",\"baudrate\":9600}},{\"idmeter\":1,\"serialNumber\":\"678912345_MD1\",\"utilityIdMeter\":\"METER1\",\"action\":2,\"protocolConfig\":{\"meterBrand\":\"KROHNE\",\"meterModel\":\"WAFX3070\",\"protocolType\":\"modbus\",\"parity\":\"Even\",\"framing\":\"8,N,1\",\"slaveId\":\"1\",\"baudrate\":9600}}],\"unassignedMeterList\":[]}}]}');

--
-- Table structure for table `middleware_COAP_log`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `middleware_COAP_log` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `date` datetime DEFAULT NULL,
  `command` varchar(450) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `payload` text COLLATE utf8mb4_unicode_ci,
  `request` text COLLATE utf8mb4_unicode_ci,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `middleware_COAP_log`
--

INSERT INTO `middleware_COAP_log` VALUES (1,'2024-12-10 14:12:25','gatewayconfig','{\"idRequest\":\"38f52877-c324-4304-91a0-3493812019cf\",\"gWsn\":485096706,\"meterList\":[{\"serialNumber\":\"240411279215B2071\",\"utilityId\":\"METER1\",\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"serialNumber\":\"240411279215B2072\",\"utilityId\":\"METER2\",\"protocolConfig\":{\"meterBrand\":\"ITRON\",\"meterModel\":\"ECHODIS\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}}]}','172.31.0.168: POST -> 172.31.36.35:80/restcoapws/COAP_server'),(2,'2024-12-10 14:17:25','gatewayconfig','{\"idRequest\":\"1cde3c58-a77f-45a4-98e9-72bdfbe578d4\",\"gWsn\":485096706,\"meterList\":[{\"serialNumber\":\"240411279215B2071\",\"utilityId\":\"METER1\",\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"serialNumber\":\"240411279215B2072\",\"utilityId\":\"METER2\",\"protocolConfig\":{\"meterBrand\":\"ITRON\",\"meterModel\":\"ECHODIS\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}}]}','172.31.0.168: POST -> 172.31.36.35:80/restcoapws/COAP_server'),(3,'2024-12-11 07:35:19','gatewayconfig','{\"idRequest\":\"d208e4d0-cf6a-4016-8206-aa620d069d73\",\"gWsn\":485096706,\"meterList\":[{\"serialNumber\":\"24041127921B2071\",\"utilityId\":\"METER1\",\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"24041127921B207\",\"baudrate\":2400}},{\"serialNumber\":\"24041127921B2072\",\"utilityId\":\"METER2\",\"protocolConfig\":{\"meterBrand\":\"ITRON\",\"meterModel\":\"ECHODIS\",\"protocolType\":\"mbus\",\"address\":\"24041127921B207\",\"baudrate\":2400}}]}','172.31.44.149: POST -> 172.31.36.35:80/restcoapws/COAP_server'),(4,'2024-12-11 08:28:54','gatewayconfig','{\"gWip\":\"\",\"idRequest\":\"50121b4b-4a82-44e9-8d51-69ab7f41de62\",\"gWsn\":\"678912345\",\"meterList\":[{\"serialNumber\":\"METER1\",\"clientMeterIdentifier\":\"METER1\",\"protocolConfig\":{\"baudrate\":\"9600\",\"slaveId\":\"1\",\"framing\":\"8N1\",\"parity\":\"Even\",\"protocolType\":\"modbus\",\"meterBrand\":\"XYLEM\",\"meterModel\":\"FLUXUS G601\"}}]}','::1: POST -> localhost:80/restcoapws/COAP_server'),(5,'2024-12-11 08:31:15','gatewayconfig','{\"idRequest\":\"ccf779d8-4518-47e5-a82d-862c9dd999c0\",\"gWsn\":678912345,\"meterList\":[{\"serialNumber\":\"12345\",\"utilityId\":\"MODBUS_METER1\",\"protocolConfig\":{\"meterBrand\":\"XYLEM\",\"meterModel\":\"FLUXUS G601\",\"protocolType\":\"modbus\",\"parity\":\"Even\",\"framing\":\"8,N,1\",\"slaveId\":\"1\",\"baudrate\":9600}}]}','172.31.44.149: POST -> 172.31.36.35:80/restcoapws/COAP_server'),(6,'2024-12-11 08:31:18','gatewayconfig','{\"idRequest\":\"915c5015-1c71-4fd6-8adb-accee62935da\",\"gWsn\":678912345,\"meterList\":[{\"serialNumber\":\"12345\",\"utilityId\":\"MODBUS_METER1\",\"protocolConfig\":{\"meterBrand\":\"XYLEM\",\"meterModel\":\"FLUXUS G601\",\"protocolType\":\"modbus\",\"parity\":\"Even\",\"framing\":\"8,N,1\",\"slaveId\":\"1\",\"baudrate\":9600}}]}','172.31.44.149: POST -> 172.31.36.35:80/restcoapws/COAP_server'),(7,'2024-12-11 10:16:19','gatewayconfig','{\"idRequest\":\"bf02838b-3a14-4e46-ba4e-a9352aca0a15\",\"gWsn\":485096706,\"meterList\":[{\"serialNumber\":\"240411279215B2071\",\"utilityId\":\"METER1\",\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"serialNumber\":\"240411279215B2072\",\"utilityId\":\"METER1\",\"protocolConfig\":{\"meterBrand\":\"ITRON\",\"meterModel\":\"ECHODIS\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}}]}','172.31.0.168: POST -> 172.31.36.35:80/restcoapws/COAP_server'),(8,'2024-12-11 10:54:39','gatewayconfig','{\"idRequest\":\"23f10e6b-e0ce-4e25-946b-365dbd186735\",\"gWsn\":485096706,\"meterList\":[{\"serialNumber\":\"240411279215B2071\",\"utilityId\":\"METER1\",\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"serialNumber\":\"240411279215B2072\",\"utilityId\":\"Meter 2\",\"protocolConfig\":{\"meterBrand\":\"ITRON\",\"meterModel\":\"ECHODIS\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}}]}','172.31.0.168: POST -> 172.31.36.35:80/restcoapws/COAP_server2'),(9,'2024-12-11 11:26:16','gatewayconfig','{\"idRequest\":\"baefba43-c0b8-4245-b3cb-1f7c3ec753de\",\"gWsn\":485096706,\"meterList\":[{\"serialNumber\":\"240411279215B2073\",\"utilityId\":\"METER3\",\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"serialNumber\":\"240411279215B2071\",\"utilityId\":\"METER1\",\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"serialNumber\":\"240411279215B2072\",\"utilityId\":\"Meter 2\",\"protocolConfig\":{\"meterBrand\":\"ITRON\",\"meterModel\":\"ECHODIS\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}}]}','172.31.44.149: POST -> 172.31.36.35:80/restcoapws/COAP_server2'),(10,'2024-12-11 11:26:26','gatewayconfig','{\"idRequest\":\"7f8299b3-90c7-4999-95cd-652e311c8951\",\"gWsn\":485096706,\"meterList\":[{\"serialNumber\":\"240411279215B2071\",\"utilityId\":\"METER1\",\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"serialNumber\":\"240411279215B2072\",\"utilityId\":\"Meter 2\",\"protocolConfig\":{\"meterBrand\":\"ITRON\",\"meterModel\":\"ECHODIS\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}}]}','172.31.44.149: POST -> 172.31.36.35:80/restcoapws/COAP_server2'),(11,'2024-12-13 07:10:49','gatewayconfig','{\"idRequest\":\"62027450-5a90-47dd-95fc-25fa632dc185\",\"gWsn\":485096706,\"utilityIdGw\":\"48509670601\",\"utilityNameGw\":\"OP00707F021224C000001\",\"meterList\":[{\"idmeter\":null,\"serialNumber\":\"240411279215B207\",\"utilityIdMeter\":\"METER3\",\"action\":1,\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B20\",\"baudrate\":2400}},{\"idmeter\":null,\"serialNumber\":\"240411279215B2071\",\"utilityIdMeter\":\"METER1\",\"action\":0,\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"idmeter\":null,\"serialNumber\":\"240411279215B2072\",\"utilityIdMeter\":\"Meter 2\",\"action\":0,\"protocolConfig\":{\"meterBrand\":\"ITRON\",\"meterModel\":\"ECHODIS\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}}],\"unassignedMeterList\":[]}','172.31.0.168: POST -> 172.31.36.35:80/restcoapws/COAP_server'),(12,'2024-12-13 07:21:13','gatewayconfig','{\"idRequest\":\"85793581-def0-4adc-ad8c-4f0a39901525\",\"gWsn\":485096706,\"utilityIdGw\":\"48509670601\",\"utilityNameGw\":\"OP00707F021224C000001\",\"meterList\":[{\"idmeter\":null,\"serialNumber\":\"240411279215B2073\",\"utilityIdMeter\":\"Meter4\",\"action\":1,\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"idmeter\":null,\"serialNumber\":\"240411279215B207\",\"utilityIdMeter\":\"Meter1\",\"action\":2,\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B20\",\"baudrate\":2400}},{\"idmeter\":null,\"serialNumber\":\"240411279215B2071\",\"utilityIdMeter\":\"Meter2\",\"action\":2,\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"idmeter\":null,\"serialNumber\":\"240411279215B2072\",\"utilityIdMeter\":\"Meter3\",\"action\":2,\"protocolConfig\":{\"meterBrand\":\"ITRON\",\"meterModel\":\"ECHODIS\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}}],\"unassignedMeterList\":[]}','172.31.44.149: POST -> 172.31.36.35:80/restcoapws/COAP_server2'),(13,'2024-12-13 07:36:10','gatewayconfig','{\"idRequest\":\"892b6858-4525-4303-b004-798b06aafa05\",\"gWsn\":678912345,\"utilityIdGw\":\"67891234501\",\"utilityNameGw\":\"OP00023F110727C000001\",\"meterList\":[{\"idmeter\":1,\"serialNumber\":\"678912345_MD1\",\"utilityIdMeter\":\"678912345_MD1\",\"action\":1,\"protocolConfig\":{\"meterBrand\":\"KROHNE\",\"meterModel\":\"WAFX3070\",\"protocolType\":\"modbus\",\"parity\":\"Even\",\"framing\":\"8,N,1\",\"slaveId\":\"1\",\"baudrate\":9600}}]}','172.31.0.168: POST -> 172.31.44.149:80/restcoapws/COAP_server'),(14,'2024-12-13 07:55:41','gatewayconfig','{\"idRequest\":\"fe0d0081-30af-41a2-8f5a-5d2bb94cc516\",\"gWsn\":485096706,\"utilityIdGw\":\"48509670601\",\"utilityNameGw\":\"OP00707F021224C000001\",\"meterList\":[{\"idmeter\":null,\"serialNumber\":\"240411279215B207\",\"utilityIdMeter\":\"METER3\",\"action\":1,\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B20\",\"baudrate\":2400}},{\"idmeter\":null,\"serialNumber\":\"240411279215B2071\",\"utilityIdMeter\":\"METER1\",\"action\":0,\"protocolConfig\":{\"meterBrand\":\"HYDRUS\",\"meterModel\":\"HYD171\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}},{\"idmeter\":null,\"serialNumber\":\"240411279215B2072\",\"utilityIdMeter\":\"Meter 2\",\"action\":0,\"protocolConfig\":{\"meterBrand\":\"ITRON\",\"meterModel\":\"ECHODIS\",\"protocolType\":\"mbus\",\"address\":\"240411279215B207\",\"baudrate\":2400}}],\"unassignedMeterList\":[]}','172.31.0.168: POST -> 172.31.44.149:80/restcoapws/COAP_server'),(15,'2024-12-13 07:57:28','gatewayconfig','{\"idRequest\":\"852340e1-f30e-439a-a4fe-0255cd718b7b\",\"gWsn\":678912345,\"utilityIdGw\":\"67891234501\",\"utilityNameGw\":\"OP00023F110727C000001\",\"meterList\":[{\"idmeter\":null,\"serialNumber\":\"678912345_MD2\",\"utilityIdMeter\":\"METER2\",\"action\":1,\"protocolConfig\":{\"meterBrand\":\"KROHNE\",\"meterModel\":\"WAFX3070\",\"protocolType\":\"modbus\",\"parity\":\"Even\",\"framing\":\"8,N,1\",\"slaveId\":\"1\",\"baudrate\":9600}},{\"idmeter\":1,\"serialNumber\":\"678912345_MD1\",\"utilityIdMeter\":\"METER1\",\"action\":2,\"protocolConfig\":{\"meterBrand\":\"KROHNE\",\"meterModel\":\"WAFX3070\",\"protocolType\":\"modbus\",\"parity\":\"Even\",\"framing\":\"8,N,1\",\"slaveId\":\"1\",\"baudrate\":9600}}],\"unassignedMeterList\":[]}','172.31.44.149: POST -> 172.31.44.149:80/restcoapws/COAP_server'),(16,'2024-12-13 11:56:27','gatewayconfig','{\"idRequest\":\"eb1350ca-8d6f-47bf-bd02-695ca87acb19\",\"gWsn\":678912345,\"utilityIdGw\":\"67891234501\",\"utilityNameGw\":\"OP00023F110727C000001\",\"meterList\":[{\"idmeter\":null,\"serialNumber\":\"678912345_MD2\",\"utilityIdMeter\":\"678912345_MD2\",\"action\":2,\"protocolConfig\":{\"meterBrand\":\"KROHNE\",\"meterModel\":\"WAFX3070\",\"protocolType\":\"modbus\",\"parity\":\"Even\",\"framing\":\"8,N,1\",\"slaveId\":\"1\",\"baudrate\":9600}},{\"idmeter\":1,\"serialNumber\":\"678912345_MD1\",\"utilityIdMeter\":\"678912345_MD1\",\"action\":2,\"protocolConfig\":{\"meterBrand\":\"KROHNE\",\"meterModel\":\"WAFX3070\",\"protocolType\":\"modbus\",\"parity\":\"Even\",\"framing\":\"8,N,1\",\"slaveId\":\"1\",\"baudrate\":9600}}],\"unassignedMeterList\":[]}','172.31.44.149: POST -> 172.31.44.149:80/restcoapws/COAP_server'),(17,'2024-12-13 12:07:12','gatewayconfig','{\"idRequest\":\"18623b19-61f0-4403-81e6-7bff6e32d2ea\",\"gWsn\":678912345,\"utilityIdGw\":\"67891234501\",\"utilityNameGw\":\"OP00023F110727C000001\",\"meterList\":[{\"idmeter\":null,\"serialNumber\":\"678912345_MD2\",\"utilityIdMeter\":\"678912345_MD2\",\"action\":2,\"protocolConfig\":{\"meterBrand\":\"KROHNE\",\"meterModel\":\"WAFX3070\",\"protocolType\":\"modbus\",\"parity\":\"Even\",\"framing\":\"8,N,1\",\"slaveId\":\"1\",\"baudrate\":9600}},{\"idmeter\":1,\"serialNumber\":\"678912345_MD1\",\"utilityIdMeter\":\"678912345_MD1\",\"action\":2,\"protocolConfig\":{\"meterBrand\":\"KROHNE\",\"meterModel\":\"WAFX3070\",\"protocolType\":\"modbus\",\"parity\":\"Even\",\"framing\":\"8,N,1\",\"slaveId\":\"1\",\"baudrate\":9600}}],\"unassignedMeterList\":[]}','172.31.44.149: POST -> 172.31.44.149:80/restcoapws/COAP_server'),(18,'2024-12-13 12:08:21','gatewayconfig','{\"idRequest\":\"e5938b19-f7aa-413e-8f28-8a61dc0e1b3c\",\"gWsn\":678912345,\"utilityIdGw\":\"67891234501\",\"utilityNameGw\":\"OP00023F110727C000001\",\"meterList\":[{\"idmeter\":null,\"serialNumber\":\"678912345_MD2\",\"utilityIdMeter\":\"678912345_m2\",\"action\":2,\"protocolConfig\":{\"meterBrand\":\"KROHNE\",\"meterModel\":\"WAFX3070\",\"protocolType\":\"modbus\",\"parity\":\"Even\",\"framing\":\"8,N,1\",\"slaveId\":\"1\",\"baudrate\":9600}},{\"idmeter\":1,\"serialNumber\":\"678912345_MD1\",\"utilityIdMeter\":\"678912345_m1\",\"action\":2,\"protocolConfig\":{\"meterBrand\":\"KROHNE\",\"meterModel\":\"WAFX3070\",\"protocolType\":\"modbus\",\"parity\":\"Even\",\"framing\":\"8,N,1\",\"slaveId\":\"1\",\"baudrate\":9600}}],\"unassignedMeterList\":[]}','172.31.44.149: POST -> 172.31.44.149:80/restcoapws/COAP_server');

--
-- Table structure for table `middleware_DLMS_OBIS_Channels`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `middleware_DLMS_OBIS_Channels` (
  `id` int NOT NULL AUTO_INCREMENT,
  `obis` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `channel` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `obis` (`obis`),
  KEY `channel` (`channel`)
) ENGINE=InnoDB AUTO_INCREMENT=192 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `middleware_DLMS_OBIS_Channels`
--

INSERT INTO `middleware_DLMS_OBIS_Channels` VALUES (1,'1.8.0','+A'),(2,'2.8.0','-A'),(3,'3.8.0','+Q'),(4,'4.8.0','-Q'),(5,'9.8.0','+S'),(6,'10.8.0','-S'),(7,'5.8.0','Q1'),(8,'6.8.0','Q2'),(9,'7.8.0','Q3'),(10,'8.8.0','Q4'),(11,'15.8.0','ABS'),(12,'16.8.0','NET'),(13,'13.5.0','Avg_PF+'),(14,'84.5.0','Avg_PF-'),(15,'21.8.0','+A_L1'),(16,'41.8.0','+A_L2'),(17,'61.8.0','+A_L3'),(18,'22.8.0','-A_L1'),(19,'42.8.0','-A_L2'),(20,'62.8.0','-A_L3'),(21,'23.8.0','+Q_L1'),(22,'43.8.0','+Q_L2'),(23,'63.8.0','+Q_L3'),(24,'24.8.0','-Q_L1'),(25,'44.8.0','-Q_L2'),(26,'64.8.0','-Q_L3'),(27,'29.8.0','+S_L1'),(28,'49.8.0','+S_L2'),(29,'69.8.0','+S_L3'),(30,'30.8.0','-S_L1'),(31,'50.8.0','-S_L2'),(32,'70.8.0','-S_L3'),(33,'35.8.0','ABS_L1'),(34,'55.8.0','ABS_L2'),(35,'75.8.0','ABS_L3'),(36,'1.8.1','+A_T1'),(37,'1.8.2','+A_T2'),(38,'1.8.3','+A_T3'),(39,'1.8.4','+A_T4'),(40,'2.8.1','-A_T1'),(41,'2.8.2','-A_T2'),(42,'2.8.3','-A_T3'),(43,'2.8.4','-A_T4'),(44,'3.8.1','+Q_T1'),(45,'3.8.2','+Q_T2'),(46,'3.8.3','+Q_T3'),(47,'3.8.4','+Q_T4'),(48,'4.8.1','-Q_T1'),(49,'4.8.2','-Q_T2'),(50,'4.8.3','-Q_T3'),(51,'4.8.4','-Q_T4'),(52,'9.8.1','+S_T1'),(53,'9.8.2','+S_T2'),(54,'9.8.3','+S_T3'),(55,'9.8.4','+S_T4'),(56,'10.8.1','-S_T1'),(57,'10.8.2','-S_T2'),(58,'10.8.3','-S_T3'),(59,'10.8.4','-S_T4'),(60,'15.8.1','ABS_T1'),(61,'15.8.2','ABS_T2'),(62,'15.8.3','ABS_T3'),(63,'15.8.4','ABS_T4'),(64,'1.0.0','DAT'),(65,'1.7.0','IA_P'),(66,'3.7.0','IR_P'),(67,'9.7.0','IApp_P'),(68,'2.7.0','EA_P'),(69,'4.7.0','ER_P'),(70,'10.7.0','EApp_P'),(71,'21.7.0','IA_P_L1'),(72,'41.7.0','IA_P_L2'),(73,'61.7.0','IA_P_L3'),(74,'22.7.0','EA_P_L1'),(75,'42.7.0','EA_P_L2'),(76,'62.7.0','EA_P_L3'),(77,'23.7.0','IR_P_L1'),(78,'43.7.0','IR_P_L2'),(79,'63.7.0','IR_P_L3'),(80,'24.7.0','ER_P_L1'),(81,'44.7.0','ER_P_L2'),(82,'64.7.0','ER_P_L3'),(83,'29.7.0','IApp_P_L1'),(84,'49.7.0','IApp_P_L2'),(85,'69.7.0','IApp_P_L3'),(86,'30.7.0','EApp_P_L1'),(87,'50.7.0','EApp_P_L2'),(88,'70.7.0','EApp_P_L3'),(89,'32.7.0','Inst_V_L1'),(90,'52.7.0','Inst_V_L2'),(91,'72.7.0','Inst_V_L3'),(92,'31.7.0','Inst_I_L1'),(93,'51.7.0','Inst_I_L2'),(94,'71.7.0','Inst_I_L3'),(95,'13.7.0','Inst_PF+'),(96,'84.7.0','Inst_PF-'),(97,'33.7.0','Inst_PF_L1'),(98,'53.7.0','Inst_PF_L2'),(99,'73.7.0','Inst_PF_L3'),(100,'14.7.0','Freq'),(101,'81.7.40','Phase_Angle_L1'),(102,'81.7.51','Phase_Angle_L2'),(103,'81.7.62','Phase_Angle_L3'),(104,'32.7.124','V_THD_L1'),(105,'52.7.124','V_THD_L2'),(106,'72.7.124','V_THD_L3'),(107,'96.7.0','No_PwrOff'),(108,'96.7.10','Cum_PwrOff_Duration'),(109,'96.15.0','Cum_Tamp_Count'),(110,'96.2.0','Cum_Prg_Count'),(111,'1.6.0','+MDA'),(112,'2.6.0','-MDA'),(113,'3.6.0','+MDR'),(114,'4.6.0','-MDR'),(115,'9.6.0','+MDS'),(116,'10.6.0','-MDS'),(117,'1.6.1','+MDA_T1'),(118,'1.6.2','+MDA_T2'),(119,'1.6.3','+MDA_T3'),(120,'1.6.4','+MDA_T4'),(121,'2.6.1','-MDA_T1'),(122,'2.6.2','-MDA_T2'),(123,'2.6.3','-MDA_T3'),(124,'2.6.4','-MDA_T4'),(125,'3.6.1','+MDR_T1'),(126,'3.6.2','+MDR_T2'),(127,'3.6.3','+MDR_T3'),(128,'3.6.4','+MDR_T4'),(129,'4.6.1','-MDR_T1'),(130,'4.6.2','-MDR_T2'),(131,'4.6.3','-MDR_T3'),(132,'4.6.4','-MDR_T4'),(133,'9.6.1','+MDS_T1'),(134,'9.6.2','+MDS_T2'),(135,'9.6.3','+MDS_T3'),(136,'9.6.4','+MDS_T4'),(137,'10.6.1','-MDS_T1'),(138,'10.6.2','-MDS_T2'),(139,'10.6.3','-MDS_T3'),(140,'10.6.4','-MDS_T4'),(141,'31.6.0','I_max_LI'),(142,'51.6.0','I_max_L2'),(143,'71.6.0','I_max_L3'),(144,'13.7.0','PF'),(145,'32.28.0','Avg_V_L1'),(146,'52.28.0','Avg_V_L2'),(147,'72.28.0','Avg_V_L3'),(148,'31.28.0','Avg_I_L1'),(149,'51.28.0','Avg_I_L2'),(150,'71.28.0','Avg_I_L3'),(151,'21.5.0','Lst_Avg_IAD_L1'),(152,'41.5.0','Lst_Avg_IAD_L2'),(153,'61.5.0','Lst_Avg_IAD_L3'),(154,'1.5.0','Lst_Avg_IAD'),(155,'2.5.0','Lst_Avg_EAD'),(156,'3.5.0','Lst_Avg_IRD'),(157,'4.5.0','Lst_Avg_ERD'),(158,'32.24.0','Avg_V_L1'),(159,'52.24.0','Avg_V_L2'),(160,'72.24.0','Avg_V_L3'),(161,'32.15.124','Avg_V_THD_L1'),(162,'52.15.124','Avg_V_THD_L2'),(163,'72.15.124','Avg_V_THD_L3'),(164,'31.15.124','Avg_I_THD_L1'),(165,'51.15.124','Avg_I_THD_L2'),(166,'71.15.124','Avg_I_THD_L3'),(167,'0.10.1','TIr_Los'),(168,'0.10.2','LR_Los'),(169,'83.8.4','ATL+'),(170,'83.8.5','ATL-'),(171,'83.8.1','ALL+'),(172,'83.8.2','ALL-'),(173,'33.5.0','Lst_Avg_PF_L1'),(174,'53.5.0','Lst_Avg_PF_L2'),(175,'73.5.0','Lst_Avg_PF_L3'),(176,'21.4.0','IAD_L1'),(177,'41.4.0','IAD_L2'),(178,'61.4.0','IAD_L3'),(179,'81.7.4','Ph_Angle_L1'),(180,'81.7.15','Ph_Angle_L2'),(181,'81.7.26','Ph_Angle_L3'),(182,'81.7.40','I_Ph_Angle_L1'),(183,'81.7.50','I_Ph_Angle_L2'),(184,'81.7.60','I_Ph_Angle_L3'),(185,'32.7.124','V_THD_L1'),(186,'52.7.124','V_THD_L2'),(187,'72.7.124','V_THD_L3'),(188,'31.7.124','I_THD_L1'),(189,'51.7.124','I_THD_L2'),(190,'71.7.124','I_THD_L3'),(191,'13.7.128','PF_Angle');

--
-- Table structure for table `middleware_DLMS_devices_types`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `middleware_DLMS_devices_types` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `meterBrand` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `meterModel` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `parameters_dlms` varchar(4500) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '<parameters_dlms></parameters_dlms>',
  `descriptors_dlms` varchar(4500) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '<descriptors_dlms></descriptors_dlms>',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `middleware_DLMS_devices_types`
--

INSERT INTO `middleware_DLMS_devices_types` VALUES (1,'DLMS Standard Device','ISKRA','MT372','<parameters_dlms><dlms_enable>1</dlms_enable><dlms_read>900</dlms_read><dlms_send>3600</dlms_send><dlms_cl_address>100</dlms_cl_address><dlms_srv_address>145</dlms_srv_address><dlms_authen_pass>12345678</dlms_authen_pass><dlms_obis_1>1.0.1.8.0.255</dlms_obis_1><dlms_obis_2>1.0.2.8.0.255</dlms_obis_2><dlms_obis_3>1.0.1.7.0.255</dlms_obis_3><dlms_obis_4>1.0.32.7.0.255</dlms_obis_4><dlms_obis_5>1.0.52.7.0.255</dlms_obis_5><dlms_obis_6>1.0.72.7.0.255</dlms_obis_6><dlms_obis_7>1.0.31.7.0.255</dlms_obis_7><dlms_obis_8>1.0.51.7.0.255</dlms_obis_8><dlms_obis_9>1.0.71.7.0.255</dlms_obis_9><dlms_obis_10>1.0.3.8.0.255</dlms_obis_10><dlms_obis_11>1.0.4.8.0.255</dlms_obis_11><dlms_obis_12>1.0.2.7.0.255</dlms_obis_12><dlms_obis_13>1.0.3.7.0.255</dlms_obis_13><dlms_obis_14>1.0.4.7.0.255</dlms_obis_14><dlms_obis_16>1.0.99.1.0.255</dlms_obis_16><dlms_obis_17>0.0.98.1.0.255</dlms_obis_17><dlms_obis_18>0.0.99.98.0.255</dlms_obis_18></parameters_dlms>','<descriptors_dlms><dlms_frame_fields></dlms_frame_fields><parameters_dlms_fields>dlms_checksum</parameters_dlms_fields></descriptors_dlms>'),(2,'DLMS ELSTER A1830','ELSTER','A1830','<parameters_dlms><dlms_enable>1</dlms_enable><dlms_read>900</dlms_read><dlms_send>900</dlms_send><dlms_baudrate>19200</dlms_baudrate><dlms_cl_address>17</dlms_cl_address><dlms_logical_address>1</dlms_logical_address><dlms_srv_address>112</dlms_srv_address><dlms_short_name_ref>0</dlms_short_name_ref><dlms_pass_level>1</dlms_pass_level><dlms_billingday>1</dlms_billingday><dlms_baudrate>9600</dlms_baudrate><dlms_authen_pass>19245088603560947755</dlms_authen_pass><dlms_pass_is_hex>1</dlms_pass_is_hex><dlms_obis_1>1.1.1.8.0.255</dlms_obis_1><dlms_obis_2>1.1.2.8.0.255</dlms_obis_2><dlms_obis_3>1.1.1.7.0.255</dlms_obis_3><dlms_obis_4>1.1.32.7.0.255</dlms_obis_4><dlms_obis_5>1.1.52.7.0.255</dlms_obis_5><dlms_obis_6>1.1.72.7.0.255</dlms_obis_6><dlms_obis_7>1.1.31.7.0.255</dlms_obis_7><dlms_obis_8>1.1.51.7.0.255</dlms_obis_8><dlms_obis_9>1.1.71.7.0.255</dlms_obis_9><dlms_obis_10>1.1.3.8.0.255</dlms_obis_10><dlms_obis_11>1.1.4.8.0.255</dlms_obis_11><dlms_obis_12>1.1.2.7.0.255</dlms_obis_12><dlms_obis_13>1.1.3.7.0.255</dlms_obis_13><dlms_obis_14>1.1.4.7.0.255</dlms_obis_14><dlms_obis_16>1.0.99.1.2.255</dlms_obis_16><dlms_obis_17>0.0.98.1.2.255</dlms_obis_17><dlms_obis_18>1.1.99.98.0.255</dlms_obis_18><dlms_obis_19>0.0.42.0.0.255</dlms_obis_19></parameters_dlms>','<descriptors_dlms><dlms_frame_fields></dlms_frame_fields><parameters_dlms_fields>dlms_checksum</parameters_dlms_fields></descriptors_dlms>'),(3,'DLMS ELSTER AS253','ELSTER','AS253','<parameters_dlms><dlms_enable>1</dlms_enable><dlms_read>900</dlms_read><dlms_send>900</dlms_send><dlms_cl_address>17</dlms_cl_address><dlms_logical_address>1</dlms_logical_address><dlms_srv_address>63</dlms_srv_address><dlms_short_name_ref>0</dlms_short_name_ref><dlms_pass_level>1</dlms_pass_level><dlms_pass_is_hex>0</dlms_pass_is_hex><dlms_billingday>1</dlms_billingday><dlms_baudrate>19200</dlms_baudrate><dlms_authen_pass>11111111</dlms_authen_pass><dlms_obis_1>1.1.1.8.0.255</dlms_obis_1><dlms_obis_2>1.1.2.8.0.255</dlms_obis_2><dlms_obis_3>1.1.32.7.0.255</dlms_obis_3><dlms_obis_4>1.1.31.7.0.255</dlms_obis_4><dlms_obis_5>1.1.21.7.0.255</dlms_obis_5><dlms_obis_6>1.1.22.7.0.255</dlms_obis_6><dlms_obis_7>1.1.3.8.0.255</dlms_obis_7><dlms_obis_8/><dlms_obis_9/><dlms_obis_16>1.0.99.1.0.255</dlms_obis_16><dlms_obis_17>0.0.98.1.0.255</dlms_obis_17><dlms_obis_18>0.0.99.98.0.255</dlms_obis_18><dlms_obis_19>1.1.0.0.0.255</dlms_obis_19></parameters_dlms>','<descriptors_dlms><dlms_frame_fields></dlms_frame_fields><parameters_dlms_fields>dlms_checksum</parameters_dlms_fields></descriptors_dlms>'),(4,'DLMS ELSTER AS1253','ELSTER','AS1253','<parameters_dlms><dlms_enable>1</dlms_enable><dlms_read>900</dlms_read><dlms_send>900</dlms_send><dlms_cl_address>17</dlms_cl_address><dlms_logical_address>1</dlms_logical_address><dlms_srv_address>33</dlms_srv_address><dlms_short_name_ref>0</dlms_short_name_ref><dlms_pass_level>1</dlms_pass_level><dlms_pass_is_hex>0</dlms_pass_is_hex><dlms_billingday>1</dlms_billingday><dlms_baudrate>9600</dlms_baudrate><dlms_authen_pass>22222222</dlms_authen_pass><dlms_obis_1>1.1.1.8.0.255</dlms_obis_1><dlms_obis_2>1.1.2.8.0.255</dlms_obis_2><dlms_obis_3>1.1.1.7.0.255</dlms_obis_3><dlms_obis_4>1.1.32.7.0.255</dlms_obis_4><dlms_obis_5>1.1.52.7.0.255</dlms_obis_5><dlms_obis_6>1.1.72.7.0.255</dlms_obis_6><dlms_obis_7>1.1.31.7.0.255</dlms_obis_7><dlms_obis_8>1.1.51.7.0.255</dlms_obis_8><dlms_obis_9>1.1.71.7.0.255</dlms_obis_9><dlms_obis_10>1.1.3.8.0.255</dlms_obis_10><dlms_obis_11>1.1.2.7.0.255</dlms_obis_11><dlms_obis_16>1.0.99.1.0.255</dlms_obis_16><dlms_obis_17>0.0.98.1.0.255</dlms_obis_17><dlms_obis_18>0.0.99.98.0.255</dlms_obis_18><dlms_obis_19>0.0.42.0.0.255</dlms_obis_19></parameters_dlms>','<descriptors_dlms><dlms_frame_fields></dlms_frame_fields><parameters_dlms_fields>dlms_checksum</parameters_dlms_fields></descriptors_dlms>'),(5,'DLMS ISKRA MT372','ISKRA','MT372','<parameters_dlms><dlms_enable>1</dlms_enable><dlms_read>900</dlms_read><dlms_send>900</dlms_send><dlms_cl_address>100</dlms_cl_address><dlms_logical_address>1</dlms_logical_address><dlms_srv_address>39</dlms_srv_address><dlms_short_name_ref>0</dlms_short_name_ref><dlms_pass_level>1</dlms_pass_level><dlms_pass_is_hex>0</dlms_pass_is_hex><dlms_authen_pass>23322332</dlms_authen_pass><dlms_billingday>5</dlms_billingday><dlms_baudrate>115200</dlms_baudrate><dlms_obis_1>1.0.1.8.0.255</dlms_obis_1><dlms_obis_2>1.0.2.8.0.255</dlms_obis_2><dlms_obis_3>1.0.1.7.0.255</dlms_obis_3><dlms_obis_4>1.0.32.7.0.255</dlms_obis_4><dlms_obis_5>1.0.52.7.0.255</dlms_obis_5><dlms_obis_6>1.0.72.7.0.255</dlms_obis_6><dlms_obis_7>1.0.31.7.0.255</dlms_obis_7><dlms_obis_8>1.0.51.7.0.255</dlms_obis_8><dlms_obis_9>1.0.71.7.0.255</dlms_obis_9><dlms_obis_10>1.0.3.8.0.255</dlms_obis_10><dlms_obis_11>1.0.4.8.0.255</dlms_obis_11><dlms_obis_16>1.0.99.1.0.255</dlms_obis_16><dlms_obis_17>1.0.98.1.0.255</dlms_obis_17><dlms_obis_18>1.0.99.98.0.255</dlms_obis_18><dlms_obis_19>0.0.96.1.7.255</dlms_obis_19></parameters_dlms>','<descriptors_dlms><dlms_frame_fields></dlms_frame_fields><parameters_dlms_fields>dlms_checksum</parameters_dlms_fields></descriptors_dlms>'),(6,'DLMS ISKRA MT880','ISKRA','MT880','<parameters_dlms><dlms_enable>1</dlms_enable><dlms_read>900</dlms_read><dlms_send>900</dlms_send><dlms_cl_address>100</dlms_cl_address><dlms_logical_address>1</dlms_logical_address><dlms_srv_address>82</dlms_srv_address><dlms_short_name_ref>0</dlms_short_name_ref><dlms_pass_level>1</dlms_pass_level><dlms_pass_is_hex>0</dlms_pass_is_hex><dlms_billingday>1</dlms_billingday><dlms_baudrate>9600</dlms_baudrate><dlms_authen_pass>12345678</dlms_authen_pass><dlms_obis_1>1.0.1.8.0.255</dlms_obis_1><dlms_obis_2>1.0.2.8.0.255</dlms_obis_2><dlms_obis_3>1.0.1.7.0.255</dlms_obis_3><dlms_obis_4>1.0.32.7.0.255</dlms_obis_4><dlms_obis_5>1.0.52.7.0.255</dlms_obis_5><dlms_obis_6>1.0.72.7.0.255</dlms_obis_6><dlms_obis_7>1.0.31.7.0.255</dlms_obis_7><dlms_obis_8>1.0.51.7.0.255</dlms_obis_8><dlms_obis_9>1.0.71.7.0.255</dlms_obis_9><dlms_obis_10>1.0.3.8.0.255</dlms_obis_10><dlms_obis_11>1.0.4.8.0.255</dlms_obis_11><dlms_obis_12>1.0.2.7.0.255</dlms_obis_12><dlms_obis_13>1.0.3.7.0.255</dlms_obis_13><dlms_obis_14>1.0.4.7.0.255</dlms_obis_14><dlms_obis_16>1.0.99.1.0.255</dlms_obis_16><dlms_obis_17>0.0.98.1.0.255</dlms_obis_17><dlms_obis_18>0.0.99.98.0.255</dlms_obis_18><dlms_obis_19>0.0.42.0.0.255</dlms_obis_19></parameters_dlms>','<descriptors_dlms><dlms_frame_fields></dlms_frame_fields><parameters_dlms_fields>dlms_checksum</parameters_dlms_fields></descriptors_dlms>'),(7,'DLMS ISKRA ME372','ISKRA','ME372','<parameters_dlms><dlms_enable>1</dlms_enable><dlms_read>900</dlms_read><dlms_send>900</dlms_send><dlms_cl_address>16</dlms_cl_address><dlms_logical_address>1</dlms_logical_address><dlms_srv_address>17</dlms_srv_address><dlms_short_name_ref>0</dlms_short_name_ref><dlms_pass_level>1</dlms_pass_level><dlms_pass_is_hex>0</dlms_pass_is_hex><dlms_billingday>1</dlms_billingday><dlms_baudrate>115200</dlms_baudrate><dlms_authen_pass>23322332</dlms_authen_pass><dlms_obis_1>1.0.1.8.0.255</dlms_obis_1><dlms_obis_2>1.0.2.8.0.255</dlms_obis_2><dlms_obis_3>1.0.1.7.0.255</dlms_obis_3><dlms_obis_4>1.0.32.7.0.255</dlms_obis_4><dlms_obis_7>1.0.31.7.0.255</dlms_obis_7><dlms_obis_10>1.0.3.8.0.255</dlms_obis_10><dlms_obis_11>1.0.4.8.0.255</dlms_obis_11><dlms_obis_12>1.0.2.7.0.255</dlms_obis_12><dlms_obis_13>1.0.3.7.0.255</dlms_obis_13><dlms_obis_14>1.0.4.7.0.255</dlms_obis_14><dlms_obis_16>1.0.99.1.0.255</dlms_obis_16><dlms_obis_17>1.0.98.1.0.255</dlms_obis_17><dlms_obis_18>1.0.99.98.0.255</dlms_obis_18><dlms_obis_19>0.0.96.1.7.255</dlms_obis_19></parameters_dlms>','<descriptors_dlms><dlms_frame_fields></dlms_frame_fields><parameters_dlms_fields>dlms_checksum</parameters_dlms_fields></descriptors_dlms>'),(8,'DLMS ISKRA ME383','ISKRA','ME383','<parameters_dlms><dlms_enable>1</dlms_enable><dlms_read>900</dlms_read><dlms_send>900</dlms_send><dlms_cl_address>1</dlms_cl_address><dlms_logical_address>1</dlms_logical_address><dlms_srv_address>17</dlms_srv_address><dlms_short_name_ref>0</dlms_short_name_ref><dlms_pass_level>1</dlms_pass_level><dlms_pass_is_hex>0</dlms_pass_is_hex><dlms_billingday>1</dlms_billingday><dlms_baudrate>115200</dlms_baudrate><dlms_authen_pass>22222222</dlms_authen_pass><dlms_obis_1>1.0.1.8.0.255</dlms_obis_1><dlms_obis_2>1.0.2.8.0.255</dlms_obis_2><dlms_obis_3>1.0.1.7.0.255</dlms_obis_3><dlms_obis_4>1.0.32.7.0.255</dlms_obis_4><dlms_obis_7>1.0.31.7.0.255</dlms_obis_7><dlms_obis_10>1.0.3.8.0.255</dlms_obis_10><dlms_obis_11>1.0.4.8.0.255</dlms_obis_11><dlms_obis_12>1.0.2.7.0.255</dlms_obis_12><dlms_obis_13>1.0.3.7.0.255</dlms_obis_13><dlms_obis_14>1.0.4.7.0.255</dlms_obis_14><dlms_obis_16>1.0.99.1.0.255</dlms_obis_16><dlms_obis_17>0.0.98.1.0.255</dlms_obis_17><dlms_obis_18>0.0.99.98.0.255</dlms_obis_18><dlms_obis_19>0.0.42.0.0.255</dlms_obis_19></parameters_dlms>','<descriptors_dlms><dlms_frame_fields></dlms_frame_fields><parameters_dlms_fields>dlms_checksum</parameters_dlms_fields></descriptors_dlms>'),(9,'DLMS ISKRA MT383','ISKRA','MT383','<parameters_dlms><dlms_enable>1</dlms_enable><dlms_read>900</dlms_read><dlms_send>900</dlms_send><dlms_cl_address>1</dlms_cl_address><dlms_logical_address>1</dlms_logical_address><dlms_srv_address>41</dlms_srv_address><dlms_short_name_ref>0</dlms_short_name_ref><dlms_pass_level>1</dlms_pass_level><dlms_pass_is_hex>0</dlms_pass_is_hex><dlms_billingday>1</dlms_billingday><dlms_baudrate>9600</dlms_baudrate><dlms_authen_pass>23322332</dlms_authen_pass><dlms_obis_1>1.0.1.8.0.255</dlms_obis_1><dlms_obis_2>1.0.2.8.0.255</dlms_obis_2><dlms_obis_3>1.0.1.7.0.255</dlms_obis_3><dlms_obis_4>1.0.32.7.0.255</dlms_obis_4><dlms_obis_5>1.0.52.7.0.255</dlms_obis_5><dlms_obis_6>1.0.72.7.0.255</dlms_obis_6><dlms_obis_7>1.0.31.7.0.255</dlms_obis_7><dlms_obis_8>1.0.51.7.0.255</dlms_obis_8><dlms_obis_9>1.0.71.7.0.255</dlms_obis_9><dlms_obis_10>1.0.3.8.0.255</dlms_obis_10><dlms_obis_11>1.0.4.8.0.255</dlms_obis_11><dlms_obis_12>1.0.2.7.0.255</dlms_obis_12><dlms_obis_13>1.0.3.7.0.255</dlms_obis_13><dlms_obis_14>1.0.4.7.0.255</dlms_obis_14>\r\n<dlms_obis_16>1.0.99.1.0.255</dlms_obis_16><dlms_obis_17>0.0.98.1.0.255</dlms_obis_17><dlms_obis_18>0.0.99.98.0.255</dlms_obis_18>\r\n<dlms_obis_19>0.0.42.0.0.255</dlms_obis_19></parameters_dlms>','<descriptors_dlms><dlms_frame_fields></dlms_frame_fields><parameters_dlms_fields>dlms_checksum</parameters_dlms_fields></descriptors_dlms>'),(10,'DLMS L+G E650','L&G','E650','<parameters_dlms><dlms_enable>1</dlms_enable><dlms_read>900</dlms_read><dlms_send>900</dlms_send><dlms_cl_address>16</dlms_cl_address><dlms_logical_address>0</dlms_logical_address><dlms_srv_address>1</dlms_srv_address><dlms_short_name_ref>0</dlms_short_name_ref><dlms_pass_level>0</dlms_pass_level><dlms_pass_is_hex>0</dlms_pass_is_hex><dlms_billingday>1</dlms_billingday><dlms_baudrate>9600</dlms_baudrate><dlms_authen_pass></dlms_authen_pass><dlms_obis_1>1.1.1.8.0.255</dlms_obis_1><dlms_obis_2>1.1.2.8.0.255</dlms_obis_2><dlms_obis_3>1.1.3.8.0.255</dlms_obis_3><dlms_obis_4>1.1.4.8.0.255</dlms_obis_4><dlms_obis_5>1.1.32.7.0.255</dlms_obis_5><dlms_obis_6>1.1.52.7.0.255</dlms_obis_6><dlms_obis_7>1.1.72.7.0.2555</dlms_obis_7><dlms_obis_8>1.1.31.7.0.255</dlms_obis_8><dlms_obis_9>1.1.51.7.0.255</dlms_obis_9><dlms_obis_10>1.1.71.7.0.255</dlms_obis_10><dlms_obis_16>1.0.99.1.0.255</dlms_obis_16><dlms_obis_17>0.0.98.1.0.126</dlms_obis_17><dlms_obis_18>1.0.99.98.0.255</dlms_obis_18><dlms_obis_19>0.0.96.1.0.255</dlms_obis_19></parameters_dlms>','<descriptors_dlms><dlms_frame_fields></dlms_frame_fields><parameters_dlms_fields>dlms_checksum</parameters_dlms_fields></descriptors_dlms>'),(11,'DLMS ISKRA AM550-TD','ISKRA','AM550-TD','<parameters_dlms><dlms_enable>1</dlms_enable><dlms_read>900</dlms_read><dlms_send>900</dlms_send><dlms_cl_address>1</dlms_cl_address><dlms_logical_address>1</dlms_logical_address><dlms_srv_address>35</dlms_srv_address><dlms_short_name_ref>0</dlms_short_name_ref><dlms_pass_level>1</dlms_pass_level><dlms_pass_is_hex>0</dlms_pass_is_hex><dlms_billingday>1</dlms_billingday><dlms_baudrate>9600</dlms_baudrate><dlms_authen_pass>23322332</dlms_authen_pass><dlms_obis_1>1.0.1.8.0.255</dlms_obis_1><dlms_obis_2>1.0.2.8.0.255</dlms_obis_2><dlms_obis_3>1.0.1.7.0.255</dlms_obis_3><dlms_obis_4>1.0.32.7.0.255</dlms_obis_4><dlms_obis_5>1.0.52.7.0.255</dlms_obis_5><dlms_obis_6>1.0.72.7.0.255</dlms_obis_6><dlms_obis_7>1.0.31.7.0.255</dlms_obis_7><dlms_obis_8>1.0.51.7.0.255</dlms_obis_8><dlms_obis_9>1.0.71.7.0.255</dlms_obis_9><dlms_obis_10>1.0.3.8.0.255</dlms_obis_10><dlms_obis_11>1.0.4.8.0.255</dlms_obis_11><dlms_obis_12>1.0.2.7.0.255</dlms_obis_12><dlms_obis_13>1.0.3.7.0.255</dlms_obis_13><dlms_obis_14>1.0.4.7.0.255</dlms_obis_14><dlms_obis_16>1.0.99.1.0.255</dlms_obis_16><dlms_obis_17>0.0.98.1.0.255</dlms_obis_17><dlms_obis_18>0.0.99.98.0.255</dlms_obis_18><dlms_obis_19>0.0.42.0.0.255</dlms_obis_19></parameters_dlms>','<descriptors_dlms><dlms_frame_fields></dlms_frame_fields><parameters_dlms_fields>dlms_checksum</parameters_dlms_fields></descriptors_dlms>'),(12,'DLMS ELSTER A1860','ELSTER','A1860','<parameters_dlms><dlms_enable>1</dlms_enable><dlms_read>900</dlms_read><dlms_send>900</dlms_send><dlms_baudrate>9600</dlms_baudrate><dlms_cl_address>17</dlms_cl_address><dlms_logical_address>1</dlms_logical_address><dlms_srv_address>85</dlms_srv_address><dlms_short_name_ref>0</dlms_short_name_ref><dlms_pass_level>1</dlms_pass_level><dlms_pass_is_hex>0</dlms_pass_is_hex><dlms_billingday>1</dlms_billingday><dlms_authen_pass>11111111112222222222</dlms_authen_pass><dlms_obis_1>1.1.1.8.0.255</dlms_obis_1><dlms_obis_2>1.1.2.8.0.255</dlms_obis_2><dlms_obis_3>1.1.1.7.0.255</dlms_obis_3><dlms_obis_4>1.1.32.7.0.255</dlms_obis_4><dlms_obis_5>1.1.52.7.0.255</dlms_obis_5><dlms_obis_6>1.1.72.7.0.255</dlms_obis_6><dlms_obis_7>1.1.31.7.0.255</dlms_obis_7><dlms_obis_8>1.1.51.7.0.255</dlms_obis_8><dlms_obis_9>1.1.71.7.0.255</dlms_obis_9><dlms_obis_10>1.1.3.8.0.255</dlms_obis_10><dlms_obis_11>1.1.4.8.0.255</dlms_obis_11><dlms_obis_12>1.1.2.7.0.255</dlms_obis_12><dlms_obis_13>1.1.3.7.0.255</dlms_obis_13><dlms_obis_14>1.1.4.7.0.255</dlms_obis_14><dlms_obis_16>1.0.99.1.2.255</dlms_obis_16><dlms_obis_17>0.0.98.1.0.255</dlms_obis_17><dlms_obis_18>1.1.99.98.0.255</dlms_obis_18><dlms_obis_19>1.0.96.1.1.255</dlms_obis_19></parameters_dlms>','<descriptors_dlms><dlms_frame_fields></dlms_frame_fields><parameters_dlms_fields>dlms_checksum</parameters_dlms_fields></descriptors_dlms>'),(13,'DLMS ELSTER AS3000','ELSTER','AS3000','<parameters_dlms><dlms_enable>1</dlms_enable><dlms_read>900</dlms_read><dlms_send>900</dlms_send><dlms_baudrate>19200</dlms_baudrate>\r\n<dlms_cl_address>1</dlms_cl_address><dlms_logical_address>1</dlms_logical_address><dlms_srv_address>80</dlms_srv_address><dlms_short_name_ref>0</dlms_short_name_ref><dlms_pass_level>1</dlms_pass_level><dlms_billingday>1</dlms_billingday><dlms_authen_pass>22222222</dlms_authen_pass><dlms_pass_is_hex>0</dlms_pass_is_hex>\r\n<dlms_obis_1>1.1.1.8.0.255</dlms_obis_1><dlms_obis_2>1.1.2.8.0.255</dlms_obis_2><dlms_obis_3>1.1.1.7.0.255</dlms_obis_3><dlms_obis_4>1.1.32.7.0.255</dlms_obis_4>\r\n<dlms_obis_5>1.1.52.7.0.255</dlms_obis_5><dlms_obis_6>1.1.72.7.0.255</dlms_obis_6><dlms_obis_7>1.1.31.7.0.255</dlms_obis_7><dlms_obis_8>1.1.51.7.0.255</dlms_obis_8>\r\n<dlms_obis_9>1.1.71.7.0.255</dlms_obis_9><dlms_obis_10>1.1.3.8.0.255</dlms_obis_10><dlms_obis_11>1.1.1.7.0.255</dlms_obis_11><dlms_obis_12>1.1.2.7.0.255</dlms_obis_12>\r\n<dlms_obis_16>1.1.99.2.0.255</dlms_obis_16><dlms_obis_17>1.1.99.1.0.255</dlms_obis_17><dlms_obis_18>1.1.99.98.0.255</dlms_obis_18><dlms_obis_19>0.0.42.0.0.255</dlms_obis_19></parameters_dlms>','<descriptors_dlms><dlms_frame_fields></dlms_frame_fields><parameters_dlms_fields>dlms_checksum</parameters_dlms_fields></descriptors_dlms>'),(14,'DLMS EMH XC-RACK','EMH','XC-RACK','<parameters_dlms><dlms_enable>1</dlms_enable><dlms_read>900</dlms_read><dlms_send>900</dlms_send><dlms_baudrate>9600</dlms_baudrate>\r\n<dlms_cl_address>16</dlms_cl_address><dlms_logical_address>1</dlms_logical_address><dlms_srv_address>427</dlms_srv_address><dlms_short_name_ref>1</dlms_short_name_ref><dlms_pass_level>0</dlms_pass_level><dlms_authen_pass></dlms_authen_pass><dlms_pass_is_hex>0</dlms_pass_is_hex><dlms_billingday>17</dlms_billingday>\r\n<dlms_obis_1>700</dlms_obis_1><dlms_obis_2>730</dlms_obis_2><dlms_obis_3>760</dlms_obis_3><dlms_obis_4>790</dlms_obis_4>\r\n<dlms_obis_5>7c0</dlms_obis_5><dlms_obis_6>7f0</dlms_obis_6><dlms_obis_7>820</dlms_obis_7><dlms_obis_8>850</dlms_obis_8>\r\n<dlms_obis_9>4a80</dlms_obis_9><dlms_obis_10>4ab0</dlms_obis_10><dlms_obis_11>4ae0</dlms_obis_11><dlms_obis_12>4b10</dlms_obis_12><dlms_obis_13>4b40</dlms_obis_13><dlms_obis_14>4b70</dlms_obis_14>\r\n<dlms_obis_16>5000</dlms_obis_16><dlms_obis_17>8000</dlms_obis_17><dlms_obis_18>8080</dlms_obis_18><dlms_obis_19>fd00</dlms_obis_19></parameters_dlms>','<descriptors_dlms><dlms_frame_fields></dlms_frame_fields><parameters_dlms_fields>dlms_checksum</parameters_dlms_fields></descriptors_dlms>'),(17,'DLMS ELS(ABB) AS253','ELS(ABB)','AS253','<parameters_dlms><dlms_enable>1</dlms_enable><dlms_read>900</dlms_read><dlms_send>900</dlms_send><dlms_cl_address>17</dlms_cl_address><dlms_logical_address>1</dlms_logical_address><dlms_srv_address>63</dlms_srv_address><dlms_short_name_ref>0</dlms_short_name_ref><dlms_pass_level>1</dlms_pass_level><dlms_pass_is_hex>0</dlms_pass_is_hex><dlms_billingday>1</dlms_billingday><dlms_baudrate>19200</dlms_baudrate><dlms_authen_pass>11111111</dlms_authen_pass><dlms_obis_1>1.1.1.8.0.255</dlms_obis_1><dlms_obis_2>1.1.2.8.0.255</dlms_obis_2><dlms_obis_3>1.1.32.7.0.255</dlms_obis_3><dlms_obis_4>1.1.31.7.0.255</dlms_obis_4><dlms_obis_5>1.1.21.7.0.255</dlms_obis_5><dlms_obis_6>1.1.22.7.0.255</dlms_obis_6><dlms_obis_7>1.1.3.8.0.255</dlms_obis_7><dlms_obis_8/><dlms_obis_9/><dlms_obis_16>1.0.99.1.0.255</dlms_obis_16><dlms_obis_17>0.0.98.1.0.255</dlms_obis_17><dlms_obis_18>0.0.99.98.0.255</dlms_obis_18><dlms_obis_19>1.1.0.0.0.255</dlms_obis_19></parameters_dlms>','<descriptors_dlms><dlms_frame_fields></dlms_frame_fields><parameters_dlms_fields>dlms_checksum</parameters_dlms_fields></descriptors_dlms>'),(18,'DLMS ELS(ABB) AS3000','ELS(ABB)','AS3000','<parameters_dlms><dlms_enable>1</dlms_enable><dlms_read>900</dlms_read><dlms_send>900</dlms_send><dlms_baudrate>19200</dlms_baudrate>\r\n<dlms_cl_address>1</dlms_cl_address><dlms_logical_address>1</dlms_logical_address><dlms_srv_address>80</dlms_srv_address><dlms_short_name_ref>0</dlms_short_name_ref><dlms_pass_level>1</dlms_pass_level><dlms_billingday>1</dlms_billingday><dlms_authen_pass>22222222</dlms_authen_pass><dlms_pass_is_hex>0</dlms_pass_is_hex>\r\n<dlms_obis_1>1.1.1.8.0.255</dlms_obis_1><dlms_obis_2>1.1.2.8.0.255</dlms_obis_2><dlms_obis_3>1.1.1.7.0.255</dlms_obis_3><dlms_obis_4>1.1.32.7.0.255</dlms_obis_4>\r\n<dlms_obis_5>1.1.52.7.0.255</dlms_obis_5><dlms_obis_6>1.1.72.7.0.255</dlms_obis_6><dlms_obis_7>1.1.31.7.0.255</dlms_obis_7><dlms_obis_8>1.1.51.7.0.255</dlms_obis_8>\r\n<dlms_obis_9>1.1.71.7.0.255</dlms_obis_9><dlms_obis_10>1.1.3.8.0.255</dlms_obis_10><dlms_obis_11>1.1.1.7.0.255</dlms_obis_11><dlms_obis_12>1.1.2.7.0.255</dlms_obis_12>\r\n<dlms_obis_16>1.1.99.2.0.255</dlms_obis_16><dlms_obis_17>1.1.99.1.0.255</dlms_obis_17><dlms_obis_18>1.1.99.98.0.255</dlms_obis_18><dlms_obis_19>0.0.42.0.0.255</dlms_obis_19></parameters_dlms>','<descriptors_dlms><dlms_frame_fields></dlms_frame_fields><parameters_dlms_fields>dlms_checksum</parameters_dlms_fields></descriptors_dlms>'),(19,'DLMS ELSTER AS220','ELSTER','AS220','<parameters_dlms><dlms_enable>1</dlms_enable><dlms_read>900</dlms_read><dlms_send>900</dlms_send><dlms_cl_address>17</dlms_cl_address><dlms_logical_address>1</dlms_logical_address><dlms_srv_address>100</dlms_srv_address><dlms_short_name_ref>0</dlms_short_name_ref><dlms_pass_level>1</dlms_pass_level><dlms_pass_is_hex>0</dlms_pass_is_hex><dlms_billingday>1</dlms_billingday><dlms_baudrate>19200</dlms_baudrate><dlms_authen_pass>11111111</dlms_authen_pass><dlms_obis_1>1.1.1.8.0.255</dlms_obis_1><dlms_obis_2>1.1.2.8.0.255</dlms_obis_2><dlms_obis_4>1.1.32.7.0.255</dlms_obis_4><dlms_obis_7>1.1.31.7.0.255</dlms_obis_7><dlms_obis_10>1.1.3.8.0.255</dlms_obis_10><dlms_obis_16>1.1.99.1.0.255</dlms_obis_16><dlms_obis_18>1.1.99.98.0.255</dlms_obis_18><dlms_obis_19>1.1.0.0.0.255</dlms_obis_19></parameters_dlms>','<descriptors_dlms><dlms_frame_fields></dlms_frame_fields><parameters_dlms_fields>dlms_checksum</parameters_dlms_fields></descriptors_dlms>'),(20,'DLMS ELS(ABB) AS220','ELS(ABB)','AS220','<parameters_dlms><dlms_enable>1</dlms_enable><dlms_read>900</dlms_read><dlms_send>900</dlms_send><dlms_cl_address>17</dlms_cl_address><dlms_logical_address>1</dlms_logical_address><dlms_srv_address>100</dlms_srv_address><dlms_short_name_ref>0</dlms_short_name_ref><dlms_pass_level>1</dlms_pass_level><dlms_pass_is_hex>0</dlms_pass_is_hex><dlms_billingday>1</dlms_billingday><dlms_baudrate>19200</dlms_baudrate><dlms_authen_pass>11111111</dlms_authen_pass><dlms_obis_1>1.1.1.8.0.255</dlms_obis_1><dlms_obis_2>1.1.2.8.0.255</dlms_obis_2><dlms_obis_4>1.1.32.7.0.255</dlms_obis_4><dlms_obis_7>1.1.31.7.0.255</dlms_obis_7><dlms_obis_10>1.1.3.8.0.255</dlms_obis_10><dlms_obis_16>1.1.99.1.0.255</dlms_obis_16><dlms_obis_18>1.1.99.98.0.255</dlms_obis_18><dlms_obis_19>1.1.0.0.0.255</dlms_obis_19></parameters_dlms>','<descriptors_dlms><dlms_frame_fields></dlms_frame_fields><parameters_dlms_fields>dlms_checksum</parameters_dlms_fields></descriptors_dlms>'),(21,'DLMS ISKRA AM550EB','ISKRA','AM550EB','<parameters_dlms><dlms_enable>1</dlms_enable><dlms_read>900</dlms_read><dlms_send>900</dlms_send><dlms_cl_address>1</dlms_cl_address><dlms_logical_address>1</dlms_logical_address><dlms_srv_address>35</dlms_srv_address><dlms_short_name_ref>0</dlms_short_name_ref><dlms_pass_level>1</dlms_pass_level><dlms_pass_is_hex>0</dlms_pass_is_hex><dlms_billingday>1</dlms_billingday><dlms_baudrate>9600</dlms_baudrate><dlms_authen_pass>23322332</dlms_authen_pass><dlms_obis_1>1.0.1.8.0.255</dlms_obis_1><dlms_obis_2>1.0.2.8.0.255</dlms_obis_2><dlms_obis_3>1.0.1.7.0.255</dlms_obis_3><dlms_obis_4>1.0.32.7.0.255</dlms_obis_4><dlms_obis_7>1.0.31.7.0.255</dlms_obis_7><dlms_obis_10>1.0.3.8.0.255</dlms_obis_10><dlms_obis_11>1.0.4.8.0.255</dlms_obis_11><dlms_obis_16>1.0.99.1.0.255</dlms_obis_16><dlms_obis_17>0.0.98.1.0.255</dlms_obis_17><dlms_obis_18>0.0.99.98.0.255</dlms_obis_18><dlms_obis_19>0.0.96.1.7.255</dlms_obis_19></parameters_dlms>','<descriptors_dlms><dlms_frame_fields></dlms_frame_fields><parameters_dlms_fields>dlms_checksum</parameters_dlms_fields></descriptors_dlms>');

--
-- Table structure for table `middleware_DLMS_devices_types_BaseCamp`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `middleware_DLMS_devices_types_BaseCamp` (
  `id` int NOT NULL AUTO_INCREMENT,
  `manufacturer` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `model` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `baudrate` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `serverAddress` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `clientAddress` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `passwords` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `middleware_DLMS_devices_types_BaseCamp`
--


--
-- Table structure for table `middleware_EURIDIS_devices_types`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `middleware_EURIDIS_devices_types` (
  `id` int NOT NULL AUTO_INCREMENT,
  `meterBrand` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `meterModel` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `parameters_euridis` varchar(4500) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `descriptors_euridis` varchar(4500) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `middleware_EURIDIS_devices_types`
--

INSERT INTO `middleware_EURIDIS_devices_types` VALUES (1,'ACTARIS','ACE5000D',NULL,NULL),(2,'ACTARIS','ACE5000C',NULL,NULL);

--
-- Table structure for table `middleware_MBUS_devices_types`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `middleware_MBUS_devices_types` (
  `id` int NOT NULL AUTO_INCREMENT,
  `meterBrand` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `meterModel` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `protocol` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `middleware_MBUS_devices_types`
--

INSERT INTO `middleware_MBUS_devices_types` VALUES (1,'HYDRUS','HYD171','wired, wireless'),(2,'ACTARIS','CFEII','wired'),(3,'ACTARIS','WDEFAULT','wired'),(4,'HYDROMET','HYDRUS','wired'),(5,'ITRON','CFECHO+W','wireless'),(6,'ITRON','ECHODIS+','wired'),(7,'ITRON','CFECHO+','wired'),(8,'HYDRUS','HYD171B','wired, wireless'),(9,'ITRON','ECHODIS','wired'),(10,'ITRON','ECHOPLUS','wired'),(11,'KAMSTRUP','FlowIQ 3100','wired'),(12,'KAMSTRUP','FlowIQ 2101','wireless'),(13,'HYDROMET','HYDRUS W','wireless'),(14,'ITRON','EquaScan eHCA','wireless'),(15,'ITRON','EquaScan wMIU','wireless'),(16,'ZENNER','IUWS','wireless');

--
-- Table structure for table `middleware_MODBUS_devices_types`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `middleware_MODBUS_devices_types` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `parameters_modbus` varchar(4500) COLLATE utf8mb4_unicode_ci DEFAULT '<parameters_modbus></parameters_modbus>',
  `type` varchar(15) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `counter_id` int DEFAULT '0',
  `meter_slaves` int DEFAULT '0',
  `descriptors_modbus` varchar(4500) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',
  `frame_data_format` text COLLATE utf8mb4_unicode_ci,
  `frame_data_profile_parser` text COLLATE utf8mb4_unicode_ci,
  `frame_data_events_parser` text COLLATE utf8mb4_unicode_ci,
  `EF_field` tinyint DEFAULT NULL,
  `meterBrand` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `meterModel` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `middleware_MODBUS_devices_types`
--

INSERT INTO `middleware_MODBUS_devices_types` VALUES (1,'Krohne Waterflux 3070','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>0</modbus_parity><slave_id>1</slave_id><function>3</function><addr>4000</addr><quantity>36</quantity><modbus_read>900</modbus_read><modbus_send>3600</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',5,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>','{\"10\":\"dec2binary\", \"11\":\"dec2binary\", \"12\":\"dec2binary\"}','{\"meter/waterprofile\":{\"1\":{\"channel\": \"F_V\", \"magnitude\": \"m/s\", \"unit\": \"m/s\"}, \"2\":{\"channel\": \"F_R\", \"magnitude\": \"m3/s\", \"unit\": \"m3/s\"}, \"5\":{\"channel\": \"T_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"7\":{\"channel\": \"R_V\", \"magnitude\": \"m3\", \"unit\": \"m3\"}, \"8\":{\"channel\": \"F_P\", \"magnitude\": \"mbar\", \"unit\": \"mbar\"}, \"9\":{\"channel\": \"F_Temp\", \"magnitude\": \"K\", \"unit\": \"K\"}, \"15\":{\"channel\": \"BAT_L\", \"magnitude\": \"Ah\", \"unit\": \"Ah\"}}}','{\"11\":{\"1\":\"LO_TEMP\", \"2\":\"HI_TEMP\"},\"12\":{\"2\":\"LO_BATT\", \"3\":\"MEM_ERR\", \"5\":\"AIR_PIPE\"}}',5,'KROHNE','WAFX3070'),(2,'Aqualabo','<parameters_modbus><wq>1</wq><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>1</modbus_mode><modbus_parity>2</modbus_parity><slave_id>0</slave_id><function>0</function><addr>0</addr><quantity>0</quantity><modbus_read>900</modbus_read><modbus_send>3600</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','sensor',0,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,NULL,NULL),(3,'Sensor 4/20mA','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>0</modbus_parity><slave_id>1</slave_id><function>3</function><addr>4000</addr><quantity>8</quantity><modbus_read>300</modbus_read><modbus_send>300</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','sensor',0,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,NULL,NULL),(4,'Peset','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>2</modbus_parity><slave_id>1</slave_id><function>3</function><addr>141</addr><quantity>5</quantity><modbus_read>900</modbus_read><modbus_send>900</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','sensor',0,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,NULL,NULL),(5,'Krohne Waterflux 3050','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>19200</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>0</modbus_parity><slave_id>1</slave_id><function>4</function><addr>0</addr><quantity>20</quantity><modbus_read>900</modbus_read><modbus_send>900</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',0,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,NULL,NULL),(6,'Vacon 20 LEHIDE','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>1</modbus_mode><modbus_parity>2</modbus_parity><slave_id>1</slave_id><function>4,4,4,4,4,4,4,4,4,4,4,0,6,6,6,16,6,6,16,16</function><addr>0,59,14,16,42,88,19,2100,699,701,726,0,100,112,114,117,131,166,504,1015</addr><quantity>8,1,1,1,1,1,4,2,1,2,1,0,1,1,1,2,1,1,2,3</quantity><modbus_read>30</modbus_read><modbus_send>30</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',0,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,NULL,NULL),(7,'Vacon 100 LEHIDE','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>1</modbus_mode><modbus_parity>2</modbus_parity><slave_id>1</slave_id><function>4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,6,6,16,16,16</function><addr>0,14,19,22,29,36,42,59,73,77,93,1053,1066,1113,1502,1619,1627,2204,15540,0,112,100,117,1015,24400</addr><quantity>8,3,2,2,1,1,1,1,1,1,2,1,1,1,1,3,1,1,1,0,1,1,2,4,6</quantity><modbus_read>30</modbus_read><modbus_send>900</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',0,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,NULL,NULL),(8,'NBB-MICO2TH32','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>0</modbus_parity><slave_id>18</slave_id><function>3</function><addr>100</addr><quantity>1</quantity><modbus_read>900</modbus_read><modbus_send>900</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','sensor',0,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,NULL,NULL),(9,'Diocean Watermeter 1','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>2</modbus_parity><slave_id>15</slave_id><function>3</function><addr>1</addr><quantity>2</quantity><modbus_read>900</modbus_read><modbus_send>900</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',0,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,NULL,NULL),(10,'Chint DDSU666','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>0</modbus_parity><slave_id>1</slave_id><function>3</function><addr>16384</addr><quantity>2</quantity><modbus_read>900</modbus_read><modbus_send>900</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',1,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,'Chint','DDSU666'),(11,'Shtodi DTS9502 Modbus','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>0</modbus_parity><slave_id>1</slave_id><function>3</function><addr>29</addr><quantity>2</quantity><modbus_read>900</modbus_read><modbus_send>900</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',1,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,'Shtodi','DTS9502'),(12,'Shtodi DTS9502 DLT-645','<parameters_modbus><MODBUS_dt>2</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>1</modbus_mode><modbus_parity>0</modbus_parity><slave_id>1</slave_id><function>17</function><addr>0</addr><quantity>8</quantity><modbus_read>900</modbus_read><modbus_send>900</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',0,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,NULL,NULL),(13,'Circuitor CVM-Mini','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>2</modbus_parity><slave_id>1</slave_id><function>3</function><addr>60</addr><quantity>6</quantity><modbus_read>900</modbus_read><modbus_send>900</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','sensor',0,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,NULL,NULL),(14,'SRND-CM-JS44','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>2</modbus_parity><slave_id>1</slave_id><function>3</function><addr>0</addr><quantity>2</quantity><modbus_read>900</modbus_read><modbus_send>900</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',1,1,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,NULL,NULL),(15,'Badger X2000','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>0</modbus_parity><slave_id>1</slave_id><function>3</function><addr>233</addr><quantity>12</quantity><modbus_read>900</modbus_read><modbus_send>3600</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',5,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,'{\"meter/waterprofile\":{\"1\":{\"channel\": \"N_F\", \"magnitude\": \"m3/s\", \"unit\": \"m3/s\"}}}',NULL,1,'BADGER','X2000'),(16,'Krohne IFC300','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>19200</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>0</modbus_parity><slave_id>1</slave_id><function>4</function><addr>30000</addr><quantity>36</quantity><modbus_read>900</modbus_read><modbus_send>3600</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',12,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,NULL,NULL),(17,'Eastron SDM72CT-M','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>2</modbus_parity><slave_id>1</slave_id><function>4</function><addr>0</addr><quantity>64</quantity><modbus_read>900</modbus_read><modbus_send>900</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',32,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,'Eastron','SDM72CT-M'),(18,'ZH-ZY series','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>2</modbus_parity><slave_id>30</slave_id><function>4</function><addr>0</addr><quantity>1</quantity><modbus_read>30</modbus_read><modbus_send>900</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','sensor',1,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,NULL,NULL),(19,'THT/THT2','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>2</modbus_parity><slave_id>1</slave_id><function>4</function><addr>32</addr><quantity>2</quantity><modbus_read>900</modbus_read><modbus_send>900</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','sensor',0,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,NULL,NULL),(20,'Sensor 0/5V','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>0</modbus_parity><slave_id>1</slave_id><function>3</function><addr>4000</addr><quantity>8</quantity><modbus_read>300</modbus_read><modbus_send>300</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','sensor',0,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,NULL,NULL),(21,'ION 7550 Schneider','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>2</modbus_parity><slave_id>1</slave_id><function>4</function><addr>150,159,166,198,1926</addr><quantity>3,1,6,44,4</quantity><modbus_read>900</modbus_read><modbus_send>900</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',57,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,'{\n  \"meter/energyprofile\": {\n    \"46\": {\n      \"channel\": \"+A\",\n      \"magnitude\": \"Wh\",\n      \"unit\": \"Wh\"\n    },\n    \"45\": {\n      \"channel\": \"-A\",\n      \"magnitude\": \"Wh\",\n      \"unit\": \"Wh\"\n    },\n    \"48\": {\n      \"channel\": \"+Q\",\n      \"magnitude\": \"Varh\",\n      \"unit\": \"Varh\"\n    },\n    \"47\": {\n      \"channel\": \"-Q\",\n      \"magnitude\": \"Varh\",\n      \"unit\": \"Varh\"\n    },\n    \"49\": {\n      \"channel\": \"+S\",\n      \"magnitude\": \"Vah\",\n      \"unit\": \"Vah\"\n    }\n  },\n  \"meter/instregisters\": {\n    \"32\": {\n      \"channel\": \"IA_P\",\n      \"magnitude\": \"kW\",\n      \"unit\": \"kW\"\n    },\n    \"29\": {\n      \"channel\": \"IA_P_L1\",\n      \"magnitude\": \"kW\",\n      \"unit\": \"kW\"\n    },\n    \"30\": {\n      \"channel\": \"IA_P_L2\",\n      \"magnitude\": \"kW\",\n      \"unit\": \"kW\"\n    },\n    \"31\": {\n      \"channel\": \"IA_P_L3\",\n      \"magnitude\": \"kW\",\n      \"unit\": \"kW\"\n    },\n    \"37\": {\n      \"channel\": \"IR_P\",\n      \"magnitude\": \"kVAr\",\n      \"unit\": \"kVAr\"\n    },\n    \"34\": {\n      \"channel\": \"IR_P_L1\",\n      \"magnitude\": \"kVAr\",\n      \"unit\": \"kVAr\"\n    },\n    \"35\": {\n      \"channel\": \"IR_P_L2\",\n      \"magnitude\": \"kVAr\",\n      \"unit\": \"kVAr\"\n    },\n    \"36\": {\n      \"channel\": \"IR_P_L3\",\n      \"magnitude\": \"kVAr\",\n      \"unit\": \"kVAr\"\n    },\n    \"42\": {\n      \"channel\": \"IApp_P\",\n      \"magnitude\": \"kVA\",\n      \"unit\": \"kVA\"\n    },\n    \"39\": {\n      \"channel\": \"IApp_P_L1\",\n      \"magnitude\": \"kVA\",\n      \"unit\": \"kVA\"\n    },\n    \"40\": {\n      \"channel\": \"IApp_P_L2\",\n      \"magnitude\": \"kVA\",\n      \"unit\": \"kVA\"\n    },\n    \"41\": {\n      \"channel\": \"IApp_P_L3\",\n      \"magnitude\": \"kVA\",\n      \"unit\": \"kVA\"\n    },\n    \"17\": {\n      \"channel\": \"Inst_V_L1\",\n      \"magnitude\": \"V\",\n      \"unit\": \"V\"\n    },\n    \"18\": {\n      \"channel\": \"Inst_V_L2\",\n      \"magnitude\": \"V\",\n      \"unit\": \"V\"\n    },\n    \"19\": {\n      \"channel\": \"Inst_V_L3\",\n      \"magnitude\": \"V\",\n      \"unit\": \"V\"\n    },\n    \"1\": {\n      \"channel\": \"Inst_I_L1\",\n      \"magnitude\": \"A\",\n      \"unit\": \"A\"\n    },\n    \"2\": {\n      \"channel\": \"Inst_I_L2\",\n      \"magnitude\": \"A\",\n      \"unit\": \"A\"\n    },\n    \"3\": {\n      \"channel\": \"Inst_I_L3\",\n      \"magnitude\": \"A\",\n      \"unit\": \"A\"\n    },\n    \"53\": {\n      \"channel\": \"Inst_PF+\",\n      \"magnitude\": \"\",\n      \"unit\": \"\"\n    },\n    \"50\": {\n      \"channel\": \"Inst_PF_L1\",\n      \"magnitude\": \"\",\n      \"unit\": \"\"\n    },\n    \"51\": {\n      \"channel\": \"Inst_PF_L2\",\n      \"magnitude\": \"\",\n      \"unit\": \"\"\n    },\n    \"52\": {\n      \"channel\": \"Inst_PF_L3\",\n      \"magnitude\": \"\",\n      \"unit\": \"\"\n    },\n    \"10\": {\n      \"channel\": \"Freq\",\n      \"magnitude\": \"\",\n      \"unit\": \"\"\n    },\n    \"57\": {\n      \"channel\": \"Time \",\n      \"magnitude\": \"s\",\n      \"unit\": \"s\"\n    }\n  },\n  \"meter/maxdemand\": {\n    \"33\": {\n      \"channel\": \"+MDA\",\n      \"magnitude\": \"kW\",\n      \"unit\": \"kW\"\n    },\n    \"38\": {\n      \"channel\": \"+MDR\",\n      \"magnitude\": \"kVAr\",\n      \"unit\": \"kVAr\"\n    },\n    \"43\": {\n      \"channel\": \"+MDS\",\n      \"magnitude\": \"kVA\",\n      \"unit\": \"kVA\"\n    }\n  }\n}',NULL,46,'ION','7550'),(22,'Blank Template','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>2</modbus_parity><slave_id>1</slave_id><function>1</function><addr>1</addr><quantity>1</quantity><modbus_read>900</modbus_read><modbus_send>3600</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',1,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,NULL,NULL),(23,'Variache 3.1','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>2</modbus_parity><slave_id>1</slave_id><function>03,03,03,03,03,03,03,03</function><addr>16384,16389,16395,16401,16419,16426,46596,46600</addr><quantity>4,6,6,6,7,7,3,1</quantity><modbus_read>900</modbus_read><modbus_send>7200</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','sensor',36,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>','{\"values\":{\"23\":{\"0\":\"Stop\",\"1\":\"Run\",\"2\":\"Error\"},\"24\":{\"0\":\"Stop\",\"1\":\"Run\",\"2\":\"Error\",\"3\":\"Standby\"},\"25\":{\"0\":\"Stop\",\"1\":\"Run\",\"2\":\"Error\",\"3\":\"Standby\"},\"26\":{\"0\":\"Stop\",\"1\":\"Run\",\"2\":\"Error\",\"3\":\"Standby\"},\"27\":{\"0\":\"Stop\",\"1\":\"Run\",\"2\":\"Error\",\"3\":\"Standby\"},\"28\":{\"0\":\"Stop\",\"1\":\"Run\",\"2\":\"Error\",\"3\":\"Standby\"},\"29\":{\"0\":\"Stop\",\"1\":\"Run\",\"2\":\"Error\",\"3\":\"Standby\"},\"30\":{\"1\":\"E001\",\"2\":\"E002\",\"3\":\"E003\",\"4\":\"E004\",\"5\":\"E005\",\"6\":\"E006\",\"7\":\"E007\",\"9\":\"E009\",\"10\":\"E010\",\"11\":\"E011\",\"12\":\"E012\",\"13\":\"E013\",\"14\":\"E014\",\"16\":\"E016\",\"18\":\"E018\",\"21\":\"E021\",\"22\":\"E022\",\"27\":\"HP\",\"28\":\"LP\",\"33\":\"E033\",\"41\":\"LL\",\"42\":\"LP2\"},\"31\":{\"1\":\"E001\",\"2\":\"E002\",\"3\":\"E003\",\"4\":\"E004\",\"5\":\"E005\",\"6\":\"E006\",\"7\":\"E007\",\"9\":\"E009\",\"10\":\"E010\",\"11\":\"E011\",\"12\":\"E012\",\"13\":\"E013\",\"14\":\"E014\",\"16\":\"E016\",\"18\":\"E018\",\"21\":\"E021\",\"22\":\"E022\",\"27\":\"HP\",\"28\":\"LP\",\"33\":\"E033\",\"41\":\"LL\",\"42\":\"LP2\"},\"32\":{\"1\":\"E001\",\"2\":\"E002\",\"3\":\"E003\",\"4\":\"E004\",\"5\":\"E005\",\"6\":\"E006\",\"7\":\"E007\",\"9\":\"E009\",\"10\":\"E010\",\"11\":\"E011\",\"12\":\"E012\",\"13\":\"E013\",\"14\":\"E014\",\"16\":\"E016\",\"18\":\"E018\",\"21\":\"E021\",\"22\":\"E022\",\"27\":\"HP\",\"28\":\"LP\",\"33\":\"E033\",\"41\":\"LL\",\"42\":\"LP2\"},\"33\":{\"1\":\"E001\",\"2\":\"E002\",\"3\":\"E003\",\"4\":\"E004\",\"5\":\"E005\",\"6\":\"E006\",\"7\":\"E007\",\"9\":\"E009\",\"10\":\"E010\",\"11\":\"E011\",\"12\":\"E012\",\"13\":\"E013\",\"14\":\"E014\",\"16\":\"E016\",\"18\":\"E018\",\"21\":\"E021\",\"22\":\"E022\",\"27\":\"HP\",\"28\":\"LP\",\"33\":\"E033\",\"41\":\"LL\",\"42\":\"LP2\"},\"34\":{\"1\":\"E001\",\"2\":\"E002\",\"3\":\"E003\",\"4\":\"E004\",\"5\":\"E005\",\"6\":\"E006\",\"7\":\"E007\",\"9\":\"E009\",\"10\":\"E010\",\"11\":\"E011\",\"12\":\"E012\",\"13\":\"E013\",\"14\":\"E014\",\"16\":\"E016\",\"18\":\"E018\",\"21\":\"E021\",\"22\":\"E022\",\"27\":\"HP\",\"28\":\"LP\",\"33\":\"E033\",\"41\":\"LL\",\"42\":\"LP2\"},\"35\":{\"1\":\"E001\",\"2\":\"E002\",\"3\":\"E003\",\"4\":\"E004\",\"5\":\"E005\",\"6\":\"E006\",\"7\":\"E007\",\"9\":\"E009\",\"10\":\"E010\",\"11\":\"E011\",\"12\":\"E012\",\"13\":\"E013\",\"14\":\"E014\",\"16\":\"E016\",\"18\":\"E018\",\"21\":\"E021\",\"22\":\"E022\",\"27\":\"HP\",\"28\":\"LP\",\"33\":\"E033\",\"41\":\"LL\",\"42\":\"LP2\"},\"36\":{\"1\":\"E001\",\"2\":\"E002\",\"3\":\"E003\",\"4\":\"E004\",\"5\":\"E005\",\"6\":\"E006\",\"7\":\"E007\",\"9\":\"E009\",\"10\":\"E010\",\"11\":\"E011\",\"12\":\"E012\",\"13\":\"E013\",\"14\":\"E014\",\"16\":\"E016\",\"18\":\"E018\",\"21\":\"E021\",\"22\":\"E022\",\"27\":\"HP\",\"28\":\"LP\",\"33\":\"E033\",\"41\":\"LL\",\"42\":\"LP2\"},\"37\":{\"1\":\"E001\",\"2\":\"E002\",\"3\":\"E003\",\"4\":\"E004\",\"5\":\"E005\",\"6\":\"E006\",\"7\":\"E007\",\"9\":\"E009\",\"10\":\"E010\",\"11\":\"E011\",\"12\":\"E012\",\"13\":\"E013\",\"14\":\"E014\",\"16\":\"E016\",\"18\":\"E018\",\"21\":\"E021\",\"22\":\"E022\",\"27\":\"HP\",\"28\":\"LP\",\"33\":\"E033\",\"41\":\"LL\",\"42\":\"LP2\"},\"38\":{\"1\":\"E001\",\"2\":\"E002\",\"3\":\"E003\",\"4\":\"E004\",\"5\":\"E005\",\"6\":\"E006\",\"7\":\"E007\",\"9\":\"E009\",\"10\":\"E010\",\"11\":\"E011\",\"12\":\"E012\",\"13\":\"E013\",\"14\":\"E014\",\"16\":\"E016\",\"18\":\"E018\",\"21\":\"E021\",\"22\":\"E022\",\"27\":\"HP\",\"28\":\"LP\",\"33\":\"E033\",\"41\":\"LL\",\"42\":\"LP2\"},\"39\":{\"1\":\"E001\",\"2\":\"E002\",\"3\":\"E003\",\"4\":\"E004\",\"5\":\"E005\",\"6\":\"E006\",\"7\":\"E007\",\"9\":\"E009\",\"10\":\"E010\",\"11\":\"E011\",\"12\":\"E012\",\"13\":\"E013\",\"14\":\"E014\",\"16\":\"E016\",\"18\":\"E018\",\"21\":\"E021\",\"22\":\"E022\",\"27\":\"HP\",\"28\":\"LP\",\"33\":\"E033\",\"41\":\"LL\",\"42\":\"LP2\"}}}',NULL,NULL,NULL,NULL,NULL),(24,'Sonometro CRY2112','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>2</modbus_parity><slave_id>1</slave_id><function>3</function><addr>256</addr><quantity>24</quantity><modbus_read>60</modbus_read><modbus_send>300</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','sensor',24,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,NULL,NULL),(25,'FM-10Y 10 Meteo','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>2</modbus_parity><slave_id>2</slave_id><function>03</function><addr>42</addr><quantity>10</quantity><modbus_read>300</modbus_read><modbus_send>300</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','sensor',10,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,NULL,NULL),(26,'MUT2300 - MC406A','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>0</modbus_parity><slave_id>1</slave_id><function>3,3</function><addr>1662,1672</addr><quantity>4,8</quantity><modbus_read>900</modbus_read><modbus_send>900</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',7,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>','{\"data_composited\":{\"7\":\"$values[7]=$values[3]+$values[4];\"}}','{\"meter/waterprofile\":{\"1\":{\"channel\":\"F_R\",\"magnitude\":\"m3/s\",\"unit\":\"m3/s\"},\"2\":{\"channel\":\"F_V\",\"magnitude\":\"m/s\",\"unit\":\"m/s\"},\"3\":{\"channel\":\"Fwd_V\",\"magnitude\":\"m3\",\"unit\":\"m3\"},\"4\":{\"channel\":\"R_V\",\"magnitude\":\"m3\",\"unit\":\"m3\"},\"7\":{\"channel\":\"T_V\",\"magnitude\":\"m3\",\"unit\":\"m3\"}}}',NULL,10,'EUROMAG','MUT2300'),(27,'MUT2200EL - MC608I','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>2</modbus_parity><slave_id>1</slave_id><function>4</function><addr>0</addr><quantity>10</quantity><modbus_read>900</modbus_read><modbus_send>900</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',6,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>','{\"data_composited\":{\"6\":\"$values[6]=abs($values[4])+abs($values[5]);\",\"7\":\"$values[7]=abs($values[4])-abs($values[5]);\",\"8\":\"$values[8]=$values[3]/0.28;\",\"9\":\"$values[9]=abs($values[5]);\"}}','{\"meter/waterprofile\":{\"1\":{\"channel\":\"F_V\",\"magnitude\":\"m/s\",\"unit\":\"m/s\"},\"4\":{\"channel\":\"Fwd_V\",\"magnitude\":\"m3\",\"unit\":\"m3\"},\"6\":{\"channel\":\"T_V\",\"magnitude\":\"m3\",\"unit\":\"m3\"},\"7\":{\"channel\":\"N_F\",\"magnitude\":\"m3/s\",\"unit\":\"m3\"},\"8\":{\"channel\":\"F_R\",\"magnitude\":\"m3/h\",\"unit\":\"m3/h\"},\"9\":{\"channel\":\"R_V\",\"magnitude\":\"m3\",\"unit\":\"m3\"}}}',NULL,6,'EUROMAG','MUT2200E'),(28,'SIEMENS MAG6000','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>0</modbus_parity><slave_id>1</slave_id><function>3,3,3</function><addr>3002,3022,2702</addr><quantity>2,4,9</quantity><modbus_read>900</modbus_read><modbus_send>3600</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',7,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>','{\"4\":\"hex2byte\", \"5\":\"hex2byte\", \"6\":\"hex2byte\", \"data_composited\":{\"7\":\"$values[7]=abs($values[2])+abs($values[3]);\",\"8\":\"$values[8]=abs(abs($values[2])-abs($values[3]));\"}}','{\"meter/waterprofile\":{\"1\":{\"channel\":\"F_R\",\"magnitude\":\"m3/s\",\"unit\":\"m3/s\"},\"2\":{\"channel\":\"Fwd_V\",\"magnitude\":\"m3\",\"unit\":\"m3\"},\"3\":{\"channel\":\"R_V\",\"magnitude\":\"m3\",\"unit\":\"m3\"},\"7\":{\"channel\":\"T_V\",\"magnitude\":\"m3\",\"unit\":\"m3\"},\"8\":{\"channel\":\"N_F\",\"magnitude\":\"m3\",\"unit\":\"m3\"}}}','{\"hex2byte\":{\"2\":{\"24\":\"R_FLOW\", \"30\":\"F_OVRFLW\", \"31\":\"AIR_PIPE\", \"43\":\"HW_ERR\", \"44\":\"MEM_ERR\", \"61\":\"MEM_ERR\", \"63\":\"MEM_ERR\", \"70\":\"MES_ERR\", \"71\":\"HW_ERR\"}}}',7,'SIEMENS','MAG6000'),(29,'SIEMENS MAG8000CT','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>0</modbus_parity><slave_id>1</slave_id><function>3,3,3,3</function><addr>3000,3017,3030,3016</addr><quantity>4,8,1,1</quantity><modbus_read>900</modbus_read><modbus_send>3600</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',7,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>','{\"6\":\"dec2binary\", \"data_composited\":{\"7\":\"$values[7]=abs($values[3])+abs($values[4]);\",\"8\":\"$values[8]=abs(abs($values[3])-abs($values[4]));\"}}','{\"meter/waterprofile\":{\"1\":{\"channel\":\"F_V\",\"magnitude\":\"m/s\",\"unit\":\"m3/h\"},\"2\":{\"channel\":\"F_R\",\"magnitude\":\"m3/h\",\"unit\":\"m3/h\"},\"3\":{\"channel\":\"Fwd_V\",\"magnitude\":\"m3\",\"unit\":\"m3\"},\"4\":{\"channel\":\"R_V\",\"magnitude\":\"m3\",\"unit\":\"m3\"},\"7\":{\"channel\":\"T_V\",\"magnitude\":\"m3\",\"unit\":\"m3\"},\"8\":{\"channel\":\"N_F\",\"magnitude\":\"m3\",\"unit\":\"m3\"}}}','{\"6\":{\"1\":\"HW_ERR\", \"2\":\"MES_ERR\", \"4\":\"MEM_ERR\", \"5\":\"LO_BATT\", \"6\":\"F_OVRFLW\", \"10\":\"LEAK\", \"11\":\"AIR_PIPE\", \"13\":\"F_OVRFLW\", \"14\":\"R_FLOW\"}}',7,'SIEMENS','MAG8000C'),(30,'BADGER M2000','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>0</modbus_parity><slave_id>1</slave_id><function>3,3,3</function><addr>207,233,262</addr><quantity>10,6,1</quantity><modbus_read>3600</modbus_read><modbus_send>21600</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',8,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>','{\"7\":\"dec2binary\", \"data_composited\":{\"8\":\"$values[8]=abs($values[1])+abs($values[3]);\",\"9\":\"$values[9]=abs(abs($values[1])-abs($values[3]));\"}}','{\"meter/waterprofile\":{\"1\":{\"channel\":\"Fwd_V\",\"magnitude\":\"m3\",\"unit\":\"m3\"},\"3\":{\"channel\":\"R_V\",\"magnitude\":\"m3\",\"unit\":\"m3\"},\"4\":{\"channel\":\"F_V\",\"magnitude\":\"m/s\",\"unit\":\"m/s\"},\"6\":{\"channel\":\"F_R\",\"magnitude\":\"m3/s\",\"unit\":\"m3/s\"},\"8\":{\"channel\":\"T_V\",\"magnitude\":\"m3\",\"unit\":\"m3\"},\"9\":{\"channel\":\"N_F\",\"magnitude\":\"m3\",\"unit\":\"m3\"}}}','{\"7\":{\"1\":\"MES_ERR\", \"2\":\"AIR_PIPE\", \"3\":\"F_OVRFLW\", \"12\":\"HW_ERR\", \"13\":\"MEM_ERR\"}}',8,'BADGER','M2000'),(31,'WILO ','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>2</modbus_parity><slave_id>1</slave_id><function>3,3,3,3</function><addr>14,67,138,162</addr><quantity>37,33,2,22</quantity><modbus_read>300</modbus_read><modbus_send>300</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',19,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,NULL,NULL),(32,'BADGER M5000','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>0</modbus_parity><slave_id>1</slave_id><function>3,3,3,3</function><addr>233,519,562,571</addr><quantity>6,6,1,2</quantity><modbus_read>900</modbus_read><modbus_send>900</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',9,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>','{\"7\":\"dec2binary\", \"data_composited\":{\"9\":\"$values[9]=abs($values[4])+abs($values[5]);\"}}','{\"meter/waterprofile\":{\"1\":{\"channel\":\"F_V\",\"magnitude\":\"m/s\",\"unit\":\"m/s\"},\"3\":{\"channel\":\"F_R\",\"magnitude\":\"m3/h\",\"unit\":\"m3/h\"},\"4\":{\"channel\":\"Fwd_V\",\"magnitude\":\"m3\",\"unit\":\"m3\"},\"5\":{\"channel\":\"R_V\",\"magnitude\":\"m3\",\"unit\":\"m3\"},\"6\":{\"channel\":\"N_F\",\"magnitude\":\"m3\",\"unit\":\"m3\"},\"9\":{\"channel\":\"T_V\",\"magnitude\":\"m3\",\"unit\":\"m3\"}}}','{\"7\":{\"1\":\"LO_BATT\", \"2\":\"HW_ERR\", \"3\":\"AIR_PIPE\", \"5\":\"MES_ERR\", \"7\":\"F_OVRFLW\", \"8\":\"MEM_ERR\", \"14\":\"R_FLOW\"}}',9,'BADGER','M5000'),(33,'KROHNE OPTIFLUX2300','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>0</modbus_parity><slave_id>1</slave_id><function>4,4</function><addr>30000,30020</addr><quantity>8,16</quantity><modbus_read>3600</modbus_read><modbus_send>7200</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',7,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>','{\"data_composited\":{\"6\":\"$values[6]=abs($values[6]);\", \"7\":\"$values[7]=abs($values[5])+abs($values[6]);\", \"8\":\"$values[8]=abs(abs($values[5])-abs($values[6]));\"}}','{\"meter/waterprofile\":{\"1\":{\"channel\":\"F_V\",\"magnitude\":\"m/s\",\"unit\":\"m/s\"},\"2\":{\"channel\":\"F_R\",\"magnitude\":\"m3/s\",\"unit\":\"m3/s\"},\"4\":{\"channel\":\"F_Temp\",\"magnitude\":\"K\",\"unit\":\"K\"},\"5\":{\"channel\":\"Fwd_V\",\"magnitude\":\"m3\",\"unit\":\"m3\"},\"6\":{\"channel\":\"R_V\",\"magnitude\":\"m3\",\"unit\":\"m3\"},\"7\":{\"channel\":\"T_V\",\"magnitude\":\"m3\",\"unit\":\"m3\"},\"8\":{\"channel\":\"N_F\",\"magnitude\":\"m3\",\"unit\":\"m3\"}}}',NULL,7,'KROHNE','OPFX2300'),(34,'OPTIDRIVE LEHIDE','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>2</modbus_parity><modbus_set>1</modbus_set><modbus_num>1</modbus_num><slave_id>1</slave_id><function>3,3,3,3,3</function><addr>5,10,19,23,31</addr><quantity>3,1,2,1,3</quantity><modbus_read>300</modbus_read><modbus_send>300</modbus_send><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',0,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,NULL,NULL),(35,'AF-E 400','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>2</modbus_parity><modbus_set>1</modbus_set><modbus_num>1</modbus_num><slave_id>1</slave_id><function>3</function><addr>4000</addr><quantity>20</quantity><modbus_read>900</modbus_read><modbus_send>900</modbus_send><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',0,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>','{\"wordbits\":{\"9\":{\"0\":\"Value too small and limited\",\"1\":\"Value too large and limited\",\"2\":\"NE107 [M] Maintenance Required\",\"3\":\"Initial Value\",\"4\":\"NE107 [C] Function Check\",\"5\":\"NE107 [S] Out of Specification\",\"6\":\"NE107 [F] Application Failure\",\"7\":\"NE107 [F!] Device Failure\",\"8\":\"Simulation in electr. temp chain\",\"9\":\"Simulation in media temp chain\",\"10\":\"Simulation in flow chain\",\"11\":\"Media temp. under range\",\"12\":\"Media temp. over range\",\"13\":\"Electronic temp under range\",\"14\":\"Electronic temp over range\",\"15\":\"NTC shorted\",\"16\":\"NTC open circuit\",\"17\":\"Electrode voltage under range\",\"18\":\"Electrode voltage Reduced operating range\",\"19\":\"Electrode voltage over range\",\"20\":\"Electrode ADC over run\",\"21\":\"Coil current ADC over run\",\"22\":\"Flow speed under range\",\"23\":\"Flow speed over range\",\"24\":\"Electrodes shorted\",\"25\":\"Coil open\",\"26\":\"Coil drive bridge stuck\",\"27\":\"Coil current out of spec ADC value\",\"28\":\"Coil current not stable during Tm\",\"29\":\"AFE Voltage reference fail\",\"30\":\"AFE com failure\",\"31\":\"AFE com error\"}},\"values\":{\"10\":{\"0\":\"Forward flow\",\"1\":\"Reverse flow\"}}}',NULL,NULL,NULL,'KROHNE','AF-E 400'),(36,'AERON AQM11','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>1</modbus_mode><modbus_parity>0</modbus_parity><slave_id>0</slave_id><function>3</function><addr>0</addr><quantity>34</quantity><modbus_read>3600</modbus_read><modbus_send>3600</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','sensor',0,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,NULL,NULL),(37,'BLZ - Sensor PH','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>2</modbus_parity><slave_id>3</slave_id><function>3</function><addr>0</addr><quantity>3</quantity><modbus_read>900</modbus_read><modbus_send>900</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',0,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,NULL,NULL),(38,'BLZ - COD Sensor','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>2</modbus_parity><slave_id>1</slave_id><function>3</function><addr>0</addr><quantity>5</quantity><modbus_read>900</modbus_read><modbus_send>900</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',0,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,NULL,NULL),(39,'BLZ - Chlorine Sensor','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>2</modbus_parity><slave_id>10</slave_id><function>3</function><addr>0</addr><quantity>5</quantity><modbus_read>900</modbus_read><modbus_send>900</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',0,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,NULL,NULL),(40,'SIEMENS MAG8000 SEWA','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>19200</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>0</modbus_parity><slave_id>1</slave_id><function>3,3,3,3</function><addr>3000,3017,3029,3016</addr><quantity>12,12,1,1</quantity><modbus_read>3600</modbus_read><modbus_send>3600</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',12,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>','{\"values\":{\"10\":{\"0\":\"Battery\",\"1\":\"Main supply\"}}, \"wordbits\":{\"12\":{\"11\":\"1\", \"default\":\"0\"}}}',NULL,NULL,NULL,'SIEMENS','MAG8000'),(41,'AF-E 400 (reduced)','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>2</modbus_parity><modbus_set>1</modbus_set><modbus_num>1</modbus_num><slave_id>1</slave_id><function>3</function><addr>4000</addr><quantity>2</quantity><modbus_read>900</modbus_read><modbus_send>900</modbus_send><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',0,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,NULL,NULL),(42,'ABB WATER MASTER','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>2</modbus_parity><slave_id>1</slave_id><function>4,4,2</function><addr>3056,3074,18</addr><quantity>12,2,1</quantity><modbus_read>900</modbus_read><modbus_send>3600</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',8,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>','{\"values\":{\"8\":{\"0\":\"Off\",\"1\":\"On\"}}}',NULL,NULL,NULL,'ABB','Water Master'),(43,'FLEXIM FLUXUS G601','<parameters_modbus><MODBUS_dt>1</MODBUS_dt><modbus_speed>9600</modbus_speed><modbus_mode>0</modbus_mode><modbus_parity>2</modbus_parity><slave_id>1</slave_id><function>4,4,2</function><addr>3056,3074,18</addr><quantity>12,2,1</quantity><modbus_read>900</modbus_read><modbus_send>3600</modbus_send><modbus_set>1</modbus_set><modbus_num>1</modbus_num><modbus_warm_time>0</modbus_warm_time></parameters_modbus>','meter',0,0,'<descriptors_modbus><parameters_modbus_fields>MODBUS_dt;modbus_speed;modbus_mode;modbus_parity;slave_id;function;addr;quantity;modbus_read;modbus_send</parameters_modbus_fields></descriptors_modbus>',NULL,NULL,NULL,NULL,'FLEXIM','FLUXUS G601');

--
-- Table structure for table `middleware_MODBUS_devices_types_data_format`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `middleware_MODBUS_devices_types_data_format` (
  `id` int NOT NULL AUTO_INCREMENT,
  `iddevice_type` int DEFAULT NULL,
  `idfield` int DEFAULT NULL,
  `address` int DEFAULT NULL,
  `Description` varchar(450) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `Settings` varchar(450) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `Type` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `registers` decimal(4,1) DEFAULT NULL,
  `read_write` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `Unit` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `Scale` decimal(15,8) DEFAULT '1.00000000',
  `Decimals` int DEFAULT '0',
  `idmeter` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `idblock` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `iddevice_type` (`iddevice_type`),
  KEY `idmeter` (`idmeter`),
  KEY `idfield` (`idfield`)
) ENGINE=InnoDB AUTO_INCREMENT=486 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `middleware_MODBUS_devices_types_data_format`
--

INSERT INTO `middleware_MODBUS_devices_types_data_format` VALUES (1,1,1,4000,'Flow speed [m/s]','-','REAL',2.0,'RO',NULL,1.00000000,0,NULL,1),(2,1,2,4002,'Volume flow [m3/s]','-','REAL',2.0,'RO',NULL,1.00000000,0,NULL,1),(3,1,3,4004,'Counter 1 [m3]','Read and/or set counter 1','REAL',2.0,'R/W',NULL,1.00000000,0,NULL,1),(4,1,4,4006,'Counter 2 [m3]','Read and/or set counter 2','REAL',2.0,'R/W',NULL,1.00000000,0,NULL,1),(5,1,5,4008,'Total flow volume counter [m3]','-','REAL',2.0,'RO',NULL,1.00000000,0,NULL,1),(6,1,6,4010,'Forward flow volume counter','-','REAL',2.0,'RO',NULL,1.00000000,0,NULL,1),(7,1,7,4012,'Reverse flow volume counter','-','REAL',2.0,'RO',NULL,1.00000000,0,NULL,1),(8,1,8,4014,'Pressure [mbar]','-','REAL',2.0,'RO',NULL,1.00000000,0,NULL,1),(9,1,9,4016,'Temperature [°K]','-','REAL',2.0,'RO',NULL,1.00000000,0,NULL,1),(10,1,10,4018,'Pressure Alarm state\n0: no alarms\n(b0) 1: Active minimum alarm\ncondition\n(b1) 2: Active maximum alarm\ncondition\n(b2) 4: Old unread minimum\nalarm condition\n(b3) 8: Old unread maximum\nalarm condition\n(b4) 16: Pressure sensor\nmeasurement error','Reading this register will\nacknowledge the alarm. If\nan alarm condition has\nappeared between\nreadings, the old unread\nalarm condition flag will\nbe set, and will be cleared\nwhen this register is read.','DWORDBITS',2.0,'RO',NULL,1.00000000,0,NULL,1),(11,1,11,4020,'Temperature Alarm state\n0: no alarms\n(b0) 1: Active minimum alarm\ncondition\n(b1) 2: Active maximum alarm\ncondition\n(b2) 4: Old unread minimum\nalarm condition\n(b3) 8: Old unread maximum\nalarm condition\n(b4) 16: Temperature sensor\nmeasurement error','Reading this register will\nacknowledge the alarm. If\nan alarm condition has\nappeared between\nreadings, the old unread\nalarm condition flag will\nbe set, and will be cleared\nwhen this register is read.','DWORDBITS',2.0,'RO',NULL,1.00000000,0,NULL,1),(12,1,12,4022,'Error / warning states\n0: no errors\n(b0) 1: Active flow measurement\nwarning condition\n(b1) 2: Active <10% battery\nwarning condition\n(b2) 4: Active EEPROM error\ncondition\n(b3) 8: Active communication\nerror condition\n(b4) 16: Empty Pipe\n(b5) 32: Mains Power Failure','-','DWORDBITS',2.0,'RO',NULL,1.00000000,0,NULL,1),(13,1,13,4024,'Battery type\n1: Internal 1 battery\n2: Internal 2 battery\n3: External battery pack\n0: None (mains supply)','-','UDINT',2.0,'RO',NULL,1.00000000,0,NULL,1),(14,1,14,4026,'Battery capacity Ah','-','REAL',2.0,'RO',NULL,1.00000000,0,NULL,1),(15,1,15,4028,'Battery left Ah','-','REAL',2.0,'RO',NULL,1.00000000,0,NULL,1),(16,1,16,4030,'Current Flow direction\n0: Forward flow\n1: Reverse flow','-','UDINT',2.0,'RO',NULL,1.00000000,0,NULL,1),(17,1,17,4032,'Pressure [Bar]','-','REAL',2.0,'RO',NULL,1.00000000,0,NULL,1),(18,1,18,4034,'Temperature [°C]','-','REAL',2.0,'RO',NULL,1.00000000,0,NULL,1),(19,2,1,4000,'Temperature','-','REAL',2.0,'RO','ºC',1.00000000,1,NULL,1),(20,2,2,4002,'Discard','Oxigen [%Sat]','REAL',2.0,'RO',NULL,1.00000000,0,NULL,1),(21,2,3,4004,'Discard','Oxigen [mg/L]','REAL',2.0,'RO',NULL,1.00000000,0,NULL,1),(22,2,4,4006,'Discard','Oxigen [ppm]','REAL',2.0,'RO',NULL,1.00000000,0,NULL,1),(23,2,5,4008,'pH','-','REAL',2.0,'RO','m3',1.00000000,1,NULL,1),(24,2,6,4010,'Redox','-','REAL',2.0,'RO','mV',1.00000000,0,NULL,1),(25,2,7,4012,'Discard','C4E conductivity [uS/cm]','REAL',2.0,'RO',NULL,1.00000000,0,NULL,1),(26,2,8,4014,'Discard','Salinity [ppt]','REAL',2.0,'RO',NULL,1.00000000,0,NULL,1),(27,2,9,4016,'Discard','TDS-Kcl [ppm]','REAL',2.0,'RO',NULL,1.00000000,0,NULL,1),(28,2,10,4018,'Discard','Nephelo Turbidity [NTU]','REAL',2.0,'RO',NULL,1.00000000,0,NULL,1),(29,3,1,4000,'Sensor 1','-','REAL',2.0,'RO',NULL,1.00000000,0,NULL,1),(30,3,2,4002,'Sensor 2','-','REAL',2.0,'RO',NULL,1.00000000,0,NULL,1),(31,3,3,4004,'Sensor 3','-','REAL',2.0,'RO',NULL,1.00000000,0,NULL,1),(32,3,4,4006,'Sensor 4','-','REAL',2.0,'RO',NULL,1.00000000,0,NULL,1),(33,4,1,141,'Via 1','-','WORD',1.0,'RO',NULL,1.00000000,0,NULL,1),(34,4,2,142,'Via 2','-','WORD',1.0,'RO',NULL,1.00000000,0,NULL,1),(35,4,3,143,'Via 3','-','WORD',1.0,'RO',NULL,1.00000000,0,NULL,1),(36,4,4,144,'Via 4','-','WORD',1.0,'RO',NULL,1.00000000,0,NULL,1),(37,4,5,145,'via 5','-','SINT',1.0,'RO',NULL,1.00000000,0,NULL,1),(38,5,1,30000,'Flow speed [m/s]','-','FLOAT',2.0,'RO',NULL,1.00000000,0,NULL,1),(39,5,2,30002,'Volume flow [m3/s]','-','FLOAT',2.0,'RO',NULL,1.00000000,0,NULL,1),(40,5,3,30004,'Mass flow [kg/s]','-','FLOAT',2.0,'RO',NULL,1.00000000,0,NULL,1),(41,5,4,30006,'Operating time [s]','-','FLOAT',2.0,'RO',NULL,1.00000000,0,NULL,1),(42,5,5,30008,'Counter 1 [m3] or [kg]','-','DFLOAT',4.0,'RO',NULL,1.00000000,0,NULL,1),(43,5,6,30012,'Counter 2 [m3] or [kg]','-','DFLOAT',4.0,'RO',NULL,1.00000000,0,NULL,1),(44,5,7,30016,'long status sensor','-','DWORDBITS',2.0,'RO',NULL,1.00000000,0,NULL,1),(45,5,8,30018,'long status device','-','DWORDBITS',2.0,'RO',NULL,1.00000000,0,NULL,1),(46,6,1,1,'Frecuencia de salida','-','WORD',1.0,'RO','Hz',0.01000000,0,NULL,NULL),(47,6,2,2,'Discard','-','WORD',1.0,'RO','',1.00000000,0,NULL,NULL),(48,6,3,3,'Corriente del motor','-','WORD',1.0,'RO','A',0.01000000,2,NULL,NULL),(49,6,4,4,'Discard','-','WORD',1.0,'RO','',1.00000000,0,NULL,NULL),(50,6,5,5,'Discard','-','WORD',1.0,'RO','',1.00000000,0,NULL,NULL),(51,6,6,6,'Tensión del motor','-','WORD',1.0,'RO','V',0.10000000,0,NULL,NULL),(52,6,7,7,'Tensión del bus de CC','-','WORD',1.0,'RO','V',1.00000000,0,NULL,NULL),(53,6,8,8,'Temperatura de unidad','-','WORD',1.0,'RO','ºC',1.00000000,0,NULL,NULL),(54,6,9,60,'Presión de salida','Entrada analógica 2 (Unidad es -> % pero según el tipo de transductor se transforma a bar)','WORD',1.0,'RO',NULL,0.10000000,1,NULL,NULL),(55,6,10,15,'Entrada digital DI1, DI2, DI3','-','WORD',1.0,'RO','',1.00000000,0,NULL,NULL),(56,6,11,17,'DO1, DO2, DO3','-','WORD',1.0,'RO','',1.00000000,0,NULL,NULL),(57,6,12,43,'Estado de la unidad','B0 = Preparado; B1 = Marcha; B2 = Inverso; B3 = Fallo; B6 = Permiso de marcha; B7 = Alarma activa; B12 = Solicitud de marcha; B13 = Regulador del motor activado','WORDBITS',1.0,'RO','',1.00000000,0,NULL,NULL),(58,6,13,89,'Discard','Palabra de estado de la aplicación: B3 = Rampa 2 activa; B5 = Lugar de CTRL remoto 1 activado; B6 = Lugar de CTRL remoto 2 activado; B7 = Control activo de bus de campo; B8 = Control activo local; B9 = Control activo de PC; B10 = Frecuencias constantes activas','WORDBITS',1.0,'RO','',1.00000000,0,NULL,NULL),(59,6,14,20,'Presión de consigna','-','WORD',1.0,'RO','%',0.10000000,0,NULL,NULL),(60,6,15,21,'Presión de entrada','Valor de retroalimentación del PID (Unidad es -> % pero según el tipo de transductor se transforma a bar)','WORD',1.0,'RO',NULL,0.10000000,1,NULL,NULL),(61,6,16,22,'Error PID','-','SINT',1.0,'RO','%',0.10000000,0,NULL,NULL),(62,6,17,23,'Salida de PID','-','WORD',1.0,'RO','%',0.10000000,0,NULL,NULL),(63,6,18,101,'Discard','FB Status Word','WORDBITS',1.0,'RO','',1.00000000,0,NULL,NULL),(64,6,19,102,'Discard','FB General Status Word','WORDBITS',1.0,'RO','',1.00000000,0,NULL,NULL),(65,6,20,103,'Discard','Analog Input Select error','WORD',1.0,'RO','',1.00000000,0,NULL,NULL),(66,6,21,104,'Discard','Output phase fault','WORD',1.0,'RO','',1.00000000,0,NULL,NULL),(67,6,22,105,'Discard','Earth fault','WORD',1.0,'RO','',1.00000000,0,NULL,NULL),(68,6,23,106,'Discard','Undervoltage','WORD',1.0,'RO','',1.00000000,0,NULL,NULL),(69,7,1,1,'Frecuencia de salida','-','WORD',1.0,'RO','Hz',0.01000000,0,NULL,NULL),(70,7,2,2,'Discard','-','WORD',1.0,'RO',NULL,1.00000000,0,NULL,NULL),(71,7,3,3,'Corriente del motor','-','WORD',1.0,'RO','A',0.01000000,0,NULL,NULL),(72,7,4,4,'Discard','-','WORD',1.0,'RO','',1.00000000,0,NULL,NULL),(73,7,5,5,'Discard','-','WORD',1.0,'RO','',1.00000000,0,NULL,NULL),(74,7,6,6,'Tensión del motor','-','WORD',1.0,'RO','V',0.10000000,0,NULL,NULL),(75,7,7,7,'Tensión del bus de CC','-','WORD',1.0,'RO','V',1.00000000,0,NULL,NULL),(76,7,8,8,'Temperatura de unidad','-','WORD',1.0,'RO','ºC',0.10000000,0,NULL,NULL),(77,7,9,15,'Ranura A DIN 1, 2, 3','-','WORD',1.0,'RO','',1.00000000,0,NULL,NULL),(78,7,10,16,'Ranura A DIN 4, 5, 6','-','WORD',1.0,'RO','',1.00000000,0,NULL,NULL),(79,7,11,17,'Ranura B DO 1, 2, 3','-','WORD',1.0,'RO','',1.00000000,0,NULL,NULL),(80,7,12,18,'Discard','-','WORD',0.0,'RO','',1.00000000,0,NULL,NULL),(81,7,13,19,'Discard','-','WORD',0.0,'RO','',1.00000000,0,NULL,NULL),(82,7,14,20,'Presión de consigna','-','WORD',1.0,'RO','',0.01000000,1,NULL,NULL),(83,7,15,21,'Valor actual PID','-','WORD',1.0,'RO','',0.01000000,1,NULL,NULL),(84,7,16,22,'Discard','-','WORD',0.0,'RO','',1.00000000,0,NULL,NULL),(85,7,17,23,'Salida PID','-','WORD',1.0,'RO','%',0.01000000,0,NULL,NULL),(86,7,18,24,'Estado PID ','0 = Parado; 1 = En marcha; 3 = Modo dormir; 4 = En banda muerta','WORD',1.0,'RO','',1.00000000,0,NULL,NULL),(87,7,19,30,'Motores en marcha','-','WORD',1.0,'RO','',1.00000000,0,NULL,NULL),(88,7,20,37,'Código del último fallo activo','-','WORD',1.0,'RO','',1.00000000,0,NULL,NULL),(89,7,21,43,'Estado de la unidad','B1 = Preparado; B2 = En marcha; B3 = Fallo; B6 = PermisoMarcha; B7 = AlarmaActiva; B10 = Intensidad de CC al paro; B11 = Freno CC activo; B12 = PeticiónMarcha; B13 = ReguladorMotorActivo; B15 = Chopper de frenado activo','WORDBITS',1.0,'RO','',1.00000000,0,NULL,NULL),(90,7,22,60,'AI-2','E. analógica 2, Ranura A.2 por defecto','WORD',1.0,'RO',NULL,0.01000000,0,NULL,NULL),(91,7,23,74,'Código de la última alarma activa','-','WORD',1.0,'RO','',1.00000000,0,NULL,NULL),(92,7,24,78,'Estado listo','B0 = Permiso de marcha activo; B1 = Sin fallos; B2 = Conmutador de carga cerrado; B3 = Tensión CC OK; B4 = Unidad poten. OK; B5 = Marcha permitida (Pot.); B6 = Inicio perm. (Software sistema)','WORDBITS',1.0,'RO','',1.00000000,0,NULL,NULL),(93,7,25,94,'ID de la última alarma activa','-','WORD',1.0,'RO','',1.00000000,0,NULL,NULL),(94,7,26,95,'ID del último fallo activo','-','WORD',1.0,'RO','',1.00000000,0,NULL,NULL),(95,7,27,1054,'Contador kWh bajo reseteable','-','WORD',1.0,'RO','kWh',1.00000000,0,NULL,NULL),(96,7,28,1067,'Contador kWh alto reseteable','-','WORD',1.0,'RO','kWh',1.00000000,0,NULL,NULL),(97,7,29,1114,'Selec Rotacion','-','WORD',1.0,'RO','',1.00000000,0,NULL,NULL),(98,7,30,1503,'Sig. rotacion automatica','-','WORD',1.0,'RO','h',0.10000000,0,NULL,NULL),(99,7,31,1620,'Tiempo marcha bomba 1','-','WORD',1.0,'RO','h',0.10000000,0,NULL,NULL),(100,7,32,1621,'Tiempo marcha bomba 2','-','WORD',1.0,'RO','h',0.10000000,0,NULL,NULL),(101,7,33,1622,'Tiempo marcha bomba 3','-','WORD',1.0,'RO','h',0.10000000,0,NULL,NULL),(102,7,34,1628,'Estado Multi-Bomba','0 = Deshabilitado; 10 = Parado; 20 = Dormir; 30 = Antibloqueo; 40 = AutoLimpieza; 50 = Flushing; 60 = Prellenado tubería; 70 = Regulación; 80 = Siguiendo; 90 = Producción constante; 200 = Desconocido','WORD',1.0,'RO','',1.00000000,0,NULL,NULL),(103,7,35,2205,'Estado de la batería','1 = No instalada; 2 = Instalada; 3 = Sustituya la batería','WORD',1.0,'RO','',3.00000000,0,NULL,NULL),(104,7,36,15541,'Retroalim. PID','Retroalim. PID (1)','WORD',1.0,'RO','%',0.01000000,0,NULL,NULL),(105,8,1,100,'CO2','-','WORD',1.0,'RO','ppm',1.00000000,0,NULL,1),(106,8,2,101,'Discard','-','WORD',14.0,'RO',NULL,1.00000000,0,NULL,1),(107,8,3,115,'Humidity','-','WORD',1.0,'RO','%',1.00000000,0,NULL,1),(108,8,4,116,'Temperature','-','WORD',1.0,'RO','ºC',1.00000000,1,NULL,1),(109,9,1,1,'Counter','-','UINT',1.0,'RO',NULL,1.00000000,0,NULL,1),(110,9,2,2,'Unknown','-','UINT',1.0,'RO',NULL,1.00000000,0,NULL,1),(111,10,1,16384,'Positive active total energy','-','REAL',2.0,'RO','kWh',1.00000000,2,NULL,1),(112,11,1,29,'Current total active energy','-','SDINT',2.0,'RO','kWh',0.01000000,2,NULL,1),(113,12,1,0,'Discard','-','WORD',2.0,'RO',NULL,1.00000000,0,NULL,1),(114,12,2,4,'Combined active total energy','-','LSBtoMSB',2.0,'RO','kWh',0.01000000,2,NULL,1),(115,13,1,60,'Energía Activa','-','WORD',2.0,'RO','kWh',1.00000000,2,NULL,1),(116,13,2,62,'Energía Reactiva Inductiva','-','WORD',2.0,'RO','kVArL',1.00000000,2,NULL,1),(117,13,3,64,'Energía Reactiva Capacitativa','-','WORD',2.0,'RO','kVArC',1.00000000,2,NULL,1),(118,14,1,1,'Positive active total energy 1','-','LSRtoMSR',2.0,'RO','kWh',1.00000000,3,'1',1),(119,14,2,2,'Positive active total energy 2','-','LSRtoMSR',2.0,'RO','kWh',1.00000000,3,'2',1),(120,14,3,3,'Positive active total energy 3','-','LSRtoMSR',2.0,'RO','kWh',1.00000000,3,'3',1),(121,14,4,4,'Positive active total energy 4','-','LSRtoMSR',2.0,'RO','kWh',1.00000000,3,'4',1),(122,14,5,5,'Positive active total energy 5','-','LSRtoMSR',2.0,'RO','kWh',1.00000000,3,'5',1),(123,14,6,6,'Positive active total energy 6','-','LSRtoMSR',2.0,'RO','kWh',1.00000000,3,'6',1),(124,14,7,7,'Positive active total energy 7','-','LSRtoMSR',2.0,'RO','kWh',1.00000000,3,'7',1),(125,14,8,8,'Positive active total energy 8','-','LSRtoMSR',2.0,'RO','kWh',1.00000000,3,'8',1),(132,16,1,30000,'Flow Speed','-','FLOAT',2.0,'RO','m/s',1.00000000,3,NULL,1),(133,16,2,30002,'Volume Flow','-','FLOAT',2.0,'RO','m3/s',1.00000000,3,NULL,1),(134,16,3,30004,'Mass flow','-','FLOAT',2.0,'RO','kg/s',1.00000000,3,NULL,1),(135,16,4,30006,'Coil Temperature','-','FLOAT',2.0,'RO','K',1.00000000,3,NULL,1),(136,16,5,30008,'Conductivity','-','FLOAT',2.0,'RO','S/m',1.00000000,3,NULL,1),(137,16,6,30010,'Diagnosis Value','-','FLOAT',2.0,'RO',NULL,1.00000000,3,NULL,1),(138,16,7,30012,'Display Chanel 1','-','FLOAT',2.0,'RO',NULL,1.00000000,3,NULL,1),(139,16,8,30014,'Display Chanel 2','-','FLOAT',2.0,'RO',NULL,1.00000000,3,NULL,1),(140,16,9,30016,'Operating Time','-','FLOAT',2.0,'RO','s',1.00000000,3,NULL,1),(141,16,10,30018,'Discard','-','FLOAT',2.0,'RO',NULL,1.00000000,3,NULL,1),(142,16,11,30020,'Counter 1','-','DFLOAT',4.0,'RO','m3',1.00000000,3,NULL,1),(143,16,12,30024,'Counter 2','-','DFLOAT',4.0,'RO','m3',1.00000000,3,NULL,1),(144,16,13,30028,'Counter 3','-','DFLOAT',4.0,'RO','m3',1.00000000,3,NULL,1),(145,16,14,30032,'Long Status Sensor','-','DWORD',2.0,'RO',NULL,1.00000000,3,NULL,1),(146,16,15,30034,'Long Status Device','-','DWORD',2.0,'RO',NULL,1.00000000,3,NULL,1),(147,16,16,30036,'Long Status Option PF','-','DWORD',2.0,'RO',NULL,1.00000000,3,NULL,1),(148,17,1,30001,'Voltage Phase 1','-','FLOAT',2.0,'RO','V',1.00000000,3,NULL,1),(149,17,2,30003,'Voltage Phase 2','-','FLOAT',2.0,'RO','V',1.00000000,3,NULL,1),(150,17,3,30005,'Voltage Phase 3','-','FLOAT',2.0,'RO','V',1.00000000,3,NULL,1),(151,17,4,30007,'Current Phase 1','-','FLOAT',2.0,'RO','A',1.00000000,3,NULL,1),(152,17,5,30009,'Current Phase 2','-','FLOAT',2.0,'RO','A',1.00000000,3,NULL,1),(153,17,6,30011,'Current Phase 3','-','FLOAT',2.0,'RO','A',1.00000000,3,NULL,1),(154,17,7,30013,'Active Power Phase 1','-','FLOAT',2.0,'RO','W',1.00000000,3,NULL,1),(155,17,8,30015,'Active Power Phase 2','-','FLOAT',2.0,'RO','W',1.00000000,3,NULL,1),(156,17,9,30017,'Active Power Phase 3','-','FLOAT',2.0,'RO','W',1.00000000,3,NULL,1),(157,17,10,30019,'Apparent power Phase 1','-','FLOAT',2.0,'RO','VA',1.00000000,3,NULL,1),(158,17,11,30021,'Apparent power Phase 2','-','FLOAT',2.0,'RO','VA',1.00000000,3,NULL,1),(159,17,12,30023,'Apparent power Phase 3','-','FLOAT',2.0,'RO','VA',1.00000000,3,NULL,1),(160,17,13,30025,'Reactive Power Phase 1','-','FLOAT',2.0,'RO','VAr',1.00000000,3,NULL,1),(161,17,14,30027,'Reactive Power Phase 2','-','FLOAT',2.0,'RO','VAr',1.00000000,3,NULL,1),(162,17,15,30029,'Reactive Power Phase 3','-','FLOAT',2.0,'RO','VAr',1.00000000,3,NULL,1),(163,17,16,30031,'Power Factor Phase 1','-','FLOAT',2.0,'RO',NULL,1.00000000,3,NULL,1),(164,17,17,30033,'Power Factor Phase 2','-','FLOAT',2.0,'RO',NULL,1.00000000,3,NULL,1),(165,17,18,30035,'Power Factor Phase 3','-','FLOAT',2.0,'RO',NULL,1.00000000,3,NULL,1),(166,17,19,30037,'Discard','-','FLOAT',2.0,'RO',NULL,1.00000000,3,NULL,1),(167,17,20,30039,'Discard','-','FLOAT',2.0,'RO',NULL,1.00000000,3,NULL,1),(168,17,21,30041,'Discard','-','FLOAT',2.0,'RO',NULL,1.00000000,3,NULL,1),(169,17,22,30043,'Average line to neutral volts','-','FLOAT',2.0,'RO','V',1.00000000,3,NULL,1),(170,17,23,30045,'Discard','-','FLOAT',2.0,'RO',NULL,1.00000000,3,NULL,1),(171,17,24,30047,'Average line currents','-','FLOAT',2.0,'RO','A',1.00000000,3,NULL,1),(172,17,25,30049,'Sum of line currents','-','FLOAT',2.0,'RO','A',1.00000000,3,NULL,1),(173,17,26,30051,'Discard','-','FLOAT',2.0,'RO',NULL,1.00000000,3,NULL,1),(174,17,27,30053,'Total system power','-','FLOAT',2.0,'RO','W',10.00000000,3,NULL,1),(175,17,28,30055,'Discard','-','FLOAT',2.0,'RO',NULL,1.00000000,3,NULL,1),(176,17,29,30057,'Total system volt amps','-','FLOAT',2.0,'RO','VA',10.00000000,3,NULL,1),(177,17,30,30059,'Discard','-','FLOAT',2.0,'RO',NULL,1.00000000,3,NULL,1),(178,17,31,30061,'Total system VAr','-','FLOAT',2.0,'RO','VAr',1.00000000,3,NULL,1),(179,17,32,30063,'Total system power factor','-','FLOAT',2.0,'RO',NULL,1.00000000,3,NULL,1),(180,18,1,0,'Noise','-','WORD',1.0,'RO','dB',0.10000000,1,NULL,1),(181,19,1,32,'Temperature','-','WORD',1.0,'RO','ºC',0.10000000,1,NULL,1),(182,19,2,33,'Humidity','-','WORD',1.0,'RO','%',0.10000000,0,NULL,1),(183,20,1,4000,'Sensor 1','-','REAL',2.0,'RO',NULL,1.00000000,0,NULL,1),(184,20,2,4002,'Sensor 2','-','REAL',2.0,'RO',NULL,1.00000000,0,NULL,1),(185,20,3,4004,'Sensor 3','-','REAL',2.0,'RO',NULL,1.00000000,0,NULL,1),(186,20,4,4006,'Sensor 4','-','REAL',2.0,'RO',NULL,1.00000000,0,NULL,1),(187,21,21,40174,'Vln avg mx','-','UDINT',2.0,'RO','V',1.00000000,3,NULL,NULL),(188,21,22,40176,'','-','UDINT',2.0,'RO',NULL,1.00000000,3,NULL,NULL),(189,21,23,40178,'Vll ab','-','UDINT',2.0,'RO','V',1.00000000,3,NULL,NULL),(190,21,24,40180,'Vll bc','-','UDINT',2.0,'RO','V',1.00000000,3,NULL,NULL),(191,21,25,40182,'Vll ca','-','UDINT',2.0,'RO','V',1.00000000,3,NULL,NULL),(192,21,26,40184,'Vll avg','-','UDINT',2.0,'RO','V',1.00000000,3,NULL,NULL),(193,21,27,40186,'Vll avg mx','-','UDINT',2.0,'RO','V',1.00000000,3,NULL,NULL),(194,21,28,40188,'Vll avg mean','-','UDINT',2.0,'RO',NULL,1.00000000,3,NULL,NULL),(195,21,29,40198,'kW a','-','SDINT',2.0,'RO','kW',1.00000000,3,NULL,NULL),(196,21,30,40200,'kW b','-','SDINT',2.0,'RO','kW',1.00000000,3,NULL,NULL),(197,21,31,40202,'kW c','-','SDINT',2.0,'RO','kW',1.00000000,3,NULL,NULL),(198,21,32,40204,'kW tot','-','SDINT',2.0,'RO','kW',1.00000000,3,NULL,NULL),(199,21,33,40206,'kW tot mx','-','SDINT',2.0,'RO','kW',1.00000000,3,NULL,NULL),(200,21,34,40208,'kVAR a','-','SDINT',2.0,'RO','kVAr',1.00000000,3,NULL,NULL),(201,21,35,40210,'kVAR b','-','SDINT',2.0,'RO','kVAr',1.00000000,3,NULL,NULL),(202,21,36,40212,'kVAR c','-','SDINT',2.0,'RO','kVAr',1.00000000,3,NULL,NULL),(203,21,37,40214,'kVAR tot','-','SDINT',2.0,'RO','kVAr',1.00000000,3,NULL,NULL),(204,21,38,40216,'kVAR tot mx','-','SDINT',2.0,'RO','kVAr',1.00000000,3,NULL,NULL),(205,21,39,40218,'kVA a','-','SDINT',2.0,'RO','kVA',1.00000000,3,NULL,NULL),(206,21,40,40220,'kVA b','-','SDINT',2.0,'RO','kVA',1.00000000,3,NULL,NULL),(207,21,41,40222,'kVA c','-','SDINT',2.0,'RO','kVA',1.00000000,3,NULL,NULL),(208,21,42,40224,'kVA tot','-','SDINT',2.0,'RO','kVA',1.00000000,3,NULL,NULL),(209,21,43,40226,'kVA tot mx','-','SDINT',2.0,'RO','kVA',1.00000000,3,NULL,NULL),(210,21,44,40228,'','-','SDINT',2.0,'RO',NULL,1.00000000,3,NULL,NULL),(211,21,45,40230,'kWh del','-','SDINT',2.0,'RO',NULL,1.00000000,3,NULL,NULL),(212,21,46,40232,'kWh rec','-','SDINT',2.0,'RO',NULL,1.00000000,3,NULL,NULL),(213,21,47,40234,'kVARh del','-','SDINT',2.0,'RO',NULL,1.00000000,3,NULL,NULL),(214,21,48,40236,'kVARh rec','-','SDINT',2.0,'RO',NULL,1.00000000,3,NULL,NULL),(215,21,49,40238,'kVAh del+rec','-','SDINT',2.0,'RO',NULL,1.00000000,3,NULL,NULL),(216,21,50,40262,'PF sign a','-','SINT',1.0,'RO',NULL,100.00000000,3,NULL,NULL),(217,21,51,40263,'PF sign b','-','SINT',1.0,'RO',NULL,100.00000000,3,NULL,NULL),(218,21,52,40264,'PF sign c','-','SINT',1.0,'RO',NULL,100.00000000,3,NULL,NULL),(219,21,53,40265,'PF sign tot','-','SINT',1.0,'RO',NULL,100.00000000,3,NULL,NULL),(220,21,54,40266,'V1 THD mx','-','SINT',1.0,'RO',NULL,1.00000000,3,NULL,NULL),(221,21,55,40267,'V2 THD mx','-','SINT',1.0,'RO',NULL,1.00000000,3,NULL,NULL),(222,21,56,40268,'V3 THD mx','-','SINT',1.0,'RO',NULL,100.00000000,3,NULL,NULL),(223,21,57,41926,'UTC seconds','-','UDINT',2.0,'RO','s',1.00000000,3,NULL,NULL),(224,22,1,1,'RAW Frame','-','WORD',1.0,'RO',NULL,1.00000000,3,NULL,1),(225,23,1,16384,'Presión de consigna','-','WORD',1.0,'RO','bar',0.10000000,1,NULL,1),(226,23,2,16385,'Presión real','-','WORD',1.0,'RO','bar',0.10000000,1,NULL,1),(227,23,3,16386,'Presión real de entrada','-','WORD',1.0,'RO','bar',0.10000000,1,NULL,1),(228,23,4,16387,'Periodo de  aleternancia','-','WORD',1.0,'RO','h',0.01000000,2,NULL,1),(230,23,5,16389,'Frecuencia funcionamiento bomba #1','-','WORD',1.0,'RO','Hz',0.01000000,2,NULL,2),(231,23,6,16390,'Frecuencia funcionamiento bomba #2','-','WORD',1.0,'RO','Hz',0.01000000,2,NULL,2),(232,23,7,16391,'Frecuencia funcionamiento bomba #3','-','WORD',1.0,'RO','Hz',0.01000000,2,NULL,2),(233,23,11,16395,'Intensidad de salida bomba #1','-','WORD',1.0,'RO','A',0.01000000,2,NULL,3),(234,23,12,16396,'Intensidad de salida bomba #2','-','WORD',1.0,'RO','A',0.01000000,2,NULL,3),(235,23,13,16397,'Intensidad de salida bomba #3','-','WORD',1.0,'RO','A',0.01000000,2,NULL,3),(236,23,14,16398,'Intensidad de salida bomba #4','-','WORD',1.0,'RO','A',0.01000000,2,NULL,3),(237,23,15,16399,'Intensidad de salida bomba #5','-','WORD',1.0,'RO','A',0.01000000,2,NULL,3),(238,23,16,16400,'Intensidad de salida bomba #6','-','WORD',1.0,'RO','A',0.01000000,2,NULL,3),(239,23,17,16401,'Tensión de salida bomba #1','-','WORD',1.0,'RO','V',1.00000000,0,NULL,4),(240,23,18,16402,'Tensión de salida bomba #2','-','WORD',1.0,'RO','V',1.00000000,0,NULL,4),(241,23,19,16403,'Tensión de salida bomba #3','-','WORD',1.0,'RO','V',1.00000000,0,NULL,4),(242,23,23,16419,'Estado del Sistema','0 paro,1 marcha, 2 error','WORD',1.0,'RO',NULL,1.00000000,0,NULL,5),(243,23,24,16420,'Estado bomba #1','0 paro,1 marcha, 2 error, 3 standby','WORD',1.0,'RO',NULL,1.00000000,0,NULL,5),(244,23,25,16421,'Estado bomba #2','0 paro,1 marcha, 2 error, 3 standby','WORD',1.0,'RO',NULL,1.00000000,0,NULL,5),(245,23,26,16422,'Estado bomba #3','0 paro,1 marcha, 2 error, 3 standby','WORD',1.0,'RO',NULL,1.00000000,0,NULL,5),(246,23,27,16423,'Estado bomba #4','0 paro,1 marcha, 2 error, 3 standby','WORD',1.0,'RO',NULL,1.00000000,0,NULL,5),(247,23,28,16424,'Estado bomba #5','0 paro,1 marcha, 2 error, 3 standby','WORD',1.0,'RO',NULL,1.00000000,0,NULL,5),(248,23,29,16425,'Estado bomba #6','0 paro,1 marcha, 2 error, 3 standby','WORD',1.0,'RO',NULL,1.00000000,0,NULL,5),(249,23,30,16426,'Información fallo sistema','-','WORD',1.0,'RO',NULL,1.00000000,0,NULL,6),(250,23,31,16427,'Información fallo bomba #1','-','WORD',1.0,'RO',NULL,1.00000000,0,NULL,6),(251,23,32,16428,'Información fallo bomba #2','-','WORD',1.0,'RO',NULL,1.00000000,0,NULL,6),(252,23,33,16429,'Información fallo bomba #3','-','WORD',1.0,'RO',NULL,1.00000000,0,NULL,6),(253,23,37,46596,'Registro antepenúltimo fallo','-','WORD',1.0,'RO',NULL,1.00000000,0,NULL,7),(254,23,38,46597,'Registro penúltimo fallo','-','WORD',1.0,'RO',NULL,1.00000000,0,NULL,7),(255,23,39,46598,'Registro último fallo','-','WORD',1.0,'RO',NULL,1.00000000,0,NULL,7),(257,23,40,46600,'Tiempo total de funcionamiento','-','WORD',1.0,'RO','h',1.00000000,0,NULL,8),(261,24,1,257,'Discard','LAF','WORD',1.0,'RO','dBA',0.10000000,1,NULL,1),(262,24,2,258,'Discard','LAS','WORD',1.0,'RO','dBA',0.10000000,1,NULL,1),(263,24,3,259,'Discard','LCF','WORD',1.0,'RO','dBC',0.10000000,1,NULL,1),(264,24,4,260,'Discard','LCS','WORD',1.0,'RO','dBC',0.10000000,1,NULL,1),(265,24,5,261,'Discard','LZF','WORD',1.0,'RO','dB',0.10000000,1,NULL,1),(266,24,6,262,'Discard','LZS','WORD',1.0,'RO','dB',0.10000000,1,NULL,1),(267,24,7,263,'Discard','LAFmax','WORD',1.0,'RO','dBA',0.10000000,1,NULL,1),(268,24,8,264,'Discard','LASmax','WORD',1.0,'RO','dBA',0.10000000,1,NULL,1),(269,24,9,265,'Discard','LCFmax','WORD',1.0,'RO','dBC',0.10000000,1,NULL,1),(270,24,10,266,'Discard','LCSmax','WORD',1.0,'RO','dBC',0.10000000,1,NULL,1),(271,24,11,267,'Discard','LZFmax','WORD',1.0,'RO','dB',0.10000000,1,NULL,1),(272,24,12,268,'Discard','LZSmax','WORD',1.0,'RO','dB',0.10000000,1,NULL,1),(273,24,13,269,'Discard','LAFmin','WORD',1.0,'RO','dBA',0.10000000,1,NULL,1),(274,24,14,270,'Discard','LASmin','WORD',1.0,'RO','dBA',0.10000000,1,NULL,1),(275,24,15,271,'Discard','LCFmin','WORD',1.0,'RO','dBC',0.10000000,1,NULL,1),(276,24,16,272,'Discard','LCSmin','WORD',1.0,'RO','dBC',0.10000000,1,NULL,1),(277,24,17,273,'Discard','LZFmin','WORD',1.0,'RO','dB',0.10000000,1,NULL,1),(278,24,18,274,'Discard','LZSmin','WORD',1.0,'RO','dB',0.10000000,1,NULL,1),(279,24,19,275,'Discard','LApeak','WORD',1.0,'RO','dBA',0.10000000,1,NULL,1),(280,24,20,276,'Discard','LCpeak','WORD',1.0,'RO','dBC',0.10000000,1,NULL,1),(281,24,21,277,'Discard','LZpeak','WORD',1.0,'RO','dB',0.10000000,1,NULL,1),(282,24,22,278,'LAeqT','-','WORD',1.0,'RO','dBA',0.10000000,1,NULL,1),(283,24,23,279,'LCeqT','-','WORD',1.0,'RO','dBC',0.10000000,1,NULL,1),(284,24,24,280,'LZeqT','-','WORD',1.0,'RO','dB',0.10000000,1,NULL,1),(285,25,1,42,'Temperature','-','WORD',1.0,'RO','ºC',0.10000000,1,NULL,1),(286,25,2,43,'Humidity','-','WORD',1.0,'RO','%',0.10000000,1,NULL,1),(287,25,3,44,'Atmospheric pressure','-','WORD',1.0,'RO','Kpa',0.10000000,1,NULL,1),(288,25,4,45,'Wind velocity','-','WORD',1.0,'RO','m/s',0.10000000,1,NULL,1),(289,25,5,46,'Wind','-','WORD',1.0,'RO','º',0.10000000,1,NULL,1),(290,25,6,47,'Rainfall parameters','-','WORD',1.0,'RO','mm/h',0.10000000,1,NULL,1),(291,25,7,48,'Light intensity','-','WORD',1.0,'RO','Klux',0.10000000,1,NULL,1),(292,25,8,49,'PM2.5','-','WORD',1.0,'RO','ug',0.10000000,1,NULL,1),(293,25,9,50,'PM10','-','WORD',1.0,'RO','ug',0.10000000,1,NULL,1),(294,25,10,51,'Noise','-','WORD',1.0,'RO','dBA',0.10000000,1,NULL,1),(295,26,1,1662,'Flow rate','-','REAL',2.0,'RO','m3/h',1.00000000,3,NULL,NULL),(296,26,2,1664,'Flow Velocity','-','REAL',2.0,'RO','m/s',1.00000000,3,NULL,NULL),(297,26,3,1672,'Forward Volume','-','REAL',2.0,'RO','m3',1.00000000,3,NULL,NULL),(298,26,4,1674,'Reverse Volume','-','REAL',2.0,'RO','m3',1.00000000,3,NULL,NULL),(299,26,5,1676,'Discard','-','REAL',2.0,'RO','m3',1.00000000,3,NULL,NULL),(300,26,6,1678,'Discard','-','REAL',2.0,'RO','m3',1.00000000,3,NULL,NULL),(301,27,1,0,'Fluid Velocity','-','FloatEndianMidLittle',2.0,'RO','m/s',1.00000000,3,NULL,1),(302,27,2,2,'Flow Rate ','-','FloatEndianMidLittle',2.0,'RO','m3/h',1.00000000,3,NULL,1),(303,27,3,4,'Flow Rate','-','FloatEndianMidLittle',2.0,'RO','m3/h',0.28000000,3,NULL,1),(304,27,4,6,'Counter total positive','-','FloatEndianMidLittle',2.0,'RO','m3',1.00000000,3,NULL,1),(305,27,5,8,'Counter total negative','-','FloatEndianMidLittle',2.0,'RO','m3',1.00000000,3,NULL,1),(306,28,1,3002,'Absolute Volumeflow','-','REAL',2.0,'RO','m3/h',1.00000000,3,NULL,NULL),(307,28,2,3022,'Totalizer 1 - Forward Volume','-','REAL',2.0,'RO','m3',1.00000000,3,NULL,NULL),(308,28,3,3024,'Totalizer 2 - Reverse Volume','-','REAL',2.0,'RO','m3',1.00000000,3,NULL,NULL),(309,28,4,2702,'ERROR REG 1','-','HEX',3.0,'RO',NULL,1.00000000,0,NULL,NULL),(310,28,5,2705,'ERROR REG 2','-','HEX',3.0,'RO',NULL,1.00000000,0,NULL,NULL),(311,28,6,2708,'ERROR REG 3','-','HEX',3.0,'RO',NULL,1.00000000,0,NULL,NULL),(312,29,1,3000,'Actual velocity (mm/s)','-','REAL',2.0,'RO','m3/h',1000.00000000,3,NULL,NULL),(313,29,2,3002,'Absolute Volumeflow','-','REAL',2.0,'RO','m3',1.00000000,3,NULL,NULL),(314,29,3,3017,'Totalizer 1 - Forward Volume','-','FEB_INT_DEC',4.0,'RO','m3',1.00000000,3,NULL,NULL),(315,29,4,3021,'Totalizer 2 - Reverse Volume','-','FEB_INT_DEC',4.0,'RO',NULL,1.00000000,0,NULL,NULL),(316,29,5,3030,'Battery Capacity','-','HEX',1.0,'RO',NULL,1.00000000,0,NULL,NULL),(317,29,6,2708,'Fault Status','-','WORDBITS',1.0,'RO',NULL,1.00000000,0,NULL,NULL),(318,30,1,207,'T1 / T+ ? Forward volume','-','REAL',2.0,'RO','m3',1.00000000,3,NULL,NULL),(319,30,2,209,'-','-','HEX',6.0,'RO',NULL,1.00000000,3,NULL,NULL),(320,30,3,215,'T2 / T- ? Reverse volume','-','REAL',2.0,'RO','m3',1.00000000,3,NULL,NULL),(321,30,4,233,'Flow Velocity','-','REAL',2.0,'RO','m/s',1.00000000,0,NULL,NULL),(322,30,5,235,'-','-','HEX',2.0,'RO',NULL,1.00000000,0,NULL,NULL),(323,30,6,237,'Flow Rate','-','REAL',2.0,'RO','m3/s',1.00000000,0,NULL,NULL),(324,30,7,3016,'Meter Status','-','WORDBITS',1.0,'RO',NULL,1.00000000,0,NULL,NULL),(325,31,1,40015,'Drivers On/Off','-','WORDBITS',1.0,'RO',NULL,1.00000000,0,NULL,NULL),(326,31,2,40016,'Discard','-','WORD',10.0,'RO',NULL,1.00000000,0,NULL,NULL),(327,31,3,40026,'Current Value','-','SINT',1.0,'RO','bar',0.10000000,3,NULL,NULL),(328,31,4,40027,'Active Set Point Value','-','SINT',1.0,'RO','bar',0.10000000,3,NULL,NULL),(329,31,5,40016,'Discard','-','WORD',5.0,'RO',NULL,1.00000000,0,NULL,NULL),(330,31,6,40033,'State Pump 1 ','-','WORDBITS',1.0,'RO',NULL,1.00000000,0,NULL,NULL),(331,31,7,40034,'State Pump 2 ','-','WORDBITS',1.0,'RO',NULL,1.00000000,0,NULL,NULL),(332,31,8,40016,'Discard','-','WORD',6.0,'RO',NULL,1.00000000,0,NULL,NULL),(333,31,9,40041,'Mode Pump 1','-','WORD',1.0,'RO',NULL,1.00000000,0,NULL,NULL),(334,31,10,40042,'Mode Pump 2','-','WORD',1.0,'RO',NULL,1.00000000,0,NULL,NULL),(335,31,11,40016,'Discard','-','WORD',7.0,'RO',NULL,1.00000000,0,NULL,NULL),(336,31,12,40050,'Actual Speed Pump 1','-','UINT',1.0,'RO','%',1.00000000,3,NULL,NULL),(337,31,13,40051,'Actual Speed Pump 2','-','UINT',1.0,'RO','%',1.00000000,3,NULL,NULL),(338,31,14,40068,'Set Point 1','-','UINT',1.0,'RO','bar',0.10000000,3,NULL,NULL),(339,31,15,40016,'Discard','-','WORD',12.0,'RO',NULL,1.00000000,0,NULL,NULL),(340,31,16,40081,'Switch Cycles Pump 1','-','UINT',2.0,'RO',NULL,1.00000000,0,NULL,NULL),(341,31,17,40083,'Switch Cycles Pump 2','-','UINT',2.0,'RO',NULL,1.00000000,0,NULL,NULL),(342,31,18,40016,'Discard','-','WORD',12.0,'RO',NULL,1.00000000,0,NULL,NULL),(343,31,19,40097,'Total Running Hours Pump 1','-','UINT',2.0,'RO',NULL,1.00000000,0,NULL,NULL),(344,31,20,40099,'Total Running Hours Pump 2','-','UINT',2.0,'RO',NULL,1.00000000,0,NULL,NULL),(345,31,21,40139,'Error State','-','WORDBITS',2.0,'RO',NULL,1.00000000,0,NULL,NULL),(346,31,22,40163,'Input Power Pump 1','-','UDINT',2.0,'RO','W',1.00000000,3,NULL,NULL),(347,31,23,40165,'Input Power Pump 2','-','UDINT',2.0,'RO','W',1.00000000,3,NULL,NULL),(348,31,24,40016,'Discard','-','WORD',14.0,'RO',NULL,1.00000000,0,NULL,NULL),(349,31,25,40181,'Consumption Pump 1','-','UDINT',2.0,'RO','kWh',0.10000000,3,NULL,NULL),(350,31,26,40183,'Consumption Pump 2','-','UDINT',2.0,'RO','kWh',0.10000000,3,NULL,NULL),(351,32,1,233,'Flow velocity','-','REAL',2.0,'RO','m/s',1.00000000,3,NULL,NULL),(352,32,2,235,'-','-','HEX',2.0,'RO',NULL,1.00000000,3,NULL,NULL),(353,32,3,237,'Flow Rate','-','REAL',2.0,'RO','m3/h',0.00027777,3,NULL,NULL),(354,32,4,519,'T1+  Forward volume','-','REAL',2.0,'RO','m3',1.00000000,0,NULL,NULL),(355,32,5,521,'T1- Reverse volume','-','REAL',2.0,'RO','m3',1.00000000,0,NULL,NULL),(356,32,6,523,'T1N Net Flow','-','REAL',2.0,'RO','m3',1.00000000,0,NULL,NULL),(357,32,7,562,'Events & Alarms','-','WORDBITS',1.0,'RO',NULL,1.00000000,0,NULL,NULL),(358,32,8,571,'Battery Voltage','-','REAL',2.0,'RO',NULL,1.00000000,0,NULL,NULL),(359,33,1,30000,'Flow velocity','-','FLOAT',2.0,'RO','m/s',1.00000000,8,NULL,NULL),(360,33,2,30002,'Flow Rate','-','FLOAT',2.0,'RO','m3/s',1.00000000,8,NULL,NULL),(361,33,3,30004,'Mass Flow Rate','-','FLOAT',2.0,'RO','kg/s',0.00027777,8,NULL,NULL),(362,33,4,30006,'Flow Temperature','-','FLOAT',2.0,'RO','K',1.00000000,8,NULL,NULL),(363,33,5,30020,'T1+  Forward volume','-','DFLOAT',4.0,'RO','m3',1.00000000,8,NULL,NULL),(364,33,6,30024,'T1- Reverse volume','-','DFLOAT',4.0,'RO','m3',1.00000000,8,NULL,NULL),(365,23,8,16392,'Frecuencia funcionamiento bomba #4','-','WORD',1.0,'RO','Hz',0.01000000,2,NULL,2),(366,23,9,16393,'Frecuencia funcionamiento bomba #5','-','WORD',1.0,'RO','Hz',0.01000000,2,NULL,2),(367,23,10,16394,'Frecuencia funcionamiento bomba #6','-','WORD',1.0,'RO','Hz',0.01000000,2,NULL,2),(368,23,20,16404,'Tensión de salida bomba #4','-','WORD',1.0,'RO','V',1.00000000,0,NULL,4),(369,23,21,16405,'Tensión de salida bomba #5','-','WORD',1.0,'RO','V',1.00000000,0,NULL,4),(370,23,22,16406,'Tensión de salida bomba #6','-','WORD',1.0,'RO','V',1.00000000,0,NULL,4),(371,23,34,16430,'Información fallo bomba #4','-','WORD',1.0,'RO',NULL,1.00000000,0,NULL,6),(372,23,35,16431,'Información fallo bomba #5','-','WORD',1.0,'RO',NULL,1.00000000,0,NULL,6),(373,23,36,16432,'Información fallo bomba #6','-','WORD',1.0,'RO',NULL,1.00000000,0,NULL,6),(374,34,1,6,'Código de error / Estado de la unidad','byte inferior contiene una palabra de estatus de la unidad, byte superior contendrá el número de fallo','WORDBITS',1.0,'RO',NULL,1.00000000,0,NULL,NULL),(375,34,2,7,'Frecuencia de salida','-','WORD',1.0,'RO','Hz',0.10000000,1,NULL,NULL),(376,34,3,8,'Corriente del motor','-','WORD',1.0,'RO','A',0.10000000,1,NULL,NULL),(377,34,4,11,'Estado entrada digital','-','WORDBITS',1.0,'RO',NULL,1.00000000,0,NULL,NULL),(378,34,5,20,'Presión de entrada','-','WORD',1.0,'RO','%',0.10000000,1,NULL,NULL),(379,34,6,21,'Presión de salida','-','WORD',1.0,'RO','%',0.10000000,1,NULL,NULL),(380,34,7,24,'Temperatura de la unidad','-','WORD',1.0,'RO','ºC',1.00000000,0,NULL,NULL),(381,34,8,32,'Contador de energía no reajustable','-','WORD',1.0,'RO','kWh',0.10000000,1,NULL,NULL),(382,34,9,33,'Contador de energía no reajustable','-','WORD',1.0,'RO','MWh',0.10000000,1,NULL,NULL),(383,34,10,34,'Tiempo de ejecución','-','WORD',1.0,'RO','h',1.00000000,0,NULL,NULL),(384,35,1,4000,'Discard','Flow Speed','REAL',2.0,'RO','m/s',1.00000000,5,NULL,1),(385,35,2,4002,'Discard','Volume Flow','REAL',2.0,'RO','m3/h',1.00000000,5,NULL,1),(386,35,3,4004,'Discard','Counter 1','REAL',2.0,'R/W','m3',1.00000000,5,NULL,1),(387,35,4,4006,'Discard','Counter 2','REAL',2.0,'R/W','m3',1.00000000,5,NULL,1),(388,35,5,4008,'Discard','Total Flow Volume Counter','REAL',2.0,'RO','m3',1.00000000,5,NULL,1),(389,35,6,4010,'Forward Flow Volume Counter',NULL,'REAL',2.0,'RO','m3',1.00000000,5,NULL,1),(390,35,7,4012,'Discard','Reverse Flow Volume Counter','REAL',2.0,'RO','m3',1.00000000,5,NULL,1),(391,35,8,4014,'Discard','Media Temperature','REAL',2.0,'RO','ºC',1.00000000,3,NULL,1),(392,35,9,4016,'Discard','Device status','DWORDBITS',2.0,'RO',NULL,1.00000000,0,NULL,1),(393,35,10,4018,'Discard','Current Flow Direction','UDINT',2.0,'RO',NULL,1.00000000,0,NULL,1),(431,36,1,0,'AQI [degC]','-','FloatEndianMidLittle',2.0,'RO',NULL,1.00000000,0,NULL,1),(432,36,2,2,'PM2.5 [%]','-','FloatEndianMidLittle',2.0,'RO',NULL,1.00000000,0,NULL,1),(433,36,3,4,'PM10 [mm]','-','FloatEndianMidLittle',2.0,'RO',NULL,1.00000000,0,NULL,1),(434,36,4,6,'CO [wpm2]','-','FloatEndianMidLittle',2.0,'RO',NULL,1.00000000,0,NULL,1),(435,36,5,8,'O3 [kwh]','-','FloatEndianMidLittle',2.0,'RO',NULL,1.00000000,0,NULL,1),(436,36,6,10,'NO2 [wpm2]','-','FloatEndianMidLittle',2.0,'RO',NULL,1.00000000,0,NULL,1),(437,36,7,12,'CO2 [wpm2]','-','FloatEndianMidLittle',2.0,'RO',NULL,1.00000000,0,NULL,1),(438,36,8,14,'PM1.0 [No Unit]','-','FloatEndianMidLittle',2.0,'RO',NULL,1.00000000,0,NULL,1),(439,36,9,16,'Temperature [degC]','-','FloatEndianMidLittle',2.0,'RO',NULL,1.00000000,0,NULL,1),(440,36,10,18,'Humidity [degC]','-','FloatEndianMidLittle',2.0,'RO',NULL,1.00000000,0,NULL,1),(441,36,11,20,'CH2O [degC]','-','FloatEndianMidLittle',2.0,'RO',NULL,1.00000000,0,NULL,1),(442,36,12,22,'VOC [mps]','-','FloatEndianMidLittle',2.0,'RO',NULL,1.00000000,0,NULL,1),(443,36,13,24,'SI_PM2.5 [deg]','-','FloatEndianMidLittle',2.0,'RO',NULL,1.00000000,0,NULL,1),(444,36,14,26,'SI_PM10 [wpm2]','-','FloatEndianMidLittle',2.0,'RO',NULL,1.00000000,0,NULL,1),(445,36,15,28,'SI_CO [kwh/m2]','-','FloatEndianMidLittle',2.0,'RO',NULL,1.00000000,0,NULL,1),(446,36,16,30,'SI_O3 [wpm2]','-','FloatEndianMidLittle',2.0,'RO',NULL,1.00000000,0,NULL,1),(447,36,17,32,'SI_NO2 [kwh/m2]','-','FloatEndianMidLittle',2.0,'RO',NULL,1.00000000,0,NULL,1),(448,37,1,0,'PH','-','UINT',1.0,'RO','pH',0.01000000,2,NULL,1),(449,37,2,1,'Discard','-','UINT',1.0,'RO',NULL,1.00000000,0,NULL,1),(450,37,3,2,'TEMPERATURE','-','UINT',1.0,'RO','ºC',0.10000000,1,NULL,1),(451,38,1,0,'CONDUCTIVITY','-','UINT',1.0,'RO','mg/L',0.10000000,1,NULL,1),(452,38,2,1,'Discard','-','UINT',1.0,'RO',NULL,1.00000000,NULL,NULL,1),(453,38,3,2,'TEMPERATURE','-','UINT',1.0,'RO','ºC',0.10000000,1,NULL,1),(454,38,4,3,'Discard','-','UINT',1.0,'RO',NULL,1.00000000,0,NULL,1),(455,38,5,4,'TURBIDITY','-','UINT',1.0,'RO','NTU',0.10000000,1,NULL,1),(456,39,1,0,'CHLORINE','-','UINT',1.0,'RO','mg/L',0.00100000,3,NULL,1),(457,39,2,1,'Discard','-','UINT',1.0,'RO',NULL,1.00000000,0,NULL,1),(458,39,3,2,'TEMPERATURE','-','UINT',1.0,'RO','ºC',0.10000000,0,NULL,1),(459,39,4,3,'Discard','-','UINT',1.0,'RO',NULL,1.00000000,0,NULL,1),(460,39,5,4,'Discard','-','UINT',1.0,'RO',NULL,1.00000000,0,NULL,1),(461,40,1,3000,'Actual Velocity','-','FLOAT',2.0,'RO','m/s',0.10000000,3,NULL,NULL),(462,40,2,3002,'Flow Rate','-','FLOAT',2.0,'RO','m3/h',1.00000000,3,NULL,NULL),(463,40,3,3004,'Discard','-','WORD',2.0,'RO',NULL,1.00000000,0,NULL,NULL),(464,40,4,3006,'Discard','-','WORD',2.0,'RO',NULL,1.00000000,0,NULL,NULL),(465,40,5,3008,'Electrode Impedance A for Empty Pipe','-','SINT',2.0,'RO',NULL,1.00000000,3,NULL,NULL),(466,40,6,3010,'Electrode Impedance B for Empty Pipe','-','SINT',2.0,'RO',NULL,1.00000000,3,NULL,NULL),(467,40,7,3017,'Totalizer 1: Forward Volume','-','FEB_INT_DEC',4.0,'RO','m3',1.00000000,3,NULL,NULL),(469,40,8,3021,'Totalizer 2: Reverse Volume','-','FEB_INT_DEC',4.0,'RO','m3',1.00000000,3,NULL,NULL),(470,40,9,3025,'Customer Totalizer 3','-','FEB_INT_DEC',4.0,'RO','m3',1.00000000,3,NULL,NULL),(471,40,10,3029,'Meter Power Supply','-','UINT',0.5,'RO',NULL,1.00000000,0,NULL,NULL),(472,40,11,3030,'Actual remaining Battery','-','UINT',0.5,'RO','%',1.00000000,1,NULL,NULL),(473,40,12,3016,'Alarm Configuration','-','WORDBITS',1.0,'RO',NULL,1.00000000,0,NULL,NULL),(474,41,1,4010,'Forward Flow Volume Counter','-','REAL',2.0,'RO','m3',1.00000000,5,NULL,1),(475,42,1,3056,'Volume Flow','-','FLOAT',2.0,'RO','m3/h',1.00000000,3,NULL,NULL),(476,42,2,3058,'Discard','-','FLOAT',2.0,'RO',NULL,1.00000000,3,NULL,NULL),(477,42,3,3060,'Flow Velocity','-','FLOAT',2.0,'RO','m/s',1.00000000,3,NULL,NULL),(478,42,4,3062,'Volume Forward','-','FLOAT',2.0,'RO','m3',1.00000000,3,NULL,NULL),(479,42,5,3064,'Volume Reverse','-','FLOAT',2.0,'RO','m3',1.00000000,3,NULL,NULL),(480,42,6,3066,'Volume Net','-','FLOAT',2.0,'RO','m3',1.00000000,3,NULL,NULL),(481,42,7,3074,'Coil & Cable Resistance','-','FLOAT',2.0,'RO','ohm',1.00000000,3,NULL,NULL),(482,42,8,18,'Status Empty Pipe',NULL,'WORDBITS',1.0,NULL,NULL,1.00000000,0,NULL,NULL),(483,43,1,3002,'Flow rate','-','FLOAT',2.0,'RO','m3/h',1.00000000,8,NULL,NULL),(484,43,2,1133,'Total Volume','-','FLOAT',2.0,'RO','m3',1.00000000,8,NULL,NULL),(485,43,3,3024,'Reverse Volume','-','FLOAT',2.0,'RO','m3',1.00000000,8,NULL,NULL);

--
-- Table structure for table `middleware_MODBUS_devices_types_data_format_write`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `middleware_MODBUS_devices_types_data_format_write` (
  `id` int NOT NULL AUTO_INCREMENT,
  `iddevice_type` int DEFAULT NULL,
  `idfield` int DEFAULT NULL,
  `address` int DEFAULT NULL,
  `Description` varchar(450) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `Settings` varchar(450) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `Type` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `registers` int DEFAULT NULL,
  `function` int DEFAULT NULL,
  `read_write` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `Unit` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `Scale` decimal(15,8) DEFAULT '1.00000000',
  `Decimals` int DEFAULT '0',
  `idmeter` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `iddevice_type` (`iddevice_type`),
  KEY `idmeter` (`idmeter`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `middleware_MODBUS_devices_types_data_format_write`
--


--
-- Table structure for table `middleware_MQTT_endpoint_devices_day_log_flash`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `middleware_MQTT_endpoint_devices_day_log_flash` (
  `id` int NOT NULL AUTO_INCREMENT,
  `iddevice` int NOT NULL DEFAULT '0',
  `BUS_iddevice` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
  `date` date NOT NULL DEFAULT '0000-00-00',
  `topic` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `processed` int NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`,`processed`),
  KEY `processed` (`processed`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
/*!50500 PARTITION BY LIST  COLUMNS(processed)
(PARTITION p0 VALUES IN (0) ENGINE = InnoDB,
 PARTITION p1 VALUES IN (1) ENGINE = InnoDB) */;

--
-- Dumping data for table `middleware_MQTT_endpoint_devices_day_log_flash`
--

INSERT INTO `middleware_MQTT_endpoint_devices_day_log_flash` VALUES (1,485096706,'0','2024-12-10','gatewayconfig',0),(2,485096706,'0','2024-12-10','gatewayconfig',0),(3,485096706,'0','2024-12-11','gatewayconfig',0),(4,485096706,'0','2024-12-11','gatewayconfig',0),(5,485096706,'0','2024-12-11','gatewayconfig',0),(6,485096706,'0','2024-12-11','gatewayconfig',0),(7,678912345,'0','2024-12-11','gatewayconfig',0),(8,678912345,'0','2024-12-11','gatewayconfig',0),(9,678912345,'0','2024-12-11','gatewayconfig',0),(10,485096706,'0','2024-12-11','gatewayconfig',0),(11,485096706,'0','2024-12-11','gatewayconfig',0),(12,485096706,'0','2024-12-11','gatewayconfig',0),(13,485096706,'0','2024-12-11','gatewayconfig',0),(14,485096706,'0','2024-12-13','gatewayconfig',0),(15,485096706,'0','2024-12-13','gatewayconfig',0),(16,678912345,'0','2024-12-13','gatewayconfig',0),(17,485096706,'0','2024-12-13','gatewayconfig',0),(18,678912345,'0','2024-12-13','gatewayconfig',0),(19,678912345,'0','2024-12-13','gatewayconfig',0),(20,678912345,'0','2024-12-13','gatewayconfig',0),(21,678912345,'0','2024-12-13','gatewayconfig',0);

--
-- Table structure for table `middleware_MQTT_endpoint_log`
--

 SET character_set_client = utf8mb4 ;
CREATE TABLE `middleware_MQTT_endpoint_log` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `date` datetime NOT NULL,
  `iddevice` int DEFAULT NULL,
  `BUS_iddevice` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `topic` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `payload` varchar(8000) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`,`date`),
  KEY `date` (`date`),
  KEY `iddevice` (`iddevice`),
  KEY `BUS_iddevice` (`BUS_iddevice`),
  KEY `topic` (`topic`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
/*!50500 PARTITION BY RANGE  COLUMNS(`date`)
(PARTITION p20240604 VALUES LESS THAN ('2024-06-05') ENGINE = InnoDB,
 PARTITION p20240605 VALUES LESS THAN ('2024-06-06') ENGINE = InnoDB,
 PARTITION p20240606 VALUES LESS THAN ('2024-06-07') ENGINE = InnoDB,
 PARTITION p20240628 VALUES LESS THAN ('2024-06-29') ENGINE = InnoDB,
 PARTITION p20240802 VALUES LESS THAN ('2024-08-03') ENGINE = InnoDB,
 PARTITION p20240803 VALUES LESS THAN ('2024-08-04') ENGINE = InnoDB,
 PARTITION p20240804 VALUES LESS THAN ('2024-08-05') ENGINE = InnoDB,
 PARTITION p20240805 VALUES LESS THAN ('2024-08-06') ENGINE = InnoDB,
 PARTITION p20240806 VALUES LESS THAN ('2024-08-07') ENGINE = InnoDB,
 PARTITION p20240807 VALUES LESS THAN ('2024-08-08') ENGINE = InnoDB,
 PARTITION p20240808 VALUES LESS THAN ('2024-08-09') ENGINE = InnoDB,
 PARTITION p20240809 VALUES LESS THAN ('2024-08-10') ENGINE = InnoDB,
 PARTITION p20240810 VALUES LESS THAN ('2024-08-11') ENGINE = InnoDB,
 PARTITION p20240811 VALUES LESS THAN ('2024-08-12') ENGINE = InnoDB,
 PARTITION p20240812 VALUES LESS THAN ('2024-08-13') ENGINE = InnoDB,
 PARTITION p20240813 VALUES LESS THAN ('2024-08-14') ENGINE = InnoDB,
 PARTITION p20240814 VALUES LESS THAN ('2024-08-15') ENGINE = InnoDB,
 PARTITION p20240815 VALUES LESS THAN ('2024-08-16') ENGINE = InnoDB,
 PARTITION p20240816 VALUES LESS THAN ('2024-08-17') ENGINE = InnoDB,
 PARTITION p20240817 VALUES LESS THAN ('2024-08-18') ENGINE = InnoDB,
 PARTITION p20240818 VALUES LESS THAN ('2024-08-19') ENGINE = InnoDB,
 PARTITION p20240819 VALUES LESS THAN ('2024-08-20') ENGINE = InnoDB,
 PARTITION p20240820 VALUES LESS THAN ('2024-08-21') ENGINE = InnoDB,
 PARTITION p20240821 VALUES LESS THAN ('2024-08-22') ENGINE = InnoDB,
 PARTITION p20240822 VALUES LESS THAN ('2024-08-23') ENGINE = InnoDB,
 PARTITION p20240823 VALUES LESS THAN ('2024-08-24') ENGINE = InnoDB,
 PARTITION p20240824 VALUES LESS THAN ('2024-08-25') ENGINE = InnoDB,
 PARTITION p20240825 VALUES LESS THAN ('2024-08-26') ENGINE = InnoDB,
 PARTITION p20240826 VALUES LESS THAN ('2024-08-27') ENGINE = InnoDB,
 PARTITION p20240827 VALUES LESS THAN ('2024-08-28') ENGINE = InnoDB,
 PARTITION p20240828 VALUES LESS THAN ('2024-08-29') ENGINE = InnoDB,
 PARTITION p20240829 VALUES LESS THAN ('2024-08-30') ENGINE = InnoDB,
 PARTITION p20240830 VALUES LESS THAN ('2024-08-31') ENGINE = InnoDB,
 PARTITION p20240831 VALUES LESS THAN ('2024-09-01') ENGINE = InnoDB,
 PARTITION p20240901 VALUES LESS THAN ('2024-09-02') ENGINE = InnoDB,
 PARTITION p20240902 VALUES LESS THAN ('2024-09-03') ENGINE = InnoDB,
 PARTITION p20240903 VALUES LESS THAN ('2024-09-04') ENGINE = InnoDB,
 PARTITION p20240904 VALUES LESS THAN ('2024-09-05') ENGINE = InnoDB,
 PARTITION p20240905 VALUES LESS THAN ('2024-09-06') ENGINE = InnoDB,
 PARTITION p20240906 VALUES LESS THAN ('2024-09-07') ENGINE = InnoDB,
 PARTITION p20240907 VALUES LESS THAN ('2024-09-08') ENGINE = InnoDB,
 PARTITION p20240908 VALUES LESS THAN ('2024-09-09') ENGINE = InnoDB,
 PARTITION p20240909 VALUES LESS THAN ('2024-09-10') ENGINE = InnoDB,
 PARTITION p20240910 VALUES LESS THAN ('2024-09-11') ENGINE = InnoDB,
 PARTITION p20240911 VALUES LESS THAN ('2024-09-12') ENGINE = InnoDB,
 PARTITION p20240912 VALUES LESS THAN ('2024-09-13') ENGINE = InnoDB,
 PARTITION p20240913 VALUES LESS THAN ('2024-09-14') ENGINE = InnoDB,
 PARTITION p20240914 VALUES LESS THAN ('2024-09-15') ENGINE = InnoDB,
 PARTITION p202409 VALUES LESS THAN ('2024-09-20') ENGINE = InnoDB,
 PARTITION p20240920 VALUES LESS THAN ('2024-09-21') ENGINE = InnoDB,
 PARTITION p20240921 VALUES LESS THAN ('2024-09-22') ENGINE = InnoDB,
 PARTITION p20240922 VALUES LESS THAN ('2024-09-23') ENGINE = InnoDB,
 PARTITION p20240923 VALUES LESS THAN ('2024-09-24') ENGINE = InnoDB,
 PARTITION p20240924 VALUES LESS THAN ('2024-09-25') ENGINE = InnoDB,
 PARTITION p20240925 VALUES LESS THAN ('2024-09-26') ENGINE = InnoDB,
 PARTITION p20240926 VALUES LESS THAN ('2024-09-27') ENGINE = InnoDB,
 PARTITION p20240927 VALUES LESS THAN ('2024-09-28') ENGINE = InnoDB,
 PARTITION p20240928 VALUES LESS THAN ('2024-09-29') ENGINE = InnoDB,
 PARTITION p20240929 VALUES LESS THAN ('2024-09-30') ENGINE = InnoDB,
 PARTITION p20240930 VALUES LESS THAN ('2024-10-01') ENGINE = InnoDB,
 PARTITION p20241001 VALUES LESS THAN ('2024-10-02') ENGINE = InnoDB,
 PARTITION p20241002 VALUES LESS THAN ('2024-10-03') ENGINE = InnoDB,
 PARTITION p20241003 VALUES LESS THAN ('2024-10-04') ENGINE = InnoDB,
 PARTITION p20241004 VALUES LESS THAN ('2024-10-05') ENGINE = InnoDB,
 PARTITION p20241005 VALUES LESS THAN ('2024-10-06') ENGINE = InnoDB,
 PARTITION p20241006 VALUES LESS THAN ('2024-10-07') ENGINE = InnoDB,
 PARTITION p20241007 VALUES LESS THAN ('2024-10-08') ENGINE = InnoDB,
 PARTITION p20241008 VALUES LESS THAN ('2024-10-09') ENGINE = InnoDB,
 PARTITION p20241009 VALUES LESS THAN ('2024-10-10') ENGINE = InnoDB,
 PARTITION p20241010 VALUES LESS THAN ('2024-10-11') ENGINE = InnoDB,
 PARTITION p20241011 VALUES LESS THAN ('2024-10-12') ENGINE = InnoDB,
 PARTITION p20241012 VALUES LESS THAN ('2024-10-13') ENGINE = InnoDB,
 PARTITION p20241013 VALUES LESS THAN ('2024-10-14') ENGINE = InnoDB,
 PARTITION p20241014 VALUES LESS THAN ('2024-10-15') ENGINE = InnoDB,
 PARTITION p20241015 VALUES LESS THAN ('2024-10-16') ENGINE = InnoDB,
 PARTITION p20241016 VALUES LESS THAN ('2024-10-17') ENGINE = InnoDB,
 PARTITION p20241017 VALUES LESS THAN ('2024-10-18') ENGINE = InnoDB,
 PARTITION p20241018 VALUES LESS THAN ('2024-10-19') ENGINE = InnoDB,
 PARTITION p20241019 VALUES LESS THAN ('2024-10-20') ENGINE = InnoDB,
 PARTITION p20241020 VALUES LESS THAN ('2024-10-21') ENGINE = InnoDB,
 PARTITION p20241021 VALUES LESS THAN ('2024-10-22') ENGINE = InnoDB,
 PARTITION p20241022 VALUES LESS THAN ('2024-10-23') ENGINE = InnoDB,
 PARTITION p20241023 VALUES LESS THAN ('2024-10-24') ENGINE = InnoDB,
 PARTITION p20241024 VALUES LESS THAN ('2024-10-25') ENGINE = InnoDB,
 PARTITION p20241025 VALUES LESS THAN ('2024-10-26') ENGINE = InnoDB,
 PARTITION p20241026 VALUES LESS THAN ('2024-10-27') ENGINE = InnoDB,
 PARTITION p20241027 VALUES LESS THAN ('2024-10-28') ENGINE = InnoDB,
 PARTITION p20241028 VALUES LESS THAN ('2024-10-29') ENGINE = InnoDB,
 PARTITION p20241029 VALUES LESS THAN ('2024-10-30') ENGINE = InnoDB,
 PARTITION p20241030 VALUES LESS THAN ('2024-10-31') ENGINE = InnoDB,
 PARTITION p20241031 VALUES LESS THAN ('2024-11-01') ENGINE = InnoDB,
 PARTITION p20241101 VALUES LESS THAN ('2024-11-02') ENGINE = InnoDB,
 PARTITION p20241102 VALUES LESS THAN ('2024-11-03') ENGINE = InnoDB,
 PARTITION p20241103 VALUES LESS THAN ('2024-11-04') ENGINE = InnoDB,
 PARTITION p20241104 VALUES LESS THAN ('2024-11-05') ENGINE = InnoDB,
 PARTITION p20241105 VALUES LESS THAN ('2024-11-06') ENGINE = InnoDB,
 PARTITION p20241106 VALUES LESS THAN ('2024-11-07') ENGINE = InnoDB,
 PARTITION p20241107 VALUES LESS THAN ('2024-11-08') ENGINE = InnoDB,
 PARTITION p20241108 VALUES LESS THAN ('2024-11-09') ENGINE = InnoDB,
 PARTITION p20241109 VALUES LESS THAN ('2024-11-10') ENGINE = InnoDB,
 PARTITION p20241110 VALUES LESS THAN ('2024-11-11') ENGINE = InnoDB,
 PARTITION p20241111 VALUES LESS THAN ('2024-11-12') ENGINE = InnoDB,
 PARTITION p20241112 VALUES LESS THAN ('2024-11-13') ENGINE = InnoDB,
 PARTITION pMAX VALUES LESS THAN (MAXVALUE) ENGINE = InnoDB) */;

--
