Questions tagged [can-bus]

CAN (bus) relates to 'Controller Area Network'. Primarily used in vehicles to allow different microcontrollers to communicate with one another without a host computer.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

Need help connecting pi to 3 separate 2 digit displays

Hello we are Solar car race team at a high school and we need to connect our Pi to 3 individual two digit displays then format the data from our charge controller through our Pi. Is this possible ...
Matt Karlsen's user avatar
0 votes
0 answers
23 views

Problem Using Python CAN with Pi Can 2 Hat

I hope to find some answers here regarding a program of mine that doesnt seem to work! It is a modified version from https://rb.gy/blrhk . I am using the RPi in conjunction with an arduno uno with a ...
Paul Boutsiadis's user avatar
0 votes
1 answer
188 views

All MCP2518FD-based CAN FD boards won't work on low data rates

MCP2518FD is a pretty common CAN FD controller used in many expansion HAT solutions for Raspberry PI (almost all of them are based on this Microchip family of CAN controllers). The problem is: I never ...
Aleks Y's user avatar
0 votes
2 answers
323 views

Bit-timing not yet defined for mcp2515

I'm trying to set up my mcp2515 with a VP230 Can transceiver for can communication. so far, I am able to connect the mcp to my RPI using SPI bus 0 and to set it up as can0 in RPI. However, when I ...
Ber's user avatar
  • 9
1 vote
0 answers
136 views

Using MCP2515 with an RPi

I'm trying to connect 2 CAN lines to an RPi using 2 MCP2515 connected both to SPI0 (one with CE0 and the other with CE1) using GPIO27 and GPIO5 as the interrupt pins. I'm using the following ...
Diogo Ferreira's user avatar
2 votes
1 answer
211 views

2-ch-can-hat (mcp2515) on SPI1 rpi 3 b+

On a Raspberry Pi 1 Mod. B+ Raspberry Pi reference 2021-01-11 Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 21090519d85bdaa1615d5d5057d37b09368ea5d2, stage2 Oct 29 2021 10:49:08 ...
martburg's user avatar
  • 121
1 vote
0 answers
97 views

Car bluetooth receiver with CANBUS for speed sensitive volume and steering wheel controls?

After reading on some canbus control packages, I'm confident that a raspberry pi based bluetooth receiver can be made so that it understands vehicle speed and increases volume as the vehicle speeds up ...
J. Doe's user avatar
  • 11
0 votes
1 answer
533 views

Connecting MCP2515 with raspi

I am trying to connect mcp2515 can bus module with raspi 4b. On using pi@piv2:~ $ sudo ip link set can0 up type can bitrate 125000 the terminal freezes so i downgraded my terminal to 5.4.61-v7l ,t ...
VEDANT KABRA's user avatar
0 votes
1 answer
56 views

Revpi with CAN module... transmit errors then can network going down. what causes transmit errors?

I'm new to using CAN and revpi. Using a revpi with a CAN module... it is connected to customer CAN node(s). I'm finding that sometimes the CAN network goes down. I have to restart it like this: sudo ...
Ameet Sharma's user avatar
0 votes
1 answer
2k views

CAN BUS communication issue

I am trying to set up communication between a rpi4b and pi zero using a custom mcp2515 module, it is custom because I changed the tja1050 for a sn65hvd230. So, I am trying to send a simple message ...
GRS's user avatar
  • 1
0 votes
3 answers
592 views

CAN bus from Raspberry Pi3+ to Arduino Nano

I am currently trying to add my RPi-3B+ to my CAN-Network. I successfully have a running CAN-Network with 10 Unos\Nanos. In the future the Pi should act as a command center and data storage. My ...
v3xX's user avatar
  • 101
0 votes
1 answer
348 views

PICAN-FD-DUO loading issue

I am trying to get an PICAN-FD-DUO-SMPS to work with a raspberry Pi 4B and cant quite get the can devices load. I have updated the config.txt as such dtparam=spi=on dtoverlay=mcp2515-can0,oscillator=...
vinthewrench's user avatar
0 votes
0 answers
26 views

