[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN106130640B - A kind of means of communication and device of master-slave type fiber optic network - Google Patents

A kind of means of communication and device of master-slave type fiber optic network Download PDF

Info

Publication number
CN106130640B
CN106130640B CN201610435902.7A CN201610435902A CN106130640B CN 106130640 B CN106130640 B CN 106130640B CN 201610435902 A CN201610435902 A CN 201610435902A CN 106130640 B CN106130640 B CN 106130640B
Authority
CN
China
Prior art keywords
frame
distributed
main control
unit
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.)
Active
Application number
CN201610435902.7A
Other languages
Chinese (zh)
Other versions
CN106130640A (en
Inventor
尚敬
邱岳烽
郑汉锋
倪大成
李淼
梅文庆
戴计生
吕阳
郭赞
杨胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CRRC Zhuzhou Institute Co Ltd
Original Assignee
CRRC Zhuzhou Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CRRC Zhuzhou Institute Co Ltd filed Critical CRRC Zhuzhou Institute Co Ltd
Priority to CN201610435902.7A priority Critical patent/CN106130640B/en
Publication of CN106130640A publication Critical patent/CN106130640A/en
Application granted granted Critical
Publication of CN106130640B publication Critical patent/CN106130640B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/25Arrangements specific to fibre transmission

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides the means of communication and device of a kind of master-slave type fiber optic network, the master-slave type fiber optic network includes main control unit and n distributed unit, the transmitting terminal of main control unit is connect with the receiving end of first distributed unit, each distributed unit is successively connected in series, the transmitting terminal of the last one distributed unit is connected with the receiving end of main control unit, boundling frame, which is sent, by main control unit successively arrives n distributed unit, location information and functional information of the n distributed unit according to n distributed unit, next distributed unit is forwarded or is forwarded directly to after handling the boundling frame received, until returning to main control unit, so that each distributed unit in net can receive boundling frame, and then improve the synchronism netted and receive or send data between interior multiple units, main control unit in netting simultaneously is only Need to connect with two distributed units to be communicated with multiple distributed units indirectly, save the resource of dcs.

Description

A kind of means of communication and device of master-slave type fiber optic network
Technical field
The present invention relates to digital communication technology fields, and more specifically, it relates to a kind of communications of master-slave type fiber optic network Method and device.
Background technique
Master-slave type network is a kind of means of communication by master unit management and network from unit communications, all communications by Master unit is initiated, and is only capable of passively receiving or responding from unit.
Currently, in dcs of the master-slave type network using optical-fibre communications, main control unit and each distributed list It is communicated between member using point-to-point asynchronous communication mode, is closed between other each distributed units without directly connection System, however in network real-time performance it is of less demanding when, can be due in master control list using point-to-point asynchronous communication mode First multiple optical fiber interfaces added between each distributed unit lead to the resource of the waste part dcs, together When, in the dcs using point-to-point asynchronous communication mode, main control unit is only capable of every time and one is distributed single Member carries out data communication, reduces the synchronism that data are received or sent between main control unit and each distributed unit.
Summary of the invention
In view of this, the present invention provides the means of communication and device of a kind of master-slave type fiber optic network, and then both improve The synchronism of data is received or sent between main control unit and each distributed unit, and saves the money of dcs Source.
To achieve the above object, the invention provides the following technical scheme:
A kind of means of communication of master-slave type fiber optic network, the master-slave type fiber optic network include main control unit and n distribution The transmitting terminal of formula unit, the main control unit is connect by optical fiber with the receiving end of first distributed unit, Ge Gesuo It states distributed unit to be successively connected in series, the receiving end of the transmitting terminal of the last one distributed unit and the main control unit It is connected, the main control unit obtains the location information and functional information of the n distributed units, the method packet in advance It includes:
The main control unit sends boundling frame to first distributed unit;
First distributed unit receives the boundling frame, and the location information according to the n distributed units With functional information, next distributed unit is forwarded or is forwarded directly to after handling the boundling frame;
Other each described distributed units are received by processing or the untreated boundling frame, and according to n institute The location information and functional information of distributed unit are stated, forwards or is forwarded directly to down after successively handling the boundling frame One distributed unit, until returning to the main control unit;
Wherein, n is positive integer.
Preferably, the main control unit obtains the location information of the n distributed units in advance, comprising:
The main control unit sends relay frame to first distributed unit;
First distributed unit receives the relay frame, carries out to the position field in the relay frame plus 1 is handled, And it is forwarded to next distributed unit, wherein the initial value of the position field in the relay frame is 0;
Other each described distributed units are receiving at the process plus 1 that respectively the previous distributed unit is sent When the relay frame of reason, the relay frame of 1 processing is added to carry out adding 1 processing to passing through, and be forwarded to next distribution Formula unit, until being carried out by the last one described distributed unit plus 1 treated that the relay frame returns to the master control list Member;
Wherein, receive that carrying out by distributed unit described in the last one plus 1 treated in the main control unit When the relay frame, the main control unit obtains the functional information of the n distributed units.
Preferably, after the main control unit receives carry out by the last one distributed unit plus 1 processing The relay frame when, the main control unit obtains the functional information of the n distributed units, comprising:
The main control unit successively sends n subquery frame to first distributed unit, wherein the n sons The first address information for including in inquiry frame is corresponded with the first address information in the n distributed units respectively, institute State the location information that the first address information is the n distributed units that the main control unit obtains;
First distributed unit receives any subquery frame, and in any subquery frame described in First address information is matched;
When matching correct, first distributed unit generates corresponding functional information frame, and forwards corresponding institute Functional information frame and the subquery frame are stated to next distributed unit;
Other each described distributed units receive any described subquery frames, and with the institute in any subquery frame The first address information is stated to be matched;
When matching correct, correctly the distributed unit generates corresponding functional information frame for matching, and forwards correspondence The functional information frame and the subquery frame arrive next distributed unit, until a subquery frames of n and right The n functional information frame answered returns to the main control unit;
Wherein, it when the main control unit receives the n subquery frames and corresponding n functional information frame, executes The main control unit sends boundling frame to first distributed unit.
Preferably, at described first or other each described distributed units receive any described subquery frames, and appoint After first address information in the one subquery frame is matched, further includes:
In matching error, first or other each described distributed units directly forward any son received Frame is inquired to next distributed unit or the main control unit.
Preferably, described first or other described boundling frames of each distributed units reception, and it is described according to n The location information and functional information of distributed unit forward or are forwarded directly to next institute after handling the boundling frame Distributed unit is stated, until returning to the main control unit, comprising:
First or other each described distributed units receive in any subset beam frames, with any subset beam frame Second address information is matched, wherein the boundling frame includes the m subset beam frames, includes in the m subset beam frames The second address information corresponded respectively with the second address information in n distributed units, the second address letter Breath is the location information and functional information for the n distributed units that the main control unit obtains, and m is positive integer, and m is less than Equal to n;
When matching correct, first or other each described distributed units are from matching in the correctly subset beam frame Corresponding data field is obtained, and effectively inquires flag bit, and is made described in corresponding data field in the subset beam frame It is effective to inquire flag bit, forwards the subset beam frame to next distributed unit, until the m subset beam frames return The main control unit.
Preferably, at described first or other each described distributed units receive any described subset beam frames, with institute It states after second address information in subset beam frame matched, further includes:
In matching error, first or other each described distributed units directly forward any son received Boundling frame is to next distributed unit or the main control unit.
Preferably, at described first or other each described distributed units are from matching correctly in the subset beam frame Corresponding data field is obtained, and effectively after inquiry flag bit, further includes:
First or other each described distributed units are got in the correctly subset beam frame according to from matching Effective inquiry flag bit carries out response sequence, and response ranking results is saved in the respective distributed unit Cell queue.
Preferably, before the main control unit sends boundling frame to first distributed unit, further includes:
The main control unit sends synchronization frame to first distributed unit;
First distributed unit receives the synchronization frame, and directly forwards the synchronization frame to next described point Cloth unit;
Other each described distributed units receive described synchronization frames, and directly forward the synchronization frame to described in next Distributed unit, until the synchronization frame returns to the main control unit.
Preferably, after the m subset beam frames return to the main control unit, further includes:
The main control unit sends end frame to first distributed unit;
First distributed unit receives the end frame, and directly forwards the end frame to next described point Cloth unit;
Other each described distributed units receive described end frames, and directly forward the end frame to described in next Distributed unit, until the end frame returns to the main control unit.
Preferably, after the end frame returns to the main control unit, further includes:
The m distributed units are tied according to the response sequence for the cell queue being saved in the respective distributed unit Fruit receives the response frame that the distributed unit of the sequence before respectively is sent;
The response frame that the m distributed units directly forward the distributed unit of the sequence before respectively to send, And send respective response frame.
Preferably, after the m distributed units have sent m response frame, further includes:
The main control unit receives effective reseting mark;
The main control unit returns to the main control unit and sends relay frame to first distributed unit.
A kind of communication device of master-slave type fiber optic network, comprising:
Main control unit and n distributed unit, the transmitting terminal of the main control unit and first distributed unit Receiving end connection, each distributed unit are successively connected in series, the transmitting terminal of the last one distributed unit and institute The receiving end for stating main control unit is connected;
The main control unit sends boundling frame for obtaining the location information and functional information of the n distributed units To first distributed unit and receive the boundling frame returned;
The n distributed units, for receiving the boundling frame, and it is a described according to the n that the main control unit obtains The location information and functional information of distributed unit are forwarded or are forwarded directly to after successively handling the boundling frame and is next A distributed unit or the main control unit;
Wherein, n is positive integer.
Preferably, when the main control unit obtains the location information of n distributed unit, the main control unit is specifically used In:
The main control unit, for sending relay frame to first distributed unit, wherein in the relay frame The initial value of position field is 0;
Correspondingly, first distributed unit, is also used to when receiving the relay frame, in the relay frame Position field carries out plus 1 processing, and is forwarded to next distributed unit;
Correspondingly, other each described distributed units, are also used to receiving the respective previous distributed unit Transmission process plus 1 processing the relay frame when, successively to by plus 1 processing the relay frame carry out plus 1 processing, and turn It is dealt into next distributed unit or the main control unit;
The main control unit carries out plus 1 treated described connects for receiving by the last one described distributed unit Power frame.
Preferably, when the main control unit obtains the functional information of n distributed unit, the main control unit is specifically used In:
The main control unit, for being carried out by distributed unit described in the last one plus 1 treated institute receiving When stating relay frame, n subquery frame is successively sent to first distributed unit, wherein wrap in the n subquery frames The first address information contained is corresponded with the first address information in the n distributed units respectively, first address Information is the location information for the n distributed units that the main control unit obtains;
Correspondingly, first distributed unit, be also used to receiving any subquery frame, and with it is any described When first address information matching in subquery frame is correct, corresponding functional information frame is generated, and is forwarded corresponding described Functional information frame and the subquery frame to next distributed unit;
Correspondingly, other each described distributed units, be also used to receiving any subquery frame, and with any institute State in subquery frame first address information matching it is correct when, be sequentially generated corresponding functional information frame, and forward correspondence The functional information frame and the subquery frame to next distributed unit or the main control unit;
The main control unit, for receiving the n subquery frames and corresponding n functional information frame.
Preferably, described first or other each described distributed units, are also used to:
Any subquery frame is being received, and is matching mistake with first address information in any subquery frame It mistakes, directly forwards any subquery frame for receiving to next distributed unit or the main control unit.
Preferably, the boundling frame is received in the n distributed units, and obtained according to the main control unit The location information and functional information of the n distributed units forward after successively handling the boundling frame or directly turn When being dealt into next distributed unit or the main control unit, the n distributed units are specifically used for:
First or other each described distributed units are in receiving any subset beam frame, with any subset beam frame The matching of the second address information it is correct when, corresponding data field is correctly obtained in the subset beam frame from matching, and effectively Inquiry flag bit, and keep the inquiry flag bit in the subset beam frame in corresponding data field effective, forward the subset beam Frame is to next distributed unit or the main control unit;
Wherein, the boundling frame includes the m subset beam frames, the second address letter for including in the m subset beam frames Breath is corresponded with the second address information in the n distributed units respectively, and second address information is the master control The location information and functional information for the n distributed units that unit obtains, m is positive integer, and m is less than or equal to n.
Preferably, described first or other each described distributed units, are also used to:
Any subset beam frame is being received, and is matching mistake with second address information in any subset beam frame It mistakes, directly forwards any subset beam frame for receiving to next distributed unit or the main control unit.
Preferably, and any at described first or other each described distributed units are receiving any subset beam frame When the second address information matching in the subset beam frame is correct, corresponding number is obtained from matching in the correctly subset beam frame According to domain, and after effective inquiry flag bit, described first or other each described distributed units are also used to:
According to from the effective inquiry flag bit got in the correctly subset beam frame is matched, response sequence is carried out, And response ranking results are saved in the cell queue in the respective distributed unit.
Preferably, before the main control unit sends boundling frame to first distributed unit, the master control list Member is also used to:
Synchronization frame is sent to first distributed unit;
The synchronization frame is received in first distributed unit, and directly forwards the synchronization frame to described in next Distributed unit receives the synchronization frame of return when the synchronization frame returns to the main control unit.
Preferably, after the m subset beam frames are forwarded to the main control unit, the main control unit is also used In:
End frame is sent to first distributed unit;
The end frame is received in first distributed unit, and directly forwards the end frame to described in next Distributed unit receives the end frame of return when the end frame returns to the main control unit.
Preferably, after the end frame returned is received in the main control unit, the m distributed units are also used In:
According to the response ranking results for the cell queue being saved in the respective distributed unit, exist receiving sequence When the response frame that the distributed unit before respectively is sent, the distributed unit of the sequence before respectively is directly forwarded The response frame of transmission, and send respective response frame.
Preferably, after the m distributed units have sent m response frame, the main control unit is also used to:
When receiving effective reseting mark, relay frame is sent to first distributed unit.
It can be seen via above technical scheme that compared with prior art, the present invention provides a kind of master-slave type fiber optic networks The means of communication and device, the master-slave type fiber optic network include main control unit and n distributed unit, the main control unit Transmitting terminal is connect by optical fiber with the receiving end of first distributed unit, and each distributed unit successively serially connects It connects, the transmitting terminal of the last one distributed unit is connected with the receiving end of the main control unit, and the main control unit is pre- The location information and functional information for first obtaining the n distributed units send boundling frame to n institute by the main control unit Distributed unit is stated, n distributed single location informations and function according to a distributed unit of the n being obtained ahead of time are believed Breath successively forwarding after processing or the untreated boundling frame are handled or directly forwarding to what is received, until The main control unit is returned, so that each distributed unit can receive the boundling frame in netting in the Current communications period, And then the synchronism that data are received or sent between main control unit and each distributed unit is improved, while in Current communications week Interim main control unit only needs to connect can be realized with two distributed units to be communicated between multiple distributed units, saves The resource of dcs.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of means of communication flow chart of master-slave type fiber optic network provided in an embodiment of the present invention;
Fig. 2 is a kind of location information method flow diagram for obtaining multiple distributed units provided in an embodiment of the present invention;
Fig. 3 is a kind of functional information method flow diagram for obtaining multiple distributed units provided in an embodiment of the present invention;
Fig. 4 is the means of communication flow chart of another master-slave type fiber optic network provided in an embodiment of the present invention;
Fig. 5 is the method flow diagram that a kind of main control unit provided in an embodiment of the present invention sends synchronization frame;
Fig. 6 is the method flow diagram that a kind of distributed unit provided in an embodiment of the present invention responds main control unit;
Fig. 7 is a kind of communication device structural schematic diagram of master-slave type fiber optic network provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention provides a kind of means of communication of master-slave type fiber optic network, please refer to attached drawing 1, the method tool Body the following steps are included:
Step 101: main control unit sends boundling frame to first distributed unit;
Specifically, the main control unit issued by the boundling frame of transmission data to contain n distributed unit with N distributed unit and in the looped network of a main control unit, and in the looped network is successively serially connected, wherein first institute The receiving end for stating distributed unit is connect with the transmitting terminal of the main control unit, and the transmitting terminal of first distributed unit is then It is connect with the receiving end of second distributed unit, other distributed units is sequentially connected with this connection type, directly Transmitting terminal to a last distributed unit is connected with the receiving end of the main control unit;
Secondly, the n when the main control unit is every time to initiate signal once to be communicated with the boundling frame, in looped network A distributed unit can be sequentially received the boundling frame, improve the main control unit and each distribution in looped network The synchronism of data is received or sent between unit.
Step 102: first distributed unit receives the boundling frame, and according to a distributed unit of n Location information and functional information are forwarded or are forwarded directly to after handling the boundling frame and is next described distributed single Member, wherein n is positive integer;
Specifically, the main control unit can obtain the n distributions in advance before the main control unit sends boundling frame The location information and functional information of formula unit, so that the n distributed units are according to the n distributed units obtained Location information and functional information forward or are forwarded directly to next institute after performing corresponding processing to the boundling frame of transmission State distributed unit.
Step 103: other each described distributed units are received by processing or the untreated boundling frame, and according to According to the location information and functional information of the n distributed units, forwarding or direct after successively handling the boundling frame It is forwarded to next distributed unit, until returning to the main control unit;
Specifically, after the operation for forwarding after the processing of the n distributed units progress or directly forwarding, it is described Boundling frame can return to the main control unit by distributed unit described in the last one, so that main control unit progress is subsequent Operation or enter new communication cycle.
In the means of communication disclosed by the embodiments of the present invention, the main control unit and the n distributed units are gone here and there Row connection, forms loop network, and the main control unit also gets the location information and function of the n distributed units in advance Information sends boundling frame to first distributed unit by the main control unit, and first distributed unit connects The boundling frame, and location information and functional information according to the n distributed units are received, the boundling frame is handled After forward or be forwarded directly to next distributed unit, until returning to the main control unit, so that every in looped network A distributed unit can receive the boundling frame, so improve between main control unit and each distributed unit receive or The synchronism of data is sent, while the transmitting terminal of main control unit and receiving end are only distributed single with two in the Current communications period Member connection can be realized indirectly to be communicated between multiple distributed units, saves the resource of dcs.
The embodiment of the invention provides a kind of methods of location information for obtaining multiple distributed units, please refer to attached drawing 2, The method specifically includes the following steps:
Step 201: the main control unit sends relay frame to first distributed unit;
Specifically, needing the master when the main control unit obtains the location information of the n distributed units in advance It controls first distributed unit of the unit into looped network and sends a relay frame, for making the main control unit know looped network The quantity of interior multiple distributed units, and multiple distributed units is made to know the specific location in each comfortable looped network.
Step 202: first distributed unit receives the relay frame, carries out to the position field in the relay frame Add 1 processing, and be forwarded to next distributed unit, wherein the initial value of the position field in the relay frame is 0;
Specifically, in the relay frame that the main control unit issues, there are one for counting multiple distributions in looped network The position field of formula element number, and the initial value in relay frame position domain is 0;When the relay frame is by described in first points When cloth unit, first distributed unit can enable the value of the position field in the relay frame add 1, forward process again later Add 1 treated relay frame to next distributed unit.
Step 203: other each described distributed units are receiving what the respectively previous distributed unit was sent When the relay frame by adding 1 processing, to by plus the relay frame of 1 processing carry out plus 1 processing, and be forwarded to next The distributed unit, until being carried out by the last one described distributed unit plus 1 treated that the relay frame returns to institute State main control unit;
Specifically, in the every any other distributed unit by looped network of the relay frame, other One distributed unit of meaning carries out accumulative plus 1 processing to the value in the relay frame position domain received, to the last One distributed unit has carried out after adding 1 processing, returns to the main control unit, at this time the main control unit and multiple institutes It states distributed unit and completes the stage configured to distributed units multiple in looped network position, be the main control unit in subsequent looped network And multiple distributed units carry out repeatedly communication and provide location information.
In the embodiment of the present invention, by the main control unit send relay frame, first distributed unit or other Each distributed unit successively receives the relay frame, and carries out adding 1 processing to the relay frame, until passing through last A distributed unit adds 1 treated that the relay frame returns to the main control unit, so that the main control unit obtains The quantity of multiple distributed units in cicada looped network, multiple distributed units are also receiving the same of the relay frame When known specific location in each comfortable looped network.
The embodiment of the invention provides a kind of methods of functional information for obtaining multiple distributed units, please refer to attached drawing 3, The method specifically includes the following steps:
Step 301: after the main control unit receives carry out by the last one distributed unit plus 1 processing The relay frame when, the main control unit successively sends n subquery frame to first distributed unit, wherein n The first address information for including in the subquery frame is a pair of with the first address information one in the n distributed units respectively It answers, first address information is the location information for the n distributed units that the main control unit obtains;
Specifically, after the main control unit completes the stage to the configuration of distributed units multiple in looped network position, institute Main control unit is stated by containing the inquiry frame of n subquery frame to first distribution in the looped network described in sending Unit, to open the inquiry phase of the functional information to the n distributed units in looped network;
It wherein, include the main control unit n that is obtained in the configuration phase of position described point in the subquery frame The location information of cloth unit, and believe as the first address in the n subquery frames and the n distributed units Breath so that the n distributed units carry out address matching when receiving any subquery frame, and then obtains corresponding The functional information of distributed unit.
Step 302: first distributed unit receives any subquery frame, and with any subquery frame In first address information matched, if matching is correct, thens follow the steps 303a, if matching error, then follow the steps 303b;
Specifically, the main control unit first can send a subquery frame to first distributed unit, the One distributed unit is after having received the subquery frame, first address that can will include in the subquery frame First address information that information is known with itself carries out matching verifying.
Step 303a: the first distributed unit generates corresponding functional information frame, and forwards the corresponding function Energy information frame and the subquery frame execute step 304 to next distributed unit;
Specifically, knowing in first address information that the subquery frame includes with first distributed unit First address information matching it is consistent when, first distributed unit send one include itself functional information function Energy information frame, later, the subquery frame and its function of generating letter that first distributed unit of forwarding receives Frame is ceased to second distributed unit;
Wherein, included at least in the functional information frame of generation the position of corresponding distributed unit, type and with institute State the corresponding relationship etc. of distributed unit function.
303b: the first distributed unit of step directly forwards any subquery frame for receiving to next The distributed unit, and execute step 304;
Specifically, knowing in first address information that the subquery frame includes with first distributed unit From more specific location information matching error in looped network when, first distributed unit directly forwards the subquery Frame is to second distributed unit, so that second distributed unit is matched with the subquery frame.
Step 304: other each described distributed units receive any described subquery frames, and with any subquery First address information in frame is matched, if matching is correct, is thened follow the steps 305a, if matching error, is executed step Rapid 305b;
Specifically, each described distributed unit that the subquery frame is successively transferred in looped network, and by every When one distributed unit, matching verifying is carried out with the current distributed unit.
Step 305a: correctly the distributed unit generates corresponding functional information frame for matching, and forwards corresponding institute Functional information frame and the subquery frame are stated to next distributed unit, until the n subquery frames and corresponding n A functional information frame returns to the main control unit;
Specifically, first address information for including in the subquery frame is known with any distributed unit First address information matching it is correct when, correctly the distributed unit generates corresponding functional information frame for matching, it Afterwards, the functional information frame and the subquery frame are forwarded to next distributed unit, wherein when any described When distributed unit is the last one described distributed unit, then the subquery is forwarded by distributed unit described in the last one Frame and functional information frame are to the main control unit;
The main control unit is receiving its any subquery frame sent, and is matching just with any subquery frame After the functional information frame that the true distributed unit generates, the main control unit send again another described subquery frame to First distributed unit until having sent the n subquery frames, and receives and the n distributed units pair The n functional information frame answered, at this point, the main control unit and multiple distributed units are completed to distributions multiple in looped network Formula unit information inquiry stage, in subsequent looped network main control unit and multiple distributed units carry out repeatedly communicate provide Functional information.
Step 305b: other each described distributed units directly forward any subquery frame for receiving to next A distributed unit or the main control unit;
Specifically, knowing in first address information that the subquery frame includes with any distributed unit When the first address information matching error, any distributed unit directly forwards the subquery frame to next described Distributed unit, wherein when any distributed unit is the last one described distributed unit, as described in the last one Distributed unit directly forwards the subquery frame to the main control unit;
After the main control unit often sends the subquery frame, the subquery frame can be with n described point Cloth unit is matched, but can only be matched correctly with one of, is obtained corresponding functional information frame, is finally looked into the son The functional information frame for asking frame and generation returns to the main control unit;In the information inquiry phase, the main control unit meeting Successively send with one-to-one n of distributed unit subquery frames of n, and receiving and the n distributions When the corresponding n functional information frame of formula unit, the main control unit and multiple distributed units are completed to more in looped network The stage of a distributed unit information inquiry is that the main control unit and multiple distributed units in subsequent looped network are repeatedly communicated Provide functional information.
In the embodiment of the present invention, the n subquery frames, the n distributed units are sent by the main control unit Information matches are carried out with the subquery frame, and send respective functional information frame to looped network, until described when matching correct When the n functional information frame that main control unit receives n subquery frames and the n distributed units generate, the master Control unit and multiple distributed units complete the stage to distributed unit information multiple in looped network inquiry, are subsequent ring Main control unit and multiple distributed units in net carry out repeatedly communication and provide functional information.
The embodiment of the invention provides the means of communication of another master-slave type fiber optic network, please refer to attached drawing 4, the method Specifically includes the following steps:
Step 401: the main control unit successively sends m sub- boundling frames to first distributed unit, and m is positive whole Number, and it is less than or equal to n;
Specifically, due to the distributed unit phase beyond count that can be used when dcs is communicated every time It together, therefore in the boundling frame include the m subset beam frames, wherein the number of the subset beam frame is less than equal in looped network The number of existing multiple distributed units.
Step 402: first distributed unit receives the in any subset beam frame, with any subset beam frame Double-address information is matched, wherein the second address information for including in m subset beam frames respectively with the n distributions The second address information in formula unit corresponds, and second address information is n described point that the main control unit obtains The location information and functional information of cloth unit then follow the steps 403a, if matching error, then follow the steps if matching is correct 403b;
Specifically, completing in the main control unit and the n distributed units to distributed units multiple in looped network After carrying out the stage that multiple distributed unit information are inquired in the stage and looped network of position configuration, the master control list The location information and functional information of n that member can will acquire distributed units as second address information, so as to It is matched with the second address information saved in the n distributed units, wherein saved in the n distributed units The second address information be then in position configuration phase and information inquiry phase by being obtained after receiving corresponding frame.
Step 403a: when matching correct, first distributed unit is from matching correctly the subset beam frame Corresponding data field is obtained, and effectively inquires flag bit, and executes step 404;
Specifically, including the m data domain for belonging to the m distributed units in looped network in the subset beam frame, each Data field includes synchronizing frame head, inquiry flag bit, the effective content three parts of frame data, wherein the synchronizing frame head is for real Belong to the isolation in the m data domain of each distributed unit in existing subset beam frame, the inquiry flag bit is used for different data class The response of the request of data of the difference of type and the main control unit;
After matching is correct, first distributed unit just obtains one's own data from the subset beam frame Flag bit is effectively inquired in m data domain in domain and the subset beam frame.
Step 403b: in matching error, first distributed unit directly forwards any son received Boundling frame executes step 406 to next distributed unit.
Step 404: first distributed unit has according to what is got from matching correctly the subset beam frame The inquiry flag bit of effect carries out response sequence, and response ranking results is saved in the list in the respective distributed unit First queue, and execute step 405;
Specifically, if first distributed unit is deposited in m data domain determining in the received subset beam frame In effectively inquiry flag bit, effective inquiry flag bit is obtained, and be successively stored in the cell queue of itself, be subsequent The distributed unit carries out response and provides basis of time.
Step 405: first distributed unit makes the inquiry in the subset beam frame in corresponding data field Flag bit is effective, forwards the subset beam frame to next distributed unit, and execute step 406;
Specifically, effectively being inquired in first distributed unit from acquisition in the correctly subset beam frame is matched After flag bit, first distributed unit will also make to belong in the subset beam frame inquiry mark in the data field of itself Will position becomes effectively, and later, forwarding increases the subset beam frame of an effective inquiry flag bit to next described point Cloth unit.
Step 406: other each described distributed units receive in any subset beam frame, with any subset beam frame Second address information is matched, if matching is correct, is thened follow the steps 407a, if matching error, is thened follow the steps 407b;
Specifically, other each described distributed units are in the institute for receiving the respectively previous distributed unit transmission After stating subset beam frame, it can be matched again with the subset beam frame.
Step 407a: match it is correct when, other each described distributed units from match correctly the subset beam frame It is middle to obtain corresponding data field, and flag bit is effectively inquired, and execute step 408;
Specifically, m subset beam frames respectively with the phase one by one of this secondary m distributed unit communicated in looped network Matching, therefore, the m distributed units can be got respectively respectively from the m data domain in the m subset beam frames In corresponding data field, and the subset beam frame that receives in m data domain there is currently effective inquiry flag bit.
407b: in matching error, other each described distributed units directly forward any subset received Beam frame is to next distributed unit or the main control unit;
Specifically, when the last one described distributed unit and any subset beam frame matching error received, Directly forward the subset beam frame to the main control unit.
Step 408: other each described distributed units are correctly got in the subset beam frame according to from matching Effective inquiry flag bit carries out response sequence, and response ranking results is saved in the respective distributed unit Cell queue, and execute step 409;
Specifically, current is described distributed single when the subset beam frame is transferred to the current distributed unit Member can obtain existing effective inquiry flag bit from the subset beam frame, and basis makes the effective institute of inquiry flag bit later Corresponding distributed unit is ranked up the effective inquiry flag bit in the current distributed unit, and will Result after sequence is stored in the cell queue of the current distributed unit, is rung for the subsequent distributed unit Basis of time should be provided;
Wherein, so that the ID of the effective corresponding distributed unit of inquiry flag bit comes in the response ranking results Indicate in m distributed units existing distributed unit number before any one distributed unit.
Step 409: what other each described distributed units made in the subset beam frame in corresponding data field described looks into It is effective to ask flag bit, forwards the subset beam frame to next distributed unit, until the m subset beam frames return to institute State main control unit;
Specifically, after the main control unit receives the m subset beam frames of return, in looped network in m it is described Subset beam frame matches the correct m distributed unit, and the distributed unit before basis is respective keeps matching correct The subset beam frame in inquiry flag bit in corresponding data field it is effective, and existing distributed unit before knowing respectively Number and sequence, and then complete the response in the distributed unit in cell queue sequence, be the subsequent distributed unit into Row response provides basis of time.
In the embodiment of the present invention, it is described distributed single to n that m sub- boundling frames are successively sent by the main control unit Member, and matched one by one with the n distributed units, when matching correct, first or other each described distributions Unit obtains corresponding data field from matching correctly the subset beam frame, and effectively inquires flag bit, and makes described The inquiry flag bit in subset beam frame in corresponding data field is effective, forwards the subset beam frame to next distribution Formula unit until the m subset beam frames return main control units, and then realizes under the communication data of the main control unit Hair, and the request of data for enabling the m distributed units involved by this communication to know the main control unit, Realize the subsequent purpose that can send responsive data frame in an orderly manner.
Optionally, attached drawing 5 is please referred to, before the step 401, further includes:
Step 501: the main control unit sends synchronization frame to first distributed unit;
Specifically, after the location information and functional information that the main control unit obtains the n distributed units, The main control unit can send a synchronization frame, for notifying the distributed unit in looped network to prepare to receive the m subset beams Frame.
Step 502: first distributed unit receives the synchronization frame, and directly forwards the synchronization frame to next A distributed unit;
Step 503: other each described distributed units receive the synchronization frame, and the synchronization frame is directly forwarded to arrive down One distributed unit, until the synchronization frame returns to the main control unit.
In the embodiment of the present invention, by obtained in the main control unit location informations of n distributed units with After functional information, the main control unit realizes that the distributed unit preparation in notice looped network connects in a manner of sending synchronization frame Receive the purpose of subset beam frame.
Optionally, attached drawing 6 is please referred to, after the step 409, further includes:
Step 601: the main control unit sends end frame to first distributed unit;
Specifically, the main control unit sends one after the m subset beam frames return to the main control unit End frame, for notifying the distributed unit in looped network to stop sending the subset beam frame, and the transmission route in looped network is Through discharging.
Step 602: first distributed unit receives the end frame, and directly forwards the end frame to next A distributed unit;
Step 603: other each described distributed units receive the end frame, and the end frame is directly forwarded to arrive down One distributed unit, until the end frame returns to the main control unit.
The step 604:m distributed units are according to the sound of the cell queue being saved in the respectively distributed unit Ranking results are answered, the response frame that the distributed unit of the sequence before respectively is sent is received;
Specifically, the m distributed units are each according to being saved in after the end frame returns to the main control unit From the response ranking results of the cell queue in the distributed unit, so that putting in order in the described distributed single of l-th Member first sends next distributed unit in the response frame to looped network of itself, other are not belonging to the m distributed units In any distributed unit directly forward the response frame, be arranged in described in L+1 until the response frame is transferred to When distributed unit, which receives the response frame.
605:m distributed units of step directly forward the distributed unit of the sequence before respectively to send Response frame, and send respective response frame;
Specifically, when the distributed unit for being arranged in L+1 receives the response frame, deletion is arranged in the The ID of corresponding distributed unit in response ranking results in the L+1 distributed units in cell queue, then directly The response frame is forwarded, and sends the response frame of itself into looped network, until the m distributed units are all sent out into looped network When having sent corresponding response frame, the purpose that multiple response frames are orderly sent is realized.
Step 606: the main control unit receives effective reseting mark;
Specifically, after the m distributed units all have sent respective response frame, if the main control unit connects Effective reseting mark is received, then the main control unit in looped network and the n distributed units will reenter initialization shape State.
Step 607: the main control unit returns to the main control unit and sends relay frame to first distributed unit;
Specifically, at this point, the main control unit needs to reacquire the location information and function of the n distributed units Information, so as in subsequent looped network main control unit and multiple distributed units carry out repeatedly communication location information and function are provided Information.
In the embodiment of the present invention, the end frame sent by the main control unit enables the distributed unit to mention Before know that the distributed unit in looped network has stopped sending the subset beam frame, and the transmission route in looped network has discharged, it The response ranking results in the m distributed units that this communication cycle is related in cell queue are stored in front of afterwards Respective response frame is successively sent into looped network, when the m response frames return to the main control unit, completes this Communication, later, when the main control unit receives effective reseting mark, additionally it is possible to initialize the main control unit and distribution Unit re-starts new configuration operation.
The embodiment of the invention provides a kind of communication devices of master-slave type fiber optic network, please refer to attached drawing 7, described device packet It includes:
Main control unit 701 and n distributed unit 702, the transmitting terminal of the main control unit and first distribution The receiving end of unit connects, and each distributed unit is successively connected in series, the transmission of the last one distributed unit End is connected with the receiving end of the main control unit, and n is positive integer;
The main control unit 701 sends collection for obtaining the location information and functional information of the n distributed units Beam frame is to first distributed unit and receives the boundling frame returned;
The n distributed units 702, for receiving the boundling frame, and the n institute obtained according to the main control unit The location information and functional information of distributed unit are stated, forwards or is forwarded directly to down after successively handling the boundling frame One distributed unit or the main control unit 701.
In communication device disclosed by the embodiments of the present invention, by the main control unit 701 and n distributed unit 702 It is connected in series, forms loop network, the main control unit 701 also gets the position of the n distributed units 702 in advance Confidence breath and functional information send boundling frame to first distributed unit, first institute by the main control unit 701 It states distributed unit and receives the boundling frame, and location information and functional information according to the n distributed units, to described Boundling frame forwards or is forwarded directly to next distributed unit after being handled, until returning to the main control unit 701, So that each distributed unit 702i in looped network can receive the boundling frame, so improve main control unit with it is each The synchronism of data is received or sent between distributed unit, while the transmitting terminal of main control unit and connecing in the Current communications period Receiving end only connect with two distributed units and can realize and communicated between multiple distributed units indirectly, saves distribution The resource of formula control system.
The course of work of each unit provided in an embodiment of the present invention please refers to flow chart corresponding to attached drawing 1, specific work It is repeated no more as process.
The main control unit 701 provided in above-described embodiment obtain n distributed unit 702 location information when, It is specifically used for:
The main control unit 701, for sending relay frame to first distributed unit, wherein the relay frame In position field initial value be 0;
Correspondingly, first distributed unit, is also used to when receiving the relay frame, in the relay frame Position field carries out plus 1 processing, and is forwarded to next distributed unit;
Correspondingly, other each described distributed units, are also used to receiving the respective previous distributed unit Transmission process plus 1 processing the relay frame when, successively to by plus 1 processing the relay frame carry out plus 1 processing, and turn It is dealt into next distributed unit or the main control unit;
The main control unit 701 carries out plus 1 that treated is described for receiving by the last one described distributed unit Relay frame.
In the embodiment of the present invention, relay frame, n 702 foundations of distributed unit are sent by the main control unit 701 Link position in the looped network of place successively receives the relay frame, and carries out adding 1 processing, Zhi Daojing to the relay frame It crosses the last one described distributed unit and adds 1 treated that the relay frame returns to the main control unit 701, so that described Main control unit has known the quantity of multiple distributed units in looped network, and multiple distributed units are also described in the reception The specific location in each comfortable looped network has been known while relay frame.
The course of work of each unit provided in an embodiment of the present invention please refers to flow chart corresponding to attached drawing 2, specific work It is repeated no more as process.
The main control unit 701 provided in above-described embodiment obtain n distributed unit 702 functional information when, It is specifically used for:
The main control unit 701, for being carried out by distributed unit described in the last one plus 1 treated receiving When the relay frame, n subquery frame is successively sent to first distributed unit, wherein in the n subquery frames The first address information for including is corresponded with the first address information in the n distributed units respectively, first ground Location information is the location information for the n distributed units that the main control unit 701 obtains;
Correspondingly, first distributed unit, be also used to receiving any subquery frame, and with it is any described When first address information matching in subquery frame is correct, corresponding functional information frame is generated, and is forwarded corresponding described Functional information frame and the subquery frame to next distributed unit;
Correspondingly, other each described distributed units, be also used to receiving any subquery frame, and with any institute State in subquery frame first address information matching it is correct when, be sequentially generated corresponding functional information frame, and forward correspondence The functional information frame and the subquery frame to next distributed unit or the main control unit;
The main control unit, for receiving the n subquery frames and corresponding n functional information frame.
In the embodiment of the present invention, the n subquery frames are sent by the main control unit 701, n described distributed single It is first to carry out information matches with the subquery frame, and respective functional information frame is sent to looped network, Zhi Daosuo when matching correct State the n functional information frame that main control unit 701 receives the n subquery frames and the n distributed units 702 generate When, the main control unit 701 and the n distributed units 702 are completed and are inquired distributed unit information multiple in looped network Stage, in subsequent looped network main control unit and multiple distributed units carry out repeatedly communication functional information is provided.
The course of work of each unit provided in an embodiment of the present invention please refers to flow chart corresponding to attached drawing 3, specific work It is repeated no more as process.
Optionally, the n distributed units 702 provided in above-described embodiment are also used to:
Any subquery frame is being received, and is matching mistake with first address information in any subquery frame It mistakes, directly forwards any subquery frame for receiving to next distributed unit or the main control unit 701.
Specifically, in the embodiment of the present invention, the distributed unit described in each of n described distributed units 702 702i is receiving the subquery frame, and when with the first address information matching error in the subquery frame, directly Forward the subquery frame received to next distributed unit or the main control unit 701, and then described in guarantee Each described subquery frame that main control unit is sent can be with distributed unit 702i described in each in looped network one by one Corresponding matching.
The course of work of each unit provided in an embodiment of the present invention please refers to flow chart corresponding to attached drawing 3, specific work It is repeated no more as process.
The n distributed units 702 provided in above-described embodiment are receiving the boundling frame, and according to the master control The location information and functional information for the n distributed unit 702 that unit 701 obtains, successively to the boundling frame at When next distributed unit or the main control unit 701 are forwarded or be forwarded directly to after reason, it is specifically used for:
First or other each described distributed units are in receiving any subset beam frame, with any subset beam frame The matching of the second address information it is correct when, corresponding data field is correctly obtained in the subset beam frame from matching, and effectively Inquiry flag bit, and keep the inquiry flag bit in the subset beam frame in corresponding data field effective, forward the subset beam Frame is to next distributed unit or the main control unit 701;
Wherein, the boundling frame includes the m subset beam frames, the second address letter for including in the m subset beam frames Breath is corresponded with the second address information in the n distributed units 702 respectively, and second address information is the master The location information and functional information of the n distributed units 702 that unit 701 obtains are controlled, m is positive integer, and m is less than or equal to n。
In the embodiment of the present invention, the m that the main control unit 701 is sent successively is received by the n distributed units 702 A subset beam frame, and matched respectively with the second address information in the subset beam frame, and when matching correct, from Corresponding data field is obtained in the subset beam frame and effectively inquires flag bit, and makes corresponding number in the subset beam frame According to the inquiry flag bit in domain it is effective after, then forward the subset beam frame to next distributed unit or the master control list Member 701, and then both realized the data distributing of the main control unit.
The course of work of each unit provided in an embodiment of the present invention please refers to flow chart corresponding to attached drawing 4, specific work It is repeated no more as process.
Optionally, the n distributed units 702 provided in above-described embodiment are also used to:
Any subset beam frame is being received, and is matching mistake with second address information in any subset beam frame It mistakes, directly forwards any subset beam frame for receiving to next distributed unit or the main control unit.
In the embodiment of the present invention, connect by distributed unit 702i described in each of n described distributed units 702 Receive the subset beam frame, and when with the second address information matching error in the subset beam frame, directly forwarding is received The subset beam frame to next distributed unit or the main control unit 701, and then guarantee the main control unit hair Each sent subset beam frame can be matched with each described distributed unit 702i one-to-one correspondence in looped network.
The course of work of each unit provided in an embodiment of the present invention please refers to flow chart corresponding to attached drawing 4, specific work It is repeated no more as process.
Optionally, the n that provides in above-described embodiment distributed units 702 are receiving any subset beam frame, and appoint When the second address information matching in the one subset beam frame is correct, obtained from matching correctly the subset beam frame corresponding After data field, and effective inquiry flag bit, it is also used to:
According to from the effective inquiry flag bit got in the correctly subset beam frame is matched, response sequence is carried out, And response ranking results are saved in the cell queue in the respective distributed unit.
In the embodiment of the present invention, the n distributed units 702 with the subset beam frame after matching correctly, to acquisition To effective inquiry flag bit carry out response sequence, and save, carry out response for the subsequent distributed unit and the time is provided Foundation.
The course of work of each unit provided in an embodiment of the present invention please refers to flow chart corresponding to attached drawing 4, specific work It is repeated no more as process.
Optionally, the main control unit 701 provided in above-described embodiment is sending boundling frame to first distribution Before formula unit, it is also used to:
Synchronization frame is sent to first distributed unit;
The synchronization frame is received in first distributed unit, and directly forwards the synchronization frame to described in next Distributed unit receives the synchronization frame of return when the synchronization frame returns to the main control unit.
In the embodiment of the present invention, the synchronization frame is sent to the n distributions in looped network by the main control unit 701 Formula unit, and then realize the distributed unit in notice looped network and prepare to receive the purpose of subset beam frame.
The course of work of each unit provided in an embodiment of the present invention please refers to flow chart corresponding to attached drawing 5, specific work It is repeated no more as process.
Optionally, the main control unit 701 provided in above-described embodiment is forwarded to institute in the m subset beam frames After stating main control unit 701, it is also used to:
End frame is sent to first distributed unit;
The end frame is received in first distributed unit, and directly forwards the end frame to described in next Distributed unit receives the end frame of return when the end frame returns to the main control unit 701.
In the embodiment of the present invention, the end frame is sent to the n distributions in looped network by the main control unit 701 Formula unit, and then the distributed unit realized in notice looped network has stopped sending the subset beam frame, and the hair in looped network The purpose for sending power to discharge.
The course of work of each unit provided in an embodiment of the present invention please refers to flow chart corresponding to attached drawing 6, specific work It is repeated no more as process.
Optionally, the m distributed units provided in above-described embodiment receive the institute returned in the main control unit After stating end frame, it is also used to:
According to the response ranking results for the cell queue being saved in the respective distributed unit, exist receiving sequence When the response frame that the distributed unit before respectively is sent, the distributed unit of the sequence before respectively is directly forwarded The response frame of transmission, and send respective response frame.
In the embodiment of the present invention, need to issue m of response in this communication cycle in the n distributed units 702 The distributed unit can successively carry out response operation according to the response ranking results respectively saved, to ensure that in looped network The order that responsive data frame is sent.
The course of work of each unit provided in an embodiment of the present invention please refers to flow chart corresponding to attached drawing 6, specific work It is repeated no more as process.
Optionally, the main control unit 701 provided in above-described embodiment has sent in the m distributed units After m response frame, it is also used to:
When receiving effective reseting mark, relay frame is sent to first distributed unit.
In the embodiment of the present invention, after making the main control unit 701 receive effective reseting mark, make the institute in looped network It states main control unit 701 and the n distributed units 702 reenters the position configuration rank of the n distributed units 702 Section, and then quickly and easily dcs can be made to be initialized.
The course of work of each unit provided in an embodiment of the present invention please refers to flow chart corresponding to attached drawing 6, specific work It is repeated no more as process.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (22)

1. a kind of means of communication of master-slave type fiber optic network, which is characterized in that the master-slave type fiber optic network includes main control unit Connected with the transmitting terminal of n distributed unit, the main control unit by the receiving end of optical fiber and first distributed unit It connects, each distributed unit is successively connected in series, the transmitting terminal of the last one distributed unit and the master control list The receiving end of member is connected, and the main control unit obtains the location information and functional information of the n distributed units, institute in advance The method of stating includes:
The main control unit sends boundling frame to first distributed unit;
First distributed unit receives the boundling frame, and location information and function according to the n distributed units Energy information, forwards or is forwarded directly to next distributed unit after handling the boundling frame;
Other each described distributed units are received by processing or the untreated boundling frame, and according to n described point The location information and functional information of cloth unit are forwarded or are forwarded directly to after successively handling the boundling frame and is next The distributed unit, until returning to the main control unit;
Wherein, n is positive integer.
2. the method according to claim 1, wherein the main control unit obtains the n distributed lists in advance The location information of member, comprising:
The main control unit sends relay frame to first distributed unit;
First distributed unit receives the relay frame, carries out to the position field in the relay frame plus 1 is handled, and turn It is dealt into next distributed unit, wherein the initial value of the position field in the relay frame is 0;
Other each described distributed units are receiving what the process plus 1 that respectively the previous distributed unit is sent were handled When the relay frame, add the relay frame of 1 processing to carry out adding 1 processing to passing through, and is forwarded to next distribution list Member, until being carried out by the last one described distributed unit plus 1 treated that the relay frame returns to the main control unit;
Wherein, it receives being carried out by distributed unit described in the last one in the main control unit plus 1 that treated is described When relay frame, the main control unit obtains the functional information of the n distributed units.
3. according to the method described in claim 2, it is characterized in that, receiving in the main control unit by described in the last one When distributed unit carries out plus 1 treated the relay frame, the main control unit obtains the function of the n distributed units Energy information, comprising:
The main control unit successively sends n subquery frame to first distributed unit, wherein the n subqueries The first address information for including in frame is corresponded with the first address information in n distributed units respectively, and described the One address information is the location information for the n distributed units that the main control unit obtains;
First distributed unit receives any subquery frame, and with described first in any subquery frame Address information is matched;
When matching correct, first distributed unit generates corresponding functional information frame, and forwards the corresponding function It can information frame and the subquery frame to next distributed unit;
Other each described distributed units receive any described subquery frames, and with described the in any subquery frame One address information is matched;
When matching correct, correctly the distributed unit generates corresponding functional information frame for matching, and forwards corresponding institute Functional information frame and the subquery frame are stated to next distributed unit, until the n subquery frames and corresponding n A functional information frame returns to the main control unit;
Wherein, when the main control unit receives the n subquery frames and corresponding n functional information frame, described in execution Main control unit sends boundling frame to first distributed unit.
4. according to the method described in claim 3, it is characterized in that, at described first or other each described distributed units Any subquery frame is received, after being matched with first address information in any subquery frame, is also wrapped It includes:
In matching error, first or other each described distributed units directly forward any subquery received Frame is to next distributed unit or the main control unit.
5. the method according to claim 1, wherein described first or other each described distributed units connect The boundling frame, and location information and functional information according to the n distributed units are received, the boundling frame is handled After forward or be forwarded directly to next distributed unit, until returning to the main control unit, comprising:
First or other each described distributed units receive second in any subset beam frames, with any subset beam frame Address information is matched, wherein the boundling frame includes m subset beam frames, include in the m subset beam frames the Double-address information is corresponded with the second address information in the n distributed units respectively, and second address information is The location information and functional information for the n distributed units that the main control unit obtains, m is positive integer, and m is less than or equal to n;
When matching correct, first or other each described distributed units are obtained from matching in the correctly subset beam frame Corresponding data field, and flag bit is effectively inquired, and make the inquiry in the subset beam frame in corresponding data field Flag bit is effective, forwards the subset beam frame to next distributed unit, described in the m subset beam frames returns Main control unit.
6. according to the method described in claim 5, it is characterized in that, at described first or other each described distributed units Any subset beam frame is received, after being matched with second address information in the subset beam frame, further includes:
In matching error, first or other each described distributed units directly forward any subset beam received Frame is to next distributed unit or the main control unit.
7. according to the method described in claim 5, it is characterized in that, at described first or other each described distributed units Corresponding data field is obtained in the correctly subset beam frame from matching, and after effective inquiry flag bit, further includes:
First or other each described distributed units according to from match got in the correctly subset beam frame it is effective Inquiry flag bit, carry out response sequence, and response ranking results are saved in the unit in the respective distributed unit Queue.
8. the method according to claim 1, wherein sending boundling frame to described in first in the main control unit Before distributed unit, further includes:
The main control unit sends synchronization frame to first distributed unit;
First distributed unit receives the synchronization frame, and directly forwards the synchronization frame to next distribution Unit;
Other each described distributed units receive the synchronization frame, and directly forward the synchronization frame to next distribution Formula unit, until the synchronization frame returns to the main control unit.
9. the method according to the description of claim 7 is characterized in that returning to the master control list in the m subset beam frames After member, further includes:
The main control unit sends end frame to first distributed unit;
First distributed unit receives the end frame, and directly forwards the end frame to next distribution Unit;
Other each described distributed units receive the end frame, and directly forward the end frame to next distribution Formula unit, until the end frame returns to the main control unit.
10. according to the method described in claim 9, it is characterized in that, being gone back after the end frame returns to the main control unit Include:
M distributed units according to the response ranking results of the cell queue being saved in the respectively distributed unit, Receive the response frame that the distributed unit of the sequence before respectively is sent;
The response frame that the m distributed units directly forward the distributed unit of the sequence before respectively to send, concurrently Send respective response frame.
11. according to the method described in claim 10, it is characterized in that, having sent m response frame in the m distributed units Later, further includes:
The main control unit receives effective reseting mark;
The main control unit sends relay frame to first distributed unit.
12. a kind of communication device of master-slave type fiber optic network, which is characterized in that described device includes:
Main control unit and n distributed unit, the reception of the transmitting terminal of the main control unit and first distributed unit End connection, each distributed unit are successively connected in series, the transmitting terminal of the last one distributed unit and the master The receiving end of control unit is connected;
The main control unit sends boundling frame to for obtaining the location information and functional information of the n distributed unit One distributed unit and the boundling frame for receiving return;
The n distributed units, for receiving the boundling frame, and the n distributions obtained according to the main control unit The location information and functional information of formula unit forward or are forwarded directly to next institute after successively handling the boundling frame State distributed unit or the main control unit;
Wherein, n is positive integer.
13. device according to claim 12, which is characterized in that obtain n distributed unit in the main control unit When location information, the main control unit is specifically used for:
The main control unit, for sending relay frame to first distributed unit, wherein the position in the relay frame The initial value in domain is 0;
Correspondingly, first distributed unit, is also used to when receiving the relay frame, to the position in the relay frame Domain carries out plus 1 processing, and is forwarded to next distributed unit;
Correspondingly, other each described distributed units, are also used to receiving the respectively previous distributed unit transmission Process plus 1 processing the relay frame when, successively to by plus the relay frame of 1 processing carry out plus 1 processing, and be forwarded to Next distributed unit or the main control unit;
The main control unit carries out plus 1 treated the relay frame for receiving by the last one described distributed unit.
14. device according to claim 13, which is characterized in that obtain n distributed unit in the main control unit When functional information, the main control unit is specifically used for:
The main control unit, for being carried out by distributed unit described in the last one plus 1 treated described connects receiving When power frame, n subquery frame is successively sent to first distributed unit, wherein include in the n subquery frames First address information is corresponded with the first address information in the n distributed units respectively, first address information For the location information for the n distributed units that the main control unit obtains;
Correspondingly, first distributed unit, is also used to receiving any subquery frame, and look into any son When first address information matching in inquiry frame is correct, corresponding functional information frame is generated, and forward the corresponding function Information frame and the subquery frame to next distributed unit;
Correspondingly, other each described distributed units, be also used to receiving any subquery frame, and with any son When first address information inquired in frame matches correct, it is sequentially generated corresponding functional information frame, and forward corresponding institute Functional information frame and the subquery frame are stated to next distributed unit or the main control unit;
The main control unit, for receiving the n subquery frames and corresponding n functional information frame.
15. device according to claim 14, which is characterized in that described first or other each described distributed lists Member is also used to:
Receiving any subquery frame, and with the first address information matching error in any subquery frame When, directly forward any subquery frame for receiving to next distributed unit or the main control unit.
16. device according to claim 12, which is characterized in that receive the collection in the n distributed units Beam frame, and the location information and functional information of the n distributed units obtained according to the main control unit, successively to described Boundling frame forwards or be forwarded directly to next distributed unit or the main control unit after being handled when, n described Distributed unit is specifically used for:
First or other each described distributed units are receiving the in any subset beam frame, with any subset beam frame When double-address information matches are correct, corresponding data field is obtained from matching in the correctly subset beam frame, and effectively look into Flag bit is ask, and keeps the inquiry flag bit in the subset beam frame in corresponding data field effective, the subset beam frame is forwarded to arrive Next distributed unit or the main control unit;
Wherein, the boundling frame includes the m subset beam frames, the second address information point for including in the m subset beam frames It is not corresponded with the second address information in the n distributed units, second address information is the main control unit The location information and functional information of the n distributed units of acquisition, m is positive integer, and m is less than or equal to n.
17. device according to claim 16, which is characterized in that described first or other each described distributed lists Member is also used to:
Receiving any subset beam frame, and with the second address information matching error in any subset beam frame When, directly forward any subset beam frame for receiving to next distributed unit or the main control unit.
18. device according to claim 16, which is characterized in that at described first or other are each described distributed single Member is receiving any subset beam frame, correct from matching when matching correct with the second address information in any subset beam frame The subset beam frame in obtain corresponding data field, and after effective inquiry flag bit, described first or other are each A distributed unit is also used to:
According to from the effective inquiry flag bit got in the correctly subset beam frame is matched, response sequence is carried out, and will Response ranking results are saved in the cell queue in the respective distributed unit.
19. device according to claim 12, which is characterized in that send boundling frame to first institute in the main control unit Before stating distributed unit, the main control unit is also used to:
Synchronization frame is sent to first distributed unit;
The synchronization frame is received in first distributed unit, and directly forwards the synchronization frame to next distribution Formula unit receives the synchronization frame of return when the synchronization frame returns to the main control unit.
20. device according to claim 18, which is characterized in that be forwarded to the master in the m subset beam frames After controlling unit, the main control unit is also used to:
End frame is sent to first distributed unit;
The end frame is received in first distributed unit, and directly forwards the end frame to next distribution Formula unit receives the end frame of return when the end frame returns to the main control unit.
21. device according to claim 20, which is characterized in that receive the end frame returned in the main control unit Later, the m distributed units are also used to:
According to the response ranking results for the cell queue being saved in the respective distributed unit, sequence is being received respective When the response frame that the distributed unit before is sent, the directly distributed unit of the forwarding sequence before respectively is sent Response frame, and send respective response frame.
22. device according to claim 21, which is characterized in that have sent m sound in the m distributed units After answering frame, the main control unit is also used to:
When receiving effective reseting mark, relay frame is sent to first distributed unit.
CN201610435902.7A 2016-06-17 2016-06-17 A kind of means of communication and device of master-slave type fiber optic network Active CN106130640B (en)

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 CN106130640A (en) 2016-11-16
CN106130640B true 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)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
EtherCAT在实时系统下的实现;吴丽菲;《中国优秀硕士学位论文全文数据库 信息科技辑》;20150115;第I140-542页 *

