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.
839
questions
7
votes
1
answer
3k
views
Multiple devices on a CAN bus via the OBDII diagnostic connector in car
We have an aftermarket cruise control installed (in Suzuki Swift), which is connected to the OBD-II connector to access the CAN bus (according to the installation manual, it uses just CAN-L and CAN-H ...
2
votes
2
answers
2k
views
UDS with more than eight bytes
The unified diagnostic services (UDS) protocol in ISO 15765-4 seems to be specifically designed for bus systems with a message length of eight bytes (for example, CAN). Now, new transport layers like ...
3
votes
2
answers
4k
views
My code tries to configure the CAN device, but it never leaves configuration mode. Why?
I'm using a PIC32MX534F064L, and I just started working with the CAN module. The first thing I tried was using the examples from Microchip. None of them worked. The basic problem is these lines:
<...
7
votes
2
answers
3k
views
What does this CAN bus waveform mean?
I am trying to get the ECAN functionality working on a dsPIC33. I have two identical dsPIC33s, each with identical CAN transceivers connected by a short (3 inch) bus. One is transmitting, one is ...
14
votes
4
answers
10k
views
Implementing a CAN protocol layer in software
Background
I'm developing a project which will require the modest microcontroller specs of:
8 12-bit, 10kHz ADCs
1kB of RAM
48-QFN or smaller footprint
20kbps daisy-chainable noise-resistant and ...
3
votes
4
answers
3k
views
Where can I get CiA 302, CiA 304 and CiA 305?
Where do I find the following CANopen documents?
CiA 302
CiA 304
CiA 305
2
votes
3
answers
3k
views
CAN bus terminal
I have a CAN bus network that I want to test. I want to send CAN messages over my computer and see the responses. I have a Microchip kit with CAN that sends the responses over USB Mini and can be read ...
5
votes
1
answer
5k
views
Running a CAN sample project on LPCXpresso LPC11C24
The LPC11C24 has a on-chip CAN transceiver and a section of ROM with CAN driver software. I am trying to run the can_onchip sample project on the LPCXpresso board. ...
5
votes
1
answer
282
views
Developer/application board with a CAN/SD card
We have to develop a data logger. I should get some data over CAN (1 MBit/s), compress this data and save it to an SD card. To save time, we would prefer to use as much existing hardware and ...
9
votes
6
answers
10k
views
How to check the CAN bus is free or not
I read a lot of stuff regarding CAN bus arbitration, but it didn't answer my questions.
If one node is already transmitting the data on the bus and in between another node wants to initiate the data ...
7
votes
3
answers
3k
views
GND difference between CAN nodes?
I am running a short (2 m) CAN bus with about 20 nodes. 1 Mbit/s speed, PIC 18F2580s and 18F4580s with MCP2551 transceivers, 10 MHz (with PLL to 40 MHz) crystal oscillators. Both ...
3
votes
1
answer
327
views
MCF5253 CAN controller transmission problem
I am using the MFC5253 controller. It has two CAN channels, CAN 1 and CAN 2. In my project, I am using both of them. Their registers are the same, except for the name (1 and 2).
I can transmit and ...
2
votes
2
answers
1k
views
Debugging a LPC23XX based CAN bus sniffer
I am trying to get a CAN bus sniffer working, based on LPC2368. I keep getting a bus error interrupt, of type "form error". I suspect my timing settings. I verified that the sending party is ...
10
votes
3
answers
2k
views
Selecting a network layer over CAN bus
I am planning on using CAN bus in an industrial automation application, however I'm having a hard time deciding how to implement the network layer. Does anyone here have any recommendations for a ...