Questions tagged [can]

CAN stands for Controller Area Network and is a bus often used in automotive applications. It is a two-wire differential protocol and works on baud rates from 10 kbits/sec to 1 Mbits/sec.

122 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
54 views

Linearizing multi-star network for home automation

I'm designing a communication network for private home automation. My design goals are: Local wrt network changes. That is, changing one part of the network should not require modification of the ...
2
votes
0answers
94 views

Is shorting two power rails with a capacitor like this OK?

I am using this CAN transceiver which runs on 5 V but, if you provide it with the microcontroller voltage on its VIO pin, then it will automatically apply voltage level correction for the micro. The ...
2
votes
0answers
65 views

How is a CAN Transceiver's common mode voltage range extended?

The CAN Standard states a max. common mode voltage of -2 V to +7 V. There are transceivers however, that allow for e.g. +-25 V common mode voltage range. How is that acheived? I imagine (I do not ...
2
votes
0answers
40 views

Configuring UART pins on Beaglebone Black for CAN Interface

I have been using a CAN/RS485 Cape for prototyping CAN control of a motor. I am now in the process of bringing up some custom hardware. I have a CAN Transceiver SN65HVD230D on this custom cape that is ...
2
votes
0answers
48 views

CAN Frame Malforming on Oscilloscope

I have a working 500kbps CAN bus between an Arduino Uno and a RaspberryPi. Both are connected to MCP2515/TJA1050 boards from Amazon and communicating over SPI. The RaspberryPi dumps the CAN data via ...
2
votes
0answers
299 views

MCP2551 with STM32 MCU

im learning about the CAN protocol, and bought the transceiver module MCP2551 like this: I made the driver for CAN controller first in loopback mode for debug, im sending the numbers 1,2,3 and 4 with ...
2
votes
0answers
44 views

Compatibility and Interoperability Between CAN Standards

I'm intended to design a CAN system for a automotive scan tool. So, I need to comprise the main CAN standars used nowadays. Searching on the web I found the following options: ISO 11519-2:1994 – Low-...
2
votes
0answers
100 views

CAN bus traffic is destroyed for unknown reason

I am a bit stuck with connecting several STM32F405 with BeagleBone black via CAN bus. Strange things happen when I connect 3 stm32 and 1 BB. I have checked that BB works perfectly with any ...
2
votes
1answer
146 views

CAN bus with CANL only?

I'm interfacing a product that operates on a kind of CAN bus. Specifically, it uses the CANL line only. I'd like to use a transceiver I've used before, the MCP2562, and I suspect there's not likely ...
2
votes
0answers
85 views

Interoperability between regular and single-wire CAN bus

Is it possible to connect a regular CAN transceiver (ISO 11898-1) to a single-wire CAN bus (SAE J2411) in a compatible way? By "compatible" I mean that the whole system should support valid J2411 bus ...
2
votes
1answer
136 views

CAN ports on STM32F407G board

The project I'm starting with requires multiple development-boards connected with CAN buses. Is it possible to put two CAN ports on an STM32F407G board?
2
votes
2answers
560 views

Noise resilient, hot-pluggable communication bus over long cables?

I'm working on a setup, where we need communication between a master device and several slave microcontrollers distributed out in different boxes connected by "long" cat5e cables (3-10 meters) The ...
2
votes
0answers
733 views

Bus interface for short distances, many device data exchange - CAN, RS485? + characteristic impedance and media capacitance

I ran into some troubles trying to design a wired bus which will connect in about 64 testing devices. My first choice of mind was CAN bus, known of it's reliability and low EMC interference. However, ...
2
votes
0answers
59 views

Controller Area Network CANIDT

I am learning CAN protocol. It is a dumb question about CANIDT register. What is the link between Tag Identifier and Message Object. Is it arbitrary set by the programmer or is it linked with actual ...
2
votes
0answers
5k views

STM32F429 HAL library CAN_Transmit timeout

I'm having a bit of trouble with the ST32CubeF4 v1.13.0 example of a CAN network. I'm using an STM32F429 discovery board, but I have ported over the CAN network example from the STM324x9_EVAL board. I ...
2
votes
0answers
106 views

Do you consider this design as an application layer on top of the CAN protocol?

This is a follow up question from my previous question about How do I program 2 CAN nodes to transmit continuously in succession? I'm planning to add another layer on top of the CAN protocol and I ...
1
vote
1answer
39 views

Addressing scheme with CAN bus

I'm going through some addressing schemes with CAN bus. I came across this post: Most efficient way to handle addressing / termination in a daisy-chained CAN bus? There's a solution explained called ...
1
vote
0answers
51 views

Sending messages between CANs FD with different bitrates

In my team we are performing some CAN FD tests. We are trying to extend our current tests for classic CAN to cover FD and while trying to send message between CANs FD with different bit-rates we have ...
1
vote
0answers
45 views

Use “basic CAN” if “full CAN” is available?

From all I've read about both types my conclusion is that the only reason for using "Basic CAN" is to make message handling easier: I have to care about only one buffer. One big drawback is ...
1
vote
1answer
45 views

How can a single CAN transreceiver be connected to two types of connectors?

I would like to connect a CAN transreceiver to the db9 connector and at the same time CAN line has to go another circuit. Is it possible to use only single transreceiver and have both access from ...
1
vote
3answers
116 views

CAN Bus Dominant and Recessive?

Why does CAN Bus represents signals with an inverted logic, high voltage for a logic 0 and low voltage for a logic 1? Is there any advantage in doing so?
1
vote
0answers
27 views

CAN Bus Voltage Discrepancy

I’m currently using a sysWORXX USB-CANmodul1 to communicate with a Maxim MAX3051 CAN Transceiver on a custom PCB of mine. I've been having issues with the modul1 losing connectivity with the board. ...
1
vote
0answers
47 views

Canbus bit stuff Error

I was communicating two stm32f4 discovery board and i wanted to create some failure scenario to take precautions. I shorted CANH & CANL and pulled VCC, GND respectively. But now my both of board ...
1
vote
1answer
42 views

Canbus over canberry with raspberry pi two messages together at the same time

Im using a canberry with raspberry pi. Is there any way possible to send two messages at the same time with same id and be received by the other raspberry without any particular chance of getting a ...
1
vote
2answers
59 views

Can we connect a DAQ to a micro-controller via a CAN bus?

I want to establish communication between an Arduino to a DAQ that I am using from DEWESOFT called the Dewe 43-A. The DAQ has 2 CAN bus ports according to its specs, and I was wondering if I can ...
1
vote
1answer
583 views

Overloading of ESD protection diode on CAN lines through current during Bulk current injection - test

I have a design checklist question for a typical CAN circuit for an automotive application as below : The question is related to the ESD suppressor : "Was a capacitor parallel to the diode considered, ...
1
vote
0answers
262 views

CANopen SYNC object and synchronous window length

In CANopen specification there is an object called Communication Cycle Priod [1006h]. This is the time interval between two consecutive SYNC objects. There is also another object called Synchronous ...
1
vote
1answer
87 views

Change operational mode of CAN transceiver

I have two MCP2515 stand-alone CAN controllers with an SPI interface, two TJA1042 CAN transceivers, and two Arduino Uno boards. As you may know, TJA1042 has two operational modes: sleep mode normal ...
1
vote
0answers
222 views

How does the data rate of a CAN bus affect the value of the capacitor used in a split termination scheme?

I'm helping to redesign the CAN bus of an electric car, and we're interested in achieving higher data rates of up to 8 Mbit/s. We have a transceiver selected, a CMC to reduce inductively coupled ...
1
vote
0answers
775 views

STM32F407VG DISCOVERY BOARD micro controller CAN messages

I am wondering if anyone is familiar with any STM32f407VG micro-controllers? If so, I am having some problems configuring a CAN driver. I can run the demo code, which is set to a loop-back mode, but ...
1
vote
0answers
383 views

CAN Bus Debug MCP25625 CAN to SPI to USB (MCP2210)

I am trying to build a CAN - USB converter using the MCP 25625 chip to convert CAN to SPI first and then receive/send the SPI data on an MCP 2210 chip of SPI interface and consequently convert to USB. ...
1
vote
1answer
358 views

MCP25625 LoopBack Mode Reponse

If anyone has worked with the CAN MCP25625 chip in the past I would like to know if in the loop back mode if we load and send data on the TXB0 buffer are we supposed to receive a RXB0 buffer ready and ...
1
vote
0answers
406 views

Is it possible to flash an Atmel SAM E70 through a CAN bus without a JTAG?

My circuit board needs to have both a MCU and a CAN connection so it would be nice to be able to cut down on some of the components.
0
votes
0answers
24 views

STM32 F334R8 and F103C8T6 Can Bus Connection Problem. HAL_CAN_ERROR_PARAM

I am trying to create a can-bus communication network between F103C8T6 and F334F8 with MCP2551 but I cannot send messages. After 3 times of calling HAL_CAN_AddTxMessage communication fails. I debugged ...
0
votes
1answer
54 views

0x7E8 to 0x7FH on the CAN bus?

I am currently trying to understand the working of the CAN bus. I understand that when we connect a CAN bus logger to the OBD2 port in a car we will be able to view the CAN traffic (raw CAN frames) ...
0
votes
0answers
24 views

How to fix CAN Bit Stuffing Error

Our ADAS Controller is based on Renesas RH850/U2A16 Microcontrollers. We are using Infineon TLE9255WSK Partial Network CAN Transceivers. We are using Vector CANoe Professional. When a CAN message is ...
0
votes
0answers
58 views

STM32G474 FDCAN Callback is not called. Classic frame

I have a custom board with an STM32G474RE. I use 3 CANs with 3 independent CAN tranciever on the board. I tried sendind CAN message from CAN1 to CAN3 but the message is not received. At least the ...
0
votes
0answers
35 views

CAN bus blocked state

I have a transmitter device which periodically sends CAN messages over the bus. I am using an esp32 microcontroller to receive these messages, using a transceiver in between. When I start the ...
0
votes
1answer
24 views

MCP2551 sending with 4V differential voltage

I'm working on a CAN Bus Module with ATMEGA328P, MCP2515 and MCP2551. In my test setup, I have the module connected to a Raspberry Pi with a CAN hat. The communication works in general - both nodes ...
0
votes
0answers
38 views

How to plug CAN Bus radar to Pixhawk Cube Orange flight controller?

I want to plug my radar (which is a CAN Bus) to my Pixhawk flight controller. (https://ardupilot.org/copter/docs/common-thecubeorange-overview.html)I bought the radar from China and the site i bought ...
0
votes
1answer
35 views

How can you calculate the effective transfer rate of canbus?

The things i found out are that the baudrate and maximum bits of the message matters. But i don't understand how they exactly calculate the transfer rate.
0
votes
2answers
45 views

CAN bus communication. Issue with two slaves having same CAN ID

Does anyone know if it is possible to have CAN offsetting in case two slaves in same circuit transmits different data in same ID?? I have two slaves with same CAN ID transmitting data and I cannot ...
0
votes
0answers
32 views

MCP25625 is not sending CAN messages out from chip

I was using MCP2515 and now I want to use MCP25625. I connect the new chip MCP25625 and observe 1st SPI interface and it's working properly because I can read and write register correctly. The CAN ...
0
votes
1answer
60 views

dsPIC33EV32GM104 CAN bus transmit issue

I created a CAN transmit project for dsPIC33EV32GM104 using MCC plugin. I used the example program given in the can1.h. When i try to debug and check the functionality of CAN bus i am getting struck ...
0
votes
0answers
30 views

Wireless CAN bus analysis latency

I'm developing a CAN bus to WiFi bridge for car diagnostics using some commercial interfaces but sometimes I see latency can get high and some ECU's does not work, but some others do work, for example,...
0
votes
0answers
58 views

Normal Mode of CAN Controller in STM32L476 Nucleo Board is Not Working

I am using STM32L476RG Nucleo board which contains only one CAN controller(bx_CAN1) and SN65HVD233 as a CAN Transceiver. I could able to test the CAN controller by using "LOOPBACK Mode". ...
0
votes
0answers
37 views

CAN line collision detection with XOR gate

I want to connect multiple devices via UART but want to benefit from CAN physical layer its noise resistance and mutlimaster capability. Also I need to detect whether or not there is collision on the ...
0
votes
0answers
41 views

CAN bus sensors

I want to replace a broken CAN bus sensor with a new one. How can I do it? I don't have node ID of the broken sensor. Is there a way I can find the node ID of previous sensor? It's an angle sensor (...
0
votes
1answer
145 views

CAN Bus with RS485 CAN HAT for Raspberry PI

I have set up a CAN bus between 2 STM32 Nucleo's, where one is only sending messages and the other one is only reading them. This works, I have also validated this by connecting them to another CAN ...
0
votes
0answers
48 views

How to “clean” a DC brushed motor : noise on CANbus even without moving!

We have very odd problem with a DC brushed geared motor that we are driving with a classical H-bridge chopper (20kHz PWM at the moment). The motor kinda looks like a Mabuchi from an R/C car but with ...