InValid CAN packets Observed RPI 3B+

RPI 3B+ connected with HAT consisting of CAN Transceiver. CAN interface is enabled and configured and link is UP. I'm using bus.send(msg) and bus.recv() functions to transmit and receive can packets. ...
Theertha B V's user avatar
-1 votes
1 answer
274 views

Setting interface name in /boo/config.txt

I am trying to setup an interface name can1 (instead of can0) on spi0. Looking at the instructions at https://blog.stabel.family/raspberry-pi-4-device-tree/ I was able to add a new overlay file. Even ...
rickthehope's user avatar
0 votes
0 answers
139 views

CAN communication between arduino and raspberry pi

I am trying to communicate between Raspberry Pi and Arduino. In arduino I am using this program to transmit #include <SPI.h> #include <mcp_can.h> const int spiCSPin = 10; MCP_CAN CAN(...
Sundar Santhanam's user avatar
1 vote
0 answers
501 views

Raspberry Pi FlexRay HAT [closed]

I've been searching for a couple of days for a FlexRay HAT / module for Raspberry pi without success. Is there such a module available?
Dragos Vasile's user avatar
1 vote
0 answers
1k views

Waveshare RS485 CAN hat over raspberry pi 3A+

So I have been at least trying to connect to the hat from the Pi, the following is my configuration: I follow the manual set in this link: https://www.waveshare.com/w/upload/2/29/RS485-CAN-HAT-user-...
aldo's user avatar
  • 33
1 vote
0 answers
877 views

Rpi4B buster SPI CAN Bus Interface Problem

I'm using PI4 OS Buster. I want to connect 2 canbus interfaces so I will be able to read both of them at the same time. this is the connections I have made GPIO CAN HEADR ...
Afik_Android's user avatar
2 votes
2 answers
113 views

persistent canbus data logging during power loss

I am trying to setup a robust raspberry canbus data logger. The pi will be installed on a mobile vehicle where the power to the pi is disconnected every time the vehicle is switched off, which will ...
user1320852's user avatar
0 votes
0 answers
166 views

Socketcan interface stops responding when there's no WiFi

Starting the can0 interface using command: ip link set can0 type can bitrate 250000 restart-ms 100 in /etc/rc.local This works perfectly whenever the pi zero connects to a recognized WiFi network. ...
rCtoOL's user avatar
  • 1
2 votes
0 answers
81 views

Reading registers from a (MCP2515) chip on a CAN Hat

I'm using a CAN Hat which talks SPI to the PI.. everything works, as it automatically loads the (MCP2515) drivers and makes the CAN bus accessible via sockets. However, is there a way to read-back ...
Ben Nguyen's user avatar
0 votes
1 answer
1k views

Configuration of MCP2515 and TJA1050 [closed]

The following is the description of the operation I am working on using CodeSYS: What : Interfacing NiRen CAN interface with Raspberry PI B+ Why : To have RasPI behave like a transmitting node on ...
user avatar
1 vote
0 answers
112 views

CAN bus read on RPI3

