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.
| 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 Script: MC8.txt (1,3 kB) (right mouse-button and 'save under ..' to download)
Power Up and connect to your device as described
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
here for details on how to load the script into the logger.
Configure the CAN port, such as baudrate and stop bits, as described
here using SD memory cards.
The default settings of the CAN interface are:
Baudrate: 125 kbits/s
CAN ID send: 49 (hex)
CAN ID receive: 49 (hex)
Filters can be set to allow a certain range of message IDs to be logged.
Use the command "CANFLT" (
more) to set the filter. See (
here) on how to best use the command using the 'autorun.txt' method.
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
here for details.
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.
FSYNC
It is recommended to use the FSYNC command. This ensures that the filesystem is synchronized for the case of improper termination (power outage, ...) (
here)
Recommended setting: FSYNC 1000
SCHED
It is recommended to use the SCHED command. This ensures better system performance (
here)
Recommended setting: SCHED 0 fix