EasyManua.ls Logo

Campbell LoggerNet - Standard Format Description

Default Icon
580 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Section 11. Utilities Installed with LoggerNet Admin and LoggerNet Remote
11.4.6 Standard Format Description
The following is an EBNF syntax of a new record format that we have
developed that we believe is more digestible than the pseudo-SQL syntax that
is in the original protocol:
outputRec = recordHeader { “,” fieldName “,” fieldType “,” fieldValue } “\r\n”.
recordHeader = stationName “,” tableName “,” timeStamp “,” recNo.
FieldName = string.
FieldType = (“TIMESTAMP” | decimalType | “FLOAT” | “INTEGER” | varCharType ).
FieldValue = string.
StationName = string.
TableName = string.
TimeStamp = “\”“ year “–” month “–” day “ “ hour “:” minute “:” second “\”“.
RecNo = “\”“ digit {digit} “\”“.
Year = 4(digit).
Month = 2(digit). ; 0 < month <= 12
day = 2(digit). ; 0 < day <= 31
hour = 2(digit). ; 0 <= hour < 60
minute = 2(digit). ; 0 <= minute < 60
second = 2(digit) [“.”] {digit}. ; 0.0 <= second < 60.0
string = “\”“ {ascii_character} “\”“.
DecimalType = “DECIMAL(“ digit [digit] “,” digit [digit] “)”.
VarCharType = “VARCHAR(“ digit {digit} “)”.
Within a string, quotation marks and back slash characters will be quoted with
a backslash character.
The sample record from the original protocol would have the following format
under this new syntax:
“Lgr”,”Sec15”,”1993-12-08 15:02:00”,”123456”,”Battery_V”,”FLOAT”,
“13.5”,”Temp”,”FLOAT”,”72.123” CRLF
The acknowledgment message is the same as for the RTMS format. The
acknowledgment for the above record would be:
Lgr,Sec15,123456
11-21

Table of Contents