Coder Social home page Coder Social logo

canlab-cz / triple Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 2.0 510 KB

Linux SocketCAN driver for USB2CAN Triple from Canlab s.r.o.

Home Page: http://www.rs.canlab.cz/?q=cs/node/123

License: GNU General Public License v3.0

Makefile 3.01% Shell 1.95% C 95.04%
socketcan usb2can linux driver canlab canfd can slcan

triple's Issues

tripled_64 is crashing when setting user defined bittiming

tripled_64 is crashing when setting user defined bittiming.

sudo ./tripled_64 ttyACM0 -s0x09:0x0A:0x21 -c10:6:1:1:10:6:1:1:0:0:2 -ncan0:can1:canfd2
Neoprávněný přístup do paměti (SIGSEGV)

With debugging prints:

sudo ./tripled_64 ttyACM0 -s0x09:0x0A:0x21 -c10:6:1:1:10:6:1:1:0:0:0 -ncan0:can1:canfd2
str=10, num=10
str=6, num=6
str=1, num=1
str=1, num=1
Neoprávněný přístup do paměti (SIGSEGV)

First problem is, that user_speed should have 11 items, not only 10:

unsigned int user_speed[10];

Second problem is with tmp, which should also have 11 items:

char *tmp[3];

Both are used in this loop:

triple/utility/main.c

Lines 166 to 167 in 4aa706b

for (i = 0; i < 11; i++)
user_speed[i] = strtoul(tmp[i], NULL, 10);

Not working with kernel 5.16

I'm using Fedora 35 with kernel 5.16.11, but unfortunately, driver does not compile with this kernel version. I tried to fix it (see commit 97d4bc0), and I fixed compilation problems, but when executing candump, the whole system froze, so there is some other problem as well.

tripled_64: Add predefined CAN FD speeds

I'm missing predefined speeds with equal nominal and data baud rates. Would it be possible to add them?

Currently I'm setting 500/500 kb/s with -c10:6:1:1:10:6:1:1:0:0:0, is it correct?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.