CN102340432B - Identifier allocation strategy for vehicle-mounted CAN (Controller Area Network) bus - Google Patents

Identifier allocation strategy for vehicle-mounted CAN (Controller Area Network) bus Download PDF

Info

Publication number
CN102340432B
CN102340432B CN2010102328794A CN201010232879A CN102340432B CN 102340432 B CN102340432 B CN 102340432B CN 2010102328794 A CN2010102328794 A CN 2010102328794A CN 201010232879 A CN201010232879 A CN 201010232879A CN 102340432 B CN102340432 B CN 102340432B
Authority
CN
China
Prior art keywords
bus
ecu
format identifier
vehicle
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2010102328794A
Other languages
Chinese (zh)
Other versions
CN102340432A (en
Inventor
蔡伟杰
由毅
陈文强
熊想涛
朱祝阳
李书福
杨健
赵福全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Geely Holding Group Co Ltd
Zhejiang Geely Automobile Research Institute Co Ltd
Original Assignee
Zhejiang Geely Holding Group Co Ltd
Zhejiang Geely Automobile Research Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Geely Holding Group Co Ltd, Zhejiang Geely Automobile Research Institute Co Ltd filed Critical Zhejiang Geely Holding Group Co Ltd
Priority to CN2010102328794A priority Critical patent/CN102340432B/en
Publication of CN102340432A publication Critical patent/CN102340432A/en
Application granted granted Critical
Publication of CN102340432B publication Critical patent/CN102340432B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses an identifier allocation strategy for a vehicle-mounted CAN (Controller Area Network) bus, aiming at overcoming the defects of bad universality and expansibility, low production efficiency and the like of the traditional vehicle-mounted CAN bus system. The technical scheme of the identifier allocation strategy has the key points that in the identifier allocation strategy for the vehicle-mounted CAN bus, identifiers with standard formats of the CAN bus are divided into classes (ClassID) of massage sending periods, electrical control unit addresses (ECUAddress) of a vehicle-mounted electronic system, massage signal routing indicators (RoutingIndicator), ECU massage indexes (ECUFrameIndex) of the vehicle-mounted electronic system and the like according to an allocation strategy of sectional management. Sectional management is performed on the identifiers with standard formats of the CAN bus, so that the CAN bus system has better universality and expansibility, the production efficiency is improved, and the production cost is reduced.

Description

A kind of distribution method of vehicle-mounted CAN bus standard format identifier
Technical field
The present invention relates to the auto manufacturing technology association area, in particular, the present invention relates to a kind of distribution method of the vehicle-mounted CAN bus standard format identifier that vehicle-mounted CAN bus standard format identifier is effectively managed.
Background technology
(the Controller Area Network of controller local area network; Be called for short the CAN bus) be that BOSCH company is that modern industry is used a kind of many main frames local area network (LAN) of releasing; Belonging to the fieldbus category, is the serial communication network of distributed control of a kind of effective support or real-time control.Because its remarkable properties now has been widely used in numerous industries such as industrial automation, various control equipment, the vehicles, Medical Instruments and building, environment control.The CAN bus is a kind of many host buses, and communication media can be twisted-pair feeder, coaxial cable or optical fiber.Traffic rate can reach 1MBPS.The integrated physical layer and the data link layer functions of CAN agreement in the CAN bus communication interface can be accomplished the framing of communication data is handled, and comprises that position fillings, data block coding, cyclic redundancy check, priority level differentiation etc. work.
Maximum characteristics of CAN agreement are to have abolished traditional station address coding; And replace communicating data block is encoded; The advantage that adopts this method is to make the node number in the network unrestricted in theory, and the identifier of data block is divided into two kinds of reference format and extended formats, and the reference format identifier is made up of 11 bits; The extended format identifier is made up of 29 bits, therefore can define 2 11Or 2 29Individual different data block.This mode by digital coding also can make different nodes receive identical data simultaneously, and this point is very useful in dcs.Data segment, length is at most 8 bytes, can satisfy the general requirement of control command, operating state and test data in the common industrial circle, and simultaneously, it is long that 8 bytes can not take bus time, thereby has guaranteed the real-time of communication.The CAN agreement adopts CRC (CRC) and the corresponding error processing capacity can be provided, and has guaranteed reliability of data communication.In addition; The CAN bus has adopted many main frames competitive mode bus structures; Have the operation of many main websites and disperse the universal serial bus of arbitration and the characteristics of broadcast communication; On the CAN bus arbitrary node can be at any time on one's own initiative on network other node send information and be regardless of primary and secondary, therefore can between each node, realize free communication.The remarkable characteristic of CAN bus, high reliability and unique design more and more receive the attention of industrial quarters, and have been acknowledged as one of the most promising fieldbus.The CAN bus protocol is by International Standards Organization's authentication, technological comparative maturity, and control chip is commercialization, and cost performance is high, is specially adapted to the communication between the distributed measurement and control system.
Communication data in the CAN bus network is formed transmission unit with specific form, is called message, and message is divided into four kinds of set forms such as Frame, remote frame, erroneous frame and overload frame.Wherein, Frame and remote frame and application layer close relation are main communication messages.
Frame and remote frame are all used identifier, the sign that identifier is unique message carry the implication of data, and defined the message priority, be used for bus contention as the main composition composition of arbitration.As long as bus is idle, any node can begin to send message, if the node more than 2 or 2 begins to transmit message simultaneously, so just has bus access conflict.Position arbitration through using identifier can solve this conflict, and a position arbitration mechanism guarantees that information and time all can not lose, during the arbitration; The controller of each node all can compare the level of transmission position and monitored bus level, if level is identical, then continues to send next bit; If what send is a recessive level and the bus level monitored is the dominance level; So, this node just loses arbitration, must withdraw from transmit status.Therefore the coding structure of identifier is great for performance index influences such as the real-time of application system, reliabilities.
High speed development along with automotive electronics; The control of automobile becomes increasingly complex; Control intellectuality and network communication become the development trend of automotive electronics, and wherein the CAN bussing technique is generalizable on automobile, and the starting stage that is distributed in system design of its identifier will design.The present general distribution method of identifier neither one of CAN bus in the automobile production, thus cause the versatility of CAN bus system and autgmentability poor, and production efficiency is low.
Summary of the invention
It is poor that the present invention mainly solves the versatility and the autgmentability of existing vehicle-mounted CAN bus system, the technical problem that production efficiency is low; A kind of distribution method of the reference format identifier being carried out the vehicle-mounted CAN bus standard format identifier of sectional management is provided.
For realizing above-mentioned purpose; The present invention adopts following technical scheme: a kind of distribution method of vehicle-mounted CAN bus standard format identifier, the reference format identifier of CAN bus is divided into classification Class ID, in-vehicle electronic system ECU address ECU Address, the signal Route Distinguisher position Routing Indicator of message and four parts such as message index ECU Frame Index of in-vehicle electronic system ECU that message sends the cycle by the distribution method of sectional management.The reference format identifier of CAN bus is divided into four parts, and each part defines separately according to actual conditions, thereby makes the CAN bus system have better generality and autgmentability.
As preferably; The Bit 10 of the reference format identifier of said CAN bus, Bit 9 totally 2 be defined as Class ID; Bit 8 to Bit 5 totally 4 be defined as ECU Address, 4 of Bit are defined as Routing Indicator, Bit 3 to Bit 0 totally 4 be defined as ECU Frame Index.The figure place of four parts is divided as required, begins from highest order, and Bit 10,9 two of Bit are distributed to Class ID; Distribute to ECU Address for ensuing four, 4 of Bit are defined as Routing Indicator, distribute to ECU Frame Index for remaining minimum four.The position arbitration of reference format identifier is arbitrated from highest order Bit 10 beginnings successively, and numerical value is more little, and priority level is high more.
As preferably, the Class ID of reference format identifier is divided into 4 priority levels, according to the different importance and the urgency of message, for the Class ID of the reference format identifier of this message distributes a priority level.Class ID divides according to the different importance and the urgency of message; Being divided into is four classifications: Class 0~Class 3; Class 0 corresponding binary value is 00; Class 1 corresponding binary value is 01, and Class 2 corresponding binary values are 10, and Class 3 corresponding binary values are 11; It is the shortest that the message of Class 0 sends the cycle, and it is the longest that the message of Class 3 sends the cycle.
As preferably; The ECU Address of reference format identifier is divided into 16 priority levels; According to the safety and the power requirement of the in-vehicle electronic system that links to each other with said CAN bus, the ECU of each in-vehicle electronic system distributes unique, a fixing ECU Address.The safety of in-vehicle electronic system and power require high more; The value of the ECU Address that its ECU is distributed is more little; The Bit 8 to Bit 5 of reference format identifier totally 4 be defined as ECU Address; Can all distribute unique, a fixing ECU Address for the ECU of each in-vehicle electronic system for 16 in-vehicle electronic systems distribute ECU Address at most, unappropriated ECU Address be as reserving extended address; Distribute to the in-vehicle electronic system that increases newly, improve the autgmentability of CAN bus system.
As preferably, the Routing Indicator of reference format identifier is divided into 2 priority levels, whether directly carries out the signal route through gateway according to message, for the Routing Indicator of the reference format identifier of this message distributes a priority level.The message that directly carries out the signal route through gateway has higher priority level, then to Routing Indicator position 0, otherwise Routing Indicator position 1.
As preferably; The ECU Frame Index of reference format identifier is divided into 16 priority levels; The different importance and the urgency of the message that sends according to same in-vehicle electronic system ECU are for the ECU Frame Index of the reference format identifier of this message distributes a priority level.ECU Frame Index is the message index of in-vehicle electronic system ECU; The different importance and the urgency of the message that sends according to same in-vehicle electronic system ECU; For carrying out priority level, distributes message; Distribute to ECU Frame Index, can distribute 16 priority levels for minimum four of the reference format identifier.
As preferably, the in-vehicle electronic system that links to each other with said CAN bus has air bag system, braking system, engine system, automatic gear-box system, instrument display system, burglary-resisting system, car body controller and air-conditioner controller.When designs C AN bus standard format identifier; By safety and power requirement; All distribute unique, a fixing ECU Address for each in-vehicle electronic system, the CAN bus system that designs by this method is applicable to different automobile types, has good versatility.
Beneficial effect of the present invention: the reference format identifier to the CAN bus carries out sectional management, makes the CAN bus system have better generality and autgmentability, enhances productivity, and reduces production costs.
Embodiment
Through embodiment, technical scheme of the present invention is done further to describe below.
Embodiment: the distribution method of the vehicle-mounted CAN bus standard format identifier of present embodiment is that the reference format identifier to the CAN bus carries out sectional management; The reference format identifier is divided into classification Class ID, in-vehicle electronic system ECU address ECU Address, the signal Route Distinguisher position Routing Indicator of message and four parts such as message index ECU Frame Index of in-vehicle electronic system ECU that message sends the cycle; As shown in table 1; The Bit 10 of reference format identifier, Bit 9 totally 2 be defined as Class ID; Bit 8 to Bit 5 totally 4 be defined as ECU Address; 4 of Bit are defined as Routing Indicator, Bit 3 to Bit 0 totally 4 be defined as ECU Frame Index.
Table 1:
In the present embodiment; Class ID divides according to the different importance and the urgency of message, is divided into to be four classifications: Class 0~Class 3, and is as shown in table 2; Class 0 corresponding binary value is 00; Class 1 corresponding binary value is 01, and Class 2 corresponding binary values are 10, and Class 3 corresponding binary values are 11; It is the shortest that the message of Class 0 sends the cycle, and it is the longest that the message of Class 3 sends the cycle.
Table 2:
Figure 495796DEST_PATH_IMAGE002
In the present embodiment, the in-vehicle electronic system that links to each other with the CAN bus has air bag system, braking system, engine system, automatic gear-box system, instrument display system, burglary-resisting system, car body controller and air-conditioner controller etc.Safety and power requirement according to in-vehicle electronic system; All distribute unique, a fixing ECU Address for each in-vehicle electronic system; As shown in table 3, unappropriated ECU Address distributes to the in-vehicle electronic system that increases newly in the future as reserving extended address.
Table 3:
Figure 275533DEST_PATH_IMAGE003
Figure 733059DEST_PATH_IMAGE004
In the present embodiment; ECU Frame Index is the message index of in-vehicle electronic system ECU; The different importance and the urgency of the message that sends according to same in-vehicle electronic system ECU; Distribute for message carries out priority level, distribute to ECU Frame Index, can distribute 16 priority levels for minimum four of the reference format identifier.
In the present embodiment; Reference format identifier through to the CAN bus carries out sectional management, makes the CAN bus system have better generality and autgmentability, enhances productivity; Reduce production costs; Its implementation procedure is following: when the reference format identifier of designs C AN bus system, all present in-vehicle electronic systems are all distributed unique, a fixing ECU Address, thereby make this CAN bus system go for various vehicles; When needs increase new in-vehicle electronic system, unappropriated ECU Address is reserved extended address distribute to the in-vehicle electronic system that increases newly, thereby make this CAN bus system have better expansibility.
Above the preferred embodiments of the present invention are described; But the present invention is not limited to above-mentioned embodiment, and above-mentioned embodiment only is schematically, rather than restrictive; Those skilled in the art are under enlightenment of the present invention; Under the situation that does not break away from the scope that aim of the present invention and claim protect, can also make a lot of forms, these all belong within protection scope of the present invention.The all available prior art of each part not clear and definite in the present embodiment realizes.

Claims (6)

1. the distribution method of a vehicle-mounted CAN bus standard format identifier; It is characterized in that; The reference format identifier of CAN bus is divided into classification Class ID, in-vehicle electronic system ECU address ECU Address, the signal Route Distinguisher position Routing Indicator of message and four parts such as message index ECU Frame Index of in-vehicle electronic system ECU that message sends the cycle by the distribution method of sectional management; The Bit 10 of the reference format identifier of said CAN bus, Bit 9 totally 2 be defined as Class ID; Bit 8 to Bit 5 totally 4 be defined as ECU Address; 4 of Bit are defined as Routing Indicator, Bit 3 to Bit 0 totally 4 be defined as ECU Frame Index.
2. the distribution method of a kind of vehicle-mounted CAN bus standard format identifier according to claim 1; It is characterized in that; The Class ID of reference format identifier is divided into 4 priority levels; According to the different importance and the urgency of message, for the Class ID of the reference format identifier of this message distributes a priority level.
3. the distribution method of a kind of vehicle-mounted CAN bus standard format identifier according to claim 1; It is characterized in that; The ECU Address of reference format identifier is divided into 16 priority levels; According to the safety and the power requirement of the in-vehicle electronic system that links to each other with said CAN bus, the ECU of each in-vehicle electronic system distributes unique, a fixing ECU Address.
4. the distribution method of a kind of vehicle-mounted CAN bus standard format identifier according to claim 1; It is characterized in that; The Routing Indicator of reference format identifier is divided into 2 priority levels; Whether directly carry out the signal route according to message, for the Routing Indicator of the reference format identifier of this message distributes a priority level through gateway.
5. the distribution method of a kind of vehicle-mounted CAN bus standard format identifier according to claim 1; It is characterized in that; The ECU Frame Index of reference format identifier is divided into 16 priority levels; The different importance and the urgency of the message that sends according to same in-vehicle electronic system ECU are for the ECU Frame Index of the reference format identifier of this message distributes a priority level.
6. the distribution method of a kind of vehicle-mounted CAN bus standard format identifier according to claim 3; It is characterized in that the in-vehicle electronic system that links to each other with said CAN bus has air bag system, braking system, engine system, automatic gear-box system, instrument display system, burglary-resisting system, car body controller and air-conditioner controller.
CN2010102328794A 2010-07-21 2010-07-21 Identifier allocation strategy for vehicle-mounted CAN (Controller Area Network) bus Expired - Fee Related CN102340432B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102328794A CN102340432B (en) 2010-07-21 2010-07-21 Identifier allocation strategy for vehicle-mounted CAN (Controller Area Network) bus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102328794A CN102340432B (en) 2010-07-21 2010-07-21 Identifier allocation strategy for vehicle-mounted CAN (Controller Area Network) bus

Publications (2)

Publication Number Publication Date
CN102340432A CN102340432A (en) 2012-02-01
CN102340432B true CN102340432B (en) 2012-11-28

Family

ID=45515939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102328794A Expired - Fee Related CN102340432B (en) 2010-07-21 2010-07-21 Identifier allocation strategy for vehicle-mounted CAN (Controller Area Network) bus

Country Status (1)

Country Link
CN (1) CN102340432B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102882753A (en) * 2012-06-15 2013-01-16 浙江吉利汽车研究院有限公司杭州分公司 Controller area network (CAN) message long delay processing method
CN103095566B (en) * 2013-02-20 2016-05-11 北京经纬恒润科技有限公司 A kind of file transmitting method
CN103841212B (en) * 2014-03-25 2017-01-11 武汉理工大学 Vehicle signal encapsulation method for automobile CAN bandwidth consumption optimization
CN111464414A (en) * 2014-07-10 2020-07-28 松下电器(美国)知识产权公司 Vehicle-mounted network system, electronic control unit, receiving method, and transmitting method
CN104660500B (en) * 2015-03-13 2018-04-20 北京经纬恒润科技有限公司 A kind of signal processing method and device
CN104898500B (en) * 2015-04-25 2017-07-07 航天科技控股集团股份有限公司 Car body control module address distribution method and device
CN106559431B (en) * 2016-12-02 2020-05-12 北京奇虎科技有限公司 Visual analysis method and device for automobile safety detection
SG10201705960QA (en) * 2017-07-20 2019-02-27 Huawei Int Pte Ltd System and method for managing secure communications between modules in a controller area network
CN108153562B (en) * 2017-12-26 2021-03-02 浙江中科正方电子技术有限公司 System and method for remote program update management of ECU of new energy automobile
CN108810102B (en) * 2018-05-23 2023-05-02 邓晓燕 Application layer allocation method divided by using two CAN identifiers
CN112165420A (en) * 2020-08-27 2021-01-01 深圳市优必选科技股份有限公司 Message processing method, message processing device, robot system and CAN (controller area network) equipment
CN112737908A (en) * 2020-12-28 2021-04-30 重庆金康新能源汽车有限公司 ID and signal distribution method based on CAN bus
CN113328919B (en) * 2021-05-28 2023-10-10 江苏徐工工程机械研究院有限公司 CAN bus identifier, communication method and communication system
CN114726675B (en) * 2022-04-09 2023-07-18 温州大学乐清工业研究院 485 communication network and intelligent lighting system based on conflict detection
CN115941651A (en) * 2022-11-30 2023-04-07 东风汽车集团股份有限公司 Communication ID distribution model and method
CN115842806B (en) * 2023-02-23 2023-04-25 深圳市云天数字能源有限公司 Method for distributing node address by bus and related device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1719793A (en) * 2004-07-08 2006-01-11 华为技术有限公司 Method for allocating channel resources
CN101626333A (en) * 2009-08-07 2010-01-13 北京和利时电机技术有限公司 Controller area network (CAN) bus system and application layer communication method in same

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1719793A (en) * 2004-07-08 2006-01-11 华为技术有限公司 Method for allocating channel resources
CN101626333A (en) * 2009-08-07 2010-01-13 北京和利时电机技术有限公司 Controller area network (CAN) bus system and application layer communication method in same

Also Published As

Publication number Publication date
CN102340432A (en) 2012-02-01

Similar Documents

Publication Publication Date Title
CN102340432B (en) Identifier allocation strategy for vehicle-mounted CAN (Controller Area Network) bus
US11146420B2 (en) Method for transmitting data via a serial communication bus, bus interface, and computer program
CN210120567U (en) Vehicle-mounted composite gateway and vehicle
CN107197007B (en) Communication method of electric vehicle domain-division mesh communication network architecture based on vehicle-mounted Ethernet
CN101947938A (en) Hybrid power CAN network communication system
CN103558780B (en) A kind of automobile mounted bus controller
CN101456390B (en) Communication control system applied to automobile ECU
CN114374583B (en) Automobile gateway controller and control method thereof
WO2020063865A1 (en) Can circuit structure and vehicle diagnostic device thereof
US11337184B2 (en) Method and apparatus for transmitting and receiving data stream performed in vehicle network
CN115051975A (en) ECU remote upgrading method based on vehicle-mounted Ethernet
CN201300795Y (en) Vehicle ECU communication control system and automobile
CN113050465A (en) CAN bus system, control system, automobile and engineering machinery
CN115412394A (en) Heterogeneous domain controller inter-core communication method based on AutoSar
Long Automobile electronic control network design based on can bus
CN202753892U (en) Centralized network topology structure for electric vehicle power system
CN201736928U (en) Heavy truck control area network system
US20030046435A1 (en) Method for bi-directional communication, a motor vehicle, and a local area network for the vehicle
CN207884676U (en) A kind of In-vehicle networking communication terminal
CN202641564U (en) Electromobile dynamical system distributed network topology
KR20210066554A (en) Apparatus for controlling a vehicle and method thereof
CN205725807U (en) Automobile CAN protocol boards
CN110972099A (en) Automobile comprehensive multi-protocol gateway and peripheral equipment and sensor interconnection system
CN117914645A (en) CAN bus control method and structure with priority
CN210327617U (en) CAN Bus communication module

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20121128

Termination date: 20200721

CF01 Termination of patent right due to non-payment of annual fee