CAN bridge communication system, method and device and storage medium

A communication system and communication method technology, applied in the field of CAN bridge communication system, can solve problems such as the difficulty of CAN bridge design, and achieve the effects of widening models, reliable storage and forwarding, and weakening constraints

Pending Publication Date: 2022-04-15
MORNSUN GUANGZHOU SCI & TECH
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This also means that for every additional channel of CAN, there is one more CAN controller peripheral of the microcontroller. However, there are generally only two CAN controller peripherals of mainstream microcontrollers on the market at most, which is also four-channel CAN controller peripherals. and above CAN bridge design brings difficulty

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • CAN bridge communication system, method and device and storage medium
  • CAN bridge communication system, method and device and storage medium
  • CAN bridge communication system, method and device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0045]In order to expand the CAN communication channel, a master controller is often used in the prior art to connect with multiple slave controllers, so as to realize the expansion of the CAN communication channel. However, since there will be no connection between multiple slave controllers, when When the data received by a slave controller needs to be sent to other slave controllers, the data needs to be sent to the master controller for processing and then sent to the corresponding slave controller. This master-slave method means that all Data processing must go through the main controller, so the main controller is equivalent to an intermediate processing module, which increases the complexity of data conversion and conversion transmission time; moreover, once the main controller fails, the entire communication system will collapse.

[0046] In addition, since there are generally only two CAN interfaces of mainstream microcontrollers currently on the market, this also brin...

no. 2 example

[0077] In this embodiment, a communication method based on a dual-master CAN bridge is provided, which is applied to the CAN bridge communication system as described in the first embodiment, and the CAN bridge communication system includes:

[0078]Two microcontrollers; each of the microcontrollers is provided with two CAN interfaces, and each CAN interface of each of the microcontrollers is used to connect with a CAN transceiver module;

[0079] The CAN interface is used to receive data sent by the CAN transceiver module;

[0080] The peripheral SPI interface is used to receive data sent by another microcontroller or send data to another microcontroller;

[0081] Described CAN bridge communication method comprises the following steps:

[0082] When data is received by its own CAN interface or peripheral SPI interface, identify the target CAN interface of the data;

[0083] When it is recognized that the target CAN interface of the data is the CAN interface of the same micro...

no. 3 example

[0105] In this embodiment, a computer device is provided. The computer device may be a terminal, and the computer device includes a processor connected through a system bus, a memory, a communication interface, a display screen, and an input device. Wherein, the processor of the computer device is used to provide computing and control capabilities, the memory includes an operating system in a non-volatile storage medium and a computer program running environment, and the communication interface is used for wired or wireless communication with an external terminal , the wireless way can be realized through WiFi, NFC (Near Field Communication) or other technologies. When the computer program is executed by the processor, the CAN bridge communication method described in the second embodiment is realized.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a CAN network bridge communication system, method and device and a storage medium. The system comprises: two microcontrollers, each of which is provided with two CAN interfaces; the two microcontrollers communicate with each other through two pairs of master-slave peripheral SPIs (Serial Peripheral Interface); the microcontroller is used for identifying a target CAN interface of the data when a CAN interface of the microcontroller or a peripheral SPI interface receives the data, and directly forwarding the data to the corresponding target CAN interface when identifying that the target CAN interface of the data is the CAN interface of the same microcontroller; and when the target CAN interface of the data is identified as the CAN interface of the other microcontroller, forwarding the data to the other microcontroller through a peripheral SPI (Serial Peripheral Interface). According to the invention, the time for processing the notification signal of the slave computer by additionally interrupting the SPI single host communication is reduced, the number of CAN channels is met, and meanwhile, the high throughput up to 6000 fps is ensured, so that the limitation of a multi-channel CAN network bridge in the aspect of microcontroller type selection is weakened.

Description

technical field [0001] The present invention relates to the technical field of communication, in particular to a CAN bridge communication system, method, device and storage medium. Background technique [0002] CAN is the abbreviation of Controller Area Network (CAN). It is an ISO international standardized serial communication protocol and one of the most widely used field buses in the world. The CAN bus communication interface inherits the functions of the physical layer and data link layer of the CAN protocol, and completes the framing processing of communication data; abolishes the traditional station address coding, and replaces it with coding of communication data blocks, so that The number of nodes is not limited in theory; the CAN bus adopts a multi-master competitive bus structure, which has the characteristics of multi-master operation and decentralized arbitration serial bus and broadcast communication. [0003] The theoretical transmission distance of CAN bus da...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/40H04L12/46
Inventor 不公告发明人
Owner MORNSUN GUANGZHOU SCI & TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products