SocketCAN is a Linux socket based implementation for Controller Area Network (CAN) protocol.
Questions tagged [socketcan]
155 questions
0
votes
3 answers
Bitbake LibSocketCAN
I am trying to build libsocketcan into my image. To add libsocketcan In my main application recipe I added IMAGE_INSTALL_append += " libsocketcan ". When debugging my application with Eclipse this works perfectly. When I attempt to bitbake my…

Michael
- 399
- 2
- 17
0
votes
1 answer
Automake LibSocketCan
I am using automake to build my project. My project uses pthread and libsocketcan. I have installed libsocketcan with the command
sudo apt-get install libsocketcan-dev
In eclpise I have added linker flags for pthread and libsocketcan. The code will…

Michael
- 399
- 2
- 17
0
votes
2 answers
Can you attach a custom CAN interrupt handler to SocketCAN?
I have an application running baremetal which controls a peripheral via CAN. In its original form, my application hands messages to the CAN "driver", which is actually a buffering layer. Incoming messages are pulled out of the hardware buffer and…

Walkingbeard
- 590
- 5
- 15
0
votes
2 answers
Canbus freezes - how to ignore error frames?
I am trying to communicate with a vehicle control unit (VCU) over can. I have figured out the commands (index, data and frequency) and can verify the functionality through PCanView on Windows. Now I am using Nvidia Xavier system with python-can…

Gaurav Gupta
- 1
- 2
0
votes
1 answer
Debian: Module can-dev loaded with load-modules.conf does not work until I reload it manually
I have a slight problem with using can bus on a raspberry pi with Debian 64 bit running on it.
My /etc/modules-load.d/modules.conf looks like this:
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel…

Fux
- 1
- 2
0
votes
0 answers
how to use the socket can extend frame?
I am trying to read from a socketCAN and the message is always filtered for the 29bit identifier. I meet a terrible problem that i can't deal with it.
when I receive extend frame message,The received extend frame ID and DLC are normal,but all of the…

Jonne gong
- 1
- 1
0
votes
1 answer
Python CAN isotp socket is not receiving data but the candump is received
I am trying to communicate Pican3+Raspberry Pi 4(Device 1) with canoe in my laptop(Device 2). I am using python can isotp module in raspberry pi. I am able to send data from my code in raspberry pi to canoe, but not able to receive the data send…

abh
- 1
- 2
0
votes
0 answers
Connecting a CANopen device to ubuntu
I am trying to connect a CANopen motor driver to Ubuntu to control the driver. I used the CANopenNode package and then I connected the two drivers and connected a two 120 ohms resistors at both ends of the bus and I am using a Nvidia AGX Xavier as a…

Amr ehab
- 1
0
votes
1 answer
SocketCAN error-passive with RevPi CAN Connect. Hardware or Software issue?
We have bought a CAN Connect module for our Revpi Connect, and set it up as can been seen in this thread on the Kunbus forum. As far as we understand this will provide the proper termination.
We have also followed this guide provided by Revolution…

Kent Odde
- 47
- 4
0
votes
1 answer
cantools.database.errors.Error: Standard frame id is more than 11 bits
I used cantools python package to decode canbus message. I used a dbc file created by me for testing. I copied a sample file. When I use can id like 419358976, I get error. But for smaller can ids like 350, it works. Does cantools fail for extended…

Shehan Simen
- 1,046
- 1
- 17
- 28
0
votes
0 answers
Send CAN Messages to Multiple Specified Device IDs in Socketcan / Python-can similar to MCP_CAN Arduino library?
Is there an equivalent in Python Socketcan / python-can that allows CAN messages to be sent to a specific destination device ID like how it's done on Arduino devices? The Arduino CAN bus boards use a MCP_CAN Library which allows for defining ID…

Stigma
- 331
- 1
- 4
- 15
0
votes
0 answers
Missing PDO in a CAN bus of SocketCAN on a linux CPU board
It is being observed that multiple PDO go missing when a CPU has high usage and also when there is a high traffic via SSH connection. The arrangement is such that SocketCAN api of the linux system is used to create a CAN BUS containing 3…

curosity
- 19
- 5
0
votes
1 answer
socketcan Candump - How Can I extend CAN ID?
I would like to receive the vehicle's CAN data to the socket CAN and send it to the server. (raw data)
Accordingly, CAN ID is very important in post-processing raw data sent to the server.
The CAN data ID received by Candump and wireshark is only 3…

youna
- 39
- 6
0
votes
2 answers
socketcan J1939 filter use in python
In Python, I am trying to use the J1939 filtering as mentionned in the linux kernel docs: https://www.kernel.org/doc/html/latest/networking/j1939.html
The following code fails at the setsockopt() line (setting up filters):
import socket
import…

rickthehope
- 71
- 4
0
votes
0 answers
SocketCAN: No telegrams received
I want to receive messages periodically using socketCAN. But the program didnt receive any telegrams.
I think one problem may be the telegram ID inside the BCM.
Can somebody help me with a hint?
Thank you
Edit:
The goal is to send and to receive can…

Or25
- 1
- 1