Skip to content
vscpd level I driver for event logging
M4 Shell C++ Makefile C
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
.vscode
autotools
common
debian_orig
debug
linux
m4
man
vscp @ 30a3222
windows
.gitignore
.gitmodules
LICENSE
Makefile.in
README.md
VERSION.m4
build_debian_package.sh
clean_for_dist
config.h.in
configure.ac
echo-version

README.md

vscpl1drv-logger - VSCP Level I CAN4VSCP Logger Driver

vscpl1drv-logger is a VSCP level I driver for diagnostic logging. It makes it possible to log (VSCP Level I events to a text file. Several drivers can be loaded logging data to different output files and using different filter/masks.

Platforms

  • Linux
  • Windows

Driver for Linux**

vscpl1drv-logger.so

Driver for Windows

vscpl1drv-logger.dll

Install location

Linux

From version 14.0.0 the driver is installed in /var/lib/vscp/drivers/level1

Windows

From version 14.0.0 the driver is installed in /program files/vscpd/drivers/level1

Configuration string

Windows
path;filter;mask

Example

c:\logfile.log;0x0;0x0
Linux
path;filter;mask

Example

/tmp/logfile;0x0;0x0

The absolute or relative path including the file name to the file that log data should be written to. The filename is followed by the optional 32-bit filter and mask. The default is all events logged.

Note that the filter/mask looks at the CAN ID. If you work with VSCP look at format of the 29 bit CAN identifier in VSCP Bit 32 is set to one for an extended frame (all VSCP frames) and bit 30 is set to one for RTR frames (never for VSCP).

Flags

  • 0 - Append data to an existing file (create it if it's not available).
  • 1 - Create a new file or rewrite an old file with new data.

Status return

The CanalGetStatus call returns the status structure with the channel_status member having the following meaning:

  • 0 is always returned.

Log file format

The log file have the following format and consist of the following parts

  • Time when frame was received
  • Timestamp
  • Flags
  • ID
  • Number of databytes
  • Databytes

Install the driver on Linux

Install Debian package

> sudo apt install ./vscpl2drv-logger_1.1.0-1_amd64.deb

using the latest version from the repositories release section.

or

./configure 
./make
sudo make install

use the switch --enable-debug if you want a debug build.

Install the driver on Linux using vscp private repository

Warning !!! Currently this is very much experimental

wget -O - http://apt.vscp.org/apt.vscp.org.gpg.key | sudo apt-key add -

then add

deb http://apt.vscp.org/debian buster main
deb http://apt.vscp.org/debian eoan main

to the file

/etc/apt/sources.list

replace eoan with the os-release you have installed and debian to debian, ubuntu or raspian

Install the driver on Windows

Install using the binary install file in the release section.

How to build the driver on Linux

git clone https://github.com/grodansparadis/vscpl1drv-can4vscp.git
cd vscpl1drv-can4vscp
git submodule update --init
./configure
make
make install

Default install folder is /var/lib/vscp/drivers/level1

You need build-essentials and git installed on your system.

sudo apt update && sudo apt -y upgrade
sudo apt install build-essential git

How to build the driver on Windows

The source contains a Visual Studio project. Use this project to build the driver.


There are many Level I drivers (CANAL drivers) available in VSCP & Friends framework that can be used with both VSCP Works and the VSCP Daemon (vscpd) and other tools that interface the drivers using the CANAL standard interface. Added to that many Level II and Level III drivers are available that can be used with the VSCP Daemon.

Level I drivers is documented here.

Level II drivers is documented here

The VSCP project homepage is here https://www.vscp.org.

The manual for vscpd contains full documentation. Other documentation can be found on the documentaion portal.

The vscpd source code may be downloaded from https://github.com/grodansparadis/vscp. Source code for other system components of VSCP & Friends are here https://github.com/grodansparadis

Copyright (C) 2000-2020 Ake Hedman, Grodans Paradis AB - MIT license.

You can’t perform that action at this time.