We’re rewarding the question askers & reputations are being recalculated! Read more.

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
2
votes
2answers
34 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
33 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
25 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
143 views

Configuration of MCP2515 and TJA1050

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
32 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
355 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
171 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
81 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, ...
0
votes
1answer
139 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
549 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
888 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
2k 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 (...
1
vote
1answer
549 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
3k 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
538 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
909 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
7k 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
704 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)...
1
vote
1answer
3k 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
202 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 "...