.rl Read the Log file
Reads log file, additionally the log file can be deleted or logging can be turned on or off. If the delete option is used the log file is erased and then a new log file is created. This command can only be used in the Autorun file with the –c off option. Logging can be completely disabled by adding an empty file called “no.log” to the root of the SD card.
Android | iOS | .NET |
---|---|---|
link coming soon | link coming soon | ReadLogFileCommand |
Parameters
Identifier | Values | Description |
---|---|---|
-b | xxxxxx | Read a 512 byte block from the log where xxxxxxxx is an 6 character ASCII hex value representing the block offset from the start of the log file. |
-c | on/off | turn command logging on or off |
-d | yes | delete the log file |
-l | Read the log file length. Returns a LL response with the log file length in bytes | |
-n | No action, just set the parameters | |
-p | List the parameter and their current values | |
-x | Reset the parameters to defaults |
Parameter detail
-b
Read a 512 byte block from the log where xxxxxxxx is an 6 character ASCII hex value representing the block offset from the start of the log file.
Type | Switch |
---|---|
Value | xxxxxx |
Range | |
Order In Interpretation | 7 |
-c
turn command logging on or off
Type | Enum |
---|---|
Value | on/off |
Range | on/off |
Order In Interpretation | 3 |
Default Value | on |
-d
delete the log file
Type | Yes |
---|---|
Value | yes |
Range | yes |
Order In Interpretation | 2 |
-l
Read the log file length. Returns a LL response with the log file length in bytes
Type | Switch |
---|---|
Value | |
Range | |
Order In Interpretation | 4 |
-n
No action, just set the parameters
Type | Switch |
---|---|
Value | |
Range | |
Order In Interpretation | 6 |
-p
List the parameter and their current values
Type | Switch |
---|---|
Value | |
Range | |
Order In Interpretation | 5 |
-x
Reset the parameters to defaults
Type | Switch |
---|---|
Value | |
Range | |
Order In Interpretation | 1 |
Parameter Interpretation Order
-x, -d, -c, -l, -p, -n, -b
Parameter Defaults
-c on
Response Headers
Examples
Command | Response | Action |
.rl | CS: .rl
LB: Log file data LE: OK: | The log file is read |
.rl -d yes | CS: .rl -d yes
LB: **** Beginning of Log **** DT: 2019-01-14T20:17:24 EV: Log File created LE: **** End of Log **** OK: | The log file is deleted |