I have 10 CAN IDs on the bus and would like to read all the 10 IDs every 0.1 seconds. I was able to write the code below but it shows me one message only. import can bus = can.interface.Bus ("can0", ...
Moe's user avatar
  • 19
0 votes
1 answer
8k views

Python Can bus read every 0.1 seconds

I have been trying to write a code that would allow me to read all the data on the CAN bus every 0.1 seconds. There are 10 messages on the bus that are being sent every 0.1 seconds from another RPI3. ...
Moe's user avatar
  • 19
1 vote
2 answers
808 views

Socketcan and Qt on raspberry pi

Is there a prebuild serialbus library for Raspberry Pi? I would to use QtCanBus in a project. Unfortunately I cannot find any reference for installing the necessary library. tried sudo apt-get ...
Alex B.'s user avatar
  • 41
0 votes
1 answer
247 views

rpi2 jessie python-can

Trying to use python-can with raspi2 / jessie. I installed/tried to install python-can via pip3 can package. Install looks to be ok, but python does not find module. Tried searvhing google for help, ...
AntsuS's user avatar
  • 28
-1 votes
1 answer
271 views

Raspberry PI SPI interface

I'm looking at a Raspberry Pi and I am a bit new to Serial Peripheral Interface. I see the Rasperry Pi has two SPI interfaces on the GPIO pins. Can one SPI interface be programmed to connect to ...
ffejrekaburb's user avatar
0 votes
0 answers
833 views

Raspberry Pi + Mcp2515

I used Raspberry Pi + Mcp2515 with CAN bus. In my code, When I lost request it will locked,then GUI will not working. msg = can.Message(arbitration_id=0x000601, data=point, extended_id=false) bus....
Hank Lai's user avatar
1 vote
1 answer
2k views

Can't get candump to work

I've got the RPi 3 model B with raspian lite. I've got a PiCAN 2 shield attached to my RPi and I'm using the screw terminals to connect to an ECU with an oscillator to monitor to verify. With the ...
shmink's user avatar
  • 137
1 vote
2 answers
7k views

CAN On Raspberry PI

I need some help with Can4Python/SocketCAN with Raspberry Pi. Currently, I am using PiCAN2. What I want to do is upon receiving a particular signal from transmitter, I would like to turn on/off LED (...
Sailorman's user avatar
2 votes
1 answer
1k views

Installing Kvaser Drivers(Linuxcan) for RPI

I have been attempting to install Kvaser drivers onto a RPI 2B and have been follwing the instructions listed in the following link: https://www.kvaser.com/developer-blog/building-canlib-linuxcan-...
Jay Hogue's user avatar
3 votes
2 answers
7k views

Cannot find device can0 with MCP25625

I have been developing an expansion board for my RPi Zero, which contains a power supply based on the buck converter TPS62130 (5V/3A) by Texas Instruments, a USB Hub and a CAN Controller/Transceiver ...
eduardoSP's user avatar
0 votes
1 answer
727 views

NeoVi Fire and Raspberry Pi on Python

I am attempting to create a program that can read DTC codes from CAN-Bus devices connected to a Raspberry Pi via a USB to Serial connection. I am testing with a NeoVi Fire that I have hooked up, and ...
Skitzafreak's user avatar
1 vote
1 answer
1k views

Problem in Initialization of PICAN2 on RPi3

I'm trying to initialize my PICAN 2 on a RPi3. I have installed the Kernel 4.4.9-V7+ and after sudo apt-get update and sudo apt-get upgrade, I have edited /boot/config.txt by adding the following ...
mamuti's user avatar
  • 11
1 vote
1 answer
12k views

Unable to bring CAN interface up on Raspberry Pi 3

I followed a few tutorials on how to use CAN on Raspberry and most of them suggested I should add these lines to /boot/config.txt : dtparam=spi=on dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=...
Stelian Saracut's user avatar
1 vote
2 answers
1k views

Interfacing with CANBUS, screen and GPIO

I am working on an undergraduate project, looking to effectively create a car dashboard. As a result, my board would have to interface with: 1)A touchscreen, ideally touchscreen for control 2)...
DreamsOfHummus's user avatar
2 votes
1 answer
4k views

CAN-bus board w MCP2515

Has anyone tried this CAN board? It uses the Microchip MCP2515, but I don't see any docs or sample apps. Qunqi MCP2515 Controller Bus Module TJA1050 Receiver SPI Protocol for Arduino SCM 51 also ...
Shade's user avatar
  • 51
2 votes
1 answer
2k views

cansend to a CANBus device doesnt work

I am trying to control an Elcon battery charger (http://www.elconchargers.com/catalog/item/7344653/7638003.htm ) which outputs a DC voltage and current and can be set through a CANBus adapter. I ...
Chintan Pathak's user avatar
1 vote
1 answer
215 views

Can my RPi B+ control a Apto® CAN-BUS Shield for Arduino?

I would like to get started into the CAN-BUS world and therefore I am looking for some CAN boards. I came across two of them. Pican Apto for Arduino The second one would be the best from a "...
user avatar