| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196 |
- {
- "_comment_api": "API接口配置",
- "api": {
- "base_url": "http://120.55.44.4:8900",
- "current_data_endpoint": "/api/v1/jinke-cloud/device/current-data",
- "callback_endpoint": "/api/dtgateway/v1/decision/data",
- "plc_endpoint": "/api/v1/plc/set-var-values",
- "jwt_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJRCI6NywiVXNlcm5hbWUiOiJhZG1pbiIsIkRlcCI6IjEzNSIsImV4cCI6MTc3NjExOTExNCwiaXNzIjoiZ2luLWJsb2cifQ.0HTtzHZjyd2mHo8VCy8icYROxmntRMuQhyoZsAYRL_M"
- },
- "_comment_database": "MySQL数据库连接配置",
- "database": {
- "host": "222.130.26.206",
- "port": 4000,
- "user": "whu",
- "password": "09093f4e6b33ddd",
- "database": "ws_data",
- "table_name": "dc_item_history_data_minute"
- },
- "_comment_scada": "SCADA系统配置 - PLC通信签名验证",
- "scada": {
- "secret": "237c92d2-8795-1094-11ef-00e2e48fce4a",
- "project_id": 92
- },
- "_comment_system": "系统运行参数配置",
- "system": {
- "use_model": 0,
- "_use_model_desc": "模型开关: 1=启用模型决策, 0=禁用模型仅记录数据 (支持运行时修改)",
- "trigger_value": 95,
- "_trigger_value_desc": "触发监控的控制值",
- "num_values_to_collect": 10,
- "_num_values_to_collect_desc": "每次收集的数据点数量",
- "poll_interval": 2,
- "_poll_interval_desc": "轮询间隔时间(秒)",
- "backwash_time": 100,
- "_backwash_time_desc": "默认反洗时间(秒)",
- "ceb_count": 45
- },
- "_comment_devices": "设备配置列表 - 每个设备的API调用参数",
- "devices": [
- {
- "_comment": "UF1超滤设备配置",
- "name": "UF1",
- "press_pv_item": "C.M.UF1_DB@press_PV",
- "_press_pv_item_desc": "用于历史数据查询的压差",
- "control_payload": {
- "_desc": "控制字读取配置 - 用于触发条件检测",
- "deviceId": "1",
- "deviceItems": "C.M.UF1_DB@word_control",
- "deviceName": "UF1_control_word",
- "project_id": 92
- },
- "target_payload": {
- "_desc": "跨膜压差读取配置 - 用于数据收集",
- "deviceId": "1",
- "deviceItems": "UF1_BW_After_TMP",
- "deviceName": "UF1_backwash_pressure_diff",
- "project_id": 92
- },
- "production_time_payload": {
- "_desc": "产水时长读取配置 - 用于模型输入",
- "deviceId": "1",
- "deviceItems": "C.M.UF1_DB@time_production",
- "deviceName": "UF1过滤时长",
- "project_id": 92
- },
- "backwashing_payload": {
- "_desc": "反洗时长读取配置 - 用于模型输入",
- "deviceId": "1",
- "deviceItems": "C.M.UF1_DB@time_BW_SP",
- "deviceName": "UF1反洗时长",
- "project_id": 92
- },
- "ceb_payload": {
- "_desc": "CEB次数读取配置 - 用于下发",
- "deviceId": "1",
- "deviceItems": "C.M.UF1_DB@cycle_sp",
- "deviceName": "UF1CEB次数设定",
- "project_id": 92
- }
- },
- {
- "_comment": "UF2超滤设备配置",
- "name": "UF2",
- "press_pv_item": "C.M.UF2_DB@press_PV",
- "control_payload": {
- "deviceId": "1",
- "deviceItems": "C.M.UF2_DB@word_control",
- "deviceName": "UF2_control_word",
- "project_id": 92
- },
- "target_payload": {
- "deviceId": "1",
- "deviceItems": "UF2_BW_After_TMP",
- "deviceName": "UF2_backwash_pressure_diff",
- "project_id": 92
- },
- "production_time_payload": {
- "deviceId": "1",
- "deviceItems": "C.M.UF2_DB@time_production",
- "deviceName": "UF2过滤时长",
- "project_id": 92
- },
- "backwashing_payload": {
- "deviceId": "1",
- "deviceItems": "C.M.UF2_DB@time_BW_SP",
- "deviceName": "UF2反洗时长",
- "project_id": 92
- },
- "ceb_payload": {
- "_desc": "CEB次数读取配置 - 用于下发",
- "deviceId": "1",
- "deviceItems": "C.M.UF2_DB@cycle_sp",
- "deviceName": "UF2CEB次数设定",
- "project_id": 92
- }
- },
- {
- "_comment": "UF3超滤设备配置",
- "name": "UF3",
- "press_pv_item": "C.M.UF3_DB@press_PV",
- "control_payload": {
- "deviceId": "1",
- "deviceItems": "C.M.UF3_DB@word_control",
- "deviceName": "UF3_control_word",
- "project_id": 92
- },
- "target_payload": {
- "deviceId": "1",
- "deviceItems": "UF3_BW_After_TMP",
- "deviceName": "UF3_backwash_pressure_diff",
- "project_id": 92
- },
- "production_time_payload": {
- "deviceId": "1",
- "deviceItems": "C.M.UF3_DB@time_production",
- "deviceName": "UF3过滤时长",
- "project_id": 92
- },
- "backwashing_payload": {
- "deviceId": "1",
- "deviceItems": "C.M.UF3_DB@time_BW_SP",
- "deviceName": "UF3反洗时长",
- "project_id": 92
- },
- "ceb_payload": {
- "_desc": "CEB次数读取配置 - 用于下发",
- "deviceId": "1",
- "deviceItems": "C.M.UF3_DB@cycle_sp",
- "deviceName": "UF3CEB次数设定",
- "project_id": 92
- }
- },
- {
- "_comment": "UF4超滤设备配置",
- "name": "UF4",
- "press_pv_item": "C.M.UF4_DB@press_PV",
- "control_payload": {
- "deviceId": "1",
- "deviceItems": "C.M.UF4_DB@word_control",
- "deviceName": "UF4_control_word",
- "project_id": 92
- },
- "target_payload": {
- "deviceId": "1",
- "deviceItems": "UF4_BW_After_TMP",
- "deviceName": "UF4_backwash_pressure_diff",
- "project_id": 92
- },
- "production_time_payload": {
- "deviceId": "1",
- "deviceItems": "C.M.UF4_DB@time_production",
- "deviceName": "UF4反洗时长",
- "project_id": 92
- },
- "backwashing_payload": {
- "deviceId": "1",
- "deviceItems": "C.M.UF4_DB@time_BW_SP",
- "deviceName": "UF4反洗时长",
- "project_id": 92
- },
- "ceb_payload": {
- "_desc": "CEB次数读取配置 - 用于下发",
- "deviceId": "1",
- "deviceItems": "C.M.UF4_DB@cycle_sp",
- "deviceName": "UF4CEB次数设定",
- "project_id": 92
- }
- }
- ],
- "_comment_usage": "配置文件使用说明",
- "_usage_notes": {
- "1_动态配置": "use_model支持运行时修改,无需重启程序",
- "2_签名验证": "PLC通信使用MD5签名验证,确保scada.secret与服务器端一致",
- "3_设备扩展": "新增设备时,复制现有设备配置并修改相应的deviceItems参数"
- }
- }
|