summaryrefstree
path: root/odm/hn_odm/ELP-N39I/etc/power/bms_thermal.json
blob: 55a43ccbbd93be24a9363a3901d76c39c2ad7cff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
{
	"version": "1.0.0",
	"delay" : 10,
	"schedule_time" : 10,
	"sensor" : {
		"name":
		"system_h",
		"accuracy": 1
	},
	"temp_level" : {
	"comments" : "low_threshold, high_threshold, hysteresis_value, unit is millicentigrade",
	"table" : [
		[30000, 32000, 2000],
		[32000, 33000, 1000],
		[33000, 34000, 1000],
		[34000, 35000, 1000],
		[35000, 36000, 1000],
		[36000, 37000, 1000],
		[37000, 38000, 1000],
		[38000, 39000, 1000],
		[39000, 40000, 1000],
		[40000, 41000, 1000],
		[41000, 42000, 1000],
		[42000, 43000, 1000],
		[43000, 44000, 1000],
		[44000, 45000, 1000],
		[45000, 46000, 1000]
		]
	},
	"current_limit" : {
		"comments" : "scale1, scale2, scale3, scale4, scale5, scale6, scale7, scale8, scale9, scale10, scale11, scale12, scale13",
		"wcurrent_5v" : {
			"channel" : 0,
			"prefix" : "dcp 0#",
			"limit" : [2000, 2000, 2000, 2000, 2000, 1500, 1500, 825, 475, 475, 475, 475, 475, 475, 475]
		},
		"wcurrent_9v" : {
			"channel" : 0,
			"prefix" : "dcp 1#",
			"limit": [1400, 1200, 1200, 1200, 1200, 1200, 1200, 825, 475, 475, 475, 475, 475, 475, 475]
		},
		"direct_charger" : {
			"channel" : 1,
			"prefix" : "lvc ",
			"limit": [4200, 4000, 3800, 3600, 3300, 2900, 2700, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500]
		},
		"direct_charger_sc" : {
			"channel" : 0,
			"prefix" : "sc 0#",
			"limit": [6800, 6000, 5800, 5500, 4400, 4200, 4000, 3000, 3000, 3200, 2000, 2000, 2000, 2000, 2000]
		},
		"direct_charger_duo_sc" : {
			"channel" : 0,
			"prefix" : "sc 1#",
			"limit": [10800, 9800, 8800, 8800, 8000, 5500, 5200, 5100, 5000, 3200, 2000, 2000, 2000, 2000, 2000]
		},
		"direct_charger_hsc" : {
			"channel" : 0,
			"prefix" : "hsc 0#",
			"limit": [6800, 6000, 5800, 5500, 4400, 4200, 4000, 3000, 3000, 3200, 2000, 2000, 2000, 2000, 2000]
		},
		"direct_charger_duo_hsc" : {
			"channel" : 0,
			"prefix" : "hsc 1#",
			"limit": [10800, 9800, 8800, 8800, 8000, 5500, 5200, 5100, 5000, 3200, 2000, 2000, 2000, 2000, 2000]
		},
		"wlcurrent_5v" : {
			"channel" : 0,
			"prefix" : "dcp 2#",
			"limit" : [1500, 1500, 1500, 1500, 1200, 825, 475, 475, 475, 475, 475, 475, 475, 475, 475]
		},
		"wlcurrent_9v" : {
			"channel" : 0,
			"prefix" : "dcp 3#",
			"limit" : [1500, 1500, 1500, 1500, 1200, 825, 475, 475, 475, 475, 475, 475, 475, 475, 475]
		},
		"wlcurrent_sc" : {
			"channel" : 0,
			"prefix" : "wl_sc 0#",
			"limit" : [3000, 3000, 3000, 3000, 3000, 2600, 2500, 475, 475, 475, 475, 475, 475, 475, 475]
		},
		"wlcurrent_duo_sc" : {
			"channel" : 0,
			"prefix" : "wl_sc 1#",
			"limit" : [3000, 3000, 3000, 3000, 3000, 2600, 2500, 475, 475, 475, 475, 475, 475, 475, 475]
		},
		"wlcurrent_hsc" : {
			"channel" : 0,
			"prefix" : "wl_hsc 0#",
			"limit" : [3200, 3200, 3200, 3200, 3200, 2500, 2500, 2200, 2200, 2200, 1800, 1800, 1500, 1200, 1000]
		},
		"wlcurrent_duo_hsc" : {
			"channel" : 0,
			"prefix" : "wl_hsc 1#",
			"limit" : [3200, 3200, 3200, 3200, 3200, 2500, 2500, 2200, 2200, 2200, 1800, 1800, 1500, 1200, 1000]
		}
	},
	"su_version": "1.0.0",
	"su_delay" : 1,
	"su_current_limit" : {
		"comments" : "hota, normal",
		"wcurrent_5v" : {
			"channel" : 0,
			"prefix" : "dcp 0#",
			"limit" : [900, 900]
		},
		"wcurrent_9v" : {
			"channel" : 0,
			"prefix" : "dcp 1#",
			"limit": [900, 900]
		},
		"direct_charger" : {
			"channel" : 1,
			"prefix" : "lvc ",
			"limit": [1500, 1500]
		},
		"direct_charger_sc" : {
			"channel" : 0,
			"prefix" : "sc 0#",
			"limit": [1500, 1500]
		},
		"direct_charger_duo_sc" : {
			"channel" : 0,
			"prefix" : "sc 1#",
			"limit": [1500, 1500]
		},
		"direct_charger_hsc" : {
			"channel" : 0,
			"prefix" : "hsc 0#",
			"limit": [1500, 1500]
		},
		"direct_charger_duo_hsc" : {
			"channel" : 0,
			"prefix" : "hsc 1#",
			"limit": [1500, 1500]
		},
		"wlcurrent_5v" : {
			"channel" : 0,
			"prefix" : "dcp 2#",
			"limit" : [900, 1300]
		},
		"wlcurrent_9v" : {
			"channel" : 0,
			"prefix" : "dcp 3#",
			"limit" : [900, 1300]
		},
		"wlcurrent_sc" : {
			"channel" : 0,
			"prefix" : "wl_sc 0#",
			"limit" : [1500, 1500]
		},
		"wlcurrent_duo_sc" : {
			"channel" : 0,
			"prefix" : "wl_sc 1#",
			"limit" : [1500, 1500]
		}
	},
	"thermal_adsp_version": "1.0.0",
	"thermal_adsp_delay" : 1,
	"thermal_adsp_config": [
		{
			"index_mapping": 0,
			"channel_config": [
				{
					"thermal_channel": 0,
					"state_config": [
						{
							"comments": "fold",
							"thermal_temp_ref": "shell_back",
							"thermal_state": 0,
							"temp_config": {
								"comments":
									"low_tmep, high_temp, 5v_iin, 5v_chg, 9v_iin, 9v_ch, w_5v, w_9v, dc0, dc1, hdc0, hdc1, ldc, wdc0, wdc1, whdc0, whdc1, nofan_wdc0, nofan_wdc1, nofan_w9v, wl_ctrl volt",
								"table": [
									[26, 27, 2000, 0, 1400, 0, 0, 0, 6800, 12000, 10000, 20000, 6800, 3200, 0, 3100, 0, 1500, 1500, 1400, 1, 0],
									[27, 29, 2000, 0, 1400, 0, 0, 0, 6800, 12000, 10000, 20000, 6800, 3200, 0, 2800, 0, 1500, 1500, 1400, 1, 0],
									[29, 30, 2000, 0, 1200, 0, 0, 0, 5800, 12000, 10000, 16000, 5800, 3200, 0, 2300, 0, 1500, 1500, 1400, 1, 5],
									[30, 32, 2000, 0, 1200, 0, 0, 0, 5800, 12000, 10000, 16000, 5800, 3200, 0, 2000, 0, 1500, 1500, 1400, 1, 5],
									[32, 34, 2000, 0, 1200, 0, 0, 0, 5500, 11000, 10000, 12000, 5500, 3200, 0, 2000, 0, 1500, 1500, 1400, 1, 5],
									[34, 35, 1500, 0, 1200, 0, 0, 0, 5500, 10000, 10000, 12000, 5500, 3200, 0, 1650, 0, 1500, 1500, 1400, 1, 5],
									[35, 36, 1500, 0, 1200, 0, 0, 0, 5500, 7600, 10000, 9000, 5500, 2500, 0, 1500, 0, 1300, 1300, 1300, 1, 5],
									[36, 37, 1500, 0, 1200, 0, 0, 0, 5500, 6800, 10000, 9000, 5500, 2500, 0, 1500, 0, 1150, 1150, 1000, 1, 5],
									[37, 38, 900, 0, 900, 0, 0, 0, 5500, 6800, 8000, 9000, 5500, 2200, 0, 1500, 0, 1050, 1050, 950, 1, 5],
									[38, 39, 900, 0, 900, 0, 0, 0, 4500, 6500, 8000, 6500, 4500, 2200, 0, 1500, 0, 950, 950, 850, 1, 5],
									[39, 41, 900, 0, 900, 0, 0, 0, 4500, 6500, 6000, 5000, 4500, 1800, 0, 1500, 0, 850, 850, 850, 1, 5],
									[41, 42, 900, 0, 900, 0, 0, 0, 4500, 6500, 6000, 5000, 4500, 1800, 0, 1200, 0, 850, 850, 800, 1, 5],
									[42, 43, 900, 0, 900, 0, 0, 0, 3500, 6000, 4000, 5000, 4500, 1500, 0, 1200, 0, 850, 850, 475, 1, 5],
									[43, 44, 900, 0, 900, 0, 0, 0, 2000, 4000, 4000, 4000, 4000, 1500, 0, 1200, 0, 600, 600, 375, 1, 5],
									[44, 46, 900, 0, 900, 0, 0, 0, 2000, 2000, 2000, 2000, 2000, 1200, 0, 1000, 0, 600, 600, 375, 1, 5]
								]
							}
						},
						{
							"comments": "unfold",
							"thermal_state": 1,
							"temp_config": {
								"comments":
									"low_tmep, high_temp, 5v_iin, 5v_chg, 9v_iin, 9v_ch, w_5v, w_9v, dc0, dc1, hdc0, hdc1, ldc, wdc0, wdc1, whdc0, whdc1, nofan_wdc0, nofan_wdc1, nofan_w9v, wl_ctrl volt",
								"table": [
									[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
								]
							}
						},
						{
							"comments": "fold_turbo",
							"thermal_temp_ref": "shell_back",
							"thermal_state": 2,
							"temp_config": {
								"comments":
									"low_tmep, high_temp, 5v_iin, 5v_chg, 9v_iin, 9v_ch, w_5v, w_9v, dc0, dc1, hdc0, hdc1, ldc, wdc0, wdc1, whdc0, whdc1, nofan_wdc0, nofan_wdc1, nofan_w9v, wl_ctrl volt",
								"table": [
									[27, 30, 2000, 0, 1400, 0, 0, 0, 6800, 12000, 10000, 20000, 5500, 3000, 0, 3100, 0, 1500, 1500, 1000, 1, 0],
									[30, 31, 2000, 0, 1400, 0, 0, 0, 6800, 12000, 10000, 16000, 5500, 3000, 0, 3000, 0, 1500, 1500, 1000, 1, 5],
									[31, 34, 2000, 0, 1200, 0, 0, 0, 5800, 12000, 10000, 14000, 5500, 3000, 0, 2800, 0, 1500, 1500, 1000, 1, 5],
									[34, 36, 2000, 0, 1200, 0, 0, 0, 5500, 12000, 10000, 12000, 5500, 3000, 0, 2800, 0, 1500, 1500, 1000, 1, 5],
									[36, 37, 2000, 0, 1200, 0, 0, 0, 5500, 12000, 8000, 12000, 5500, 3000, 0, 2500, 0, 1500, 1500, 1000, 1, 5],
									[37, 38, 1500, 0, 1200, 0, 0, 0, 5500, 10000, 8000, 9500, 5500, 2800, 0, 2400, 0, 1500, 1500, 1000, 1, 5],
									[38, 40, 1500, 0, 1200, 0, 0, 0, 5500, 8400, 8000, 9500, 5500, 2800, 0, 2300, 0, 1500, 1500, 1000, 1, 5],
									[40, 41, 900, 0, 900, 0, 0, 0, 5500, 8000, 6000, 9500, 5500, 2600, 0, 2200, 0, 1500, 1500, 1000, 1, 5],
									[41, 43, 900, 0, 900, 0, 0, 0, 5500, 8000, 4000, 9500, 4500, 2600, 0, 2100, 0, 1300, 1300, 1000, 1, 5],
									[43, 44, 900, 0, 900, 0, 0, 0, 5500, 7800, 4000, 8000, 4500, 2400, 0, 1900, 0, 1200, 1200, 1000, 1, 5],
									[44, 45, 900, 0, 900, 0, 0, 0, 4500, 6000, 4000, 6000, 4000, 2200, 0, 1900, 0, 1100, 1100, 1000, 1, 5],
									[45, 46, 900, 0, 900, 0, 0, 0, 2000, 2000, 2000, 2000, 2000, 2000, 0, 1800, 0, 800, 800, 475, 1, 5]
								]
							}
						}
					]
				}
			] 
		}
	],
	"thermal_stc_version": "1.0.0",
    "thermal_stc_delay": 1,
    "shell_calculate_coef": {
        "shell_count": 3,
        "interval": 5,
        "tsensor_min": 0,
        "tsensor_max": 100,
        "tsensor_step": 10,
        "ntc_min": -20000,
        "ntc_max": 80000,
        "ntc_step": 2000,
        "temp_step_range": 1000,
        "temp_max_step_range": 10000,
        "shell_coef_param": [
            {
                "name": "shell_back",
                "bat_bias": 2000,
                "sensor_count": 5,
                "const_coef":500,
                "coef_count": 7,
                "ntc_info": [
                    {
                        "name": "system_h_001",
                        "type": "ntc",
                        "coef": [61650,-46064,-29521,-11267,-14272,-2392,-12877]
                    },
                    {
                        "name": "rfboard",
                        "type": "ntc",
                        "coef": [111104,12280,-24934,-39434,-18414,-19176,4478]
                    },
                    {
                        "name": "charger",
                        "type": "ntc",
                        "coef": [-7911,2534,3391,-6,-672,880,8849]
                    },
                    {
                        "name": "pa_0",
                        "type": "ntc",
                        "coef": [-24568,13857,23681,18704,8294,1506,-7987]
                    },
                    {
                        "name": "dcxo_0",
                        "type": "ntc",
                        "coef": [62270,23080,4840,-680,-9,-3161,-2615]
                    }
                ]
            },
            {
                "name": "shell_frame",
                "bat_bias": 2000,
                "sensor_count":5,
                "const_coef":1463,
                "coef_count":7,
                "ntc_info": [
                    {
                        "name": "system_h_001",
                        "type": "ntc",
                        "coef": [76593,-47838,-31097,-10591,-16281,-1526,-9558]
                    },
                    {
                        "name": "rfboard",
                        "type": "ntc",
                        "coef": [112972,12490,-22256,-40253,-16968,-22987,-2268]
                    },
                    {
                        "name": "charger",
                        "type": "ntc",
                        "coef": [-4821,2182,3123,120,144,229,1660]
                    },
                    {
                        "name": "pa_0",
                        "type": "ntc",
                        "coef": [-19952,18279,27284,21517,9429,2262,-6247]
                    },
                    {
                        "name": "dcxo_0",
                        "type": "ntc",
                        "coef": [53674,16165,-611,-5031,-2089,-3803,-2235]
                    }
                ]
            },
			{
                "name": "shell_front",
                "bat_bias": 2000,
                "sensor_count":5,
                "const_coef":887,
                "coef_count":6,
                "ntc_info": [
                    {
                        "name": "system_h_001",
                        "type": "ntc",
                        "coef": [14859,-7283,141,2188,-1828,7580]
                    },
                    {
                        "name": "rfboard",
                        "type": "ntc",
                        "coef": [116798,4269,-103374,7884,5797,-11084]
                    },
                    {
                        "name": "charger",
                        "type": "ntc",
                        "coef": [-5597,190,2009,1259,-443,632]
                    },
                    {
                        "name": "pa_1",
                        "type": "ntc",
                        "coef": [16786,-2134,-2434,28,-3716,7723]
                    },
                    {
                        "name": "dcxo_0",
                        "type": "ntc",
                        "coef": [74822,-9116,4864,-6203,9728,-30824]
                    }
                ]
            }
        ]
    }
}