© EPRAD Incorporated
6.2 LOG Command Client
þ
eCNA
The eCNA maintains a log file of up to 1364 events records in battery-backed memory. The LOG
command allows the client to manage the event log file. A response from the eCNA is optional.
Command
CMD,LOG,psn,code,yn,checksum<CR><LF>
LOG Command Message Format
Parameter Description
CMD, Start of Message string (This parameter is always “CMD”).
LOG, Log Command string (This parameter is always “LOG”).
psn, Packet sequence number (0 to 65535). Can be used to match responses with commands, otherwise always 0.
code, Log code. (This parameter must contain any one of the following log code strings).
GETALL Resend all logged event records. Note: This can be a large amount of data (1364 records).
CLRBUF
Clear event buffer. This parameter erases all event history. Note: There is normally no need to
use this parameter. It is provided for initial setup of the battery RAM.
CLRSSQ
Clear Show Sequence number. This parameter resets the Show Sequence Number to 0. This
number is automatically incremented by the eCNA each time a program is started.
yn, Request a response flag.
Y The eCNA will respond with it’s response message.
N This eCNA will not respond.
checksum Checksum (0 to 65535). Unsigned 16-bit decimal sum of all preceding characters or wildcard ‘??’
<CR> Terminating carriage return. (ASCII control character, 0x0D)
<LF> Terminating line feed. (ASCII control character, 0x0A)
Response (optional)
RSP,LOG,psn,err,checksum<CR><LF>
LOG Response Message Format
Parameter Description
RSP, Start of Message string (This parameter is always “RSP”).
LOG, Log Response string (This parameter is always “LOG”).
psn, Packet Sequence Number. Matches command packet sequence number.
err, Error Number (0 to 999). 0 = okay, else number indicating problem
checksum Checksum (0 to 65535). Unsigned 16-bit decimal sum of all preceding characters
<CR> Terminating carriage return. (ASCII control character, 0x0D)
<LF> Terminating line feed. (ASCII control character, 0x0A)
EVT Command & Response Example
Command
CMD,EVT,0,STA,Y,907<CR><LF>
Response
RSP,EVT,0,0,756<CR><LF>
LOG Command & Response Example
Command
CMD,LOG,0,GETALL,Y,1236<CR><LF>
Response
RSP,LOG,0,0,743<CR><LF> (Followed by all event logs. See LOG Message.)
91
eCNA-10 Operation and Installation Manual Version 1.270-00