-
Notifications
You must be signed in to change notification settings - Fork 1
/
gdev_gmc.cfg
421 lines (371 loc) · 11.6 KB
/
gdev_gmc.cfg
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
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
#######################################################################
# Serial number of GMC500+ version 1.22 (Gift by GQ: 2018):
# getGMC_SERIAL: raw: rec: b'20$v%C\x0c'
# getGMC_SERIAL: decoded: 3230247625430C
#######################################################################
#######################################################################
# Serial number of GMC500+ version 2.24 (AZ Dec 2020):
# getGMC_SERIAL: raw: rec: b'1\x083851\xb4'
# getGMC_SERIAL: decoded: 310833383531B4
#######################################################################
The data from the configuration memory of the 300 and 500/600 series GMC counters
NOTE: 300 devices have 256 bytes memory,
500/600 devices have 512 bytes
--------------------------------------------------------------------------------
The following list applies only to the 300 series:
CFG data Offset table. Starts from 0
===============================================
PowerOnOff, //to check if the power is turned on/off intended
AlarmOnOff, //1
SpeakerOnOff,
GraphicModeOnOff,
BackLightTimeoutSeconds,
IdleTitleDisplayMode,
AlarmCPMValueHiByte, //6
AlarmCPMValueLoByte,
CalibrationCPMHiByte_0,
CalibrationCPMLoByte_0,
CalibrationuSvUcByte3_0,
CalibrationuSvUcByte2_0, //11
CalibrationuSvUcByte1_0,
CalibrationuSvUcByte0_0,
CalibrationCPMHiByte_1,
CalibrationCPMLoByte_1, //15
CalibrationuSvUcByte3_1,
CalibrationuSvUcByte2_1,
CalibrationuSvUcByte1_1,
CalibrationuSvUcByte0_1,
CalibrationCPMHiByte_2, //20
CalibrationCPMLoByte_2,
CalibrationuSvUcByte3_2,
CalibrationuSvUcByte2_2,
CalibrationuSvUcByte1_2,
CalibrationuSvUcByte0_2, //25
IdleDisplayMode,
AlarmValueuSvByte3,
AlarmValueuSvByte2,
AlarmValueuSvByte1,
AlarmValueuSvByte0, //30
AlarmType,
SaveDataType,
SwivelDisplay,
ZoomByte3,
ZoomByte2, //35
ZoomByte1,
ZoomByte0,
SPI_DataSaveAddress2,
SPI_DataSaveAddress1,
SPI_DataSaveAddress0, //40
SPI_DataReadAddress2,
SPI_DataReadAddress1,
SPI_DataReadAddress0,
PowerSavingMode,
Reserved, //45
Reserved,
Reserved,
DisplayContrast,
MAX_CPM_HIBYTE,
MAX_CPM_LOBYTE, //50
Reserved,
LargeFontMode,
LCDBackLightLevel,
ReverseDisplayMode,
MotionDetect, //55
bBatteryType,
BaudRate,
Reserved,
GraphicDrawingMode,
LEDOnOff,
Reserved,
SaveThresholdValueuSv_m_nCPM_HIBYTE,
SaveThresholdValueuSv_m_nCPM_LOBYTE,
SaveThresholdMode,
SaveThresholdValue3,
SaveThresholdValue2,
SaveThresholdValue1,
SaveThresholdValue0,
Save_DateTimeStamp, //this one uses 6 byte space
-------------------------------------------------------------------------------
The following list applies to the 500/600 series, but not for the latest versions!
(from: http://www.gqelectronicsllc.com/forum/topic.asp?TOPIC_ID=4948 )
The GMC-500 and GMC-600 still accept configuration commands same as GMC-320, no
change. But GMC-500 and GMC-600 extended (added new) commands for new features.
Here is the latest configuration data structure in C code on GMC-500 and GMC-600:
typedef enum {
CFG_PowerOnOff,
CFG_AlarmOnOff, //1
CFG_SpeakerOnOff,
CFG_IdleDisplayMode,
CFG_BackLightTimeoutSeconds,
CFG_IdleTitleDisplayMode,
CFG_AlarmCPMValueHiByte, //6
CFG_AlarmCPMValueLoByte,
CFG_CalibrationCPMHiByte_0,
CFG_CalibrationCPMLoByte_0,
CFG_CalibrationuSvUcByte3_0,
CFG_CalibrationuSvUcByte2_0, //11
CFG_CalibrationuSvUcByte1_0,
CFG_CalibrationuSvUcByte0_0,
CFG_CalibrationCPMHiByte_1,
CFG_CalibrationCPMLoByte_1, //15
CFG_CalibrationuSvUcByte3_1,
CFG_CalibrationuSvUcByte2_1,
CFG_CalibrationuSvUcByte1_1,
CFG_CalibrationuSvUcByte0_1,
CFG_CalibrationCPMHiByte_2, //20
CFG_CalibrationCPMLoByte_2,
CFG_CalibrationuSvUcByte3_2,
CFG_CalibrationuSvUcByte2_2,
CFG_CalibrationuSvUcByte1_2,
CFG_CalibrationuSvUcByte0_2, //25
CFG_IdleTextState,
CFG_AlarmValueuSvByte3,
CFG_AlarmValueuSvByte2,
CFG_AlarmValueuSvByte1,
CFG_AlarmValueuSvByte0, //30
CFG_AlarmType,
CFG_SaveDataType,
CFG_SwivelDisplay,
CFG_ZoomByte3,
CFG_ZoomByte2, //35
CFG_ZoomByte1,
CFG_ZoomByte0,
CFG_SPI_DataSaveAddress2,
CFG_SPI_DataSaveAddress1,
CFG_SPI_DataSaveAddress0, //40
CFG_SPI_DataReadAddress2,
CFG_SPI_DataReadAddress1,
CFG_SPI_DataReadAddress0,
CFG_nPowerSavingMode,
Reserved_1, //45
Reserved_2,
Reserved_3,
CFG_nDisplayContrast,
CFG_MAX_CPM_HIBYTE,
CFG_MAX_CPM_LOBYTE, //50
Reserved_4,
CFG_nLargeFontMode,
CFG_nLCDBackLightLevel,
CFG_nReverseDisplayMode,
CFG_nMotionDetect, //55
CFG_bBatteryType,
CFG_nBaudRate,
Reserved_5,
CFG_nGraphicDrawingMode,
CFG_nLEDOnOff, //60
Reserved_6,
CFG_nSaveThresholdValueuSv_m_nCPM_HIBYTE,
CFG_nSaveThresholdValueuSv_m_nCPM_LOBYTE,
CFG_nSaveThresholdMode,
CFG_nSaveThresholdValue3, //65
CFG_nSaveThresholdValue2,
CFG_nSaveThresholdValue1,
CFG_nSaveThresholdValue0,
# some numbers incorrect, see below
CFG_SSID_0, //69
//...
CFG_SSID_31 = CFG_SSID_0 + 31, //68 + 31
CFG_Password_0, //100
//...
CFG_Password_31 = CFG_Password_0 + 31, //100 + 31
CFG_Website_0, //132
//....
CFG_Website_31 = CFG_Website_0 + 31, //132 + 31
CFG_URL_0, //163
//....
CFG_URL_31 = CFG_URL_0 + 31, //163 + 31
CFG_UserID_0, //195
//...........
CFG_UserID_31 = CFG_UserID_0 + 31, //195+31
CFG_CounterID_0, //227
//....
CFG_CounterID_31 = CFG_CounterID_0 + 31, //227 + 31
CFG_Period, //259
CFG_WIFIONOFF, //260
CFG_TEXT_STATUS_MODE,
/
CFG_Save_DateTimeStamp, //this one uses 6 byte space
CFG_MaximumCFGBytes,
}EEPROMDATAT;
################# update
http://www.gqelectronicsllc.com/forum/topic.asp?TOPIC_ID=4948 Reply 17 has correction:
CFG_nSaveThresholdValue3, //65
CFG_nSaveThresholdValue2,
CFG_nSaveThresholdValue1,
CFG_nSaveThresholdValue0,
CFG_SSID_0, // 69
//...
CFG_SSID_31 = CFG_SSID_0 + 31, //69 + 31
CFG_Password_0, //101
//...
CFG_Password_31 = CFG_Password_0 + 31, //101 + 31
CFG_Website_0, //133
//....
CFG_Website_31 = CFG_Website_0 + 31, //133 + 31
CFG_URL_0, //165
//....
CFG_URL_31 = CFG_URL_0 + 31, //165 + 31
CFG_UserID_0, //197
//...........
CFG_UserID_31 = CFG_UserID_0 + 31, //197+31
CFG_CounterID_0, //229
//....
CFG_CounterID_31 = CFG_CounterID_0 + 31, //229 + 31
CFG_Period, //261
CFG_WIFIONOFF, //262
CFG_TEXT_STATUS_MODE, //# see below: CFG_TEXT_STATUS_MODE is for displaying the "normal/medium/high" text in the large font mode.
/
CFG_Save_DateTimeStamp, //this one uses 6 byte space
CFG_MaximumCFGBytes,
################# end update
ZLM: For GMC-500, GMC-600 history data C code structure:
(this should be same as GMC-300, no change)
In history data, it start with 0x55AA00 prefixed for timestamp and followed by the date time
data. and then always followed by 0x55AA and one of the bellow data length byte.
typedef enum
{
YYMMDDHHMMSS, // Time Stamp
DOUBLEBYTE_DATA, //the data are double bytes
THREEBYTE_DATA, //the data are three bytes
FOURBYTE_DATA, //the data are four bytes
LOCATION_DATA, //the data is a text string,the first byte data is the length of the text, fol-
lowed by the text
TOTAL_EEPROM_SAVE_TYPE
}HistoryDataFormatMarkingT;
Also, the 0x55AA also can follow a one of following history data type:
typedef enum
{
SAVEOFF,
SECONDLY, //must be save value with TOTAL_EEPROM_SAVE_TYPE
MINUTETLY, //must be save value with TOTAL_EEPROM_SAVE_TYPE
HOURLY, //must be save value with TOTAL_EEPROM_SAVE_TYPE
SaveByThresholdSecond, //only save the data if exceed the preset threshold value
SaveByThresholdMinute, //only save the data if exceed the preset threshold value
TotalSavedType
}SaveDataTypeT;
Copied from gdev_gmc.py:
"""
The meaning is: (from: http://www.gqelectronicsllc.com/forum/topic.asp?TOPIC_ID=4447)
CFG data Offset table. Start from 0
'*' in left column = read and/or set by GeigerLog
==========================================
* PowerOnOff, //to check if the power is turned on/off intended
* AlarmOnOff, //1
* SpeakerOnOff,
GraphicModeOnOff,
BackLightTimeoutSeconds,
IdleTitleDisplayMode,
AlarmCPMValueHiByte, //6
AlarmCPMValueLoByte,
* CalibrationCPMHiByte_0,
* CalibrationCPMLoByte_0,
* CalibrationuSvUcByte3_0,
* CalibrationuSvUcByte2_0, //11
* CalibrationuSvUcByte1_0,
* CalibrationuSvUcByte0_0,
* CalibrationCPMHiByte_1,
* CalibrationCPMLoByte_1, //15
* CalibrationuSvUcByte3_1,
* CalibrationuSvUcByte2_1,
* CalibrationuSvUcByte1_1,
* CalibrationuSvUcByte0_1,
* CalibrationCPMHiByte_2, //20
* CalibrationCPMLoByte_2,
* CalibrationuSvUcByte3_2,
* CalibrationuSvUcByte2_2,
* CalibrationuSvUcByte1_2,
* CalibrationuSvUcByte0_2, //25
IdleDisplayMode,
AlarmValueuSvByte3,
AlarmValueuSvByte2,
AlarmValueuSvByte1,
AlarmValueuSvByte0, //30
AlarmType,
* SaveDataType,
SwivelDisplay,
ZoomByte3,
ZoomByte2, //35
ZoomByte1,
ZoomByte0,
SPI_DataSaveAddress2,
SPI_DataSaveAddress1,
SPI_DataSaveAddress0, //40
SPI_DataReadAddress2,
SPI_DataReadAddress1,
SPI_DataReadAddress0,
* PowerSavingMode,
Reserved, //45
Reserved,
Reserved,
DisplayContrast,
* MAX_CPM_HIBYTE,
* MAX_CPM_LOBYTE, //50
Reserved,
LargeFontMode,
LCDBackLightLevel,
ReverseDisplayMode,
MotionDetect, //55
# http://www.gqelectronicsllc.com/forum/topic.asp?TOPIC_ID=5278, Reply #47
# bBatteryType: 1 is non rechargeable. 0 is chargeable.
bBatteryType,
* BaudRate,
Reserved,
GraphicDrawingMode,
LEDOnOff,
Reserved,
SaveThresholdValueuSv_m_nCPM_HIBYTE,
SaveThresholdValueuSv_m_nCPM_LOBYTE,
SaveThresholdMode,
SaveThresholdValue3, # 65 by my count
SaveThresholdValue2,
SaveThresholdValue1,
SaveThresholdValue0,
Save_DateTimeStamp, //this one uses 6 byte space # 69 by my count
!!! but in the GMC-300E this is at #62 !!!
# from: http://www.gqelectronicsllc.com/forum/topic.asp?TOPIC_ID=4948 Reply #17
CFG_nSaveThresholdValue3, //65
CFG_nSaveThresholdValue2,
CFG_nSaveThresholdValue1,
CFG_nSaveThresholdValue0,
CFG_SSID_0, // 69
//...
CFG_SSID_31 = CFG_SSID_0 + 31, //69 + 31
CFG_Password_0, //101
//...
CFG_Password_31 = CFG_Password_0 + 31, //101 + 31
CFG_Website_0, //133
//....
CFG_Website_31 = CFG_Website_0 + 31, //133 + 31
CFG_URL_0, //165
//....
CFG_URL_31 = CFG_URL_0 + 31, //165 + 31
CFG_UserID_0, //197
//...........
CFG_UserID_31 = CFG_UserID_0 + 31, //197+31
CFG_CounterID_0, //229
//....
CFG_CounterID_31 = CFG_CounterID_0 + 31, //229 + 31
CFG_Period, //261
CFG_WIFIONOFF, //262
CFG_TEXT_STATUS_MODE,
Meaning of the values:
PowerOnOff byte:
300 series : 0 for ON and 255 for OFF
500 and 600 series: 0 for ON and 1 for OFF # strange, but EmfDev in :
http://www.gqelectronicsllc.com/forum/topic.asp?TOPIC_ID=4948 Reply #14
CFG_TEXT_STATUS_MODE is for displaying the "normal/medium/high" text in the large font mode.
0 - "Off" - not displayed
1 - "On" - black text and white background
2 - "Inverted" - White text and black background
calibration data:
300 series: little-endian
500/600 series: big-endian
from: http://www.gmcmap.com/tutorial.asp
*The Wifi feature is only available on models GMC 320+ V5, GMC 500, GMC 500+, GMC 600, GMC 600+ or later.
**If you are using a GMC-600 or GMC-600+, after factory reset, please go to Wifi, Reset Wifi Module, press YES.
-->??? is 320+ using a 256 or 512 bytes config???
"""
Reverse eng:
Fast estimate Byte is at Byte Index= 328
3= dynamic
5, 10, 15, 20, 30, 60 = sec