Questions tagged [can-bus]

CAN bus is a vehicle bus standard designed to allow microcontrollers and devices to communicate with each other

A Controller Area Network (CAN bus) is a vehicle bus standard designed to allow microcontrollers and devices to communicate with each other in applications without a host computer.

55 questions
5
votes
2 answers

How to program a CAN-BUS Arduino shield to control car windows?

My project is to control car windows using voice recognition. I have successfully controlled some LEDs using the EasyVR Arduino shield using and Arduino MEGA. Now I want to take control of the windows using the CAN-BUS arduino shield. Because the…
user3508331
  • 51
  • 1
  • 3
4
votes
1 answer

Arduino CAN SPI Configuration problem

I am using an Arduino UNO along with a Cooking Hacks CAN Bus Module and Multiprotocol Radio Shield. The CAN module is connected to the radio shield which is plugged into the Arduino. I got this radio shield keeping future applications in mind where…
4
votes
2 answers

Can Bus Shield Not Receiving Data

I am trying to connect my Arduino Uno board with SeeedStudio Can Bus Shield to my 2006 325i BMW. After compiling and uploading the example program by SeeedStudio, the serial monitor returns "Can Bus Shield Init ok!" // demo: CAN-BUS Shield, receive…
3
votes
2 answers

What are the correct pins for TWAI (CAN) on ESP32?

compared to the microchip's PICs: pic16f's does not have an onboard CAN peripheral. so you need an SPI - CAN controller (like MCP2515). some PIC18f's have an onboard CAN controller, and only need a CAN transceiver. In these cases there are exclusive…
3
votes
1 answer

Change operational mode of CAN transceiver

I have two MCP2515 stand-alone CAN controllers with SPI interface, two TJA1042 CAN transceivers and two Arduino Uno boards. As you may know TJA1042 have two operational modes: Sleep mode Normal mode. If I want to change the mode of operation of…
mtp
  • 31
  • 2
3
votes
1 answer

Attempt stacking 'CAN-BUS' and 'USB Host' Shields on Mega 2560

I've run into a case of 'In theory it works, but in reality'.... I'm using the CAN-BUS Shield V1.2 from Seeed studio. Many things are written in broken english, so I'm starting to wonder if I can trust all of the information.…
wookie4747
  • 31
  • 1
2
votes
2 answers

Can an MCP2515 CANBUS controller be used for two-way communication?

I tried searching code for an MCP2515 with Arduino on Arduino Forums, Instructables, Electronics Hub, YouTube, etc. All of them showed code for a transmitter node and a receiver node, sensors on one node, and result on the other end. Can we connect…
2
votes
1 answer

seeeduino can-bus shield v2: can't read can bus and write on SD card

I'm using a seeeduino V4.0 and a CAN-BUS shield v2.0 with industrial grade SD card. I'm using the default library given by the wiki of seeed. I've simulate a can bus with two mcp2515. I can read it without trouble and everything is fine. I can…
Thanatheos
  • 63
  • 6
2
votes
0 answers

CAN bus communication and LCD updation

I am trying to communicate arduino uno with CAN bus using MCP2515 shield. Data sending and receiving both things are done. Whatever data received is displayed on LCD. CAN bus receive is done using interrupt of timer1 and LCD updating using interrupt…
dev_elec
  • 21
  • 1
2
votes
2 answers

What is "tCAN" in codes of CAN bus?

I'm new to Arduino and CAN bus. I'm studying some code examples which contain "tCAN message". My guess it defines a class for of CAN messages. I did a lot of search but found no information on it except for sample codes. Can anyone help me out. …
Spring
  • 23
  • 3
2
votes
0 answers

Seeed CAN Shield - Not receiving extended CAN-Message

I want to receive an extended CAN-Message. I send a extended CAN-Message, but nothing happens. Maybe somebody have an idea what the problem is.. It works with a standard CAN-Message. Thanks in advance. // demo: CAN-BUS Shield, send data //…
user52806
2
votes
1 answer

How does DDRD |= _BV(PD2) differ from digitalWrite(2,HIGH)?

I'm attempting to copycat the work of Louis Frigon's Toyota Aux Enabler. I have (with a lot of help on this site) managed to begin capturing and understanding messages on the AVC-LAN bus, but I can't quite send messages. Frigon uses the following…
Bo Thompson
  • 261
  • 1
  • 3
  • 13
2
votes
1 answer

How to Implement Simple, Quick HMAC on Arduino

Hi I am a research student working on securing the communications in Controlled Area Networks (CANs), and I am using Arduinos to simulate one of these CANs. My goal is to use HMAC to implement message authentication of packets, and the algorithm…
Zach King
  • 141
  • 1
  • 7
2
votes
1 answer

Background processes - Arduino Mega and SeeedStudio CAN shield

I am attempting to interface an Arduino Mega 2560 with a system of four Black Jaguar motor controllers connected in CAN. I'm using the CAN shield from SeeedStudios to accomplish this. The way Jaguars in CAN mode are configured, you must send a…
2
votes
1 answer

Is it possible to setup a CAN-BUS Arduino Shield to communicate with SocketCAN for UNIX?

I have an Arduino + SparkFun CAN shield, and I was hoping to set it up to work with candump on an Ubuntu system. Is this doable, or is candump made specifically for raspberry Pi's?
user3475234
  • 121
  • 1
  • 2
1
2 3 4