CN100469037C - Layer control tree-shape network based on CAN bus for supporting plug and use - Google Patents
Layer control tree-shape network based on CAN bus for supporting plug and use Download PDFInfo
- Publication number
- CN100469037C CN100469037C CNB2006100455248A CN200610045524A CN100469037C CN 100469037 C CN100469037 C CN 100469037C CN B2006100455248 A CNB2006100455248 A CN B2006100455248A CN 200610045524 A CN200610045524 A CN 200610045524A CN 100469037 C CN100469037 C CN 100469037C
- Authority
- CN
- China
- Prior art keywords
- network
- sublayer
- communication
- layer
- node
- 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
Links
- 238000004891 communication Methods 0.000 claims description 75
- 238000001914 filtration Methods 0.000 claims description 10
- 230000007246 mechanism Effects 0.000 claims description 8
- 230000005540 biological transmission Effects 0.000 claims description 5
- 230000000694 effects Effects 0.000 claims description 4
- 238000012423 maintenance Methods 0.000 claims description 4
- 230000008859 change Effects 0.000 claims description 3
- 238000013500 data storage Methods 0.000 claims description 2
- 230000000737 periodic effect Effects 0.000 claims description 2
- 239000010410 layer Substances 0.000 description 20
- 238000000034 method Methods 0.000 description 11
- 238000005516 engineering process Methods 0.000 description 2
- 239000011229 interlayer Substances 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000011218 segmentation Effects 0.000 description 2
- 206010033799 Paralysis Diseases 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001066 destructive effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 239000012467 final product Substances 0.000 description 1
- 230000000644 propagated effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
Landscapes
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
A hierarchical control tree-network supporting plug and play based on CAN bus is featured as dividing CAN bus network to be at least two layers for forming tree-network of hierarchical control, setting root node at father layer and using it as general control end of network, setting multiple independent arbitration domain at each layer, dividing father layer to be a numbers of network sections with a CAN network bridge on each section being connected with a sub layer, dividing sub layer to be a numbers of network sections being down- connected with a local application.
Description
Technical field
The present invention relates to a kind of Communication Control network field, relate in particular to a kind of hierarchical control tree network of supporting plug and play based on the CAN bus.
Background technology
The CAN2.0 bussing technique obtains to use widely in the Communication Control field with its real-time, reliability and cheap property.But because relation is reciprocity between each node of CAN Control Network, there is not the notion of level, the large-sized multiple layer Communication Control network many for the Control Node number, that node relationships is complicated, itself can't adapt to the CAN technology.The communication traffic of present large-scale collecting and distributing type Control Network, it is big to exist layer interior flow, passes through the inside, substation of the flow little characteristics, particularly Control Network of interlayer, and communication traffic is huge, and these flows often do not need transmission beyond the substation.If Control Network is not carried out layering, the communication information of each node of network will reduce network performance greatly in whole transmission over networks, even causes the network communication paralysis.Therefore, it is necessary Control Network being carried out hierarchical control.
The CAN bussing technique is limited by the electric characteristic of itself, and it drives number of connections less (≤110), uses for large-scale Control Network, need carry out segmentation to it.
The essential information of each contact is safeguarded in the large-scale Communication Control network, and promptly the topological structure of Control Network is safeguarded, also is an insoluble problem.General way is that the wire jumper circuit is set on each contact, and method by hand is provided with its address, the same then contact address table that adopts manual method to refresh network.This method is feasible concerning the less system that does not often change, but to catenet, also is very difficult undoubtedly.
Summary of the invention
Purpose of the present invention is exactly in order to solve the problem that present CAN bus is difficult for making up large-scale control communication network, provide a kind of have simple in structure, convenient to use, the reliability height is easy to the hierarchical control tree network based on the CAN bus of the support plug and play of advantages such as safeguarding.
For achieving the above object, the present invention adopts following technical scheme:
A kind of hierarchical control tree network of supporting plug and play based on the CAN bus, it comprises the CAN bus network, described CAN bus network is divided into two-layer at least, form the hierarchical control tree network, its root node is the master control end of this network at father's layer, and each layer network comprises a plurality of territories of independently arbitrating; Wherein, father's layer divides several network segments, and each network segment is established a CAN bridge 4, and each CAN bridge 4 connects a sublayer, and each sublayer is divided into several network segments again, and connects a local application down.
The described network segment is made up of some network communication nodes, and substation of the common composition of these communication nodes is to realize the arbitration territory control of communication node in the network segment; Each network segment is provided with a CAN bridge 4, and as the root node of this network segment, each network segment is the distribution network segment number all, and all communication nodes in the network segment have identical segment number; Communication node address number divide two parts establishments, promptly network segment numbering area and node serial number district all represent with binary digit; The number of bits in network segment numbering area and node serial number district can be according to the practical application setting, and the number of communication node should be less than 110 in each network segment.
Described CAN bridge 4 is made up of father's layer CAN communication module and sublayer CAN communication module, adopt direct access mechanism between them, not interchangeable between the two use, its inside is finished uploading of data by the controller of CAN bridge 4 and is passed down, and adopts two filtering mechanism that the transmission of information is controlled in the useful effect territory.
In the present invention, father's layer communication module adopts P89C591 and I
2C/ communication handshake circuit, data storage AT24C64 constitute I
2The direct access circuit of C realizes sharing with the valid data of sublayer CAN communication module.
Described CAN bridge 4 sublayer communication modules are in the sublayer of whole network, also are the root modules of this layer network simultaneously, and it receives the data of sublayer communication node according to filtering requirements; After the Data Receiving, judge whether to be uploaded to father's layer,, adopt direct access mechanism, be sent to CAN bridge 4 father's layer communication network as needs by controller.
Described CAN bridge 4 sublayer communication modules are carried out periodic refresh to each communication node of sublayer, according to the application IP addresses signal and the priority requirement of sublayer communication node, dynamically adjust node address; When the node damage occurring or losing phenomenon, reclaim node address, and redistribute.
The node address of described each sublayer communication node is according to the network configuration dynamic change, and carries out self check and send address request signal.
The address request signal that each sublayer communication node sends is with the priority requirement.
The present invention utilizes the CAN2.0 bus network, makes up large-scale hierarchical control tree network, to guarantee real-time, the reliability of catenet, reduces the arbitration territory simultaneously, avoids broadcast storm; In addition, propose in this large-scale hierarchical network, to realize the method for CAN communication contact plug and play.More than 2 realization, can make up non-maintaining to a certain extent large-scale, real-time, a reliable Communication Control network.Such network can be applicable in large scale industry control system (for example flow process enterprise) and the civilian system (for example building intelligent system).
The invention has the beneficial effects as follows: make up the method for large-scale stratiform network based on the CAN bus, whole network is divided into father's layer and sublayer (also can continue to expand to multilayer), can effectively dwindle the network arbitration territory, guarantee the real-time reliability of system; Simultaneously, the present invention propose a kind of in the stratiform network method of CAN communication contact plug and play, can conveniently build the stratiform network, realize that non-maintaining stratiform network expands immediately, can avoid the trouble of manual adjustment contact address, reduce the system maintenance cost greatly.
Description of drawings
Fig. 1 is a structured flowchart of the present invention.
Wherein, 1. root node, 2. father's layer, 3. sublayer, 4.CAN bridge.
Embodiment
The invention will be further described below in conjunction with accompanying drawing and embodiment.
Among Fig. 1, based on CAN bus network electric characteristic require≤110 and the requirement of contact, large-scale stratiform network is an one tree type structure, is referred to as the CAN tree.The root contact 1 of CAN tree is the master control end of stratiform network, plays the effect of the whole network of management, can safeguard the communication contact address information of whole system.The network topology of whole C AN tree is 2 layers of structure---father's layer 2 and sublayer 3 networks, every layer independently forms a plurality of arbitrations territory separately, interlayer is interconnected by CAN bridge 4,2 fens several network segment of father's layer wherein, each network segment is established a CAN bridge 4, each CAN bridge 4 connects a sublayer 3, and each sublayer 3 is divided into several network segments again, and connects a local application down.CAN tree by a CAN network interface card that is positioned at work station as initial, i.e. CAN tree root node 1, along the CAN bus through intermediate contact to each CAN communication contact as terminal point, forms a complete CAN and sets.
Connect by a CAN bridge 4 between father's layer 2 and the sublayer 3 with two CAN communication modules.As shown in Figure 1, CAN bridge 4 is made up of father's layer (upper strata) CAN communication module and sublayer (lower floor) CAN communication module, adopt direct access mechanism between two modules, finish uploading of data field and following the biography by the controller of CAN bridge 4, two CAN communication modules adopt the transmission of two filtering mechanism guarantee informations to be controlled in the useful effect territory.
As shown in Figure 1, CAN bridge 4 sublayer communication modules are its root modules with layer CAN communication contact (the local application).This communication module is not only finished communication function, has following function simultaneously: support PnP device, after in the scope of this root module control, having new CAN communication contact (new local application apparatus) to be connected into network, send address request signal from trend CAN bridge sublayer communication module after this CAN communication contact self check, wherein comprise the priority requirement.All contact default address numberings that newly are connected into network all can be made as the device numbering of forbidding when a system normally moves (for example FFFH).After CAN bridge 4 sublayer communication modules receive this request, in its address maintenance table, inquire about a contact numbering that is not assigned with, according to the priority requirement, send address to this CAN communication contact and determine signal, put this address number simultaneously for distributing.More than work finish after, CAN bridge 4 sublayer communication modules refresh the network address at official hour and safeguard the root contact; If new CAN communication contact priority facility requirement is the highest, need to revise the situation of other communication contact address, after also can judging, realize CAN bridge 4 sublayer communication modules.
CAN bridge 4 sublayer communication modules also have following function: regularly inquire about the sublayer CAN communication contact that it is controlled, lose (or damage) phenomenon if find the CAN contact, after continuing to attempt several times (for example 10 times), the address number that cancellation is lost, refresh address maintenance information, this address number can be proceeded to distribute.Network root contact equipment also has similar functions.
Based on practical application, equipment is divided into some network segments in the stratiform network, and each network segment contains some communication contacts, and its establishment strategy is: the contact address is divided into two sections: network segment numbering area and contact numbering area.Network segment numbering figure place and contact numbering figure place are set (for example network segment numbering is represented with 5 bits, and contact is numbered with 7 binary representations, and whole like this network can be divided into 32 network segments, and each network segment can comprise 110 following contacts at most) according to actual conditions.Wherein each network segment is provided with a CAN bridge 4.Be exemplified below:
Each branch in the CAN tree ground floor is called the network segment.Each network segment is represented its network segment coding with 5 bits, represents with NPID (NetWork Paragraph), can hold 32 network segments altogether.Rule in the practical application can be: 00000: distributing to the tree root contact in the CAN tree, is most important contact in the CAN tree, and name is called NPID0; 00001~11100: have 30 network segments, can require to distribute according to response; The whole network broadcast capability that last segment number 11111 can be distributed in the CAN tree uses, and reinstates during filtration, not as real network segment numbering.All contact address number in the ground floor are 0000000.The network segment address of all devices is identical in the second layer, and the address that can establish CAN bridge 4 sublayer communication modules is 0000001, and all the other communication contacts get final product according to the priority dynamic addressing.
For the characteristics of fully using the CAN bussing technique (reply in non-destructive bus arbitration and the frame, error detection, error notification), With priority, the contact address of using, the information such as attribute that are transmitted data, all in 29 bit identifiers, realize. Adopt net Network segmentation form, tree and the network hierarchy of realization CAN bus; Adopt the form of filtering, prevent non-broadcast data frame The whole network is propagated, and has improved the service efficiency of bus; When definition contact address, pay the utmost attention to the priority level of concrete application. Tool The design philosophy of body is: adopt expansion frame, two filtering mode. To 29 identifiers of expansion frame, carry out science according to application Definition; Utilize two filtering modes that the high position of identifier is filtered, a filter carries out the filtration of device address, another Filter judges whether it is broadcasting, utilizes two filter inclusive-OR operation characteristics, realizes specifying the communication of message. Standard frame Can be used as from now on expansion uses. Because standard frame has precedence over the expansion frame, can be used for emergency management and process.
Claims (4)
1, a kind of hierarchical control tree network of supporting plug and play based on the CAN bus, it comprises CAN bus tree network, it is characterized in that: described CAN bus network is divided into two-layer at least, form the hierarchical control tree network, its root node is at father's layer, be the master control end of this stratiform network, each layer network comprises a plurality of territories of independently arbitrating; Wherein, father's layer divides several network segments, and each network segment is established a CAN bridge, and each CAN bridge connects a sublayer, and each sublayer can be divided into several network segments again, and connects local application down; The described network segment is made up of some network communication nodes, and substation of the common composition of these communication nodes is to realize the arbitration territory control of communication node in the network segment; The CAN bridge that each network segment is provided with is as the root node of this network segment, and each network segment is the distribution network segment number all, and all communication nodes in the network segment have identical segment number; The address number of communication node divides two parts establishment, and promptly network segment numbering area and node serial number district all represent with binary digit; The number of bits in network segment numbering area and node serial number district can be according to the practical application setting, and the number of communication node should be less than 110 in each network segment.
2, the hierarchical control tree network based on the CAN bus of support plug and play according to claim 1, it is characterized in that: described CAN bridge is made up of father's layer CAN communication module and sublayer CAN communication module, adopt direct access mechanism between them, not interchangeable between the two use, its inside is finished uploading of data by the controller of CAN bridge and is passed down, and adopts two filtering mechanism that the transmission of information is controlled in the useful effect territory; Described father's layer CAN communication module adopts P89C591 and I
2C/ communication handshake circuit, data storage AT24C64 constitute I
2The direct access circuit of C realizes sharing with the valid data of sublayer CAN communication module; Described sublayer CAN communication module is in the sublayer of whole network, also is the root module of this layer network simultaneously, and it receives the data of sublayer communication node according to filtering requirements; After the Data Receiving, judge whether to be uploaded to father's layer,, adopt direct access mechanism, be sent to father's layer CAN communication module as needs by controller; Sublayer CAN communication module is also regularly inquired about, its sublayer CAN communication node of being controlled of periodic refresh, according to the application IP addresses signal and the priority requirement of sublayer communication node, dynamically adjusts node address; If find CAN node loss or damage, after continuing to attempt several times, the address number that cancellation is lost, the refresh address maintenance information, this address number can be proceeded to distribute.
3, the hierarchical control tree network based on the CAN bus of support plug and play according to claim 2 is characterized in that: the node address of described each sublayer communication node is according to the network configuration dynamic change, and carries out self check and send address request signal.
4, the hierarchical control tree network based on the CAN bus of support plug and play according to claim 2 is characterized in that: the address request signal that each sublayer communication node sends is with the priority requirement.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100455248A CN100469037C (en) | 2006-07-19 | 2006-07-19 | Layer control tree-shape network based on CAN bus for supporting plug and use |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100455248A CN100469037C (en) | 2006-07-19 | 2006-07-19 | Layer control tree-shape network based on CAN bus for supporting plug and use |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1889496A CN1889496A (en) | 2007-01-03 |
CN100469037C true CN100469037C (en) | 2009-03-11 |
Family
ID=37578755
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006100455248A Expired - Fee Related CN100469037C (en) | 2006-07-19 | 2006-07-19 | Layer control tree-shape network based on CAN bus for supporting plug and use |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100469037C (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102722146B (en) * | 2012-05-24 | 2013-12-18 | 哈尔滨工程大学 | Distributed system control structure with failure protection function, and failure protection method |
CN103795587B (en) * | 2012-11-02 | 2018-02-23 | 北汽福田汽车股份有限公司 | A kind of gateway route test method and device |
CN103714035B (en) * | 2013-12-31 | 2015-07-08 | 北京控制工程研究所 | A Multilayer Software Bus Architecture for Integrated Environment |
CN103941700B (en) * | 2014-04-28 | 2019-04-30 | 张晓华 | A kind of automation process safety monitoring system based on Modbus agreement |
CN104597809A (en) * | 2014-12-12 | 2015-05-06 | 徐州重型机械有限公司 | Tree-like CAN (controller area network) bus communication control network for high-altitude fire truck |
CN108540306B (en) * | 2018-02-28 | 2021-05-25 | 博尔联科(厦门)智能技术有限公司 | A kind of communication control method of network node |
CN116319148B (en) * | 2023-02-16 | 2024-09-17 | 上汽通用五菱汽车股份有限公司 | UWB intelligent communication interface method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2567939Y (en) * | 2002-12-26 | 2003-08-20 | 北京华控技术有限责任公司 | CAV intelligence repeater/network bridge |
CN1615611A (en) * | 2002-01-11 | 2005-05-11 | 摩托罗拉公司 | Dynamic can bus system configuration and messaging |
CN1731754A (en) * | 2005-08-26 | 2006-02-08 | 清华大学 | A high-performance optical fiber CAN communication system suitable for strong electromagnetic interference environment |
CN200987175Y (en) * | 2006-07-19 | 2007-12-05 | 山东富臣发展有限公司 | CAN bus based hierarchical control tree-shaped network for supporting plug and play |
-
2006
- 2006-07-19 CN CNB2006100455248A patent/CN100469037C/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1615611A (en) * | 2002-01-11 | 2005-05-11 | 摩托罗拉公司 | Dynamic can bus system configuration and messaging |
CN2567939Y (en) * | 2002-12-26 | 2003-08-20 | 北京华控技术有限责任公司 | CAV intelligence repeater/network bridge |
CN1731754A (en) * | 2005-08-26 | 2006-02-08 | 清华大学 | A high-performance optical fiber CAN communication system suitable for strong electromagnetic interference environment |
CN200987175Y (en) * | 2006-07-19 | 2007-12-05 | 山东富臣发展有限公司 | CAN bus based hierarchical control tree-shaped network for supporting plug and play |
Non-Patent Citations (8)
Title |
---|
CAN中继器设计及其应用. 邹继军,饶运涛.电子应用技术,第8期. 2003 |
CAN中继器设计及其应用. 邹继军,饶运涛.电子应用技术,第8期. 2003 * |
基于CAN总线的某通信系统应用层协议的设计与实现. 陈春艳,曾超.电子工程师,第32卷第3期. 2006 |
基于CAN总线的某通信系统应用层协议的设计与实现. 陈春艳,曾超.电子工程师,第32卷第3期. 2006 * |
基于CAN总线的煤矿安全监控系统网络通信设计. 周霞,魏臻,胡晓健.工矿自动化,第3期. 2005 |
基于CAN总线的煤矿安全监控系统网络通信设计. 周霞,魏臻,胡晓健. 工矿自动化,第3期. 2005 * |
矿井下CAN总线节点地址的设计. 郭继坤,将家正.黑龙江科技学院学报,第14卷第2期. 2004 |
矿井下CAN总线节点地址的设计. 郭继坤,将家正.黑龙江科技学院学报,第14卷第2期. 2004 * |
Also Published As
Publication number | Publication date |
---|---|
CN1889496A (en) | 2007-01-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100469037C (en) | Layer control tree-shape network based on CAN bus for supporting plug and use | |
CN109450662A (en) | Ad hoc network communication manager and network-building method, ad hoc network communication system | |
CN105208622B (en) | A kind of route selection method and method for managing route table of the router-table structure that high-efficiency dynamic is safeguarded automatically | |
CN107249121A (en) | A kind of video monitoring system based on cloud platform | |
CN102882979A (en) | System and method for collecting, gathering and distributing data on basis of cloud computing system | |
CN107612714A (en) | A kind of automated topology structure realization method and system | |
CN105743108A (en) | 10kV low-voltage intelligent power distribution network system with three-phase unbalanced monitoring function | |
CN104833924A (en) | Serial automatic addressing method and system of lead storage battery internal resistance detection modules | |
CN103813141A (en) | Video comprehensive monitoring system and monitoring method based on stream media | |
CN200987175Y (en) | CAN bus based hierarchical control tree-shaped network for supporting plug and play | |
CN105871673A (en) | Network control system of large road maintenance machine | |
CN112533239B (en) | LTE230 power wireless private network adaptive interference avoidance method | |
CN114710523A (en) | Multi-region Internet of vehicles cloud platform architecture and vehicle fixed region access method | |
CN203104104U (en) | Power information communication optimization backbone transmission network system | |
CN102563809A (en) | Networked air-conditioner control system and method | |
CN105656972A (en) | Urban water supply integrated SCADA system | |
CN101309114B (en) | Method and system for realizing automatic configuration of node working mode | |
CN102377830A (en) | IP (Internet Protocol) address configuration method | |
CN215912128U (en) | System for distributing data | |
CN103019210B (en) | A kind of bus connection system of flexible production line traffic control | |
CN106803341A (en) | New PLC networking structures and method and corresponding novel intelligent electric meter carrier module | |
CN101977138A (en) | Method, device, system and equipment for establishing tunnel in layer-2 virtual private network | |
CN106027350A (en) | Large-scale road maintenance machine network control system design method | |
CN101296118B (en) | Data transmission application self-adapting method based on 2M ring network | |
CN210348777U (en) | Wireless acquisition system for vehicle oil consumption |
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 | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090311 Termination date: 20120719 |