Control signal
This page documents the [control]
configuration section.
The CL1000 logging state (enabled/disabled) can be changed run-time using the control-signal.
Note
The initial (power-on) logging state is set using loggingEnb
(see loggingEnb)
Default
[control]
controlEnb = false ; Enable control signal
extendedID = true ; Use extended 29 bit message ID (2.0B)
msgID = 00435354 ; CAN message ID of control signal (HEX)
Fields explained
controlEnb
Type |
Options |
---|---|
Boolean |
true, false |
true
: Control signal enabledfalse
: Control signal disabled
extendedID
Type |
Options |
---|---|
Boolean |
true, false |
true
: Use extended ID format (29-bit)false
: Use standard ID format (11-bit)
msgID
The CAN-bus message ID (in HEX) used for the control signal.
Type |
Minimum |
Maximum |
Example |
---|---|---|---|
HEX |
0 |
7FF / 1FFFFFFF[1] |
1F4 |
Encoding
The encoding used for the control signal is defined below.
Byte No. |
0 |
---|---|
Content |
State |
The length of payload must be 1 byte. The value of the State
byte sets the state of logging:
0x00
: Logging disabled0x01
: Logging enabled
Examples
Example 1: The initial logging state (loggingEnb
) is true
. Nine messages (ID 1, 2, …, 9) are transmitted on the bus. After the message with ID 3, the control signal disables logging. Logging is enabled before the message with ID 7.
Below table shows the resulting log entries recorded by the device.
Timestamp |
Type |
ID |
Data |
---|---|---|---|
12T082115133 |
0 |
1 |
aabbcc |
12T082115828 |
0 |
2 |
aabbcc |
12T082116580 |
0 |
3 |
aabbcc |
<Control-signal: Disable> |
|||
… |
|||
<Control-signal: Enable> |
|||
12T082121452 |
0 |
7 |
aabbcc |
12T082122013 |
0 |
8 |
aabbcc |
12T082122677 |
0 |
9 |
aabbcc |
Below shows the raw content of the log file.
Timestamp;Type;ID;Data
12T082115133;0;1;aabbcc
12T082115828;0;2;aabbcc
12T082116580;0;3;aabbcc
12T082121452;0;7;aabbcc
12T082122013;0;8;aabbcc
12T082122677;0;9;aabbcc
Example 2: Same as Example 1, but with the initial logging state (loggingEnb
) set to false
.
Below table shows the resulting log entries recorded by the device.
Timestamp |
Type |
ID |
Data |
---|---|---|---|
… |
|||
<Control-signal: Disable> |
|||
… |
|||
<Control-signal: Enable> |
|||
12T082121452 |
0 |
7 |
aabbcc |
12T082122013 |
0 |
8 |
aabbcc |
12T082122677 |
0 |
9 |
aabbcc |
Below shows the raw content of the log file.
Timestamp;Type;ID;Data
12T082121452;0;7;aabbcc
12T082122013;0;8;aabbcc
12T082122677;0;9;aabbcc