Can basic knowledge

Source: Internet
Author: User

The Can:controller area Network is an ISO-standardized serial communication protocol.

The can controller determines the bus level based on the potential of the two wires. The bus electric divide is the dominant level and the recessive level, caricatures. The sender sends the information to the receiver by changing the bus level.

In the can protocol, all messages are sent in a fixed format, and when the bus is idle, all units connected to the bus can start sending new messages. When more than two units start sending messages at the same time, the identifier ID determines the priority. The ID does not represent the destination address of the send, but rather the priority of the message that accesses the bus. When more than two units start sending messages at the same time, each bit of each message ID is compared to a quorum-by-arbitration basis. The winning unit of the arbitration can continue to send a message, and the unit that loses the quorum immediately stops sending and receives the job.

Can communication is done through 5 types of frames:

A data frame used to send a cell to a receiving unit to transmit data to a frame.
A remote control frame for the receiving unit to request data from a sending unit with the same ID.
An error frame used to notify the wrong frame to other units when an error is detected.
Overload frame for the receiving unit to notify the frame that it is not ready to receive.
Frame interval, a frame that separates the data frame and the remote control frame from the previous frame.

Bit timing:

The number of bits per second sent by the sending unit in a non-synchronous condition is called the bit rate. A bit can be divided into 4 segments

Sync Segment SS
Propagation time period PTS
Phase Buffer Segment 1 PBS1
Phase Buffer Segment 2 PBS2

These segments are made up of the smallest units of time that can be called the TQ (Quantum).

The so-called sampling point is the point that reads the bus level and reads the level as a bit value. The position is at the end of the PBS1.

Can bus idle is in hidden level.

Can basic knowledge

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.