Method for automatically allocating address to same node on communication bus

A technology of the same node and communication bus, applied in the direction of digital transmission system, electrical components, transmission system, etc., can solve the problem that the address on the bus of the node cannot be automatically assigned, so as to improve the automation and intelligence ability and avoid bus data errors , Reduce the effect of manual operation steps

Active Publication Date: 2018-03-23
BEIJING MECHANICAL EQUIP INST
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] In view of the above-mentioned analysis, the present invention aims to provide a method for automatically assigning addresses to the same nodes on the communication bus, in order to solve the problem that there are multiple identical device nodes connected to the same CAN bus in the prior art, and this node cannot be automatically assigned on the bus. Many technical issues such as the address on

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
  • Method for automatically allocating address to same node on communication bus
  • Method for automatically allocating address to same node on communication bus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] Preferred embodiments of the present invention will be specifically described below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of the application and are used together with the embodiments of the present invention to explain the principle of the present invention.

[0037] According to a specific embodiment of the present invention, a method for automatically assigning addresses to the same nodes on the communication bus is disclosed, including:

[0038] Step S1, setting the global variable address allocation flag, initializing the address allocation flag as address unallocated, judging whether the address allocation flag of this node is unallocated, if no, go to step S2, if yes, go to step S3;

[0039] Step S2, judging whether the node address conflicts with the stored address, if yes, execute step S3, and if no, execute step S5;

[0040] Step S3, assigning the initial address to this node as the minimum address n...

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 method for automatically allocating an address to the same node on a communication bus. The method includes the following steps: step S1, setting a global variable address allocation tag, initializing the address allocation tag as an address unallocated state, judging whether the address allocation tag of a current node is unallocated, if not, executing the step S2, andif yes, executing the step S3; step S2, judging whether an address of the current node conflicts with a stored address, if yes, executing the step S3, and if not, executing the step S5; step S3, allocating an initial address that is a minimum address number '1' on the bus to the current node; step S4, judging whether the address of the current node conflicts with the stored address, if not, executing the step S5, and if yes, adding 1 to the address of the current node, and re-executing the step S4; and step S5, switching the address allocation tag to an address allocated state and remaining unchanged. According to the method disclosed by the invention, when equipment replaces a CAN bus due to the movement of the node, the reallocation of the address can be avoided, repeated addresses can be automatically rearranged in time, and bus data errors caused by the repeated addresses can be avoided.

Description

technical field [0001] The invention relates to the field of shift control of an automatic gearbox, in particular to a method for automatically assigning addresses to the same nodes on a communication bus. Background technique [0002] Multiple identical devices are connected through the same CAN bus, and send messages at regular intervals. A device connected to the CAN bus is a node on the current bus. The messages sent by this node to the bus are used by other nodes. Each node in the bus should have a unique address. Each node on the bus follows the same communication protocol to stipulate the format, data meaning and sending cycle of each message, and the message format, data meaning and sending cycle sent by each node are the same. The communication protocol stipulates that some data in the message should be the address of the node sending the message, and each message is distinguished from which node it comes from according to the node address, so before using it, it...

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/12
CPCH04L61/103H04L2012/40215H04L61/50
Inventor 杨润宇徐晓彤袁红升
Owner BEIJING MECHANICAL EQUIP INST
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