
— 38 —
X. Debug and logging functionality
Debug mode is not a normal operation mode of the Device. The recording of debug data can lead
to additional message delay and loss of some CAN bus messages.
Device supports both raw CAN bus data and program runtime debug information recordings.
To start recording add the following setting to YDNB.CFG file:
DIAGNOSTICS=x
Where x is log recording duration in seconds.
Insert the card into Device, confirm that the YDNB.CFG file was accepted (Device responds with 3 short
GREEN LED flashes) and that the recording had started (3-second long GREEN flash). Do not extract the
card during recording as it will damage the card file system. After specified amount of time, log recording
will stop and Device will produce a 3-second long RED flash, indicating that all card write operations were
finished and card can be safely extracted.
Log file format can be selected by setting:
LOG_FORMAT=TEXT
or
LOG_FORMAT=BINARY
Default value is TEXT. If LOG_FORMAT setting is omitted or set to TEXT, Device will record YDNBLOG.
TXT file. If YDNBLOG.TXT file already exists on a card, it will be overwritten.
TEXT file will capture all CAN frames for which any
match()
filter yields a match and all CAN frames
sent via
send()
. You can also record variable or expression value and type during runtime using a
log()
function:
log(expression)
Example of the YDNBLOG.TXT file contents:
Summary of Contents for YDNB-07N
Page 46: ......