CAN bus node address distribution method and system

A technology of CAN bus and node address, which is applied in CAN bus node address allocation method and system field, and can solve problems such as conflicts, waste of resources, unreasonable address allocation, etc.

Inactive Publication Date: 2018-11-23
武汉高仕达电气有限公司
View PDF5 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The implementation of the above methods not only wastes resources, but also may cause unreasonable address allocation, conflicts, etc.

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 bus node address distribution method and system
  • CAN bus node address distribution method and system
  • CAN bus node address distribution method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The principles and features of the present invention are described below in conjunction with the accompanying drawings, and the examples given are only used to explain the present invention, and are not intended to limit the scope of the present invention.

[0036] Such as figure 2 Shown, on the one hand, the present invention provides a kind of CAN bus node address distribution method, comprises the following steps:

[0037] Step 1, the slave node controller generates a set of random numbers through the random number generator, and the set of random numbers constitutes the temporary CAN network node address of the slave node, and the set of random numbers includes sequentially generated 11-bit or 29-bit random numbers Number, each random number takes a value of 0 to f, and the temporary CAN network node address of the slave node is formed by the 11-bit or 29-bit random number;

[0038] Step 2, the slave node sends a data frame to the master node, and the data frame i...

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 bus node address distribution method and a system. The method comprises the following steps: a slave node controller produces a group of random number through a random number generator, the group of random number forms a temporary CAN network node address of the slave node; the slave node sends a data frame to a master node; the data frame contains the temporary CANnetwork node address of the slave node and a command for acquiring the address; the master node receives the data sent by the slave node, and distributes the corresponding address to the slave node according to the temporary CAN network node, and correspondingly generates storage table entries; the slave node receives the data, modifies the temporary address of the slave node as the address distributed by the master node. The method disclosed by the invention effectively solves the problems that the software and hardware resources are wasted, and the address distribution is unreasonable and conflict since a dial switch and a pull-up resistor and a pull-down resistor are adopted, or the program is directly modified in the prior art by adopting the method of automatically generating the random number node address by the slave node and requesting the distribution from the master node.

Description

technical field [0001] The invention relates to the embedded field, in particular to a CAN bus node address allocation method and system. Background technique [0002] CAN is the abbreviation of Controller Area Network. It has high reliability and good error detection ability. It is one of the most widely used field buses in the world. It is widely used in automotive electronics, industrial measurement and control and industrial automation. and other fields. [0003] CAN network contains multiple nodes (such as figure 1 shown), they are connected together by the CAN bus, and each node can monitor the communication on the CAN bus. [0004] Each node in the CAN network must have its own address, and the CAN protocol stipulates that the length of the address must be 11 bits (standard frame) or 29 bits (extended frame). However, the method of obtaining the address is not stipulated in the CAN protocol. [0005] Usually, the address allocation is performed in the way of prese...

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): H04L29/12H04L12/40
CPCH04L2012/40215H04L61/5038H04L61/5046
Inventor 张智雄
Owner 武汉高仕达电气有限公司
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