Communication between bus interface and computer (v) can bus

Source: Internet
Author: User

??

    1. Can Network Diagram

??

    1. What are the features of can?

      ??

The can protocol has the following characteristics.

???

(1) Multi-master control?

When the bus is idle, all cells can start sending messages (multi-master control). The first unit to access the bus can get the right to send (Csma/ca way).

When multiple cells start sending at the same time, the unit that sends the high-priority ID message is given the right to send.

??

? (2) What is the message sent?

In the can protocol, all messages are sent in a fixed format. 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, according to the identifier (Identifier??). ID) determines the priority level. 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 unit that wins the arbitration (which is judged to be the highest priority) can continue to send messages, and the unit that loses the quorum immediately stops sending and receives the work.

??

? (3) What is the softness of the system?

The unit connected to the bus does not have information similar to "address". Therefore, when adding a unit to the bus, the hardware and software of the other units connected to the bus and the application layer need not be changed.

??

(4) Communication speed?

Depending on the size of the entire network, you can set the appropriate communication speed.

in the same network, all units must be set to a unified communication speed. even if the communication speed of one unit is different from the others, the unit also outputs the wrong signal, which hinders the communication of the whole network. Different networks can have different communication speeds.

? (5) Remote Data request?

You can request other cells to send data by sending a "remote control frame"?

??

(6) Error detection function • Error notification function • Error recovery function? All units can detect errors (Error detection function).

The unit that detects the error immediately notifies all other units (Error notification function) at the same time.

The unit that is sending the message will force the end of the current send once it detects an error. The unit that forces the end of the send will repeatedly resend the message until it has been successfully sent (Error recovery feature).

??

? (7) fault closed?

Can determine whether the type of error is a temporary data error on the bus (such as an external noise, etc.) or a persistent data error (such as a unit internal failure, drive failure, disconnection, etc.). This feature allows the unit that caused this failure to be isolated from the bus when a continuous data error occurs on the bus.

??

? (8) connection?

Can bus is a bus that can connect multiple units at the same time. The total number of cells that can be connected is theoretically unlimited. But the number of units that can actually be connected is limited by the time delay on the bus and the electrical load. Reduce communication speed, increase the number of connected cells, and increase the communication speed, the number of connected units can be reduced.

??

??

??

??

Reference:

??

    1. Can bus protocol explanation

Communication between bus interface and computer (v) can bus

Related Article

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.