Appendix E: Log Files
X-320M™ User's Manual
Appendix E: Log Files
X-320M™ logs information to two different log files: log.txt and syslog.txt. Both log files are text files and
are stored in nonvolatile memory. This data will not be lost due to power failure and is also not cleared
when restoring factory defaults. The log files are stored in circular buffers which write from the beginning
of the allocated memory space to the end and then repeat from the beginning (over-writing the original
data). The nonvolatile memory is divided into 4K byte sectors. Each time data gets erased to make room
for new data, a full sector (4K bytes) is erased at one time.
Data Log File – log.txt
This log file is user-configurable under the
Logging
setup tab, and stores real-world data from the
sensors connected to X-320M™(see section
2.4.6 Logging Tab
for more information). It can be up to
512K bytes long and is stored using a comma-separated value formatting scheme.
Measured values will only be displayed if they are selected in the
Logging
setup tab. The file is read by
requesting the log.txt file from X-320M™. For example, using the default IP address, the following
command would be used to request the log file:
http://192.168.1.2/log.txt
File Format:
Location: Logan, UT Site ID: 567584321
Elevation: 4457.000 Feet Lat, Long: 41.764N, -11.851W
Date Time, WSPD(mph), WDIR(deg), RAIN(in), TEMP(ºF), HDTY(%RH), SRAD(W/m
2
),PRES(inHg),
AUX1(unit), AUX2(unit)
Date and Time Format:
MM – Month (01-12)
DD – Day (01-31)
YYYY – Year (1970 - 2106)
HH – Hour in 24 hour time (00 -23)
MM – Minutes (00-59)
SS – Seconds (00-59)
Sample File:
Location: Logan, UT Site ID: 567584321
Elevation: 4457.000 Feet Lat, Long: 41.764N, -11.851W
Date Time,WSPD(mph),WDIR(deg),RAIN(in),TEMP(ºF),HDTY(%RH),SRAD(W/m
2
),PRES(inHg),AUX1(unit),AUX2(unit)
09/02/2011 02:05:00,15,270,20.00,78.57,34.00,400.00,29.97,0.00,0.00
09/02/2011 03:05:00,25,180,21.00,65.07,45.00,300.00,29.92,0.00,0.00
The file can then be saved using the 'Save As...' option under the 'File' menu of the web browser. If the
TCP port has been changed (not port 80), the port will be required to read the file. For example, using
the default IP address, and port 8000, the log file would be read as follows:
http://192.168.1.2:8000/log.txt
The log.txt file may be erased with the following command:
http://192.168.1.2/log.txt?erase=1
After erasing the file, it might be necessary to refresh the page.
Note: If the Control Password is enabled in the setup pages, the password will be required to access the
log file.
Page 112
Xytronix Research & Design, Inc.
Содержание X-320m
Страница 1: ......