Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

CAN bus address allocation method and device based on one-master multi-slave module

A technology of CAN bus and distribution method, applied in the direction of electrical components, transmission systems, etc., can solve the problems of inability to satisfy the indiscriminate competition of modules, and the address distribution requirements of modular equipment plug-and-play, etc., so as to improve reliability and safety effects

Inactive Publication Date: 2020-05-19
NR ELECTRIC CO LTD +1
View PDF2 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For the application of one-master and multiple-slave modular equipment, the traditional hardware allocation of CAN addresses cannot meet the address allocation requirements of plug-and-play modular equipment, and also cannot meet the needs of all modules competing for mastership without distinction.

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 address allocation method and device based on one-master multi-slave module
  • CAN bus address allocation method and device based on one-master multi-slave module
  • CAN bus address allocation method and device based on one-master multi-slave module

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] Embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0040] The CAN bus address allocation method based on a master multi-slave module provided by an embodiment of the present invention comprises the following steps:

[0041] Step S1: A unique device ID number is pre-stored on each module. The ID number is a 20-bit device ID number generated according to the current UTC time and the DSP hardware ID number used when each module is debugged at the factory. The device ID number of each module is unique.

[0042] Step S2: After each module starts, it listens to the CAN bus to compete for the election of the master module, and stores all module device ID numbers, and the master module assigns CAN addresses to each slave module;

[0043] After each module is powered on at the same time, it will first listen to the bus, and if it does not receive a control message from the main module within a period of time, ...

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 discloses a CAN bus address allocation method based on a one-master multi-slave module. The CAN bus intelligent address allocation method is designed for a modular CAN communication unit. Hardware IDs of all communication units are preset, node equipment competition of all module units in a CAN network is processed to serve as an owner, a main module automatically allocates addressesof all modules, and a whole set of control strategy is related to input and exit of the modules during on-line operation. According to the method, the inconvenience that the CAN ID of each module inthe CAN network is determined by depending on the external hardware address information is solved, a pure software control scheme is adopted, the hardware cost does not need to be increased, the operation flexibility and expandability of the modular system are improved to a great extent, and the stability of the system when the modules are put into and withdrawn on line is improved.

Description

technical field [0001] The invention belongs to the field of embedded systems, and relates to an address allocation technology of a modular CAN communication network, in particular to a CAN bus address allocation method and device based on a master multi-slave module. Background technique [0002] The CAN bus protocol is an ISO international standardized serial communication protocol, which is widely used in industries such as industrial automation, automobiles and ships, smart home management, and robot network interconnection. CAN bus has many advantages such as simplicity, practicality, high performance, reliability, long transmission distance and strong anti-interference ability. In the traditional CAN communication network, it is necessary to pre-set the address of each CAN communication node. These CAN addresses cannot be repeated, otherwise the communication will be abnormal. For the application of one-master and multiple-slave modular devices, traditional hardware a...

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
IPC IPC(8): H04L29/12
CPCH04L61/45H04L61/50H04L2101/627
Inventor 何嵘周强赵天恩江长青文继锋
Owner NR ELECTRIC CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products