From c5be44e4c66ca59789e9ed8e63572929328e3976 Mon Sep 17 00:00:00 2001
From: jinlicong <493886250@qq.com>
Date: Mon, 29 Apr 2024 19:57:24 +0800
Subject: [PATCH] 完善存储参数定义

---
 Function/STORAGE/system_mem_para.c |   73 +++++++++++++++++++++++++++++++++++-
 1 files changed, 70 insertions(+), 3 deletions(-)

diff --git a/Function/STORAGE/system_mem_para.c b/Function/STORAGE/system_mem_para.c
index 88eeac8..b399d86 100644
--- a/Function/STORAGE/system_mem_para.c
+++ b/Function/STORAGE/system_mem_para.c
@@ -2,16 +2,83 @@
 #include "mbcrc.h"
 #include "eeprom.h"
 #include "system_eep_mem_manage.h"
+#include "rs485_data_analysis_pro.h"
 
 SYSTEM_EEP_IDENTIFICATION_T system_eep_id_g;
-EQUIPMENT_BASIC_INF_T 			    equipment_basic_inf_g;
+EQUIPMENT_BASIC_INF_T 			    equipment_basic_inf_g={ .product_type= DM_SCM_SZV103,		\
+																												.caliber_type = DN50_TYPE,			\
+																												.valve_type = VM_HADE,					\
+																												.equipment_type = EM_SIFRCT,};
 MAIN_EQUIPM_HARDWARE_SOFTWARE_INF_T        main_equipment_hardware_software_inf_g;
 LCD_EQUIPM_HARDWARE_SOFTWARE_INF_T         lcd_equipment_hardware_software_inf_g;
 WIRELESS_EQUIPM_HARDWARE_SOFTWARE_INF_T    wireless_equipment_hardware_software_inf_g;
-SAVE_REALTIME_DATA_T					save_realtime_data_g;
-SAVE_VALVE_PARA_T							save_valve_para_g;
+__IO SAVE_REALTIME_DATA_T					save_realtime_data_g;
+__IO SAVE_VALVE_PARA_T							save_valve_para_g={	.valve_status = VALVE_NONE, \
+																									.valve_lock_state = VL_UNLOCK,};
 
 
+FLOW_METER_PARA_T	flow_meter_para_g ={ .flow_meter_conn_type = FLOW_METER_CONN_RS485, \
+																			.flow_meter_code = SIZHUMODBUSV2_0, 					 \
+																			.pulse_width = 50,  											     \
+																			.baudrate_code = 	BAUDRATE_9600, 							 \
+																			.parity_bit = PARITY_NONE, 									   \
+																			.slave_address = 1, };
+
+TEM_PRE_PARA_T tem_pre_para_g = { 
+	.tem_up_limit = 70, 					   \
+	.tem_up_up_limit = 70, 					 \
+	.tem_low_limit = -20, 					 \
+	.tem_low_low_limit = -25, 			 \
+	.ambient_tem_up_limit = 60, 		 \
+	.ambient_tem_low_limit = -25, 	 \
+	.pre_up_limit = 1600, 					 \
+	.pre_up_up_limit = 1920, 				 \
+	.pre_low_limit = 70, 					   \
+	.pre_low_low_limit = 70, 				 \
+};
+
+MEASURE_FREEZE_PARA_T measure_freeze_para_g = {
+	.freeze_interval = 60,                          \
+	.daily_freeze_time_BCD = {0x00,0x00},           \
+};
+
+BAT_PARA_T bat_para_g = {
+	.lith_bat_low_v = 55,           \
+	.lith_bat_under_v = 50,           \
+	.alka_bat_low_v = 55,           \
+	.alka_bat_under_v = 50,           \
+	.lith_bat_max_hour = 26280,           \
+	.lith_bat_used_hour = 0,           \
+	.lith_bat_used_sec = 0,           \
+};
+
+LOGIN_PASSWORD_T login_passeord_g = {
+	.PC_general_user_password = {0x68,0x68},           \
+	.PC_advanced_user_password = {0x52,0x86},          \
+	.PC_manage_user_password = {0x75,0x97},            \
+};
+
+WRC_PARA_SIZHU_T wrc_para_sizhu_g = {
+	
+	.ip1 = {120,77,85,236},           \
+	.ip_port1 = 9692,          			 \
+	.ip1_connect_type = LINK_TCP,           \
+	.ip2 = {120,77,85,236},           \
+	.ip_port2 = 9692,          			 \
+	.ip2_connect_type = LINK_TCP,           \
+	.bat_power_data_interval = 60,           \
+	.ext_power_data_interval = 60,           \
+	.time_start_type = WRC_TIME_START_INTERVAL,           \
+	.bat_power_send_interval = 1440,           \
+	.ext_power_send_interval = 60,           \
+	.send_first_time_BCD ={0x05,0x20}  ,           \
+	.timing_send_num = 1,           				\
+	.timing_send_time_BCD = {{0x05,0x20}},           \
+	.retransmission_interval = 10,           \
+	.retransmission_num = 0,           		 \
+	.comm_timeout_time =120,           		\
+	.KVer_AES_128[0] ={8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0},  \
+};
 
 //EEPROM����д��Ͷ�ȡ���,ֻ֧��1024���ֽڵ�д�����ȡ���
 ErrorStatus	eepWriteAndReadCheck(uint8_t * write_data,uint32_t addr,uint16_t length)

--
Gitblit v1.9.3