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.
161
questions with no upvoted or accepted answers
4
votes
0
answers
152
views
Is there an antenna problem with CAN Bus selectable split termination header pin?
I am trying to implement a jumper-selectable CAN Bus termination with a SPLIT configuration, as shown in this Analog Devices example:
https://www.analog.com/media/en/technical-documentation/user-...
4
votes
0
answers
189
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-...
3
votes
0
answers
403
views
Can RS-232 DB-9-compatible cable be used as a physical medium between two CAN bus DB-9 ports?
Note: I am not talking about connecting an RS-232 device to a CAN bus!
I am strictly interested in reusing a RS-232 cable with two DB-9 connectors (one male and one female) to connect two CAN devices, ...
3
votes
0
answers
652
views
Home automation using CAN bus
I am planning to make a prototype for wired home automation devices, and I am thinking of using CAN bus for communication between nodes and Gateway.
The way I am planning to build it, there is one ...
2
votes
0
answers
145
views
Can I (mis-)use a CAN bus line for phantom power?
I just looked at the datasheet of the TJA1050 CAN transceiver and noticed that both CANL and CANH tolerate -27 to +40 V.
Standards aside, does that mean I could pull the entire CAN bus to e.g. 12V to ...
2
votes
0
answers
206
views
CAN Bus - Getting EOF on 6th bit of EOF
I'm debugging my robot with a CAN bus for communication between the main controller unit and all motor controllers.
Recently I'm getting several cases where I'm getting an error frame at the 6th bit ...
2
votes
0
answers
144
views
Sinusoidal voltage on CAN bus signal wires when powered from 3 phase switching power supply
I am using CAN bus to communicate between this BLDC motor with a built in driver and a real-time control computer which uses a galvanically isolated Microchip MCP2561FDE/SN CAN transceiver. ...
2
votes
0
answers
202
views
STM32F107 CAN software driver does not work
I am using ST drivers to use CAN bus on an STM22F107 according to the code below. It does not work. The code is as below and is available here.
...
2
votes
0
answers
164
views
Best approach to program a PLC using dbc file? (CAN communication)
I'm pretty new using CAN Communication but I need to program a Phoenix Contact PLC in Structured Text. The PLC should communicate with a motor that uses CANOpen protocol. The only resource I have is ...
2
votes
0
answers
202
views
Using CAN bus on a NucleoH743 with Mbed
CAN bus is not working on my project. We are using a Nucleoh743 (STM32h743) programming it with mbed (Mbed OS 6.13)
I have made sure the bus is properly made, with the correct termination resistors, ...
2
votes
0
answers
166
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
0
answers
137
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
0
answers
266
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
0
answers
3k
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
0
answers
290
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
0
answers
162
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
0
answers
1k
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
1
answer
498
views
MCP25625 loopback mode reponse
In the loopback mode of the CAN MCP25625, if we load and send data on the TXB0 buffer, are we supposed to receive a RXB0 buffer ready and filled with data in the TXB0 buffer?
If yes, the following are ...
2
votes
0
answers
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
0
answers
114
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
1
answer
38
views
Hot pluggable CAN collections of devices
I'm trying to create a network of hot pluggable collections of iot devices into a bus (Containing Device 'A') that will always be present. There could be up to 50 collections with each collection ...
1
vote
0
answers
87
views
CAN bus accidentally swapped TX and RX is it possible to solve (in firmware) without board rework
I am interfacing an isolated can transceiver with my microcontroller. My schematic is given below.
Accidently TXD is connected to RXD of microcontroller and RXD is connected to TXD of the ...
1
vote
0
answers
35
views
No connection between the steering wheel and the AgOpen controller with CAN
I'm developing the AgOpen navigation system for a tractor and I'm having trouble connecting the controller to the Keya steering wheel via CAN bus. Everything was working fine at home on the desk, but ...
1
vote
0
answers
45
views
STM32G4 brings down CAN network when exposed to electrical noise
I have a CAN 2.0 network (classic can) running at 500 kb/s. I have multiple STM32F4 nodes running the stm32 HAL CAN driver with no issues. I have another node running a STM32G4 with a FDCAN driver ...
1
vote
0
answers
80
views
Debugging CAN bus
My Ford S-Max 2014 seems to have issues with the CAN bus, and refuses to start. When hooked up to Fords own diagnostic tools, it complains that the engine ECU doesn't reply. The ECU gets power, and ...
1
vote
0
answers
294
views
Is a 100MHz oscilloscope good enough for SPI, UART, I2C and CAN?
I am having trouble with microcontrollers (STM32s mainly) on custom PCBs. I want to get an oscilloscope to help me solve these issues. Naturally budget is small so I want to know is if a 100 MHz ...
1
vote
0
answers
78
views
Effects of baud rate / bit timing for CANBUS
I'm seeking some advice about eye diagrams for analysing node behaviour on CAN for a prototype system.
I've been given this eye diagram, which is generated using Vector's .scope Canalyser tool and ...
1
vote
0
answers
64
views
Question on unshielded cabling for CANBUS physical layer
Normally, I'd advocate use of shielded twisted pair for CANBUS networks but there have been some questions recently about using unshielded cabling to achieve the same aim.
From what I can see there ...
1
vote
0
answers
139
views
Sharing CAN bus to two microcontrollers without increasing bus load
I have 2 MCUs in one PCB that I want to communicate via CAN to other devices far away.
Instead of adding two CAN transceivers and becoming two node loads to the network, I thought to combine the two ...
1
vote
0
answers
420
views
Orange Pi 5 CAN-bus issues
The bus-topology is like this. The CAN-bus has termination resistor at the inverter and in the Waveshare USB/CAN dongle.
...