Also Published As

Publication number Publication date
CN106130640A (en) 2016-11-16

Similar Documents

Publication Publication Date Title
CN109040279A (en) Block chain network network-building method, device, equipment and readable storage medium storing program for executing
CN110417558A (en) Verification method and device, the storage medium and electronic device of signature
CN105162883B (en) Network Load Balance processing system and its method and apparatus
CN104868958B (en) A kind of data transmission testing method that Spatial distributions network is accessed based on time division multiple acess
CN105763465B (en) A kind of distributed group interflow amount control method and device
CN105871602A (en) Control method, device and system for counting traffic
CN106375142A (en) Application program test method and apparatus
CN107800603B (en) Intranet user accesses the method and storage medium of headend equipment based on VPN
CN108632110A (en) Equipment performance test method, system, computer equipment and storage medium
CN101640645B (en) Message transmission method and system
CN109257224A (en) A kind of database communication network test simulation method and device
CN104301248A (en) Message rate limiting method and device
CN104410581A (en) Configuration information design and information extraction of AFDX (Avionics Full Duplex Switched Ethernet) network
CN106201715A (en) A kind of method for scheduling task and device
CN107193672A (en) A kind of transregional piece of asynchronous call contract system
CN106533871A (en) Release subscription method and system based on AFDX bus
CN106130640B (en) A kind of means of communication and device of master-slave type fiber optic network
CN105493476B (en) The network user
JP2023539829A (en) Facilitation of control procedures via services adapted to BLE connections
CN110501979A (en) Cluster control method, system and terminal equipment
CN109753012A (en) A kind of processing machine long-range control method, apparatus and system based on cloud platform
WO2012174838A1 (en) Method and system of parallel transmitting network element messages
CN109691207A (en) Method, terminal device and the network equipment of resource distribution
CN107395431A (en) Network establishing method and device, equipment processing and cut-in method, the network equipment
CN109918172A (en) A kind of live migration of virtual machine method and system

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