Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The files are recorded in a directory with the name formed from the device type name (for example VT325) and the field value Network→Hostname (by default hostname), and has the form VT325-hostname. Inside this directory, directories are created for log files (log), dump changes file (diff), complete dump files (full). File names are formed based on the time of their creation, and have the form 2016.11.17_16-37-43.log. The file name extension reflects its contents: log - for log file, dump - for dump file. At the beginning of the file, when it is created, You can see service information about the type of device and the software version. Data is written in text form.

Файл лога заполняется по мере появления событий, и имеет видThe log file is filled in as events appear, and has the form:

Code Block
languagehtml/xml
titleПример
#
# Device type: "VT300", Firmware version: "2.7.1".
#
Thu Nov 17 14:23:20 2016    message: USB Flash was inserted
Thu Nov 17 14:23:25 2016    state: Element Onboard Temperature (id=201001) changed state from "unknown" to "normal" 
Thu Nov 17 14:23:25 2016    state: Element Onboard Voltage DC (id=203001) changed state from "unknown" to "normal" 
Thu Nov 17 14:23:26 2016    state: Element Dry-1 (id=101001) changed state from "unknown" to "normal" 
Thu Nov 17 14:23:26 2016    state: Element Dry-2 (id=101002) changed state from "unknown" to "normal" 
Thu Nov 17 14:23:30 2016    message: System started up and ready
Thu Nov 17 14:23:41 2016    state: Element GSM Modem (id=404001) changed state from "unknown" to "normal" 


Файл дампа изменений заполняется периодически (каждые 60 секунд), и отражает идентификаторы и значения датчиков, значения которых изменились за прошедший промежуток времени. Каждые 60 минут в дамп записываются значения всех датчиков, даже если их значения не изменялись. Дамп изменений имеет видThe dump file is populated periodically (every 60 seconds), and reflects the identifiers and values of the sensors whose values have changed over the elapsed time period. The values of all sensors are recorded in a dump every 60 minutes, even if their values have not changed. The change dump looks like:

Code Block
languagehtml/xml
titleПример
#
# Device type: "VT300", Firmware version: "2.7.1".
#
Thu Nov 17 15:04:38 2016    [101001]=0.000; [101002]=0.000; [101003]=0.000; [101004]=0.000; [201001]=33.000; [201002]=27.300; [203001]=12.200; [301001]=0.000; [304001]=0.000; [304002]=0.000; 
Thu Nov 17 15:05:38 2016    [201001]=33.100; [201002]=27.200; [203001]=12.200; 
Thu Nov 17 15:06:38 2016    [201002]=27.300; [203001]=12.200;


Файл полного дампа заполняется периодически (каждые 60 минут), и содержит полное описание элементов и модулей системыThe full dump file is filled periodically (every 60 minutes), and contains a complete description of the elements and modules of the system:

Code Block
languagehtml/xml
titleПример
#
# Device type: "VT300", Firmware version: "2.7.1".
#
Thu Nov 17 14:28:52 2016
    [101001]={module:"2022";clas:"discrete";type:"dry";name:"Dry-1";state:"normal";hwport:"1";value:"0";utype:"";reverse:"0";};
    [101002]={module:"2022";clas:"discrete";type:"dry";name:"Dry-2";state:"normal";hwport:"2";value:"0";utype:"";reverse:"0";};
    [203001]={module:"2020";clas:"analog";type:"voltage";name:"Onboard Voltage DC";state:"normal";value:"12.2";vmax:"24.0";vmin:"0.0";low_alarm:"9.0";low_warning:"11.0";high_warning:"13.0";high_alarm:"14.0";at0:"1.000";at75:"0.000";um:"V";};
    [301001]={module:"2021";clas:"switch";type:"relay";name:"Analog Power";state:"on";value:"1";initial:"on";pulse:"15";};
    [304001]={module:"2023";clas:"switch";type:"strobo";name:"Power-1";state:"off";value:"0";initial:"off";pulse:"2";hwport:"1";};
    [403001]={module:"2031";num:"1";clas:"devhwr";type:"usb-cam";name:"USB Web camera";url:"";fps:"1.0";username:"";password:"";resolution:"320x240";};
    [404001]={module:"2030";clas:"devhwr";type:"GSM modem";state:"normal";name:"GSM Modem";value:"90";imei:"866104023288015";pin:"";sms_centre:"+79168999100";allowed:"";status:"found, ready";verbosity:"2";};

...