CN109412695A - A kind of optical fiber CAN 2.0B bus route system based on star topology - Google Patents
A kind of optical fiber CAN 2.0B bus route system based on star topology Download PDFInfo
- Publication number
- CN109412695A CN109412695A CN201811619868.4A CN201811619868A CN109412695A CN 109412695 A CN109412695 A CN 109412695A CN 201811619868 A CN201811619868 A CN 201811619868A CN 109412695 A CN109412695 A CN 109412695A
- Authority
- CN
- China
- Prior art keywords
- frame
- interchanger
- routing table
- class
- route requests
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/27—Arrangements for networking
- H04B10/272—Star-type networks or tree-type networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0005—Switch and router aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0062—Network aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0062—Network aspects
- H04Q2011/0073—Provisions for forwarding or routing, e.g. lookup tables
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0062—Network aspects
- H04Q2011/009—Topology aspects
- H04Q2011/0094—Star
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
A kind of optical fiber CAN bus route system based on star topology, including CAN bus are provided with multiple CAN communication equipment and multiple CAN bus interchangers in the CAN bus;At least one cascade CAN interface of each CAN switch configuration and multiple common CAN interfaces;It is connected between CAN interchanger by cascade CAN interface, CAN communication equipment is connected on common CAN interface;The CAN communication equipment sends data frame to the CAN bus interchanger, and the CAN bus interchanger identifies A class route requests frame, B class route requests frame and CAN message frame according to the data frame;Routing table is established and safeguarded to CAN interchanger with interacting for B class route requests frame by A class, and the CAN message frame realizes routing function in such a way that CAN interchanger searches routing table.The method of the present invention is simple, and calculating speed is fast, and hardware cost is low, flexibility is good, the routing under can realizing star topology in optical fiber CAN communication, and supports the arbitrary topology connection between CAN interchanger, meets the needs of complicated networking.
Description
Technical field
The present invention relates to a kind of CAN bus route systems, more particularly, to a kind of optical fiber based on star topology
CAN2.0B bus route system.
Background technique
CAN bus technology is initially to be used for the monitoring system of automobile in 1986 by German BOSCH company.Its basis is
Without destructive arbitration mechanism, when message conflicts, the lower node of priority can actively be given bus control right preferentially
The high node of grade, to greatly reduce bus collision arbitration time.CAN2.0B consensus standard defines only physical layer and data
Link layer specifications, user need to be had according to requirement of engineering self-defined application layer protocol, currently used application layer protocol CANopen,
DeviceNET, TTCAN etc..
At present, it then follows the pair cable CAN transceiver of ISO11898 standard is increasingly becoming mainstream, most of in the world
CAN network all uses pair cable as transmission medium.Pair cable have it is technically easy to accomplish, cheap, to electricity
Magnetic radiation has the characteristics of certain rejection ability.But with the growth of frequency, the decaying of pair cable is increased rapidly, in severe work
The anti-electromagnetic interference capability of industry scene twisted pair CAN still cannot meet the needs.And fiber medium is used to replace twisted pair, then it can be with
The anti-electromagnetic interference capability of CAN network is improved, transmission range is increased, these advantages make optical fiber CAN bus in some pairs of reliabilities
It is required that high or strong electromagnetic interference occasion is applied.
Optical fiber CAN bus mostly uses annular or Star topology, and CAN bus collection is usually used using star wired bus topology
Line device carries out photoelectricity logical transition in physical layer and completes connection, but this method is difficult to realize between multiple CAN bus hubs
Interconnection.The reason is that CAN standard itself does not have the routing capabilities between multiple subnets, it can only be by the form of electrical connection
Complete bus arbitration.So needing a kind of bus route system completion for the optical fiber CAN bus of extensive Star topology
Information exchange between multiple subnets.
Summary of the invention
It, can be any two in Star topology CAN bus it is an object of the invention to devise a kind of bus route system
Suitable routing is established between a communication node, so that extensive cascade network may be implemented in optical fiber CAN bus.
More specifically, the present invention provides a kind of optical fiber CAN bus route system based on star topology, the party
Method introduces the specific informations frames such as A class route requests frame, B class route requests frame on the basis of CAN2.0B, is routed by these
The whole network routing is established in interaction between claim frame.The format of CAN2.0B data frame is as shown in Fig. 4.
Specifically, the present invention provides a kind of optical fiber CAN bus route system based on star structure, which is characterized in that
The route system system includes CAN bus, and multiple CAN communication equipment are provided in the CAN bus and multiple CAN bus are handed over
It changes planes;At least one cascade CAN interface of each CAN switch configuration and multiple common CAN interfaces;Pass through between CAN interchanger
The optical fiber for cascading CAN interface is connected, and CAN communication equipment is connected on common CAN interface by optical fiber;The CAN communication equipment
Data frame is sent to the CAN bus interchanger, the CAN bus interchanger identifies that the routing of A class is asked according to the data frame
Ask frame, B class route requests frame and CAN message frame;CAN interchanger is received according to the A class route requests frame flag is received
CAN port, be recorded in the routing table inside interchanger;Meanwhile CAN interchanger sends the routing of B class by cascade CAN interface
The routing iinformation that this CAN interchanger stores is sent to other CAN interchangers by claim frame;CAN interchanger passes through A class and B class road
It is established by the interaction of claim frame and is realized in such a way that CAN interchanger searches routing table with maintenance routing table, the CAN message frame
Routing function.
CAN interchanger sends B class route requests frame by cascade CAN interface, the routing iinformation that this CAN interchanger is stored
Other CAN interchangers are sent to, if do not changed, do not send B class route requests frame.
Further, 29 bit identifiers (being labeled as D0-D28) in the data frame arbitration domain of the CAN communication system
Format are as follows:
Function code section | Source communication apparatus identifies ID sections | Purpose communication apparatus identifies ID sections | Flowing water number section | Reservation paragraph |
D28-D25 | D24-D18 | D17-D10 | D9-D4 | D3-D0 |
It is wherein function code section from D25-D28, is source communication apparatus (sending the equipment of the frame) mark from D18 to D24
ID sections, it is that purpose communication apparatus (receiving the equipment of the frame) identifies ID sections from D10 to D17, serial number is used as from D4 to D9, from
D3 to D0 reservation does not require, and can according to need flexible allocation.Function code section is used to distinguish the function of data frame, such as A class road
By claim frame, B class route requests frame and normal data frame etc..Device id retains 0, remaining number is used equally for equipment mark
Know, each CAN communication equipment or CAN interchanger have unique device identification ID in the whole network.
Wherein the source communication apparatus of A class route requests frame identifies the CAN communication device identification that ID sections of filling send the frame, mesh
Communication apparatus identify ID section and can fill out 0, without data field, i.e., data field length is 0.The source communication apparatus of B class route requests frame
ID sections of filling of mark send the CAN switch identification of the frame, and purpose communication apparatus, which identifies ID sections, can fill out 0, and data field content is to connect
It is connected to the device identification of the interchanger, format are as follows:
7th byte | 6th byte | 5th byte | 4th byte | 3rd byte | 2nd byte | 1st byte | 0th byte |
Device identification 8 | Device identification 7 | Device identification 6 | Device identification 5 | Device identification 4 | Device identification 3 | Device identification 2 | Device identification 1 |
If a B class route requests frame of CAN interchanger cannot send all marks for being connected to the equipment,
Then continue to send B class route requests frame, serial number successively adds 1, and all devices until that will be connected to this interchanger, which identify, to be sent
It finishes.
In addition, the present invention also provides a kind of optical fiber CAN 2.0B bus method for routing based on star topology, includes
The foundation of routing and maintenance, data frames are by two parts.
The foundation of routing includes the following steps: with maintenance process
Respective A class route requests frame is regularly sent after step 1, all CAN communication device powers;
Step 2, CAN interchanger receive the A class route requests frame of connected CAN communication equipment from common CAN interface, note
The common CAN interface number received is recorded, according to the source communication apparatus mark in A class route requests frame and connects CAN interface number foundation pair
It should be related to, form the A class routing table of the CAN interchanger;The routing table content is common CAN interface number and CAN communication equipment mark
The corresponding relationship of knowledge.
After step 3, CAN interchanger establish routing table A, B class route requests frame is sent by subtending port, this will be connected to
The CAN communication device identification of machine is sent to other CAN multi-layer switches;
Step 4, hereafter, if being examined first if CAN interchanger receives the A class route requests frame of connected CAN communication equipment
It looks into and whether changes with former routing table, such as without change, do not update routing table A, also do not send the routing of B class to other interchangers and ask
Seek frame;If changing with former routing table, the machine routing table A is updated, then B class route requests frame is sent by subtending port, it will
Changed equipment identification information is sent to other CAN multi-layer switches;
After step 5, CAN interchanger receive B class route requests frame from subtending port, the cascade CAN interface number received is recorded,
According to the information of B class route requests frame, establish B class routing table, B class routing table include information be cascade CAN interface number with and
It is identified with the CAN device communicated by the cascade CAN interface;CAN interchanger receives that also need after a B class route requests frame should
Frame forwards respectively from other cascade CAN interfaces of the non-reception frame;
Data frame routing procedure includes the following steps:
Step 1, CAN communication node send data frame to the CAN interchanger connected;
Step 2, CAN interchanger receive the data frame from common CAN interface, take the purpose communication apparatus in data frame arbitration domain
Mark is searched in routing table A, if explanation is the communication apparatus in the same CAN interchanger, according to routing in routing table A
The CAN interface of Table A forwards the data frame in corresponding CAN interface to the corresponding relationship of CAN communication device identification;If not in routing table
In A, continue to find purpose communication apparatus mark in routing table B, if finding purpose communication apparatus mark, from corresponding cascade
CAN interface forwards the data frame to other CAN interchangers;If not finding purpose communication in routing table A and routing table B to set
Standby mark, then abandon the data frame;
Step 3, similar with step 2, CAN interchanger receives data frame from cascade CAN interface, takes the mesh in data frame arbitration domain
Communication apparatus mark searched in routing table A, if in routing table A, according to the CAN interface of routing table A and CAN communication equipment
The corresponding relationship of mark forwards the data frame in corresponding CAN interface;If continuation finds mesh in routing table B not in routing table A
Communication apparatus mark forward the data frame to other from corresponding cascade CAN interface if finding purpose communication apparatus mark
CAN interchanger;If not finding purpose communication apparatus mark in routing table A and routing table B, the data frame is abandoned;
The present invention has the advantage that compared with prior art
(1) it by pressing method for routing, can be realized in the optical fiber CAN communication for not having routing capabilities under star topology
Routing;
(2) method is simple, and calculating speed is fast, and hardware cost is low;
(3) flexibility is good, supports the arbitrary topology connection between CAN interchanger, meets the needs of complicated networking.
Detailed description of the invention
Fig. 1 is single switch star structure optical fiber CAN 2.0B bus schematic diagram.
Fig. 2 is cascaded star structured optical fiber CAN2.0B bus schematic diagram.
Fig. 3 is CAN switch architecture figure of the invention.
Fig. 4 is the structural schematic diagram of CAN2.0B data frame.
Fig. 5 is the routing algorithm flow chart based on star topology optical fiber CAN 2.0B bus.
Specific embodiment
The present invention is further described below with reference to the accompanying drawings, the following examples are only merely for exemplary mesh
, it is not meant as the limitation present invention.
Fig. 1 is relatively simple typical single switch star structure optical fiber CAN 2.0B bus schematic diagram.It is logical with reference to Fig. 2
Cross star structure optical fiber CAN 2.0B bus schematic diagram made of multiple switch concatenations.The present invention is based on star structure optical fiber
CAN2.0B route system includes multiple CAN switch As, B, C, there is 3 CAN communications equipment A1, A2, A3 on switch A, exchange
Machine B has 3 CAN communication equipment B1, B2, B3, interchanger C to have 4 CAN communication equipment C1, C2, C3, C4.Each CAN communication is set
It is standby to be connected between CAN interchanger and between CAN interchanger and CAN interchanger by optical fiber.Each CAN interchanger includes
Processor module, communication module and memory module.
More specifically as shown in figure 3, each CAN interchanger of the invention includes processor module, communication module and storage
Module.The tool such as digital signal processor (DSP), single-chip microcontroller or field programmable gate array (FPGA) can be used in processor module
There is the chip of Digital Signal Processing and control ability composition, selects the dsp chip TMS28335 of TI company, chip operation here
Speed is up to 150MHz, has the computing module of optimization, possesses enough operational capabilities and control ability.Communication module, storage
The functional unit of individual chips or controller Embedded can be used in module.The processor module control of each CAN interchanger
The execution of system routing process, memory module store routing table, and communication module, which issues, receives CAN data frame.
The data frame typical format of CAN2.0B bus is as shown in Figure 4.Comprising 29 arbitration domains and 0~8 byte
Data field.29 arbitration domains determine the priority of data frame, and data information is stored in 0~8 byte of data field.
With reference to Fig. 2, routing principle of the invention is further described, in the same star fiber optic CAN2.0B network, communication
Equipment A1, A2, A3 periodically send A class route requests frame to CAN switch A;Communication apparatus B1, B2, B3 are periodically to CAN interchanger
B sends A class route requests frame;Communication apparatus C1, C2, C3, C4 periodically send A class route requests frame to CAN interchanger C.Work as road
When being changed by table, CAN switch A, B, C mutually send B class route requests frame by cascading CAN interface.CAN interchanger is logical
Cross A class, two kinds of route requests frames of B class establish routing table, be forwarded to accordingly when receiving normal data frame by searching for routing table
CAN interface.The function code of A class route requests frame is that the function code of 5, B class route requests frame is 6.Each device identification ID number are as follows:
Implementor name | Device identification ID number | Implementor name | Device identification ID number |
A1 | 100 | A2 | 101 |
A3 | 102 | B1 | 110 |
B2 | 111 | B3 | 112 |
C1 | 120 | C2 | 121 |
C3 | 122 | C4 | 123 |
CAN switch A | 10 | CAN switch b | 11 |
CAN interchanger C | 12 |
(1) route establishment process
Communication apparatus A1, A2, A3 send A class route requests frame to CAN switch A;Communication apparatus B1, B2, B3 periodically to
CAN switch b sends A class route requests frame;Communication apparatus C1, C2, C3, C4 periodically send the routing of A class to CAN interchanger C and ask
Seek frame.As the transmission A class route requests frame of CAN communication equipment A1 arbitrates domain:
Function code | Source communication apparatus identifies ID | Purpose communication apparatus identifies ID | Serial number | Retain |
5 | 100 | 0 | 0 | Arbitrarily |
A class route requests frame no data domain.
A class route requests frame is sent by each equipment, it is as follows that three CAN interchangers establish respective A class routing table respectively:
After the completion of A class routing table is established, three CAN interchangers send mutually B class route requests by cascading CAN interface
Frame arbitrates domain as CAN switch A sends B class route requests frame by cascade CAN interface 4 are as follows:
Data field are as follows:
7th byte | 6th byte | 5th byte | 4th byte | 3rd byte | 2nd byte | 1st byte | 0th byte |
Device identification 8 | Device identification 7 | Device identification 6 | Device identification 5 | Device identification 4 | Device identification 3 | Device identification 2 | Device identification 1 |
0 | 0 | 0 | 0 | 0 | 102 | 101 | 100 |
CAN switch b sends the B class route requests frame of itself simultaneously, asks in the B class routing for receiving switch A, C is sent
The B class routing table of itself is establishd or updated after seeking frame, and the forwarding of the B class route requests frame of switch A and C is sent to interchanger C
With A.
By sending B class route requests frame, it is as follows that three CAN interchangers establish respective B class routing table respectively:
(2) route maintenance procedure
Communication apparatus A1, A2, A3 periodically send A class route requests frame to CAN switch A;Communication apparatus B1, B2, B3 are fixed
Phase sends A class route requests frame to CAN switch b;Communication apparatus C1, C2, C3, C4 periodically send A class road to CAN interchanger C
By claim frame.CAN interchanger safeguards A class routing table by these A class route requests frames, when increase, deletion occur for A class routing table
Or B class route requests frame is sent when change at once and notifies other interchanger modification B class routing tables.
Communication apparatus C1 is removed from interchanger C such as, is then connected on the CAN interface 5 of switch A.At this point, handing over
The C that changes planes will not receive the A class route requests frame that communication apparatus C1 is periodically sent again.In the A class routing for waiting C1 periodically to send
After claim frame communication time-out, interchanger C removes the C1 relevant information in the machine A class routing table, becomes as follows:
Simultaneously as C1 is connected on switch A, the A class route requests frame that switch A will receive C1 and periodically send, more
The A class routing table of new switch A is as follows:
Then, the variation of switch A, C due to A class routing table, transmission to the respective B class route requests frame of switch b,
The B class route requests frame of switch A arbitrates domain are as follows:
Function code | Source communication apparatus identifies ID | Purpose communication apparatus identifies ID | Serial number | Retain |
6 | 10 | 0 | 0 | Arbitrarily |
Data field are as follows:
7th byte | 6th byte | 5th byte | 4th byte | 3rd byte | 2nd byte | 1st byte | 0th byte |
Device identification 8 | Device identification 7 | Device identification 6 | Device identification 5 | Device identification 4 | Device identification 3 | Device identification 2 | Device identification 1 |
0 | 0 | 0 | 0 | 120 | 102 | 101 | 100 |
The B class route requests frame of interchanger C arbitrates domain are as follows:
Function code | Source communication apparatus identifies ID | Purpose communication apparatus identifies ID | Serial number | Retain |
6 | 12 | 0 | 0 | Arbitrarily |
Data field are as follows:
7th byte | 6th byte | 5th byte | 4th byte | 3rd byte | 2nd byte | 1st byte | 0th byte |
Device identification 8 | Device identification 7 | Device identification 6 | Device identification 5 | Device identification 4 | Device identification 3 | Device identification 2 | Device identification 1 |
0 | 0 | 0 | 0 | 0 | 102 | 101 | 100 |
After switch b receives the B class route requests frame of switch A, C, the B category information table of itself is updated:
And the B class route requests frame of switch A will be forwarded to interchanger C, while forwarding the B class route requests of interchanger C
Frame is to switch A.Switch A receives that update corresponding B class routing table after the B class route requests frame of other side as follows with C:
(3) data frame routing procedure
When receiving normal data frame, CAN interchanger is routed according to the purpose communication apparatus identifier lookup A class of data frame first
Table, if it find that purpose communication apparatus in A class routing table, then sends the data frame in corresponding interface according to routing table;If
It was found that purpose communication apparatus then searches B class routing table not in A class routing table, if in B class routing table, in respective stages
The data frame is given in connecting port forwarding;If purpose communication apparatus in A class or B class routing table, does not abandon the frame.
If communication apparatus A1 is sent to a data frame of communication apparatus C2, it is as follows that data frame arbitrates domain:
Function code | Source communication apparatus identifies ID | Purpose communication apparatus identifies ID | Serial number | Retain |
10 | 100 | 121 | 0 | Arbitrarily |
Switch A receives the data frame, in local A class routing table search purpose communication apparatus mark 121, search less than
After the device identification, further in local B class routing table lookup;After B class routing table lookup to routing iinformation, in subtending port
4 forward the data frame to switch b;Switch b receives the data frame, and purpose communication apparatus is searched in local A class routing table
Mark 121, after searching less than the device identification, further in local B class routing table lookup;In B class routing table lookup to routing
After information, forward the data frame to interchanger C in subtending port 5;Interchanger C receives the data frame, in local A class routing table
Purpose communication apparatus mark 121 is searched, forwards the data frame to purpose communication apparatus C2. from CAN interface 2 according to routing table information
It include following step based on the optical fiber CAN bus routing algorithm process of the invention based on star structure with reference to Fig. 5
It is rapid:
A. Route establishment
(1) CAN interchanger receives the A class route requests frame of CAN communication equipment, and A class route requests frame includes the equipment
Mark, establishes A class routing table according to the mark of the CAN interface number and equipment that receive data frame;
(2) CAN interchanger sends the B class route requests frame of the machine from cascade port, which, which contains, is directly connected to
The mark ID of all devices of this interchanger;
(3) CAN interchanger receives the B class route requests frame of other interchangers, the B class route requests from subtending port simultaneously
The mark ID of equipment of the frame containing other interchangers is cascaded set contained by slogan and B class route requests frame data domain based on the received
Standby mark establishes B class routing table;
(4) after CAN interchanger receives the B class route requests frames of other interchangers from subtending port, while by the frame from non-
The other subtending ports for receiving the frame forward;
B. routing maintains
(1) CAN communication equipment periodically sends A class route requests frame
(2) CAN interchanger time-out does not receive the A class route requests frame of some equipment of A class routing table, by the equipment from A class
It is deleted in routing table;CAN interchanger receives the A class route requests frame that new equipment issues, and equipment addition is entered A class and is routed
Table;
(3) when the machine A class routing table changes, CAN interchanger sends B class route requests frame to each cascade port;
(4) when CAN interchanger receives B class route requests frame, the machine B class routing table is updated, while the frame being connect from non-
The other subtending ports for receiving the frame forward;
C. data frames by
(1) when CAN interchanger receives normal data frame, CAN interchanger is looked into according to the purpose communication apparatus of data frame mark
A class routing table is looked for, if it find that purpose communication apparatus in A class routing table, then sends the number in corresponding interface according to routing table
According to frame;
(2) if it find that purpose communication apparatus then searches B class routing table not in A class routing table, if routed in B class
In table, then the data frame is forwarded in corresponding subtending port;
(3) if purpose communication apparatus abandons the frame not in A class or B class routing table.
The present invention is not only limited to above-mentioned specific embodiment, and persons skilled in the art are according to embodiment and attached drawing public affairs
Open content, the present invention can be implemented using other a variety of specific embodiments, therefore, it is all using design structure of the invention and
Thinking does the design of some simple transformation or change, both falls within the scope of protection of the invention.
Claims (6)
1. a kind of optical fiber CAN bus route system based on star topology, which is characterized in that the route system includes
CAN bus is provided with multiple CAN communication equipment and multiple CAN bus interchangers in the CAN bus;Each CAN interchanger is set
Set at least one cascade CAN interface and multiple common CAN interfaces;Pass through the optical fiber phase of cascade CAN interface between CAN interchanger
Even, CAN communication equipment is connected on common CAN interface by optical fiber;The CAN communication equipment is to the CAN bus interchanger
Send data frame, the CAN bus interchanger according to the data frame identify A class route requests frame, B class route requests frame with
And CAN message frame;The CAN port that CAN interchanger is received according to the A class route requests frame flag is received, is recorded in exchange
In routing table inside machine;Meanwhile CAN interchanger sends B class route requests frame by cascade CAN interface, by this CAN interchanger
The routing iinformation of storage is sent to other CAN interchangers;CAN interchanger by A class and B class route requests frame interact establish and
Safeguard routing table, the CAN message frame realizes routing function in such a way that CAN interchanger searches routing table.
2. the optical fiber CAN bus route system according to claim 1 based on star topology, it is characterised in that: will
The format of the identifier in the data frame arbitration domain of the data frame is set as function code section, source communication apparatus identifies ID sections, purpose
Communication apparatus identifies ID sections, flowing water number section, reservation paragraph.
3. the optical fiber CAN bus route system according to claim 2 based on star topology, it is characterised in that: institute
The position D25 to D28 for stating the identifier in data frame arbitration domain is set as function code section, and source communication apparatus mark is set as from D18 to D24
Know ID sections, D10 to D17 is configured as purpose communication apparatus and identifies ID sections, serial number is set by D4 to D9, D3 to D0 is set
It is set to reservation, is not required, flexible allocation as needed;Function code section therein is used to distinguish the function of data frame, i.e. A class
Route requests frame, B class route requests frame and normal data frame;Device identification ID number retains 0, remaining number is used equally for equipment
Mark, each CAN communication equipment or CAN interchanger have unique device identification ID in the whole network.
4. the optical fiber CAN bus route system according to claim 3 based on star topology, it is characterised in that: institute
CAN communication equipment is stated by the source communication apparatus identification section of itself CAN communication device identification filling A class route requests frame, and is sent
The A class route requests frame;Itself CAN switch device is identified the source of filling B class route requests frame by the CAN bus interchanger
Communication apparatus identification section, and send B class route requests frame;If a B class route requests frame of CAN interchanger cannot will own
The mark for being connected to the CAN communication equipment of the CAN interchanger is sent, then continue send B class route requests frame, serial number according to
It is secondary to add 1, it is sent until by all CAN communication device identifications for being connected to this interchanger.
5. the optical fiber CAN bus route system according to any one of claims 1-4 based on star topology, special
Sign is, the CAN interchanger interact foundation and safeguard routing table by A class and B class route requests frame, including walks as follows
It is rapid:
The respective data frame including A class route requests frame is regularly sent after step 1, all CAN communication device powers;
Step 2, CAN interchanger receive and identify the A class route requests frame of connected CAN communication equipment from common CAN interface,
The common CAN interface number received is recorded, according to the source communication apparatus mark ID in the A class route requests frame and connects CAN interface
Number corresponding relationship is established, forms the A class routing table of the CAN interchanger;The routing table content is that common CAN interface number and source communicate
The corresponding relationship of device identification ID;
After step 3, CAN interchanger establish routing table A, the B class route requests frame identified is sent by subtending port, will be connected
CAN communication device identification ID to the machine is sent to other CAN multi-layer switches;
Step 4, hereafter, if the CAN interchanger receives the A class route requests frame of connected CAN communication equipment, first checks for
Whether change with former routing table, such as without change, do not update routing table A, does not also send B class route requests to other interchangers
Frame;If changing with former routing table, the machine routing table A is updated, then B class route requests frame is sent by subtending port, will sent out
The CAN device mark id information for changing is sent to other CAN multi-layer switches;
After step 5, the CAN interchanger receive B class route requests frame from subtending port, the cascade CAN interface number received is recorded,
According to the information of B class route requests frame, establish B class routing table, B class routing table include information be cascade CAN interface number with and
ID is identified with the CAN device communicated by the cascade CAN interface;CAN interchanger receive also need after a B class route requests frame by
The frame forwards respectively from other cascade CAN interfaces of the non-reception frame.
6. the optical fiber CAN bus route system according to claim 5 based on star structure, which is characterized in that the number
Include the following steps: according to frame routing procedure
Step 1, CAN communication equipment send data frame to the CAN interchanger connected;
Step 2, CAN interchanger receive the data frame from common CAN interface, take the purpose communication apparatus mark in data frame arbitration domain
ID is searched in routing table A, if explanation is the communication apparatus in the same CAN interchanger, according to routing table A in routing table A
CAN interface forward the data frame in corresponding CAN interface to the corresponding relationship of CAN communication device identification ID;If not in routing table A
In, continue to find purpose communication apparatus in routing table B identifying ID, if purpose communication apparatus mark ID is found, from corresponding
Cascade CAN interface forwards the data frame to other CAN interchangers;If it is logical not find the purpose in routing table A and routing table B
Device identification ID is interrogated, then abandons the data frame;
Step 3, CAN interchanger receive data frame from cascade CAN interface, take the purpose communication apparatus mark ID in data frame arbitration domain
It is searched in routing table A, if being closed in routing table A according to the CAN interface of routing table A is corresponding with CAN communication device identification ID
It ties up to corresponding CAN interface and forwards the data frame;If continuing to find purpose communication apparatus mark in routing table B not in routing table A
Know ID, if finding purpose communication apparatus mark ID, forwards the data frame to exchange to other CAN from corresponding cascade CAN interface
Machine;If not finding purpose communication apparatus mark ID in routing table A and routing table B, the data frame is abandoned.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811619868.4A CN109412695B (en) | 2018-12-28 | 2018-12-28 | Optical fiber CAN2.0B bus routing system based on star topology structure |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811619868.4A CN109412695B (en) | 2018-12-28 | 2018-12-28 | Optical fiber CAN2.0B bus routing system based on star topology structure |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109412695A true CN109412695A (en) | 2019-03-01 |
CN109412695B CN109412695B (en) | 2022-06-10 |
Family
ID=65462348
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811619868.4A Active CN109412695B (en) | 2018-12-28 | 2018-12-28 | Optical fiber CAN2.0B bus routing system based on star topology structure |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109412695B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110224913A (en) * | 2019-07-15 | 2019-09-10 | 珠海格力电器股份有限公司 | Data transmission method, device, data transmission system and equipment |
CN115589272A (en) * | 2022-10-13 | 2023-01-10 | 中国船舶重工集团公司第七一九研究所 | High-precision pulse synchronization system based on FC-AE |
CN116800557A (en) * | 2023-08-21 | 2023-09-22 | 成都炎兴自动化技术有限公司 | CAN bus fusion communication system based on CANOpen application protocol |
Citations (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060059294A1 (en) * | 2004-09-16 | 2006-03-16 | Smith Kevin T | Expandable bus topology for peripheral devices of straddle vehicles |
CN101022457A (en) * | 2007-03-12 | 2007-08-22 | 北京交通大学 | Radio multi-hopping network audio frequency, data transmission nodal equipment |
CN101141210A (en) * | 2007-01-15 | 2008-03-12 | 中兴通讯股份有限公司 | Method of determining the longest member of path time delay in virtual concatenation group |
CN101262355A (en) * | 2008-04-18 | 2008-09-10 | 北京锐安科技有限公司 | A data switch processing board and its corresponding switch processing system |
CN101267401A (en) * | 2008-04-25 | 2008-09-17 | 北京交通大学 | A mixed topology control method based on AODV protocol |
CN101330405A (en) * | 2008-07-02 | 2008-12-24 | 北京亿阳信通软件研究院有限公司 | Method for discovering network topology and related equipment |
CN202663432U (en) * | 2012-07-13 | 2013-01-09 | 安徽安凯汽车股份有限公司 | Controller area network (CAN) network router for electric passenger car |
CN103078697A (en) * | 2012-12-11 | 2013-05-01 | 中国船舶重工集团公司第七一九研究所 | Distributed clock synchronization method |
WO2013144001A1 (en) * | 2012-03-29 | 2013-10-03 | Robert Bosch Gmbh | Communication system with ring topology |
JP2014060626A (en) * | 2012-09-18 | 2014-04-03 | Oki Electric Ind Co Ltd | Optical network and node |
CN104184815A (en) * | 2014-08-28 | 2014-12-03 | 浙江吉利控股集团有限公司 | Topology network |
CN104333517A (en) * | 2014-09-28 | 2015-02-04 | 航天科工深圳(集团)有限公司 | Automation equipment communication method based on CAN bus |
CN104734961A (en) * | 2013-12-20 | 2015-06-24 | 中国航空工业集团公司第六三一研究所 | Routing method based on FC switched network |
CN105262658A (en) * | 2015-10-30 | 2016-01-20 | 北京交控科技有限公司 | Switching device, field-bus topological structure, and data transmission method |
CN105406982A (en) * | 2015-10-20 | 2016-03-16 | 北京电子工程总体研究所 | CAN bus double redundancy heat backup method |
US20160197831A1 (en) * | 2013-08-16 | 2016-07-07 | Interdigital Patent Holdings, Inc. | Method and apparatus for name resolution in software defined networking |
CN105792305A (en) * | 2016-02-24 | 2016-07-20 | 长春思拓电子科技有限责任公司 | Method for designing ultralow-power wireless data transmission network |
CN106027397A (en) * | 2016-05-16 | 2016-10-12 | 中北大学 | Network communication method for distributed measuring equipment of star expansion |
CN106789331A (en) * | 2017-01-11 | 2017-05-31 | 北京金数信数码科技有限公司 | Topological Structure Generation and system |
CN107241249A (en) * | 2017-05-19 | 2017-10-10 | 闫晓峰 | Ether bus switch, ether bus architecture and data communication method |
CN107508640A (en) * | 2017-04-27 | 2017-12-22 | 中国人民解放军海军航空工程学院 | Dual loop redundancy self-healing fiber optic network construction method based on Fibre Channel technologies |
CN107707447A (en) * | 2017-09-22 | 2018-02-16 | 中科新松有限公司 | A kind of slave station system and control method based on EtherCAT |
-
2018
- 2018-12-28 CN CN201811619868.4A patent/CN109412695B/en active Active
Patent Citations (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060059294A1 (en) * | 2004-09-16 | 2006-03-16 | Smith Kevin T | Expandable bus topology for peripheral devices of straddle vehicles |
CN101141210A (en) * | 2007-01-15 | 2008-03-12 | 中兴通讯股份有限公司 | Method of determining the longest member of path time delay in virtual concatenation group |
CN101022457A (en) * | 2007-03-12 | 2007-08-22 | 北京交通大学 | Radio multi-hopping network audio frequency, data transmission nodal equipment |
CN101262355A (en) * | 2008-04-18 | 2008-09-10 | 北京锐安科技有限公司 | A data switch processing board and its corresponding switch processing system |
CN101267401A (en) * | 2008-04-25 | 2008-09-17 | 北京交通大学 | A mixed topology control method based on AODV protocol |
CN101330405A (en) * | 2008-07-02 | 2008-12-24 | 北京亿阳信通软件研究院有限公司 | Method for discovering network topology and related equipment |
WO2013144001A1 (en) * | 2012-03-29 | 2013-10-03 | Robert Bosch Gmbh | Communication system with ring topology |
CN202663432U (en) * | 2012-07-13 | 2013-01-09 | 安徽安凯汽车股份有限公司 | Controller area network (CAN) network router for electric passenger car |
JP2014060626A (en) * | 2012-09-18 | 2014-04-03 | Oki Electric Ind Co Ltd | Optical network and node |
CN103078697A (en) * | 2012-12-11 | 2013-05-01 | 中国船舶重工集团公司第七一九研究所 | Distributed clock synchronization method |
US20160197831A1 (en) * | 2013-08-16 | 2016-07-07 | Interdigital Patent Holdings, Inc. | Method and apparatus for name resolution in software defined networking |
CN104734961A (en) * | 2013-12-20 | 2015-06-24 | 中国航空工业集团公司第六三一研究所 | Routing method based on FC switched network |
CN104184815A (en) * | 2014-08-28 | 2014-12-03 | 浙江吉利控股集团有限公司 | Topology network |
CN104333517A (en) * | 2014-09-28 | 2015-02-04 | 航天科工深圳(集团)有限公司 | Automation equipment communication method based on CAN bus |
CN105406982A (en) * | 2015-10-20 | 2016-03-16 | 北京电子工程总体研究所 | CAN bus double redundancy heat backup method |
CN105262658A (en) * | 2015-10-30 | 2016-01-20 | 北京交控科技有限公司 | Switching device, field-bus topological structure, and data transmission method |
CN105792305A (en) * | 2016-02-24 | 2016-07-20 | 长春思拓电子科技有限责任公司 | Method for designing ultralow-power wireless data transmission network |
CN106027397A (en) * | 2016-05-16 | 2016-10-12 | 中北大学 | Network communication method for distributed measuring equipment of star expansion |
CN106789331A (en) * | 2017-01-11 | 2017-05-31 | 北京金数信数码科技有限公司 | Topological Structure Generation and system |
CN107508640A (en) * | 2017-04-27 | 2017-12-22 | 中国人民解放军海军航空工程学院 | Dual loop redundancy self-healing fiber optic network construction method based on Fibre Channel technologies |
CN107241249A (en) * | 2017-05-19 | 2017-10-10 | 闫晓峰 | Ether bus switch, ether bus architecture and data communication method |
CN107707447A (en) * | 2017-09-22 | 2018-02-16 | 中科新松有限公司 | A kind of slave station system and control method based on EtherCAT |
Non-Patent Citations (1)
Title |
---|
季振东,李东野,孙毅超,赵剑锋,黄允凯: "一种三相级联型电力电子变压器及其控制策略研究", 《电机与控制学报》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110224913A (en) * | 2019-07-15 | 2019-09-10 | 珠海格力电器股份有限公司 | Data transmission method, device, data transmission system and equipment |
CN115589272A (en) * | 2022-10-13 | 2023-01-10 | 中国船舶重工集团公司第七一九研究所 | High-precision pulse synchronization system based on FC-AE |
CN115589272B (en) * | 2022-10-13 | 2024-04-09 | 中国船舶重工集团公司第七一九研究所 | FC-AE-based high-precision pulse synchronization system |
CN116800557A (en) * | 2023-08-21 | 2023-09-22 | 成都炎兴自动化技术有限公司 | CAN bus fusion communication system based on CANOpen application protocol |
CN116800557B (en) * | 2023-08-21 | 2023-12-29 | 成都炎兴自动化技术有限公司 | CAN bus fusion communication system based on CANOpen application protocol |
Also Published As
Publication number | Publication date |
---|---|
CN109412695B (en) | 2022-06-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5588119A (en) | Method for correlating logical device names with a hub port in a local area network | |
CN104618207B (en) | The FC-AE-1553 network systems and exchange method of a kind of heterogeneous | |
CN109412695A (en) | A kind of optical fiber CAN 2.0B bus route system based on star topology | |
CN100561970C (en) | A kind of method and apparatus of realizing load balancing | |
US20060123132A1 (en) | System and method for accessing and transmitting different data frames in a digital transmission network | |
CN100586079C (en) | A kind of method for discovering network topology of data-oriented link layer | |
US20020114328A1 (en) | Apparatus for linking a SAN with a LAN | |
CN1996925A (en) | Sending and receiving method and system for link aggregation method, device and MAC frame | |
CN104283817A (en) | Method for achieving communication of switching line card and logic line card and packet transmitting equipment | |
CN101778035B (en) | Virtual private LAN service communication method and device | |
US20090122800A1 (en) | Frame transfer route confirmation method, node, frame transfer route confirmation program and frame transfer route confirmation system | |
CN103701679A (en) | VLAN (virtual local area network) conversion implementation method | |
US6510151B1 (en) | Packet filtering in connection-based switching networks | |
CN110830394B (en) | Method for generating routing table based on RapidIO network | |
CN101499851B (en) | Method for interconnecting automatic switch optical network with traditional optical network | |
CN104243298A (en) | Message control method and device | |
EP1594258B1 (en) | Method and system for receiving and transmitting different data frames on digital transmission network | |
CN113810261B (en) | Apparatus and method for routing packets between a time-sensitive network and a non-time-sensitive network by operating a virtual area network tag | |
EP1589697B1 (en) | Method and system for receiving and transmitting different data frames on digital transmission network | |
CN106603330A (en) | Cloud platform virtual machine connection state checking method | |
JP2002353996A (en) | Network, bridge, unit filtering database buildup method used for the bridge unit, and its program | |
US9413603B2 (en) | Method for implementing virtual network, and network management system | |
CN101938420B (en) | Cluster topological collection method and device | |
CN102387047B (en) | The monitoring system of transmission equipment and corresponding collocation method and data transmission method | |
CN112003685A (en) | Flexible Ethernet message forwarding method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |