-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathconfig.ini
374 lines (320 loc) · 8.12 KB
/
config.ini
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
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
#-----------------------------------------
# CONFIGURATION FILE FOR INVERTER MONITOR
#-----------------------------------------
#
# AS AT 08Mar2012
#
# Should work with PHOENIXTEC manufactured inverters: CMS / Sun Ezy / Orion / Eaton / Chint et al.
#
# Should at least work with:
# * CMS2000 (CMS 2000)
# * CMS10000 (CMS 10000) - requires more testing though
# * SE2800 (SunEzy 2800)
# * SE4600 (SunEzy 600E)
# * ETN2000 (Eaton 2000)
# * ETN3300 (Eaton SG1I-3300/1-I)
# * CPS (Chint Power Systems) but appears ETODAY 30% < ETOTAL
#
# NOTE: http://pvoutput.org capable of accepting 60 data updates per hour,
# but will only keep 1 every 5-10mins depending on your setting.
#-------
# flags
#-------
[flags]
debug = 0 # 0 = NO, 1 = YES
use_pvoutput = 1 # 0 = NO, 1 = YES to export data to http://pvoutput.org
use_rrdtool = 0 # 0 = NO, 1 = YES to export data to rrdtool for graphing
#-------------------
# number of seconds
#-------------------
[secs]
datapoll_freq = 60
pvoutput_freq = 300 # every 5-10mins per your setting in http://pvoutput.org
timeout = 2
reinit = 5 # -1 = infinite num of times (ie dont die)
#-------------------
# valid polling time
#-------------------
[time]
start_poll = "05:00:00" # "hh:mm:ss" where "05:00:00" is 5am
end_poll = "20:00:00" # "hh:mm:ss" where "20:00:00" is 8pm
#------------------
# file path to use
#------------------
[paths]
windows = "C:/solar" # windows
other = "/tmp/solar" # unix/linux
#-------------------------
# script and binary files
#-------------------------
[scripts]
pvoutput = "perl pvoutput.pl" # to export data to http://pvoutput.org
create_rrd = "perl create_rrd.pl" # to export data to rrdtool for graphing
rrdtool_exe_win = "C:/rrdtool/rrdtool" # windows
rrdtool_exe_oth = "/usr/bin/rrdtool" # unix/linux
#----------------------
# serial port settings
#----------------------
[serial]
baud = 9600
port_win = "COM1" # windows, COM port 1
port_oth = "/dev/ttyS0" # unix/linux, serial port 0
#port_oth = "/dev/ttyUSB0" # unix/linux, USB port 0
#port_oth = "/dev/rfcomm0" # unix/linux, bluetooth port 0
parity = "none"
databits = 8
stopbits = 1
handshake = "none"
datatype = 'raw'
#------------------------------------------------
# hex start indeces and lengths for certain data
#------------------------------------------------
[hex]
data_to_follow_index = 8
capacity_index = 20
capacity_length = 12
firmware_index = 32
firmware_length = 14
model_index = 46
model_length = 28
manuf_index = 74
manuf_length = 32
serial_index = 106
serial_length = 20
other_index = 138
other_length = 8
confserial_index = 18
#-----------------------------------------------
# hex packet codes - SEND (request to inverter)
#-----------------------------------------------
[sendhex]
initialise = "aaaa010000000004000159"
serial = "aaaa010000000000000155"
conf_serial1 = "aaaa0100000000010b"
conf_serial2 = "01"
version = "aaaa01000001010300015a"
paramfmt = "aaaa010000010101000158"
param = "aaaa01000001010400015b"
datafmt = "aaaa010000010100000157"
data = "aaaa010000010102000159"
#------------------------------------------------
# hex packet codes - RECV (response to inverter)
#------------------------------------------------
[recvhex]
serial = "aaaa0000010000800a"
conf_serial = "aaaa000101000081"
version = "aaaa000101000183"
paramfmt = "aaaa000101000181"
param = "aaaa000101000184"
datafmt = "aaaa000101000180"
data = "aaaa000101000182"
#---------------------
# inverter parameters
#---------------------
[param_vpvstart]
hexcode = "40"
multiply = 0.1
measure = "V"
index = -1
descr = "PV Start-up voltage"
[param_tstart]
hexcode = "41"
multiply = 1
measure = "Sec"
index = -1
descr = "Time to connect grid"
[param_vacmin]
hexcode = "44"
multiply = 0.1
measure = "V"
index = -1
descr = "Minimum operational grid voltage"
[param_vacmax]
hexcode = "45"
multiply = 0.1
measure = "V"
index = -1
descr = "Maximum operational grid voltage"
[param_facmin]
hexcode = "46"
multiply = 0.01
measure = "Hz"
index = -1
descr = "Minimum operational frequency"
[param_facmax]
hexcode = "47"
multiply = 0.01
measure = "Hz"
index = -1
descr = "Maximum operational frequency"
[param_zacmax]
hexcode = "48"
multiply = 1
measure = "mOhm"
index = -1
descr = "Maximum operational grid impendance"
[param_dzac]
hexcode = "49"
multiply = 1
measure = "mOhm"
index = -1
descr = "Allowable Delta Zac of operation"
#---------------
# inverter data
#---------------
[data_temp]
hexcode = "00"
multiply = 0.1
measure = "deg C"
index = -1
descr = "Internal Temperature"
[data_vpv1]
hexcode = "01"
multiply = 0.1
measure = "V"
index = -1
descr = "Panel 1 Voltage"
[data_vpv2]
hexcode = "02"
multiply = 0.1
measure = "V"
index = -1
descr = "Panel 2 Voltage"
[data_vpv3]
hexcode = "03"
multiply = 0.1
measure = "V"
index = -1
descr = "Panel 3 Voltage"
[data_ipv1]
hexcode = "04"
multiply = 0.1
measure = "A"
index = -1
descr = "Panel 1 DC Current"
[data_ipv2]
hexcode = "05"
multiply = 0.1
measure = "A"
index = -1
descr = "Panel 2 DC Current"
[data_ipv3]
hexcode = "06"
multiply = 0.1
measure = "A"
index = -1
descr = "Panel 3 DC Current"
[data_etoday]
hexcode = "0d"
multiply = 0.01
measure = "kWh"
index = -1
descr = "Accumulated Energy Today"
[data_vpv]
hexcode = "40"
multiply = 0.1
measure = "V"
index = -1
descr = "Panel Voltage"
[data_iac]
hexcode = "41"
multiply = 0.1
measure = "A"
index = -1
descr = "Grid Current"
[data_vac]
hexcode = "42"
multiply = 0.1
measure = "V"
index = -1
descr = "Grid Voltage"
[data_fac]
hexcode = "43"
multiply = 0.01
measure = "Hz"
index = -1
descr = "Grid Frequency"
[data_pac]
hexcode = "44" # "0b" for 3phase
multiply = 1
measure = "W"
index = -1
descr = "Output Power"
[data_zac]
hexcode = "45"
multiply = 1
measure = "mOhm"
index = -1
descr = "Grid Impedance"
[data_etotalh]
hexcode = "47" # "07" for 3phase
multiply = 256
measure = "kWh"
index = -1
descr = "Accumulated Energy (high bit)"
[data_etotall]
hexcode = "48" # "08" for 3phase
multiply = 0.1
measure = "kWh"
index = -1
descr = "Accumulated Energy (low bit)"
[data_htotalh]
hexcode = "49" # "09" for 3phase
multiply = 256
measure = "hrs"
index = -1
descr = "Working Hours (high bit)"
[data_htotall]
hexcode = "4a" # "0a" for 3phase
multiply = 1
measure = "hrs"
index = -1
descr = "Working Hours (low bit)"
[data_mode]
hexcode = "4c" # "0c" for 3phase
multiply = 1
measure = " "
index = -1
descr = "Operating Mode"
[data_errgv]
hexcode = "78"
multiply = 1
measure = " "
index = -1
descr = "Error message: GV fault value"
[data_errgf]
hexcode = "79"
multiply = 1
measure = " "
index = -1
descr = "Error message: GF fault value"
[data_errgz]
hexcode = "7a"
multiply = 1
measure = " "
index = -1
descr = "Error message: GZ fault value"
[data_errtemp]
hexcode = "7b"
multiply = 1
measure = " "
index = -1
descr = "Error message: Tmp fault value"
[data_errpv1]
hexcode = "7c"
multiply = 1
measure = " "
index = -1
descr = "Error message: PV1 fault value"
[data_errgfc1]
hexcode = "7d"
multiply = 1
measure = " "
index = -1
descr = "Error message: GFC1 fault value"
[data_errmode]
hexcode = "7e"
multiply = 1
measure = " "
index = -1
descr = "Error mode"