Canmetry
Open workbench

ASC to BLF converter for Vector CAN logs, no CANoe needed

Pack an ASC text trace into a compressed BLF that CANoe opens. CAN and CAN FD frames are kept, and nothing leaves your browser.

Step 1 of 3 · Open logs

Drop your ASC file here

or

.asc files up to 150 MiB, up to 5 at a time. Conversion runs in your browser, so files stay on your computer.

CAN · CAN FD · 1 µs timestamps

When an ASC has to become a BLF

ASC is easy to read and edit, but large. These are the times a BLF is the better file.

$ ls -lh sample-drive.*
511K sample-drive.asc
 89K sample-drive.blf

Send a much smaller file

BLF is compressed binary. The synthetic sample log is 511 KB as ASC and 89 KB as BLF, under a fifth of the size.

CANoe: Measurement Setup, Offline Mode
Logging File → drive.blf
CAN and CAN FD frames, as logged

Hand over the format people ask for

CANoe, CANalyzer and many logger tools work in BLF. When a colleague or supplier asks for a BLF, send one.

CANoe: Tools, Logging File Conversion
drive.asc → drive.blf
Here: no licence, nothing installed

ASC to BLF without a CANoe licence

Vector's own route is Tools, Logging File Conversion inside CANoe. This page does the same job with nothing installed.

drive.asc 2.1 GB
  → ASC splitter → drive_part1.asc
  → ASC to BLF   → drive_part1.blf

Turn a trimmed or scripted ASC back

Cut a log with the ASC splitter or write one from a script, then convert the result to BLF and open it in CANoe.

ASC in, BLF out

Three steps, all in your browser.

  1. Open your ASC

    Drop up to five ASC files. Each one is checked for readable CAN frames before you continue.

  2. Name the BLF

    BLF is the only output here. Rename the file if you like, or keep the ASC's name.

  3. Download

    Each ASC becomes its own BLF with the same name. Nothing is uploaded at any point.

What the BLF file contains

Frames are copied as logged. Nothing is decoded, so no DBC is needed.

sample-drive.blf
LOGG header 144 B · 10,800 objects
LOBJ LOG_CONTAINER zlib, 128 KiB
  LOBJ CAN_MESSAGE 0.001312 ch 1 1A0 Rx 8
  LOBJ CAN_MESSAGE 0.007104 ch 1 0C4 Rx 8
  LOBJ CAN_MESSAGE 0.011697 ch 2 2B0 Rx 8
  …
LOBJ LOG_CONTAINER 3 more, 89 KiB in all

How a BLF written by this page is laid out, from the synthetic sample log.

  • The BLF layout

    A 144-byte LOGG header with the start time and object count, then zlib-compressed containers of up to 128 KiB with one object per frame. It is the layout python-can writes.

  • What is kept

    CAN and CAN FD frames (up to 64 bytes, BRS and ESI), remote and error frames, 11- and 29-bit IDs, Tx and Rx, the channel numbers, the ASC start time and microsecond timestamps.

  • What is not

    LIN frames, comments and other events are left out. Frame length and bit timing are written as zero, because an ASC does not record them.

  • How it was checked

    We opened files from this page in CANoe, and python-can and this site's own BLF reader read them back frame for frame. We have not tested every Vector version.

ASC to BLF: common questions

Can I convert ASC to BLF without CANoe?

Yes. Choose the ASC file and download the BLF. CANoe does the same under Tools, Logging File Conversion, but it needs a licence. This page needs nothing installed.

Will CANoe or CANalyzer open the BLF?

We opened files written by this page in CANoe, and python-can reads them back frame for frame. We have not tested every Vector version, so if a tool rejects a file, tell us which version it was.

Are CAN FD frames kept?

Yes. CANFD lines become CAN FD objects with up to 64 data bytes and the BRS and ESI flags. The bit-timing fields are written as zero, as python-can does.

Are the timestamps exact?

Yes, to the microsecond an ASC stores. The BLF start time comes from the ASC date line. An ASC saved with relative timestamps, where each line holds the time since the previous one, is added up first.

What happens to LIN frames?

They are left out, and the page tells you how many. Use CANoe for logs where the LIN traffic matters.

How large can the ASC be?

Each ASC may be up to 150 MiB and hold up to 5,000,000 frames, and you can add five per run. Cut a larger log into parts with the ASC splitter first.

Where does the conversion run?

In your browser tab. The ASC is read and the BLF is written locally with no server involved, which suits logs from a prototype vehicle.