grodansparadis / vscpl2drv-socketcan Goto Github PK
View Code? Open in Web Editor NEWLevel II driver for Socketcan.
License: MIT License
Level II driver for Socketcan.
License: MIT License
Hi,
I'm trying to setup this driver, but I'm unable to make it work.
I'm using a Raspberry Pi3 B+ with Raspbian (Buster) and the armhf VSCP package. (https://github.com/grodansparadis/vscp/releases/tag/v14.0.4)
This system is a clean/new install and updated to the latest version.
As interface, I'm using a usb_8dev USB interface, initialized using the script included.
The can0 interface is up and the "candump"-command displays all VSCP events on the bus.
I've compiled this driver from source. (I needed to manually add "-lexpat" to the "LIBS" environment variable to make it compile.)
The config format as decribed in the README didn't work for me and the driver would not be loaded.
I ended up using the config format as in the provided example of vscpd, which seems to successfully load the driver:
<!-- Level II socketcan --> <driver enable="true" name="USB-CAN|" path-driver="/var/lib/vscp/drivers/level2/vscpl2drv-socketcan.so" path-config="/var/lib/vscp/vscpd/socketcan.conf" guid="00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00" />
The '|'-character in the driver name is as indicated on https://github.com/grodansparadis/vscpworks to get an older version of vscpworks (13.1.0.10 Aluminium) on Windows working with a 14+ version of the daemon.
However, I'm unsure of what should be in the file referenced by "path-config" as there is no example available.
I currently have a file which only contains the name of the can interface "can0". Is this correct?
The "USB-CAN|"-interface is visible in VSCPworks, but it seems no events are visible and scanning for devices doesn't work.
"journalctl -ex" gives me an error which I don't know what is means: "USB-CAN|: Unable to get dl entry for VSCPWrite."
Aug 30 16:50:17 vscp vscpd[21150]: Starting the VSCP daemon...
Aug 30 16:50:17 vscp vscpd[21150]: Debug flags=2
Aug 30 16:50:17 vscp vscpd[21150]: Writing pid file [/var/run/vscpd.pid] sid=1989352688
Aug 30 16:50:17 vscp vscpd[21150]: Starting the vscpd daemon
Aug 30 16:50:17 vscp vscpd[21150]: Reading configuration file
Aug 30 16:50:17 vscp vscpd[21150]: Reading full XML configuration from [/etc/vscp/vscpd.conf]
Aug 30 16:50:17 vscp vscpd[21150]: addUser: Failed to add user - user is already defined.
Aug 30 16:50:17 vscp vscpd[21150]: addUser: Failed to add user - user is already defined.
Aug 30 16:50:17 vscp vscpd[21150]: addUser: Failed to add user - user is already defined.
Aug 30 16:50:17 vscp vscpd[21150]: addUser: Failed to add user - user is already defined.
Aug 30 16:50:17 vscp vscpd[21150]: addUser: Failed to add user - user is already defined.
Aug 30 16:50:17 vscp vscpd[21150]: addUser: Failed to add user - user is already defined.
Aug 30 16:50:17 vscp vscpd[21150]: addUser: Failed to add user - user is already defined.
Aug 30 16:50:17 vscp vscpd[21150]: Level II driver added. name = USB-CAN|- [/var/lib/vscp/drivers/level2/vscpl2drv-socketcan.so]
Aug 30 16:50:17 vscp vscpd[21150]: Using configuration file: /etc/vscp/vscpd.conf
Aug 30 16:50:17 vscp vscpd[21150]: VSCP Server started - Version: 14.0.4-1 Silicon - Copyright © 2000-2020 Ake Hedman, Grodans Paradis AB, https://www.grodansparadis.com
Aug 30 16:50:17 vscp vscpd[21150]: Controlobject: Starting client worker thread...
Aug 30 16:50:17 vscp vscpd[21150]: Starting web server...
Aug 30 16:50:17 vscp vscpd[21150]: Websockets enable...
Aug 30 16:50:17 vscp vscpd[21150]: REST API enable...
Aug 30 16:50:17 vscp vscpd[21150]: [websrv] warning: lua_websocket_pattern: duplicate option
Aug 30 16:50:17 vscp vscpd[21150]: Controlobject: Starting TCP/IP interface...
Aug 30 16:50:17 vscp vscpd[21150]: [Controlobject][Driver] - Starting drivers...
Aug 30 16:50:17 vscp vscpd[21150]: Controlobject: [Driver] - Preparing: USB-CAN|
Aug 30 16:50:17 vscp vscpd[21150]: Controlobject: [Driver] - Starting: USB-CAN|
Aug 30 16:50:17 vscp vscpd[21150]: [Driver USB-CAN|] - Started VSCP device driver.
Aug 30 16:50:17 vscp vscpd[21150]: Mainloop starting
Aug 30 16:50:17 vscp vscpd[21150]: Devicethread: Starting driver_USB-CAN|
Aug 30 16:50:17 vscp vscpd[21150]: Loading level II driver: <USB-CAN|>
Aug 30 16:50:17 vscp vscpd[21150]: USB-CAN|: Unable to get dl entry for VSCPWrite.
Aug 30 16:50:17 vscp vscpd[21150]: [TCP/IP srv listen thread] Started.
Aug 30 16:50:18 vscp vscpd[21150]: Send event to client [driver_USB-CAN|]
Aug 30 16:50:18 vscp vscpd[21150]: Send event to client [driver_USB-CAN|]
Aug 30 16:50:18 vscp vscpd[21150]: Send event to client [driver_USB-CAN|]
Aug 30 16:50:18 vscp vscpd[21150]: Send event to client [driver_USB-CAN|]
Add support for FD frames.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.