Avisaro AG - Wiki (en) > Script Manuals > Data Logging > MC8: High Speed CAN logging

MC8: High speed logging of CAN messages

Description

High Speed CAN data logging
High speed can data logging

This script logs CAN messages at full line rate. All messages from the CAN bus are stored on SD memory card. Filters can be applied to allow a range of CAN IDs. The messages are stored in binary format with a real time timestamp. The logfiles are named after the day and the month. 

Version history

Script name: mc8-3.txt
Current version: V 3, dated from 26.05.2009
Firmware: v4.25 or higher required
Hardware: Logger cube, logger box or logger module
History: V3: Added buffered full speed streaming
V2: Added buffered writing
V1: Initial version

Download

PDF
MC8 User Manual (PDF, ENG, 0.5 MB) (print-out of the online manual)
txt

Download Script: MC8.txt (1,3 kB) (right mouse-button and 'save under ..' to download)

1. Initial Setup

Power Up and connect to your device as described Mehr here in the User Manual section "First Steps".

Typically, this application script is not loaded when an Avisaro CAN Logger product was purchased. Please see Mehr here for details on how to load the script into the logger.

Configure the CAN port, such as baudrate and stop bits, as described Mehr here using SD memory cards.

The default settings of the CAN interface are:

CAN default settings

Baudrate: 125 kbits/s
CAN ID send: 49 (hex)
CAN ID receive: 49 (hex)

2. Modify filter (range of CAN IDs to be logged)

Filters can be set to allow a certain range of message IDs to be logged. 

Use the command "CANFLT" (Mehr more) to set the filter. See (Mehr here) on how to best use the command using the 'autorun.txt' method.

3. Access log file via Explorer (FTP) using WLAN / LAN

Build-in FTP Server

If the Avisaro product used has a WLAN or LAN option build in, the logfile can be accessed using the regular Windows Explorer or any other FTP client.

See Mehr here for details.

4. Operating Logger

4.1. LEDs and Key

LED and KEY

Key:

Is used to start and stop logging process.
The logging process is automatically started or stopped when a card is extracted or inserted.
The logging process is also automatically started when the device is powered up.

Green LED:

Indicates power up.
A fading green LED indicates that module is waiting for user interaction (SD card to be entered or key to be pressed)

Red LED:

Indicates that the logging process is active.

4.2. Detailed settings

FSYNC

It is recommended to use the FSYNC command. This ensures that the filesystem is synchronized for the case of improper termination (power outage, ...) (Mehr here)

Recommended setting: FSYNC 1000

SCHED

It is recommended to use the SCHED command. This ensures better system performance (Mehr here)

Recommended setting: SCHED 0 fix