Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

USB Flash Drive is used to record events in the system: logs, sensor readings, item settings, etc.

The FAT32 file system is supported. The USB flash drive must be pre-formatted by the user.

Enter the "Main Menu" "", Then go to the "Settings" tab and click the "USB Flash Drive" tab.

If the USB Flash Drive is not inserted or not connected, part of the tab fields will be empty and the status will be indicated as "not connected":


If the USB Flash Drive is connected, the tab will look like:


The user can set the logging parameters, view and manage the status of the USB Flash Drive:

  • Current state - reflects the current status of the USB Flash Drive (normal/ejected/not connected);
  • Mount point - address of the device, technical information;
  • Full size - total amount of memory device USB Flash Drive, in megabytes;
  • Free size - free memory of USB Flash Drive, in megabytes;
  • Maximum number of entries - the depth of logging, i.e. The number of entries in the file (the number of events) upon which a new file is created and the recording continues there (minimum 100, maximum 10,000);
  • Maximum number of files - max. number of files allowed in the directory after which the oldest files are deleted from the USB Flash Drive memory (minimum 10, maximum 500);
  • Lifetime of files - the lifetime of the files, all older files are deleted from the USB Flash Drive;
  • Enable logging to USB Flash Drive - enables and disables the logging function on the USB Flash Drive device;
  • Contents of the USB Flash Drive - specifies a link to the contents of the USB Flash Drive.

The buttons at the bottom of the panel provide:

  • Refresh - update tab data;
  • Save - saving and applying caching parameters;
  • Eject - unmounting the USB Flash Drive before removing the device from the connector.


Do not remove USB Flash Drive without unmounting, data loss is possible!


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:

Пример
#
# 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" 


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:

Пример
#
# 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;


The full dump file is filled periodically (every 60 minutes), and contains a complete description of the elements and modules of the system:

Пример
#
# 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";};
  • No labels