People who code: we want your input. Take the Survey

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
1answer
38 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 ...
0
votes
0answers
276 views

Using MCP2518 CAN controller and SocketCAN on CM4 with PiCore

Background I am planning on using a Raspberry Pi CM4 with PiCore (a version of TinyCore for the RPI) for an embedded project involving a MCP2518 CAN controller. There is an MCP251x driver already ...
0
votes
0answers
49 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(...
0
votes
0answers
40 views

How to set can0 bitrate on Alpine

I'm using an alpine linux implementation on a raspberry pi with a CAN hat. On raspbian, I can run the commands: ip link set can0 type can bitrate 125000 ip link set up can0 and it comes up and ...
1
vote
0answers
171 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?
1
vote
0answers
315 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-...
1
vote
0answers
500 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 ...
2
votes
2answers
60 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 ...
0
votes
0answers
102 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. ...
2
votes
0answers
58 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 ...
0
votes
1answer
657 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 ...
1
vote
0answers
69 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", ...
1
vote
1answer
3k 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. ...
1
vote
2answers
456 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 ...
0
votes
1answer
190 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, ...
-1
votes
1answer
192 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 ...
0
votes
0answers
4k views

CAN Interface on Raspberry Pi 3 B+

I've followed this tutorial to configure my CAN module with Raspberry Pi 3 B+: https://vimtut0r.com/2017/01/17/can-bus-with-raspberry-pi-howtoquickstart-mcp2515-kernel-4-4-x/ After failing to bring up ...
0
votes
0answers
686 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....
1
vote
1answer
1k 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 ...
1
vote
2answers
5k 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 (...
0
votes
1answer
857 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-...
2
votes
2answers
4k 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 ...
0
votes
1answer
610 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 ...
1
vote
1answer
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 ...
1
vote
1answer
10k 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=...
1
vote
2answers
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)...
2
votes
1answer
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 ...
2
votes
1answer
1k 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 ...
1
vote
1answer
207 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 "...