Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure kvaser to use socketcan on linux and create dump files #7

Open
ingenieroariel opened this issue Jan 18, 2017 · 2 comments
Open

Comments

@ingenieroariel
Copy link
Member

ingenieroariel commented Jan 18, 2017

{"bus": 1, "data": "0x0000f690001ff7ff", "id": 125, "timestamp": 1484685556.    242227}

should be

(1367859965.330495) can0 440#4001800000000000
@ingenieroariel ingenieroariel changed the title Allow openxc-dump to output candump compatible logs Configure kvaser to use socketcan on linux and create dump files Jan 31, 2017
@ingenieroariel
Copy link
Member Author

Done, let's add pictures of the adapter we had to make, where we connected on the car and what commands we need to run in order to enable it. After that we can close the ticket.

@eldarial
Copy link
Collaborator

eldarial commented Jan 31, 2017

This is the connector for the Kvaser interface

image

According to Kvaser guide http://www.kvaser.com/software/7330130980146/V1_2_189/kvaser_leaf_light_v2_usersguide.pdf the pins in the db9 pins are

2 CAN LOW
3 GROUND
7 CAN HIGH

There is a 120 resistor between CAN HIGH and CAN LOW

These are the commands to setup the Kvaser interface with can-utils:

 sudo modprobe can
 sudo modprobe can-raw
 sudo modprobe can-dev
 sudo modprobe kvaser_usb
 sudo ip link set can0 type can bitrate 500000
 sudo ifconfig can0 up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants