With the implemented logging mechanisms it is possible to trace an access to the Chameleon-Mini by a reader device.
Logging is either done via the internal RAM, where the log can be downloaded from via the terminal or using the terminal line directly. Note that in case of using the internal RAM for logging the information, the data is only stored until the Chameleon-Mini loses power. If the memory is full, the logging is disabled automatically.
The log format is very simple. Every log entry consists of a 1 byte entry identifier, a 1 byte length identifier and an arbitrary sized chunk of binary data with the length given in the byte before.
Byte 0 | Byte 1 | Byte 2 | Byte 3 | ... | Byte Length+1 |
---|---|---|---|---|---|
EntryId | Length | Data | Data | Data | Data |
The available Entry Ids are as follows:
EntryId (Hex) | Description |
---|---|
20 | Received data |
21 | Send data |
30 | Application reset |
For getting or setting the logging mode, the LOGMODE?
respectively LOGMODE=<MODE>
command can be used on the terminal. For a list of possible logging modes enter LOGMODE
.
In order to get the remaining bytes of the logging memory, the LOGMEM?
command is to be used. Using LOGMEM=<CMD>
it is possible to execute commands on the logging memory, like clearing or downloading it via XMODEM. To get a list of the available commands, enter LOGMEM
.