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

A method for automatically assigning addresses to identical nodes on a communication bus

A communication bus and the same node technology, applied in the direction of digital transmission system, data exchange network, electrical components, etc., can solve the problem that the address on the bus of the node cannot be automatically assigned, so as to improve automation and intelligence capabilities and reduce manual operations Steps, the effect of avoiding bus data errors

Active Publication Date: 2020-10-13
BEIJING MECHANICAL EQUIP INST
View PDF4 Cites 0 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
  • A method for automatically assigning addresses to identical nodes on a communication bus
  • A method for automatically assigning addresses to identical nodes on a 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 principles 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 ...

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 present invention relates to a method for automatically allocating addresses for the same node on a communication bus, comprising: step S1, setting a 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 not, Execute step S2, yes, execute step S3; step S2, judge whether the address of this node conflicts with the stored address, yes, execute step S3, no, execute step S5; step S3, assign the initial address to the node as the minimum address on the bus No. "1"; step S4, judge whether the address of this node conflicts with the stored address, if no, execute step S5, if yes, increase the address of this node by 1, and execute step S4 again; step S5, change the address assignment flag to address assigned , and remain unchanged. The present invention avoids address redistribution when the CAN bus is changed due to node movement, automatically rearranges repeated addresses in time, and avoids bus data errors caused by address repetition.

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 Patents(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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products