CN106130640A - The means of communication of a kind of master-slave type fiber optic network and device - Google Patents
The means of communication of a kind of master-slave type fiber optic network and device Download PDFInfo
- Publication number
- CN106130640A CN106130640A CN201610435902.7A CN201610435902A CN106130640A CN 106130640 A CN106130640 A CN 106130640A CN 201610435902 A CN201610435902 A CN 201610435902A CN 106130640 A CN106130640 A CN 106130640A
- Authority
- CN
- China
- Prior art keywords
- frame
- distributed unit
- unit
- main control
- control unit
- 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/25—Arrangements specific to fibre transmission
Abstract
nullThe invention provides the means of communication and the device of a kind of master-slave type fiber optic network,Described master-slave type fiber optic network includes main control unit and n distributed unit,The receiving terminal of the transmitting terminal of main control unit and first distributed unit connects,Each distributed unit is the most connected in series,The transmitting terminal of last distributed unit is connected with the receiving terminal of main control unit,Send boundling frame by main control unit and arrive n distributed unit successively,The positional information of n distributed unit n distributed unit of foundation and function information,Forward after the boundling frame received is processed or be forwarded directly to next distributed unit,Until returning main control unit,Make each distributed unit in net all can receive boundling frame,And then improve the synchronicity receiving or sending data between the interior multiple unit of net,Main control unit in net only needs to be connected with two distributed unit and indirectly can carry out communication with multiple distributed unit simultaneously,Save the resource of dcs.
Description
Technical field
The present invention relates to digital communication technology field, in particular, relate to the communication of a kind of master-slave type fiber optic network
Method and device.
Background technology
Master-slave type network be a kind of by master unit management and network from the means of communication of unit communications, all communications by
Master unit is initiated, and is only capable of passive reception or response from unit.
At present, in master-slave type network uses the dcs of optical-fibre communications, main control unit and each distributed list
Use point-to-point asynchronous communication mode to carry out communication between unit, between other each distributed unit, the most directly connect pass
System, but in network during real-time performance less demanding, uses the point-to-point asynchronous communication mode can be due at master control list
The multiple optical fiber interfaces set up between first and each distributed unit cause the resource of waste this dcs of part, with
Time, use in the dcs of point-to-point asynchronous communication mode, main control unit is only capable of and a distributed list every time
Unit carries out data communication, reduces the synchronicity receiving or sending data between main control unit and each distributed unit.
Summary of the invention
In view of this, the invention provides the means of communication and the device of a kind of master-slave type fiber optic network, and then both improve
Receive or send the synchronicity of data between main control unit and each distributed unit, save again the money of dcs
Source.
For achieving the above object, the present invention provides following technical scheme:
The means of communication of a kind of master-slave type fiber optic network, described master-slave type fiber optic network includes main control unit and n distribution
Formula unit, the transmitting terminal of described main control unit is connected by the receiving terminal of optical fiber and first described distributed unit, each institute
State distributed unit the most connected in series, the transmitting terminal of last described distributed unit and the receiving terminal of described main control unit
Being connected, described main control unit obtains positional information and function information, the described method bag of n described distributed unit in advance
Include:
Described main control unit sends the described distributed unit of boundling frame to first;
First described distributed unit receives described boundling frame, and according to the positional information of n described distributed unit
With function information, forward after described boundling frame is processed or be forwarded directly to next described distributed unit;
Other each described distributed unit receives through processing or undressed described boundling frame, and according to n institute
State positional information and the function information of distributed unit, forward after successively described boundling frame being processed or be forwarded directly to down
One described distributed unit, until returning described main control unit;
Wherein, n is positive integer.
Preferably, described main control unit obtains the positional information of n described distributed unit in advance, including:
Described main control unit sends the described distributed unit of relay frame to first;
First described distributed unit receives described relay frame, and the position field in described relay frame is added 1 process,
And it is forwarded to next described distributed unit, wherein, the initial value of the position field in described relay frame is 0;
Other each described distributed unit adds at 1 in the process receiving the transmission of respective previous described distributed unit
During the described relay frame managed, add 1 process to passing through the described relay frame adding 1 process, and be forwarded to next described distribution
Formula unit, until carrying out the described relay frame after adding 1 process through distributed unit last described to return described master control list
Unit;
Wherein, described main control unit receive through distributed unit last described carry out add 1 process after
During described relay frame, described main control unit obtains the function information of n described distributed unit.
Preferably, described main control unit receive through distributed unit last described carry out add 1 process after
Described relay frame time, described main control unit obtains the function information of n described distributed unit, including:
Described main control unit sends the described distributed unit of n subquery frame to first, wherein, n described son successively
The first address information one_to_one corresponding in the first address information comprised in inquiry frame described distributed unit individual with n respectively, institute
State the positional information that the first address information is n the described distributed unit that described main control unit obtains;
First described distributed unit receives arbitrary described subquery frame, and with arbitrary described subquery frame in described in
First address information is mated;
When mating correct, first described distributed unit produces corresponding function information frame, and forwards the institute of correspondence
State function information frame with described subquery frame to next described distributed unit;
Other each described distributed unit receives arbitrary described subquery frame, and with the institute in arbitrary described subquery frame
State the first address information to mate;
When mating correct, mate correct described distributed unit and produce corresponding function information frame, and forward correspondence
Described function information frame and described subquery frame to next described distributed unit, until the individual described subquery frame of n and right
N the function information frame answered returns described main control unit;
Wherein, when described main control unit receives n function information frame of n described subquery frame and correspondence, perform
Described main control unit sends the described distributed unit of boundling frame to first.
Preferably, receive arbitrary described subquery frame in described first or other each described distributed unit, and appoint
After described first address information in subquery frame described in is mated, also include:
When matching error, first or other each described distributed unit directly forward the arbitrary described son received
Inquiry frame is to next described distributed unit or described main control unit.
Preferably, described first or other each described distributed unit receive described boundling frame, and described according to n
The positional information of distributed unit and function information, forward after processing described boundling frame or be forwarded directly to next institute
State distributed unit, until returning described main control unit, including:
First or other each described distributed unit receive in any subset bundle frame, with arbitrary described subset bundle frame
Second address information is mated, and wherein, described boundling frame comprises m described subset bundle frame, comprises in m described subset bundle frame
The second address information respectively with the second address information one_to_one corresponding in n described distributed unit, described second address letter
The positional information of n the described distributed unit that breath obtains for described main control unit and function information, m is positive integer, and m is less than
Equal to n;
When mating correct, first or other each described distributed unit are from the described subset bundle frame that coupling is correct
Obtain corresponding data field, and effectively inquire about flag bit, and make in data field corresponding in described subset bundle frame described
Inquiry flag bit is effective, forwards described subset bundle frame to next described distributed unit, returns until m described subset bundle frame
Described main control unit.
Preferably, arbitrary described subset bundle frame is received, with institute in described first or other each described distributed unit
State after described second address information in subset bundle frame mates, also include:
When matching error, first or other each described distributed unit directly forward the arbitrary described son received
Boundling frame is to next described distributed unit or described main control unit.
Preferably, in described first or other each described distributed unit from the described subset bundle frame that coupling is correct
After obtaining corresponding data field, and effective inquiry flag bit, also include:
First or other each described distributed unit are according to getting in the described subset bundle frame correct from coupling
Effectively inquire about flag bit, carry out response sequence, and response ranking results is saved in respective described distributed unit
Cell queue.
Preferably, before described main control unit sends the described distributed unit of boundling frame to first, also include:
Described main control unit sends the described distributed unit of synchronization frame to first;
First described distributed unit receives described synchronization frame, and directly forwards described synchronization frame to next described point
Cloth unit;
Other each described distributed unit receives described synchronization frame, and directly forwards described synchronization frame to next described
Distributed unit, until described synchronization frame returns described main control unit.
Preferably, after described m described subset bundle frame returns described main control unit, also include:
Described main control unit sends the described distributed unit of end frame to first;
First described distributed unit receives described end frame, and directly forwards described end frame to next described point
Cloth unit;
Other each described distributed unit receives described end frame, and directly forwards described end frame to next described
Distributed unit, until described end frame returns described main control unit.
Preferably, after described end frame returns described main control unit, also include:
M described distributed unit sorts according to the response of the cell queue being saved in respective described distributed unit and ties
Really, the response frame that the sequence described distributed unit before each sends is received;
The response frame that m described distributed unit directly forwards the described distributed unit before each that sorts to send,
And send respective response frame.
Preferably, after m described distributed unit have sent m response frame, also include:
Described main control unit receives effective reseting mark;
Described main control unit returns described main control unit and sends the described distributed unit of relay frame to first.
A kind of communication device of master-slave type fiber optic network, including:
Main control unit and n distributed unit, the transmitting terminal of described main control unit and first described distributed unit
Receiving terminal connects, and each described distributed unit is the most connected in series, the transmitting terminal of last described distributed unit and institute
The receiving terminal stating main control unit is connected;
Described main control unit, for obtaining positional information and the function information of n described distributed unit, sends boundling frame
The described boundling frame returned to first described distributed unit and reception;
N described distributed unit, is used for receiving described boundling frame, and n obtained according to described main control unit is described
The positional information of distributed unit and function information, forward after processing described boundling frame successively or be forwarded directly to next
Individual described distributed unit or described main control unit;
Wherein, n is positive integer.
Preferably, when described main control unit obtains the positional information of n distributed unit, described main control unit is specifically used
In:
Described main control unit, is used for sending the described distributed unit of relay frame to first, wherein, in described relay frame
The initial value of position field is 0;
Accordingly, first described distributed unit, it is additionally operable to when receiving described relay frame, in described relay frame
Position field carries out adding 1 process, and is forwarded to next described distributed unit;
Accordingly, other each described distributed unit, it is additionally operable to receiving respective previous described distributed unit
The described relay frame through adding 1 process sent, the described relay frame that process adds 1 process successively adds 1 process, and turns
It is dealt into next described distributed unit or described main control unit;
Described main control unit, connects described in after distributed unit last described carries out adding 1 process for receiving
Power frame.
Preferably, when described main control unit obtains the function information of n distributed unit, described main control unit is specifically used
In:
Described main control unit, for carrying out the institute after adding 1 process through distributed unit last described receiving
When stating relay frame, send n the described distributed unit of subquery frame to first successively, wherein, n described subquery frame wraps
The first address information one_to_one corresponding in the first address information contained described distributed unit individual with n respectively, described first address
Information is the positional information of n the described distributed unit that described main control unit obtains;
Accordingly, first described distributed unit, it is additionally operable to receiving arbitrary described subquery frame, and described with arbitrary
When described first address information in subquery frame is mated correct, produce corresponding function information frame, and forward the described of correspondence
Function information frame and described subquery frame are to next described distributed unit;
Accordingly, other each described distributed unit, be additionally operable to receiving arbitrary described subquery frame, and with arbitrary institute
State the described first address information coupling in subquery frame correct time, be sequentially generated the function information frame of correspondence, and forward correspondence
Described function information frame and described subquery frame to next described distributed unit or described main control unit;
Described main control unit, for receiving n described subquery frame and n function information frame of correspondence.
Preferably, described first or other each described distributed unit, it is additionally operable to:
Receive arbitrary described subquery frame, and mate mistake with described first address information in arbitrary described subquery frame
Mistake, directly forward the arbitrary described subquery frame received to next described distributed unit or described main control unit.
Preferably, receive described boundling frame in described n described distributed unit, and obtain according to described main control unit
The positional information of n described distributed unit and function information, forward after processing described boundling frame successively or directly turn
When being dealt into next described distributed unit or described main control unit, n described distributed unit specifically for:
First or other each described distributed unit are in receiving any subset bundle frame, with arbitrary described subset bundle frame
The second address information coupling correct time, from the correct described subset bundle frame of coupling, obtain the data field of correspondence, and effectively
Inquiry flag bit, and make in described subset bundle frame the inquiry flag bit in corresponding data field effective, forward described subset bundle
Frame is to next described distributed unit or described main control unit;
Wherein, described boundling frame comprises m described subset bundle frame, the second address letter comprised in m described subset bundle frame
The second address information one_to_one corresponding in breath described distributed unit individual with n respectively, described second address information is described master control
The positional information of n the described distributed unit that unit obtains and function information, m is positive integer, and m is less than or equal to n.
Preferably, described first or other each described distributed unit, it is additionally operable to:
Receive arbitrary described subset bundle frame, and mate mistake with described second address information in arbitrary described subset bundle frame
Mistake, directly forward the arbitrary described subset bundle frame received to next described distributed unit or described main control unit.
Preferably, any subset bundle frame is being received, with arbitrary in described first or other each described distributed unit
When the second address information in described subset bundle frame is mated correct, from the described subset bundle frame that coupling is correct, obtain the number of correspondence
According to territory, and after effective inquiry flag bit, described first or other each described distributed unit are additionally operable to:
Effectively inquire about flag bit according to what the described subset bundle frame correct from coupling got, carry out response sequence,
And response ranking results is saved in the cell queue in respective described distributed unit.
Preferably, before described main control unit sends the described distributed unit of boundling frame to first, described master control list
Unit is additionally operable to:
Send the described distributed unit of synchronization frame to first;
Receive described synchronization frame first described distributed unit, and directly forward described synchronization frame to next described
Distributed unit, during until described synchronization frame returns described main control unit, receives the described synchronization frame returned.
Preferably, after described m described subset bundle frame is forwarded to described main control unit, described main control unit is also used
In:
Send the described distributed unit of end frame to first;
Receive described end frame first described distributed unit, and directly forward described end frame to next described
Distributed unit, during until described end frame returns described main control unit, receives the described end frame returned.
Preferably, after described main control unit receives the described end frame returned, m described distributed unit is also used
In:
According to the response ranking results of the cell queue being saved in respective described distributed unit, exist receiving sequence
During the response frame that the described distributed unit before Ge Zi sends, directly forward the sequence described distributed unit before each
The response frame sent, and send respective response frame.
Preferably, after described m described distributed unit have sent m response frame, described main control unit is additionally operable to:
When receiving effective reseting mark, send the described distributed unit of relay frame to first.
Understand via above-mentioned technical scheme, compared with prior art, the invention provides a kind of master-slave type fiber optic network
The means of communication and device, described master-slave type fiber optic network includes main control unit and n distributed unit, described main control unit
Transmitting terminal is connected by the receiving terminal of optical fiber and first described distributed unit, and each described distributed unit serial successively is even
Connecing, the transmitting terminal of last described distributed unit is connected with the receiving terminal of described main control unit, and described main control unit is pre-
First obtain positional information and the function information of n described distributed unit, send boundling frame to n institute by described main control unit
Stating distributed unit, n described distributed single positional information according to the n being obtained ahead of time a described distributed unit is believed with function
Breath, forwards after process or undressed described boundling frame process receive or directly forwards successively, until
Return described main control unit so that in net, each distributed unit all can receive described boundling frame in the Current communications cycle,
And then improve the synchronicity receiving or sending data between main control unit and each distributed unit, simultaneously in Current communications week
Interim main control unit only needs to be connected with two distributed unit to realize carrying out communication between multiple distributed unit, saves
The resource of dcs.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this
Inventive embodiment, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to according to
The accompanying drawing provided obtains other accompanying drawing.
The means of communication flow chart of a kind of master-slave type fiber optic network that Fig. 1 provides for the embodiment of the present invention;
A kind of positional information method flow diagram obtaining multiple distributed unit that Fig. 2 provides for the embodiment of the present invention;
A kind of function information method flow diagram obtaining multiple distributed unit that Fig. 3 provides for the embodiment of the present invention;
The means of communication flow chart of the another kind of master-slave type fiber optic network that Fig. 4 provides for the embodiment of the present invention;
Fig. 5 sends the method flow diagram of synchronization frame for a kind of main control unit that the embodiment of the present invention provides;
The method flow diagram of a kind of distributed unit response main control unit that Fig. 6 provides for the embodiment of the present invention;
The communication device structural representation of a kind of master-slave type fiber optic network that Fig. 7 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise
Embodiment, broadly falls into the scope of protection of the invention.
Embodiments providing the means of communication of a kind of master-slave type fiber optic network, refer to accompanying drawing 1, described method has
Body comprises the following steps:
Step 101: main control unit sends boundling frame to first distributed unit;
Concrete, described main control unit by the boundling frame sent issue data to contain n distributed unit with
And in the looped network of a main control unit, and n the distributed unit serial successively in described looped network is connected, and wherein, first institute
The transmitting terminal of the receiving terminal and described main control unit of stating distributed unit is connected, and the transmitting terminal of first described distributed unit is then
It is connected with the receiving terminal of second described distributed unit, is sequentially connected with other described distributed unit with this connected mode, directly
It is connected to the transmitting terminal of distributed unit last described with the receiving terminal of described main control unit;
Secondly, when described main control unit carries out a communication with described boundling frame for initiating signal every time, the n in looped network
Individual described distributed unit can be sequentially received this boundling frame, and in improve looped network, described main control unit is distributed with each described
Receive or send the synchronicity of data between unit.
Step 102: first described distributed unit receives described boundling frame, and according to n described distributed unit
Positional information and function information, forward after processing described boundling frame or be forwarded directly to next described distributed list
Unit, wherein n is positive integer;
Concrete, before described main control unit sends boundling frame, described main control unit can obtain n described distribution in advance
The positional information of formula unit and function information, in order to n described distributed unit is according to n the described distributed unit obtained
Positional information and function information, forward after processing the described boundling frame sent accordingly or be forwarded directly to next institute
State distributed unit.
Step 103: other each described distributed unit receives through processing or undressed described boundling frame, and depends on
According to positional information and the function information of n described distributed unit, forward after successively described boundling frame being processed or direct
It is forwarded to next described distributed unit, until returning described main control unit;
Concrete, after the operation forwarded after the process that n described distributed unit is carried out or directly forward, described
Boundling frame can return to described main control unit by distributed unit last described, in order to described main control unit carries out follow-up
Operation or enter new communication cycle.
In the means of communication disclosed in the embodiment of the present invention, described main control unit is gone here and there with n described distributed unit
Row connects, makeup ring l network, and described main control unit gets positional information and the function of n described distributed unit the most in advance
Information, sends the described distributed unit of boundling frame to first by described main control unit, and first described distributed unit connects
Receive described boundling frame, and according to the positional information of n described distributed unit and function information, described boundling frame is processed
Rear forwarding or be forwarded directly to next described distributed unit, until returning described main control unit so that every in looped network
Individual distributed unit all can receive described boundling frame, so improve receive between main control unit and each distributed unit or
Send the synchronicity of data, simultaneously in the Current communications cycle transmitting terminal of main control unit and receiving terminal only with two distributed lists
Unit's connection can realize carrying out communication between multiple distributed unit indirectly, saves the resource of dcs.
A kind of method embodiments providing positional information obtaining multiple distributed unit, refer to accompanying drawing 2,
Described method specifically includes following steps:
Step 201: described main control unit sends the described distributed unit of relay frame to first;
Concrete, when described main control unit obtains the positional information of n described distributed unit in advance, need described master
The control unit first described distributed unit in looped network sends a relay frame, is used for making described main control unit know looped network
In the quantity of multiple described distributed unit, and the particular location in making multiple distributed unit know each comfortable looped network.
Step 202: first described distributed unit receives described relay frame, carries out the position field in described relay frame
Adding 1 process, and be forwarded to next described distributed unit, wherein, the initial value of the position field in described relay frame is 0;
Concrete, in the described relay frame that described main control unit sends, there are multiple distributions in adding up looped network
The position field of formula element number, and the initial value in described relay frame position territory is 0;When described relay frame is through described in first point
During cloth unit, first described distributed unit can make the value of the position field in described relay frame add 1, forwards process the most again
Add the relay frame after 1 process to next described distributed unit.
Step 203: other each described distributed unit is receiving what respective previous described distributed unit sent
Through adding the described relay frame of 1 process, add 1 process to passing through the described relay frame adding 1 process, and be forwarded to the next one
Described distributed unit, until carrying out the described relay frame after adding 1 process through distributed unit last described to return institute
State main control unit;
Concrete, in the described relay frame any one of distributed unit of often other in looped network, other
A described distributed unit of anticipating all values to the described relay frame position territory received carry out accumulative adding 1 process, to the last
After one described distributed unit has carried out adding 1 process, return to described main control unit, the most described main control unit and multiple institute
State distributed unit and complete the stage of multiple distributed unit positions configuration in looped network, for the main control unit in follow-up looped network
And multiple distributed unit carries out repeatedly communication and provides positional information.
In the embodiment of the present invention, by described main control unit send relay frame, first described distributed unit or other
Each described distributed unit receives described relay frame successively, and described relay frame is added 1 process, until through last
Individual described distributed unit adds the described relay frame after 1 process and returns described main control unit, and then described main control unit is obtained
The quantity of the multiple described distributed unit in cicada looped network, multiple described distributed unit are also receiving the same of described relay frame
Time known the particular location in each comfortable looped network.
A kind of method embodiments providing function information obtaining multiple distributed unit, refer to accompanying drawing 3,
Described method specifically includes following steps:
Step 301: described main control unit receive through distributed unit last described carry out add 1 process after
Described relay frame time, described main control unit sends the described distributed unit of n subquery frame to first successively, wherein, n
The first address information comprised in described subquery frame respectively with the first address information one a pair in n described distributed unit
Should, described first address information is the positional information of n the described distributed unit that described main control unit obtains;
Concrete, after described main control unit completed the stage of multiple distributed unit positions configuration in looped network, institute
State main control unit by contain described in sending n subquery frame to inquire about frame described distributed to first in described looped network
Unit, opens the inquiry phase of the function information of described distributed unit individual to the n in looped network;
Wherein, described subquery frame includes individual described point of the n that described main control unit obtains in the configuration phase of position
The positional information of cloth unit, and as the first address letter in n described subquery frame and n described distributed unit
Breath, in order to n described distributed unit carries out address coupling when receiving arbitrary described subquery frame, and then obtains correspondence
The function information of distributed unit.
Step 302: first described distributed unit receives arbitrary described subquery frame, and with arbitrary described subquery frame
In described first address information mate, if coupling is correct, then performs step 303a, if matching error, then perform step
303b;
Concrete, described main control unit first can send a described subquery frame to first described distributed unit, the
One described distributed unit after have received described subquery frame, described first address that can will comprise in described subquery frame
Described first address information that information is known with self carries out mating checking.
Step 303a: first described distributed unit produces corresponding function information frame, and forwards the described merit of correspondence
Energy information frame and described subquery frame to next described distributed unit, perform step 304;
Concrete, described first address information comprised at described subquery frame is known with first described distributed unit
Described first address information coupling consistent time, first described distributed unit sends a merit comprising self function information
Can information frame, afterwards, forwards described subquery frame that first described distributed unit receive and its function produced to believe
The breath described distributed unit of frame to second;
Wherein, in the described function information frame of generation including at least the corresponding position of distributed unit, type and with institute
State the corresponding relation etc. of distributed unit function.
Step 303b: first described distributed unit directly forwards the arbitrary described subquery frame received to next
Described distributed unit, and perform step 304;
Concrete, described first address information comprised at described subquery frame is known with first described distributed unit
When more specific location information matching error in looped network, first described distributed unit directly forwards described subquery
The described distributed unit of frame to second, in order to second described distributed unit is mated with described subquery frame.
Step 304: other each described distributed unit receives arbitrary described subquery frame, and with arbitrary described subquery
Described first address information in frame is mated, if coupling is correct, then performs step 305a, if matching error, then performs step
Rapid 305b;
Each described distributed unit concrete, that described subquery frame is transferred in looped network successively, and through every
During one described distributed unit, all carry out mating checking with current described distributed unit.
Step 305a: mate correct described distributed unit and produce corresponding function information frame, and forward the institute of correspondence
State function information frame with described subquery frame to next described distributed unit, until n described subquery frame and the n of correspondence
Individual function information frame returns described main control unit;
Concrete, described first address information comprised in described subquery frame is known with arbitrary described distributed unit
Described first address information coupling correct time, mate correct described distributed unit and produce corresponding function information frame, it
After, described function information frame and described subquery frame are all forwarded to next described distributed unit, wherein, when arbitrary described
When distributed unit is last described distributed unit, then forwarded described subquery by distributed unit last described
Frame and function information frame are to described main control unit;
Described main control unit is receiving its arbitrary subquery frame sent, and just mates with arbitrary subquery frame
After the function information frame that true described distributed unit produces, described main control unit again send another described subquery frame to
First described distributed unit, until having sent n described subquery frame, and receives and n described distributed unit pair
N the function information frame answered, now, described main control unit and multiple described distributed unit complete distributions multiple in looped network
In the stage of formula unit information inquiry, carry out repeatedly communication for the main control unit in follow-up looped network and multiple distributed unit and provide
Function information.
Step 305b: other each described distributed unit directly forwards the arbitrary described subquery frame received to next
Individual described distributed unit or described main control unit;
Concrete, described first address information and the arbitrary described distributed unit that comprise at described subquery frame are known
During described first address information matching error, arbitrary described distributed unit directly forwards described subquery frame to next described
Distributed unit, wherein, when arbitrary described distributed unit is last described distributed unit, by described in last
Distributed unit directly forwards described subquery frame to described main control unit;
After described main control unit often sends a described subquery frame, described subquery frame can described with n divide
Cloth unit all mates, but only can mate correctly with one of them, it is thus achieved that corresponding function information frame, is finally looked into by this son
The function information frame asking frame and generation returns to described main control unit;In this information inquiry stage, described main control unit meeting
Send successively and n described distributed unit n one to one described subquery frame, and receiving and n described distribution
During n function information frame corresponding to formula unit, described main control unit and multiple described distributed unit complete many in looped network
In the stage of individual distributed unit information inquiry, carry out repeatedly communication for the main control unit in follow-up looped network and multiple distributed unit
Provide function information.
In the embodiment of the present invention, send n described subquery frame, n described distributed unit by described main control unit
Carry out information matches with described subquery frame, and send respective function information frame when mating correct to looped network, until described
When main control unit receives n function information frame of n described subquery frame and n described distributed unit generation, described master
Control unit and multiple described distributed unit complete the stage to distributed unit information inquiries multiple in looped network, for follow-up ring
Main control unit and multiple distributed unit in net carry out repeatedly communication and provide function information.
Embodiments provide the means of communication of another kind of master-slave type fiber optic network, refer to accompanying drawing 4, described method
Specifically include following steps:
Step 401: described main control unit sends m the described distributed unit of sub-boundling frame to first successively, and m is the most whole
Number, and less than or equal to n;
Concrete, carry out distributed unit the phase beyond count that can use during communication due to dcs every time
With, the most described boundling frame comprises m described subset bundle frame, the number of wherein said subset bundle frame is less than equal in looped network
The number of the multiple described distributed unit existed.
Step 402: first described distributed unit receives in any subset bundle frame, with arbitrary described subset bundle frame the
Double-address information is mated, wherein, and the second address information comprised in m described subset bundle frame described distribution individual with n respectively
The second address information one_to_one corresponding in formula unit, described second address information is n described point that described main control unit obtains
The positional information of cloth unit and function information, if coupling is correct, then performs step 403a, if matching error, then perform step
403b;
Concrete, multiple distributed unit in described main control unit and n described distributed unit complete looped network
Carry out the stage of position configuration, and after in looped network, multiple distributed unit information carry out the stage inquired about, described master control list
Unit can using the positional information of the n that gets described distributed unit with function information as described second address information, in order to
Mate with the second address information preserved in n described distributed unit, wherein, n described distributed unit preserves
The second address information be then position configuration phase and in the information inquiry stage by obtaining after receiving corresponding frame.
Step 403a: when mating correct, first described distributed unit is from the described subset bundle frame that coupling is correct
Obtain corresponding data field, and effectively inquire about flag bit, and perform step 404;
Concrete, belong to the m data territory of m described distributed unit in described subset bundle frame comprises looped network, each
Data field all comprises synchronizing frame head, inquiry flag bit, frame data effective content three part, and wherein, described synchronizing frame head is for real
Belonging to the isolation in the m data territory of each distributed unit in existing subset bundle frame, described inquiry flag bit is used for different pieces of information class
The difference of type and the request of data response of described main control unit;
After coupling is correct, first described distributed unit just obtains one's own data from described subset bundle frame
Flag bit is effectively inquired about in m data territory in territory, and described subset bundle frame.
Step 403b: when matching error, first described distributed unit directly forwards the arbitrary described son received
Boundling frame is to next described distributed unit, and performs step 406.
Step 404: first described distributed unit is according to having of getting in the described subset bundle frame correct from coupling
The inquiry flag bit of effect, carries out response sequence, and response ranking results is saved in the list in respective described distributed unit
Unit's queue, and perform step 405;
Concrete, if first described distributed unit is deposited in m data territory in the described subset bundle frame determining reception
When effective inquiry flag bit, obtain and effectively inquire about flag bit, and be saved in successively in the cell queue of self, for follow-up
Described distributed unit carries out response provides basis of time.
Step 405: first described distributed unit makes the described inquiry in data field corresponding in described subset bundle frame
Flag bit is effective, forwards described subset bundle frame to next described distributed unit, and performs step 406;
Concrete, from the described subset bundle frame that coupling is correct, obtain effective inquiry first described distributed unit
After flag bit, first described distributed unit also will make the inquiry mark belonging in the data field of self in described subset bundle frame
Will position becomes effective, afterwards, forwards the described subset bundle frame adding an effective inquiry flag bit to next described point
Cloth unit.
Step 406: other each described distributed unit receives in any subset bundle frame, with arbitrary described subset bundle frame
Second address information is mated, if coupling is correct, then performs step 407a, if matching error, then performs step 407b;
Concrete, other each described distributed unit is receiving the institute that respective previous described distributed unit is transmitted
After stating subset bundle frame, again can mate with described subset bundle frame.
Step 407a: when mating correct, other each described distributed unit is from the correct described subset bundle frame of coupling
The middle data field obtaining correspondence, and effectively inquire about flag bit, and perform step 408;
Concrete, m described subset bundle frame respectively with this secondary m distributed unit phase one by one communicated in looped network
Coupling, therefore, m described distributed unit can get each from the m data territory in m described subset bundle frame respectively
Corresponding data field, and the described subset bundle frame received there is currently in m data territory effectively inquire about flag bit.
407b: when matching error, other each described distributed unit directly forwards the arbitrary described subset received
Bundle frame is to next described distributed unit or described main control unit;
Concrete, when distributed unit and the arbitrary described subset bundle frame matching error received last described,
Directly forward described subset bundle frame to described main control unit.
Step 408: other each described distributed unit is according to getting in the described subset bundle frame correct from coupling
Effectively inquire about flag bit, carry out response sequence, and response ranking results is saved in respective described distributed unit
Cell queue, and perform step 409;
Concrete, when described subset bundle frame is transferred to current described distributed unit, current described distributed list
What unit's meeting acquisition from described subset bundle frame existed effectively inquires about flag bit, afterwards according to making the effective institute of described inquiry flag bit
Corresponding distributed unit, is ranked up described effective inquiry flag bit in current described distributed unit, and will
Result after sequence is saved in the cell queue of current described distributed unit, rings for follow-up described distributed unit
Basis of time should be provided;
Wherein, so that the ID of the effectively corresponding distributed unit of described inquiry flag bit comes in described response ranking results
Represent the distributed unit number existed before any one distributed unit in m described distributed unit.
Step 409: other each described distributed unit make in described subset bundle frame in corresponding data field described in look into
Inquiry flag bit is effective, forwards described subset bundle frame to next described distributed unit, returns institute until m described subset bundle frame
State main control unit;
Concrete, after described main control unit receives m described subset bundle frame of return, described with m during looped network is interior
M the described distributed unit that subset bundle frame coupling is correct, the described distributed unit before basis is respective makes coupling correct
Described subset bundle frame in inquiry flag bit in corresponding data field effective, and the distributed unit existed before knowing each
Number and order, and then the response sequence completed in this distributed unit in cell queue, enter for this distributed unit follow-up
Row response provides basis of time.
In the embodiment of the present invention, send the described distributed list of m sub-boundling frame to n successively by described main control unit
Unit, and mating one by one with n described distributed unit, when mating correct, first or other each described distributed
Unit obtains the data field of correspondence from the described subset bundle frame that coupling is correct, and effectively inquires about flag bit, and makes described
The described inquiry flag bit in data field corresponding in subset bundle frame is effective, forwards described subset bundle frame to next described distribution
Formula unit, until m described subset bundle frame returns described main control unit, and then achieves under the communication data of described main control unit
Send out, and make the m involved by this communication described distributed unit can know the request of data of described main control unit,
Achieve the follow-up purpose that can send responsive data frame in an orderly manner.
Alternatively, refer to accompanying drawing 5, before described step 401, also include:
Step 501: described main control unit sends the described distributed unit of synchronization frame to first;
Concrete, after described main control unit obtains positional information and the function information of n described distributed unit,
Described main control unit can send a synchronization frame, and the distributed unit in notifying looped network prepares to receive m described subset bundle
Frame.
Step 502: first described distributed unit receives described synchronization frame, and directly forwards described synchronization frame to next
Individual described distributed unit;
Step 503: other each described distributed unit receives described synchronization frame, and directly forwards described synchronization frame to arrive down
One described distributed unit, until described synchronization frame returns described main control unit.
In the embodiment of the present invention, by obtain at described main control unit the positional information of n described distributed unit with
After function information, described main control unit realizes notifying that the distributed unit in looped network prepares to connect in the way of sending synchronization frame
Receive the purpose of subset bundle frame.
Alternatively, refer to accompanying drawing 6, after described step 409, also include:
Step 601: described main control unit sends the described distributed unit of end frame to first;
Concrete, after described m described subset bundle frame returns described main control unit, described main control unit sends one
End frame, for notifying that the distributed unit in looped network has stopped sending described subset bundle frame, and the transmission route in looped network is
Through release.
Step 602: first described distributed unit receives described end frame, and directly forwards described end frame to next
Individual described distributed unit;
Step 603: other each described distributed unit receives described end frame, and directly forwards described end frame to arrive down
One described distributed unit, until described end frame returns described main control unit.
The described distributed unit of step 604:m is according to the sound of the cell queue being saved in respective described distributed unit
Answer ranking results, receive the response frame that the sequence described distributed unit before each sends;
Concrete, after described end frame returns described main control unit, m described distributed unit is each according to being saved in
The response ranking results of the cell queue in described distributed unit so that put in order at the described distributed list of l-th
First response frame of self that first sends is to described distributed unit next in looped network, and other are not belonging to m described distributed unit
In arbitrary distributed unit directly forward described response frame, until described response frame is transferred to be arranged in L+1 described
During distributed unit, this distributed unit receives described response frame.
The described distributed unit of step 605:m directly forwards and sorts what the described distributed unit before each sent
Response frame, and send respective response frame;
Concrete, when the described distributed unit being arranged in L+1 receives described response frame, delete and be arranged in the
The ID of distributed unit corresponding in the response ranking results in cell queue in L+1 described distributed unit, more directly
Forward described response frame, and in looped network, send the response frame of self, until m described distributed unit is all sent out in looped network
When having sent the response frame of correspondence, it is achieved that the purpose that multiple response frames send in order.
Step 606: described main control unit receives effective reseting mark;
Concrete, after m described distributed unit all have sent respective response frame, if described main control unit connects
Receive effective reseting mark, then the described main control unit in looped network and n described distributed unit will reenter initialization shape
State.
Step 607: described main control unit returns described main control unit and sends the described distributed unit of relay frame to first;
Concrete, now, described main control unit needs to reacquire positional information and the function of n described distributed unit
Information, in order to carrying out repeatedly communication for the main control unit in follow-up looped network and multiple distributed unit provides positional information and function
Information.
In the embodiment of the present invention, the end frame sent by described main control unit so that described distributed unit can carry
Before know that the distributed unit in looped network has stopped sending described subset bundle frame, and the transmission route in looped network has discharged, it
Response ranking results in cell queue in basis is stored in m the described distributed unit that this communication cycle relates to before afterwards
In looped network, send respective response frame successively, during until m described response frame all returns described main control unit, complete this
Communication, afterwards, when described main control unit receives effective reseting mark, additionally it is possible to initialize described main control unit and distributed
Unit, re-starts new configuration operation.
Embodiments provide the communication device of a kind of master-slave type fiber optic network, refer to accompanying drawing 7, described device bag
Include:
Main control unit 701 and n distributed unit 702, the transmitting terminal of described main control unit and first described distributed
The receiving terminal of unit connects, and each described distributed unit is the most connected in series, the transmission of last described distributed unit
End is connected with the receiving terminal of described main control unit, and n is positive integer;
Described main control unit 701, for obtaining positional information and the function information of n described distributed unit, sends collection
The described boundling frame that the bundle described distributed unit of frame to first and reception return;
N described distributed unit 702, is used for receiving described boundling frame, and n the institute obtained according to described main control unit
State positional information and the function information of distributed unit, forward after successively described boundling frame being processed or be forwarded directly to down
One described distributed unit or described main control unit 701.
In communication device disclosed in the embodiment of the present invention, by described main control unit 701 and n described distributed unit 702
Carrying out connected in series, makeup ring l network, described main control unit 701 gets the position of n described distributed unit 702 the most in advance
Confidence breath and function information, send the described distributed unit of boundling frame to first, first institute by described main control unit 701
State distributed unit and receive described boundling frame, and according to the positional information of n described distributed unit and function information, to described
Boundling frame forwards after processing or is forwarded directly to next described distributed unit, until returning described main control unit 701,
Make each distributed unit 702i in looped network all can receive described boundling frame, so improve main control unit and each
Receive or send the synchronicity of data between distributed unit, simultaneously the transmitting terminal of main control unit and connecing in the Current communications cycle
Receiving end is only connected with two distributed unit and can indirectly realize carrying out communication between multiple distributed unit, saves distribution
The resource of formula control system.
The work process of the unit that the embodiment of the present invention provides, refer to the flow chart corresponding to accompanying drawing 1, concrete work
Repeat no more as process.
In above-described embodiment, the described main control unit 701 of offer is when obtaining the positional information of n distributed unit 702,
Specifically for:
Described main control unit 701, is used for sending the described distributed unit of relay frame to first, wherein, described relay frame
In the initial value of position field be 0;
Accordingly, first described distributed unit, it is additionally operable to when receiving described relay frame, in described relay frame
Position field carries out adding 1 process, and is forwarded to next described distributed unit;
Accordingly, other each described distributed unit, it is additionally operable to receiving respective previous described distributed unit
The described relay frame through adding 1 process sent, the described relay frame that process adds 1 process successively adds 1 process, and turns
It is dealt into next described distributed unit or described main control unit;
Described main control unit 701, for receiving described in after distributed unit last described carries out adding 1 process
Relay frame.
In the embodiment of the present invention, send relay frame by described main control unit 701, n described distributed unit 702 foundation
Link position in the looped network of place, receives described relay frame the most successively, and described relay frame is added 1 process, until warp
Cross the described relay frame after last described distributed unit adds 1 process and return described main control unit 701, and then make described
Main control unit has known the quantity of the multiple described distributed unit in looped network, and multiple described distributed unit are also described in reception
The particular location in each comfortable looped network has been known while relay frame.
The work process of the unit that the embodiment of the present invention provides, refer to the flow chart corresponding to accompanying drawing 2, concrete work
Repeat no more as process.
In above-described embodiment, the described main control unit 701 of offer is when obtaining the function information of n distributed unit 702,
Specifically for:
Described main control unit 701, for receiving after distributed unit last described carries out adding 1 process
During described relay frame, send n the described distributed unit of subquery frame to first successively, wherein, in n described subquery frame
The first address information one_to_one corresponding in the first address information comprised described distributed unit individual with n respectively, described first ground
Location information is the positional information of n the described distributed unit that described main control unit 701 obtains;
Accordingly, first described distributed unit, it is additionally operable to receiving arbitrary described subquery frame, and described with arbitrary
When described first address information in subquery frame is mated correct, produce corresponding function information frame, and forward the described of correspondence
Function information frame and described subquery frame are to next described distributed unit;
Accordingly, other each described distributed unit, be additionally operable to receiving arbitrary described subquery frame, and with arbitrary institute
State the described first address information coupling in subquery frame correct time, be sequentially generated the function information frame of correspondence, and forward correspondence
Described function information frame and described subquery frame to next described distributed unit or described main control unit;
Described main control unit, for receiving n described subquery frame and n function information frame of correspondence.
In the embodiment of the present invention, send n described subquery frame, n described distributed list by described main control unit 701
First information matches that carries out with described subquery frame, and send respective function information frame when mating correct to looped network, until institute
State main control unit 701 and receive n described subquery frame and n function information frame of n described distributed unit 702 generation
Time, 701 and n described distributed unit 702 of described main control unit complete distributed unit information inquiries multiple in looped network
Stage, for the main control unit in follow-up looped network and multiple distributed unit carry out repeatedly communication provide function information.
The work process of the unit that the embodiment of the present invention provides, refer to the flow chart corresponding to accompanying drawing 3, concrete work
Repeat no more as process.
Alternatively, n the described distributed unit 702 provided in above-described embodiment is additionally operable to:
Receive arbitrary described subquery frame, and mate mistake with described first address information in arbitrary described subquery frame
Mistake, directly forward the arbitrary described subquery frame received to next described distributed unit or described main control unit 701.
Each described distributed unit concrete, in the embodiment of the present invention, in n described distributed unit 702
702i is receiving described subquery frame, and during with described first address information matching error in described subquery frame, directly
The described subquery frame that forwarding receives is to next described distributed unit or described main control unit 701, and then ensures described
Main control unit send each described subquery frame can distributed unit 702i described with each in looped network one by one
Corresponding matching.
The work process of the unit that the embodiment of the present invention provides, refer to the flow chart corresponding to accompanying drawing 3, concrete work
Repeat no more as process.
N the described distributed unit 702 provided in above-described embodiment is receiving described boundling frame, and according to described master control
The positional information of n the described distributed unit 702 that unit 701 obtains and function information, successively to described boundling frame at
When forwarding after reason or be forwarded directly to next described distributed unit or described main control unit 701, specifically for:
First or other each described distributed unit are in receiving any subset bundle frame, with arbitrary described subset bundle frame
The second address information coupling correct time, from the correct described subset bundle frame of coupling, obtain the data field of correspondence, and effectively
Inquiry flag bit, and make in described subset bundle frame the inquiry flag bit in corresponding data field effective, forward described subset bundle
Frame is to next described distributed unit or described main control unit 701;
Wherein, described boundling frame comprises m described subset bundle frame, the second address letter comprised in m described subset bundle frame
The second address information one_to_one corresponding in breath described distributed unit 702 individual with n respectively, described second address information is described master
The positional information of n the described distributed unit 702 that control unit 701 obtains and function information, m is positive integer, and m is less than or equal to
n。
In the embodiment of the present invention, receive, by n described distributed unit 702, the m that described main control unit 701 sends successively
Individual described subset bundle frame, and mate with the second address information in described subset bundle frame respectively, and when mating correct, from
Described subset bundle frame obtain the data field of correspondence and effectively inquires about flag bit, and making number corresponding in described subset bundle frame
According to the inquiry flag bit in territory effectively after, then forward described subset bundle frame to next described distributed unit or described master control list
Unit 701, and then both achieved the data distributing of described main control unit.
The work process of the unit that the embodiment of the present invention provides, refer to the flow chart corresponding to accompanying drawing 4, concrete work
Repeat no more as process.
Alternatively, n the described distributed unit 702 provided in above-described embodiment is additionally operable to:
Receive arbitrary described subset bundle frame, and mate mistake with described second address information in arbitrary described subset bundle frame
Mistake, directly forward the arbitrary described subset bundle frame received to next described distributed unit or described main control unit.
In the embodiment of the present invention, connect by each described distributed unit 702i in n described distributed unit 702
Receive described subset bundle frame, and during with described second address information matching error in described subset bundle frame, directly forward and receive
Described subset bundle frame to next described distributed unit or described main control unit 701, and then ensure that described main control unit is sent out
Each sent described subset bundle frame can mate by distributed unit 702i one_to_one corresponding described with each in looped network.
The work process of the unit that the embodiment of the present invention provides, refer to the flow chart corresponding to accompanying drawing 4, concrete work
Repeat no more as process.
Alternatively, n the described distributed unit 702 provided in above-described embodiment is receiving any subset bundle frame, and appoints
When the second address information in subset bundle frame described in is mated correct, from the described subset bundle frame that coupling is correct, obtain correspondence
After data field, and effective inquiry flag bit, it is additionally operable to:
Effectively inquire about flag bit according to what the described subset bundle frame correct from coupling got, carry out response sequence,
And response ranking results is saved in the cell queue in respective described distributed unit.
In the embodiment of the present invention, n described distributed unit 702 is after mating with described subset bundle frame correctly, to acquisition
To effective inquiry flag bit carry out response sequence, and preserve, carry out responding the offer time for follow-up described distributed unit
Foundation.
The work process of the unit that the embodiment of the present invention provides, refer to the flow chart corresponding to accompanying drawing 4, concrete work
Repeat no more as process.
Alternatively, the described main control unit 701 provided in above-described embodiment is sending the described distribution of boundling frame to first
Before formula unit, it is additionally operable to:
Send the described distributed unit of synchronization frame to first;
Receive described synchronization frame first described distributed unit, and directly forward described synchronization frame to next described
Distributed unit, during until described synchronization frame returns described main control unit, receives the described synchronization frame returned.
In the embodiment of the present invention, send described synchronization frame to the n in looped network described distribution by described main control unit 701
Formula unit, so achieve notice looped network in distributed unit prepare receive subset bundle frame purpose.
The work process of the unit that the embodiment of the present invention provides, refer to the flow chart corresponding to accompanying drawing 5, concrete work
Repeat no more as process.
Alternatively, the described main control unit 701 provided in above-described embodiment is forwarded to institute at described m described subset bundle frame
After stating main control unit 701, it is additionally operable to:
Send the described distributed unit of end frame to first;
Receive described end frame first described distributed unit, and directly forward described end frame to next described
Distributed unit, during until described end frame returns described main control unit 701, receives the described end frame returned.
In the embodiment of the present invention, send described end frame to the n in looped network described distribution by described main control unit 701
Formula unit, and then the distributed unit achieved in notice looped network stopped sending described subset bundle frame, and sending out in looped network
Send the purpose that power has discharged.
The work process of the unit that the embodiment of the present invention provides, refer to the flow chart corresponding to accompanying drawing 6, concrete work
Repeat no more as process.
Alternatively, m the described distributed unit provided in above-described embodiment receives the institute returned at described main control unit
After stating end frame, it is additionally operable to:
According to the response ranking results of the cell queue being saved in respective described distributed unit, exist receiving sequence
During the response frame that the described distributed unit before Ge Zi sends, directly forward the sequence described distributed unit before each
The response frame sent, and send respective response frame.
In the embodiment of the present invention, n described distributed unit 702 needs to send at this communication cycle m of response
Described distributed unit, can carry out response operation successively according to the response ranking results each preserved, thus in ensure that looped network
The order that responsive data frame sends.
The work process of the unit that the embodiment of the present invention provides, refer to the flow chart corresponding to accompanying drawing 6, concrete work
Repeat no more as process.
Alternatively, the described main control unit 701 provided in above-described embodiment have sent described m described distributed unit
After m response frame, it is additionally operable to:
When receiving effective reseting mark, send the described distributed unit of relay frame to first.
In the embodiment of the present invention, after making described main control unit 701 receive effective reseting mark, make the institute in looped network
State 701 and n described distributed unit 702 of main control unit and reenter the configuration rank, position of n described distributed unit 702
Section, and then dcs can be made quickly and easily to initialize.
The work process of the unit that the embodiment of the present invention provides, refer to the flow chart corresponding to accompanying drawing 6, concrete work
Repeat no more as process.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses the present invention.
Multiple amendment to these embodiments will be apparent from for those skilled in the art, as defined herein
General Principle can realize without departing from the spirit or scope of the present invention in other embodiments.Therefore, the present invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and principles disclosed herein and features of novelty phase one
The widest scope caused.
Claims (22)
1. the means of communication of a master-slave type fiber optic network, it is characterised in that described master-slave type fiber optic network includes main control unit
With n distributed unit, the transmitting terminal of described main control unit is by the receiving terminal of optical fiber and first described distributed unit even
Connecing, each described distributed unit is the most connected in series, the transmitting terminal of last described distributed unit and described master control list
The receiving terminal of unit is connected, and described main control unit obtains positional information and function information, the institute of n described distributed unit in advance
The method of stating includes:
Described main control unit sends the described distributed unit of boundling frame to first;
First described distributed unit receives described boundling frame, and according to the positional information of n described distributed unit and merit
Energy information, forwards after processing described boundling frame or is forwarded directly to next described distributed unit;
Other each described distributed unit receives through processing or undressed described boundling frame, and according to n described point
The positional information of cloth unit and function information, forward after processing described boundling frame successively or be forwarded directly to the next one
Described distributed unit, until returning described main control unit;
Wherein, n is positive integer.
Method the most according to claim 1, it is characterised in that described main control unit obtains n described distributed list in advance
The positional information of unit, including:
Described main control unit sends the described distributed unit of relay frame to first;
First described distributed unit receives described relay frame, the position field in described relay frame adds 1 process, and turns
Being dealt into next described distributed unit, wherein, the initial value of the position field in described relay frame is 0;
Other each described distributed unit adds 1 process in the process receiving the transmission of respective previous described distributed unit
During described relay frame, add 1 process to passing through the described relay frame adding 1 process, and be forwarded to next described distributed list
Unit, until carrying out the described relay frame after adding 1 process through distributed unit last described to return described main control unit;
Wherein, described main control unit receive through distributed unit last described carry out add 1 process after described in
During relay frame, described main control unit obtains the function information of n described distributed unit.
Method the most according to claim 2, it is characterised in that receive through described in last at described main control unit
During described relay frame after 1 process that what distributed unit was carried out add, described main control unit obtains the merit of n described distributed unit
Energy information, including:
Described main control unit sends the described distributed unit of n subquery frame to first, wherein, n described subquery successively
The first address information comprised in frame respectively with the first address information one_to_one corresponding in n described distributed unit, described the
One address information is the positional information of n the described distributed unit that described main control unit obtains;
First described distributed unit receives arbitrary described subquery frame, and with described first in arbitrary described subquery frame
Address information is mated;
When mating correct, first described distributed unit produces corresponding function information frame, and forwards the described merit of correspondence
Energy information frame and described subquery frame are to next described distributed unit;
Other each described distributed unit receives arbitrary described subquery frame, and with described the in arbitrary described subquery frame
One address information is mated;
When mating correct, mate correct described distributed unit and produce corresponding function information frame, and forward the institute of correspondence
State function information frame with described subquery frame to next described distributed unit, until n described subquery frame and the n of correspondence
Individual function information frame returns described main control unit;
Wherein, when described main control unit receives n function information frame of n described subquery frame and correspondence, perform described
Main control unit sends the described distributed unit of boundling frame to first.
Method the most according to claim 3, it is characterised in that in described first or other each described distributed unit
Receive arbitrary described subquery frame, after mating with described first address information in arbitrary described subquery frame, also wrap
Include:
When matching error, first or other each described distributed unit directly forward the arbitrary described subquery received
Frame is to next described distributed unit or described main control unit.
Method the most according to claim 1, it is characterised in that described first or other each described distributed unit connect
Receive described boundling frame, and according to the positional information of n described distributed unit and function information, described boundling frame is processed
Rear forwarding or be forwarded directly to next described distributed unit, until returning described main control unit, including:
First or other each described distributed unit receive second in any subset bundle frame, with arbitrary described subset bundle frame
Address information is mated, and wherein, described boundling frame comprises m described subset bundle frame, the comprised in m described subset bundle frame
The second address information one_to_one corresponding in double-address information described distributed unit individual with n respectively, described second address information is
The positional information of n the described distributed unit that described main control unit obtains and function information, m is positive integer, and m is less than or equal to
n;
When mating correct, first or other each described distributed unit obtain from the described subset bundle frame that coupling is correct
Corresponding data field, and effectively inquire about flag bit, and make the described inquiry in data field corresponding in described subset bundle frame
Flag bit is effective, forwards described subset bundle frame to next described distributed unit, returns described until m described subset bundle frame
Main control unit.
Method the most according to claim 5, it is characterised in that in described first or other each described distributed unit
Receive arbitrary described subset bundle frame, after mating with described second address information in described subset bundle frame, also include:
When matching error, first or other each described distributed unit directly forward the arbitrary described subset bundle received
Frame is to next described distributed unit or described main control unit.
Method the most according to claim 5, it is characterised in that in described first or other each described distributed unit
After obtaining the data field of correspondence, and effective inquiry flag bit from the described subset bundle frame that coupling is correct, also include:
First or other each described distributed unit effective according to what the described subset bundle frame correct from coupling got
Inquiry flag bit, carry out response sequence, and by response ranking results be saved in the unit in respective described distributed unit
Queue.
Method the most according to claim 1, it is characterised in that send boundling frame to described in first at described main control unit
Before distributed unit, also include:
Described main control unit sends the described distributed unit of synchronization frame to first;
First described distributed unit receives described synchronization frame, and directly forwards described synchronization frame described distributed to the next one
Unit;
Other each described distributed unit receives described synchronization frame, and directly forwards described synchronization frame to next described distribution
Formula unit, until described synchronization frame returns described main control unit.
Method the most according to claim 7, it is characterised in that return described master control list at described m described subset bundle frame
After unit, also include:
Described main control unit sends the described distributed unit of end frame to first;
First described distributed unit receives described end frame, and directly forwards described end frame described distributed to the next one
Unit;
Other each described distributed unit receives described end frame, and directly forwards described end frame to next described distribution
Formula unit, until described end frame returns described main control unit.
Method the most according to claim 9, it is characterised in that after described end frame returns described main control unit, also
Including:
M described distributed unit according to the response ranking results of the cell queue being saved in respective described distributed unit,
Receive the response frame that the sequence described distributed unit before each sends;
The response frame that m described distributed unit directly forwards the described distributed unit before each that sorts to send, concurrently
Send respective response frame.
11. methods according to claim 10, it is characterised in that have sent m response frame m described distributed unit
Afterwards, also include:
Described main control unit receives effective reseting mark;
Described main control unit returns described main control unit and sends the described distributed unit of relay frame to first.
The communication device of 12. 1 kinds of master-slave type fiber optic networks, it is characterised in that described device includes:
Main control unit and n distributed unit, the transmitting terminal of described main control unit and the reception of first described distributed unit
End connects, and each described distributed unit is the most connected in series, the transmitting terminal of last described distributed unit and described master
The receiving terminal of control unit is connected;
Described main control unit, for obtaining positional information and the function information of n described distributed unit, sends boundling frame to the
The described boundling frame that one described distributed unit and reception return;
N described distributed unit, is used for receiving described boundling frame, and n the described distribution obtained according to described main control unit
The positional information of formula unit and function information, forward after processing described boundling frame successively or be forwarded directly to next institute
State distributed unit or described main control unit;
Wherein, n is positive integer.
13. devices according to claim 12, it is characterised in that obtain n distributed unit at described main control unit
During positional information, described main control unit specifically for:
Described main control unit, is used for sending the described distributed unit of relay frame to first, wherein, the position in described relay frame
The initial value in territory is 0;
Accordingly, first described distributed unit, it is additionally operable to when receiving described relay frame, to the position in described relay frame
Territory carries out adding 1 process, and is forwarded to next described distributed unit;
Accordingly, other each described distributed unit, it is additionally operable to send receiving respective previous described distributed unit
Through adding the described relay frame of 1 process, successively to adding 1 process through adding the described relay frame of 1 process, and be forwarded to
Next described distributed unit or described main control unit;
Described main control unit, carries out the described relay frame after adding 1 process for receiving through distributed unit last described.
14. devices according to claim 13, it is characterised in that obtain n distributed unit at described main control unit
During function information, described main control unit specifically for:
Described main control unit, for connecing described in receiving after distributed unit last described carries out adding 1 process
During power frame, send n the described distributed unit of subquery frame to first successively, wherein, n described subquery frame comprises
The first address information one_to_one corresponding in first address information described distributed unit individual with n respectively, described first address information
Positional information for n the described distributed unit that described main control unit obtains;
Accordingly, first described distributed unit, it is additionally operable to receiving arbitrary described subquery frame, and looks into arbitrary described son
When described first address information in inquiry frame is mated correct, produce corresponding function information frame, and forward the described function of correspondence
Information frame and described subquery frame are to next described distributed unit;
Accordingly, other each described distributed unit, be additionally operable to receiving arbitrary described subquery frame, and with arbitrary described son
When described first address information in inquiry frame is mated correct, it is sequentially generated the function information frame of correspondence, and forwards the institute of correspondence
State function information frame with described subquery frame to next described distributed unit or described main control unit;
Described main control unit, for receiving n described subquery frame and n function information frame of correspondence.
15. devices according to claim 14, it is characterised in that described first or other each described distributed list
Unit, is additionally operable to:
Receive arbitrary described subquery frame, and with the described first address information matching error in arbitrary described subquery frame
Time, directly forward the arbitrary described subquery frame received to next described distributed unit or described main control unit.
16. devices according to claim 12, it is characterised in that receive described collection described n described distributed unit
Bundle frame, and the positional information of n the described distributed unit obtained according to described main control unit and function information, successively to described
When boundling frame forwards after processing or is forwarded directly to next described distributed unit or described main control unit, n described
Distributed unit specifically for:
First or other each described distributed unit in receiving any subset bundle frame, with arbitrary described subset bundle frame the
When double-address information matches is correct, from the described subset bundle frame that coupling is correct, obtains the data field of correspondence, and effectively look into
Ask flag bit, and make the inquiry flag bit in data field corresponding in described subset bundle frame effective, forward described subset bundle frame to arrive
Next described distributed unit or described main control unit;
Wherein, described boundling frame comprises m described subset bundle frame, and the second address information comprised in m described subset bundle frame is divided
The second address information one_to_one corresponding not and in n described distributed unit, described second address information is described main control unit
The positional information of n the described distributed unit obtained and function information, m is positive integer, and m is less than or equal to n.
17. devices according to claim 16, it is characterised in that described first or other each described distributed list
Unit, is additionally operable to:
Receive arbitrary described subset bundle frame, and with the described second address information matching error in arbitrary described subset bundle frame
Time, directly forward the arbitrary described subset bundle frame received to next described distributed unit or described main control unit.
18. devices according to claim 16, it is characterised in that at described first or other each described distributed list
Unit is receiving any subset bundle frame, when mating correct with the second address information in arbitrary described subset bundle frame, correct from coupling
Described subset bundle frame in obtain the data field of correspondence, and after effective inquiry flag bit, described first or other are each
Individual described distributed unit is additionally operable to:
Effectively inquire about flag bit according to what the described subset bundle frame correct from coupling got, carry out response sequence, and will
Response ranking results is saved in the cell queue in respective described distributed unit.
19. devices according to claim 11, it is characterised in that send boundling frame to first institute at described main control unit
Before stating distributed unit, described main control unit is additionally operable to:
Send the described distributed unit of synchronization frame to first;
Receive described synchronization frame first described distributed unit, and directly forward described synchronization frame to next described distribution
Formula unit, during until described synchronization frame returns described main control unit, receives the described synchronization frame returned.
20. devices according to claim 18, it is characterised in that be forwarded to described master at described m described subset bundle frame
After control unit, described main control unit is additionally operable to:
Send the described distributed unit of end frame to first;
Receive described end frame first described distributed unit, and directly forward described end frame to next described distribution
Formula unit, during until described end frame returns described main control unit, receives the described end frame returned.
21. devices according to claim 20, it is characterised in that receive the described end frame returned at described main control unit
Afterwards, m described distributed unit is additionally operable to:
According to the response ranking results of the cell queue being saved in respective described distributed unit, receiving sequence each
During the response frame that described distributed unit before sends, the sequence described distributed unit before each is directly forwarded to send
Response frame, and send respective response frame.
22. devices according to claim 21, it is characterised in that have sent m sound described m described distributed unit
After answering frame, described main control unit is additionally operable to:
When receiving effective reseting mark, send the described distributed unit of relay frame to first.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610435902.7A CN106130640B (en) | 2016-06-17 | 2016-06-17 | A kind of means of communication and device of master-slave type fiber optic network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610435902.7A CN106130640B (en) | 2016-06-17 | 2016-06-17 | A kind of means of communication and device of master-slave type fiber optic network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106130640A true CN106130640A (en) | 2016-11-16 |
CN106130640B CN106130640B (en) | 2018-12-21 |
Family
ID=57469740
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610435902.7A Active CN106130640B (en) | 2016-06-17 | 2016-06-17 | A kind of means of communication and device of master-slave type fiber optic network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106130640B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101132328A (en) * | 2007-08-15 | 2008-02-27 | 北京航空航天大学 | Real-time industry Ethernet EtherCAT communication controller |
CN202362658U (en) * | 2011-11-28 | 2012-08-01 | 苏州普思自动化科技有限公司 | High-speed field bus control system based on optical fiber |
CN103529797A (en) * | 2013-10-21 | 2014-01-22 | 南车株洲电力机车研究所有限公司 | Method and system for transmitting control data |
CN105049312A (en) * | 2015-06-17 | 2015-11-11 | 山东超越数控电子有限公司 | Industrial control ring network system and networking method thereof |
-
2016
- 2016-06-17 CN CN201610435902.7A patent/CN106130640B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101132328A (en) * | 2007-08-15 | 2008-02-27 | 北京航空航天大学 | Real-time industry Ethernet EtherCAT communication controller |
CN202362658U (en) * | 2011-11-28 | 2012-08-01 | 苏州普思自动化科技有限公司 | High-speed field bus control system based on optical fiber |
CN103529797A (en) * | 2013-10-21 | 2014-01-22 | 南车株洲电力机车研究所有限公司 | Method and system for transmitting control data |
CN105049312A (en) * | 2015-06-17 | 2015-11-11 | 山东超越数控电子有限公司 | Industrial control ring network system and networking method thereof |
Non-Patent Citations (1)
Title |
---|
吴丽菲: "EtherCAT在实时系统下的实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Also Published As
Publication number | Publication date |
---|---|
CN106130640B (en) | 2018-12-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105989539A (en) | Financial trading condition acquisition system and method | |
CN106973050A (en) | A kind of method and device of inter-network lock information sharing | |
DE112010003149T5 (en) | Shared encryption and decryption by agents | |
CN109314844A (en) | Information transferring method and device | |
EP2883123A1 (en) | Forwarding packet in stacking system | |
CN106411778A (en) | Data forwarding method and device | |
CN106571992A (en) | Virtual Private Line (VPL) establishing method and device | |
CN105812221B (en) | The device and method of data transmission in virtual expansible Local Area Network | |
CN106059917A (en) | Routing information processing method and apparatus | |
CN103595712A (en) | Method, device and system for Web authentication | |
CN109462532B (en) | Communication method of communication system | |
CN103336843B (en) | Data integration method and device | |
CN106130640A (en) | The means of communication of a kind of master-slave type fiber optic network and device | |
CN103973592B (en) | Cell processing method and processing device | |
CN104285413B (en) | A kind of packet conversion equipment and method | |
CN106230730A (en) | A kind of multicast transmission method and device | |
KR20130068248A (en) | Configurating method of network topology and routing method for swarm robot | |
CN110109380A (en) | A kind of time control method, timing control system, gateway and readable storage medium storing program for executing | |
CN109669788A (en) | The MPI implementation method of multi core chip towards direct memory access interconnection communication | |
CN106254420B (en) | A kind of cross-domain communication method and device | |
CN109104774A (en) | Data transmission method and system | |
CN105634960A (en) | Data release device based on fractal tree structure, method, control device and intelligent chip | |
EP3393092B1 (en) | Controller coordination system for software defined networking in a wireless network with partitions | |
CN103491030B (en) | A kind of data processing method and equipment | |
CN110138571A (en) | A kind of time control method, timing control system, gateway and readable storage medium storing program for executing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |