CN104052615B - Principal and subordinate's detection method and principal and subordinate's detection circuit - Google Patents
Principal and subordinate's detection method and principal and subordinate's detection circuit Download PDFInfo
- Publication number
- CN104052615B CN104052615B CN201310084423.1A CN201310084423A CN104052615B CN 104052615 B CN104052615 B CN 104052615B CN 201310084423 A CN201310084423 A CN 201310084423A CN 104052615 B CN104052615 B CN 104052615B
- Authority
- CN
- China
- Prior art keywords
- subordinate
- code
- signal
- principal
- pseudorandom code
- 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
Links
Abstract
A kind of principal and subordinate's detection method and principal and subordinate's detection circuit, principal and subordinate's detection method include:At interval of a period, determine whether a first device transmits a certain pulses signal a to second device in a random basis;At interval of a period, determine whether the second device transmits the certain pulses signal to the first device in a random basis;When the first device first receives at least a portion signal of the certain pulses signal than the second device, the first device is set as a master control set, and the master control set is stopped transmitting the certain pulses signal and is started to transmit a particular sequence;And when the second device receives the particular sequence, the second device is set as a slave unit.At least a portion signal of the certain pulses signal includes continuous Sing plus.
Description
Technical field
Presently disclosed embodiment is related to principal and subordinate's detection method of line transmission system and interlock circuit, and espespecially one
Plant and be applied to Ethernet(Ethernet)Line transmission system principal and subordinate's detection method and interlock circuit.
Background technology
In traditional line transmission system, in order to increase transmission range and speed, generally require costliness wire rod with
Mitigate the design difficulty of receiving terminal, such as optical fiber(Fiber Optical)Network, however, also having using more cheap wire rod simultaneously
Again to transmission range and speed with the presence of a certain degree of required standard, such as Ethernet.
In traditional Fast Ethernet(Such as 100BASE-T, 1000BASE-T)It is central, using two pairs without masking multiple twin
Line(Un-shield Twisted Pair,UTP)To carry out wire transmission, when line, for Fast Ethernet two
For the device at end, while have being specifically used to a pair that transmit data without masking twisted-pair feeder, and it is specifically used to receive data
A pair without masking twisted-pair feeder.And recently in some are for the more harsh application of cost and weight demands, such as single pair of
Ethernet alliance(OPEN Alliance), it is desirable to network complexity and cable cost is greatly reduced, and maintains high bandwidth
Characteristic, therefore use the single pair of to carry out wire transmission without masking twisted-pair feeder, however, in single pair of without in masking twisted pair system
Two devices, when cable between connecting at the beginning, can be because collision(collision)Problem and cause
The auto negotiation of traditional Fast Ethernet cannot be applicable(auto-negotiation)Mechanism, in other words, it is impossible to use
The Automatic Negotiation Mechanism of traditional Fast Ethernet by single pair of without masking twisted pair system in two devices distribution based on
Control(master)Device and subordinate(slave)Device.
Therefore, in order to solve the problems, such as it is above-mentioned, it is necessary to a kind of innovation principal and subordinate's detection method by single pair of without masking multiple twin
Two devices in linear system system are assigned as master control set and slave unit.
The content of the invention
An object of the present invention is that a kind of principal and subordinate's detection method of offer and interlock circuit distribute two devices
It is master control set and slave unit.
According to a first embodiment of the invention, a kind of principal and subordinate's detection method is disclosed, included:Periodically determine one
Whether one device transmits a certain pulses signal a to second device;Periodically determine whether the second device transmits this specific
Pulse signal is to the first device;When the first device first receives at least a portion of the certain pulses signal than the second device
During signal, the first device is set as a master control set, and make the master control set stop transmitting the certain pulses signal simultaneously
And start to transmit a particular sequence;And when the second device receives the particular sequence, by the second device be set as one from
Category device.
According to a second embodiment of the invention, a kind of principal and subordinate's detection method is disclosed, included:Come using a first device
Periodically one first pseudorandom of transmission code a to second device, wherein first pseudorandom code is one first host virtual
Random code or one first subordinate pseudorandom code, when the first device transmits the first host virtual random code, then this
One device is entered using the first subordinate pseudorandom code and one second subordinate pseudorandom code with received signal respectively
The specific comparison calculation of row one, and when the first device transmits the first subordinate pseudorandom code, then the first device is distinguished
Using the first host virtual random code and one second host virtual random code the specific ratio is carried out with received signal
To computing;One second pseudorandom code to the first device is periodically transmitted using the second device, wherein second void
Pseudorandom code be the first host virtual random code or the first subordinate pseudorandom code, when the second device transmit this first
During host virtual random code, then the second device uses the first subordinate pseudorandom code and one second subordinate pseudorandom code
To carry out the specific comparison calculation with received signal, and when the second device transmits the first subordinate pseudorandom code
When, then the second device using the first host virtual random code and one second host virtual random code come with the letter for being received
Number carry out the specific comparison calculation;When the first device first obtains the matching result of the specific comparison calculation than the second device
When, first pseudorandom code that the specific comparison calculation used is carried out according to the first device to set the first device
It is a master control set or a slave unit, and the first device is transmitted one the 3rd pseudorandom code to the second device;And
When the second device receives the 3rd pseudorandom code, then the second device is set as according to the 3rd pseudorandom code
The master control set or the slave unit.
According to a 3rd embodiment of the invention, a kind of principal and subordinate's detection circuit is disclosed, include transmission control circuit, one
Receive control circuit and a control circuit.Transmission control circuit is specific for periodically determining whether a device transmits one
Pulse signal is to another device.Reception control circuit is used for judging whether the device receives the certain pulses signal at least
A part of signal.The control circuit is used for when the device receives at least a portion signal of the certain pulses signal, by this
Device is set as a master control set, and makes the master control set stop transmitting the certain pulses signal and to start transmission one specific
Sequence, or when the device receives the particular sequence, the device is set as a slave unit.
The present invention can make the single pair of of Fast Ethernet overcome collision without two devices in masking twisted pair system
Problem and automatic principal and subordinate's testing mechanism is carried out, in other words, the present invention proposes a kind of automatic principal and subordinate's testing mechanism by single pair of
Master control set and slave unit are assigned as without two devices in masking twisted pair system, thus so that single pair of is without screening
The availability for covering twisted pair system is greatly improved, and alleviates the cable cost and weight of system.
Brief description of the drawings
Fig. 1 is the flow chart of an one exemplary embodiment of principal and subordinate's detection method of the present invention.
Fig. 2 is the schematic diagram of an one exemplary embodiment of principal and subordinate's detection circuit of the present invention.
The schematic diagram of the certain pulses signal that Fig. 3 is used by principal and subordinate of the present invention detection circuit.
Fig. 4 is an exemplary sequential operation figure of the principal and subordinate's detection circuit shown in Fig. 2.
Fig. 5 is the flow chart of another one exemplary embodiment of principal and subordinate's detection method of the present invention.
Fig. 6 is the schematic diagram of another one exemplary embodiment of principal and subordinate's detection circuit of the present invention.
Fig. 7 is an exemplary sequential operation figure of the principal and subordinate's detection circuit shown in Fig. 6.
【Symbol description】
100~106,500~506 steps
200th, 600 principals and subordinates detection circuit
202nd, 602 transmission control circuit
204th, 604 control circuit is received
206th, 606 control circuit
208 echo preventing circuits
212 pseudorandom generators
Specific embodiment
Fig. 1 is refer to, Fig. 1 is the flow chart of an one exemplary embodiment of principal and subordinate's detection method of the present invention.If generally
Identical result is can reach, and necessarily need not be carried out in accordance with the step order in the flow shown in Fig. 1, and shown in Fig. 1
Step is not necessarily intended to be carried out continuously, namely other steps also can be inserted into wherein, additionally, some of Fig. 1 steps are not also dependent on
It is omitted with embodiment or design requirement.The method can mainly include following steps:
Step 100:At interval of a period, determine whether a first device transmits a certain pulses signal in a random basis
To the second device;
Step 102:At interval of a period, determine whether a second device transmits the certain pulses signal in a random basis
To the first device;
Step 104:When the first device first receives at least a portion signal of the certain pulses signal than the second device
When, the first device is set as a master control set, and make the master control set stop transmitting the certain pulses signal and opening
Begin one particular sequence of transmission;And
Step 106:When the second device receives the particular sequence, the second device is set as a slave unit.
Please also refer to the schematic diagram of the one exemplary embodiment that Fig. 1 and Fig. 2, Fig. 2 are principal and subordinate's detection circuit of the present invention.It is many
Individual device(Such as first device DUT and second device LP)In each device be provided with a principal and subordinate detection circuit 200.In
In the present embodiment, principal and subordinate's detection circuit 200 includes transmission control circuit 202, and receives the control control electricity of circuit 204,
The echo preventing circuit 208 of road 206 and.When first device DUT not yet completes the flow that principal and subordinate detects with other devices, such as
Shown in step 100, transmission control circuit 202 is used for periodically determining whether first device DUT transmits one in a random basis
Certain pulses signal LPB to second device LP, and transmission control circuit 202 is coupled to control circuit 206.In the present embodiment,
Transmission control circuit 202 just produces a random signal RND to determine at interval of a period T using pseudorandom generator 212
Whether certain pulses signal LPB is sent, for example, can use the pseudorandom sequence multinomial with specific initial value
(pseudo-random sequence polynomial)To produce random signal RND, such as pseudorandom sequence multinomial
Can be X10+X8+ 1, and set the first of pseudorandom sequence multinomial and make value as 00A9H(That is, 00010101001), additionally, passing
Sending control circuit 202 can transmit certain pulses signal LPB in RND=1, and in other words, transmission control circuit 202 is in RND=
When 0, certain pulses signal LPB can't be transmitted.But the exemplary illustrated of the present embodiment is above are only, the generation of random signal
Mechanism is not limited to the producing method of above-mentioned pseudorandom, can essentially using it is any can reach it is identical or similar
The random signal generation mechanism of purpose, these designs belong to scope of the invention.
On the other hand, principal and subordinate's detection circuit 200 can be also provided with due to second device LP, therefore second device LP is similarly
In a random basis transmission certain pulses signal LPB to first device DUT, i.e. step 102 can be decided whether at interval of period T.
Note that in order to avoid with cable on noise aliasing, reduce erroneous judgement signal chance, the certain pulses signal in the present embodiment
LPB includes multiple Sing plus P, for example, the certain pulses signal that Fig. 3 is used by principal and subordinate of the present invention detection circuit
Schematic diagram, the interval with a period t between plurality of Sing plus P, and there is period T between certain pulses signal LPB
Interval.But the exemplary illustrated of the present embodiment is above are only, certain pulses signal is not limited to above-mentioned form, actually
Can be using any certain pulses signal that can reach identical or similar purpose, wherein any number of single arteries and veins can be included
Punching, these designs belong to scope of the invention.
Reception control circuit 204 on first device DUT is used for judging whether first device DUT is received from the
At least a portion signal of the certain pulses signal LPB that two devices LP is transmitted, and reception control circuit 204 is respectively coupled to control
Circuit processed 206 and echo preventing circuit 208.Echo preventing circuit 208 is coupled to reception control circuit 204 and control circuit
Between 206, for after first device DUT transmission certain pulses signal LPB to second device LP, controlling first device DUT
In a period Tround_trip_delayIt is middle to stop receiving signal, to avoid receiving the signal that first device DUT sends out in itself
Rebound the echo returned(echo)Signal and by the echo-signal mistakenly as the signal transmitted by second device LP, very
Extremely it is mistaken for qualified certain pulses signal LPB.It should be noted that period Tround_trip_delayCan come according to actual state
Set, the length or material of such as cable.In after first device DUT transmission certain pulses signal LPB to second device LP
And by period Tround_trip_delayAfterwards, if on first device DUT being to receive control circuit 204 to judge to receive and come from
The one reception signal RXDATA of second device LP, for example, receive continuous three Sing plus P, then receive control electricity
Road 204 can judge that first device DUT now have received the certain pulses signal LPB that second device LP is transmitted, in addition,
If only have received continuous two Sing plus P, then receiving control circuit 204 can be regarded as underproof signal, and
It is not notified that control circuit 206.Control circuit 206 is used for indicating first device DUT to have been received by coming when reception control circuit 204
From at least a portion signal of the certain pulses signal LPB that second device LP is transmitted when, first device DUT is set as a master
Control device, and make the master control set(That is first device DUT)Stop transmission certain pulses signal LPB and start the spy of transmission one
Sequencing row IDLE is to second device LP, that is, step 104.If however, there is opposite situation, namely working as first device
When DUT receives particular sequence IDLE, then control circuit 206 first device DUT can be set as into a slave unit, i.e. step
106。
In order to illustrate in greater detail operating process of the invention, the situation occurred using an actual capabilities is used as below
The illustrative example of the present embodiment.Fig. 4 is refer to, Fig. 4 is the sequential operation figure of an embodiment of principal and subordinate's detection circuit of the present invention.Its
There are two vertical lines, its time for representing first device DUT respectively in the lower section of middle literal symbol DUT and literal symbol LP respectively
The time shaft of axle and second device LP, represents the carrying out of time from top to bottom, and the stain above time shaft represents and spy occurs
Determine the time point of event.First device DUT and second device LP are respectively arranged with the principal and subordinate's detection circuit 200 shown in Fig. 2.One
During beginning, first device DUT and second device LP is in the state for not yet completing principal and subordinate's testing mechanism(Such as first device
Cable between DUT and second device LP has just just been connected, therefore, between first device DUT and second device LP not yet
Determine the distribution of master control set and slave unit), and the transmission of second device LP control circuit 202 is used in time point t1
Random signal RND=1 produced by pseudorandom generator 212, determines to send certain pulses signal LPB, and anti-in order to prevent
The echo penetrated causes the erroneous judgement of the reception control circuit 204 of second device LP, therefore the reception of second device LP can be made to control electricity
Road 204 stops receiving signal(For example close and receive control circuit 204), until by period Tround_trip_delayAfterwards, just again
The reception of second device LP is set to control circuit 204 to start to receive signal.In addition, the transmission control circuit 202 of first device DUT
Compared with time point t1Later time point t2Random signal RND=1 is produced using pseudorandom generator 212, determines to send specific
Pulse signal LPB, and the mistake of the reception control circuit 204 of first device DUT is similarly caused for the echo for preventing reflection
Sentence, therefore the reception of first device DUT can be made to control circuit 204 to stop receiving signal, until by period Tround_trip_delay
Afterwards, the reception of first device DUT is just made to control circuit 204 to start to receive signal again.In time point t3When, second device
Certain pulses signal LPB transmitted by LP reaches first device DUT, but now the reception of first device DUT controls circuit 204
Not yet it is enabled, in other words, time point t3Apart from the time of the last transmission certain pulses signal LPB of first device DUT(I.e.
Time point t2)Interval time not yet meet more than or equal to period Tround_trip_delayRequirement, therefore second device LP sent out
Even if the certain pulses signal LPB for sending reaches first device DUT, the echo preventing circuit 208 of first device DUT can be also based on
Judge and be ignored.Similarly, in time point t4When, certain pulses signal LPB transmitted by first device DUT reaches the
Two devices LP, but now the reception control circuit 204 of second device LP is not yet enabled, in other words, time point t4Distance
The time of the last transmission certain pulses signal LPB of second device LP(That is time point t1)Interval time not yet meet more than or
Equal to period Tround_trip_delayRequirement, even if therefore certain pulses signal LPB transmitted by first device DUT reaches second
Device LP, can also be based on the judgement of the echo preventing circuit 208 of second device LP and be ignored.
Next, in time point t5When, the judging distance second device LP of echo preventing circuit 208 of second device LP
The time of last time transmission certain pulses signal LPB(That is time point t1)Interval time met more than or equal to the period
Tround_trip_delayRequirement, now just start the reception control circuit 204 of second device LP starting analysis and receive signal
RXDATA.Similarly, in time point t6When, the judging distance first device of echo preventing circuit 208 of first device DUT
The time of the last transmission certain pulses signal LPB of DUT(That is time point t2)Interval time met more than or equal to when
Section Tround_trip_delayRequirement, now just start the reception control circuit 204 of first device DUT starting analysis and receive signal
RXDATA.In time point t7When, the transmission control circuit 202 judging distance second device LP of second device LP is last to be passed
Send the time of certain pulses signal LPB(That is time point t1)Interval time met requirement equal to period T, therefore when
Between point t7Random signal RND=0 is produced using pseudorandom generator 212, therefore decides not to send certain pulses signal LPB, and by
Certain pulses signal LPB is not sent in this second device LP, just need not make the second dress to prevent the echo of reflection
Put LP reception control circuit 204 stop receive signal, in other words, now second device LP reception control circuit 204 according to
It is old to allow to carry out signal reception in the state being enabled.On the contrary, in time point t8When, the biography of first device DUT
Send the control circuit 202 judging distance first device DUT times of last transmission certain pulses signal LPB(That is time point t2)'s
Interval time has met the requirement equal to period T, therefore in time point t8Random letter is produced using pseudorandom generator 212
Number RND=1, therefore determine to send certain pulses signal LPB, and the reception of first device DUT is controlled circuit 204
Stop receiving signal, until again passing by period Tround_trip_delayAfterwards, the reception of first device DUT is just made to control circuit again
204 start to receive signal.
In time point t9When, the certain pulses signal LPB transmitted by first device DUT reaches second device LP, this
When second device LP reception control circuit 204 be in the state for enabling, and receive control circuit 204 and continuously receive 3(Or
It is more than 3)Second device LP is set as master control set by Sing plus P, the now meeting of control circuit 206 of second device LP,
And it is required that transmission control circuit 202 transmits particular sequence IDLE, and second device LP entered for the first adjustment stage.The opposing party
Face, first device DUT is in time point t11When receive particular sequence IDLE(Now the reception control of first device DUT is electric
Road 204 passes through period Tround_trip_delay(Time point t11)And start to receive signal), and have passed through a period Tidle
(Time point t12), confirm that the reception control circuit 204 of first device DUT persistently receives particular sequence IDLE, now first device
First device DUT can be set as slave unit by the control circuit 206 of DUT, and enter for the first adjustment stage, for example, the
One device DUT can be timed reply in the first adjustment stage using the particular sequence IDLE that second device LP is transmitted
(timing recovery)Flow.In time point t13When, first device DUT should in completing for the first adjustment stage
The all flows for carrying out, hence into the second adjustment stage, now the transmission control circuit 202 of first device DUT can transmit spy
Sequencing row IDLE is to second device LP, and second device LP is in time point t13Receive the particular sequence from first device DUT
After IDLE, can also enter for the second adjustment stage.
Fig. 5 is refer to, Fig. 5 is the flow chart of another embodiment of principal and subordinate's detection method of the present invention.If generally reachable
To identical result, and necessarily need not be carried out in accordance with the step order in the flow shown in Fig. 5, and the step shown in Fig. 5
It is not necessarily intended to be carried out continuously, that is, other steps also can be inserted into wherein, additionally, some of Fig. 5 steps are also dependent on different realities
Apply example or design requirement and omit.The method can mainly include following steps:
Step 500:It is random to determine a first device one first host virtual of transmission in a random basis at interval of a period
Code or one first subordinate pseudorandom code to a second device, when the first device transmits the first host virtual random code
When, then the first device respectively using the first subordinate pseudorandom code and one second subordinate pseudorandom code come with received
Signal carry out a specific comparison calculation, and when the first device transmits the first subordinate pseudorandom code, then this first
Device is carried out using the first host virtual random code and one second host virtual random code with received signal respectively
The specific comparison calculation;
Step 502:At interval of a period, determine that it is random that the second device transmits first host virtual in a random basis
Code or the first subordinate pseudorandom code to the first device, when the second device transmits the first host virtual random code
When, then the second device respectively using the first subordinate pseudorandom code and the second subordinate pseudorandom code come with received
Signal carry out a specific comparison calculation, and when the second device transmits the first subordinate pseudorandom code, then this second
Device is carried out using the first host virtual random code and the second host virtual random code with received signal respectively
The specific comparison calculation;
Step 504:When the first device first obtains the matching result of the specific comparison calculation than the second device, according to
The first device carry out the first host virtual random code that the specific comparison calculation used or first subordinate it is virtual with
The first device is set as a master control set or a slave unit by machine code, and make the first device transmit one the 3rd it is virtual with
Machine code is to the second device;And
Step 506:When the second device receives the 3rd pseudorandom code, then will according to the 3rd pseudorandom code
The second device is set as the master control set or the slave unit.
Please also refer to the schematic diagram of another one exemplary embodiment that Fig. 5 and Fig. 6, Fig. 6 are principal and subordinate's detection circuit of the present invention.
Multiple devices(Such as first device DUT and second device LP)In each device be provided with a principal and subordinate detection circuit 600.
In the present embodiment, principal and subordinate's detection circuit 600 includes transmission control circuit 602, and receives the control control of circuit 604 and
Circuit processed 606.When first device DUT not yet completes the flow that principal and subordinate detects with other devices, as shown at 500, first
The transmission of device DUT controls circuit 602 at interval of a period T, can produce one first pseudorandom code to second device LP, wherein
First pseudorandom code is one first host virtual random code M1PN or one first subordinate pseudorandom code S1PN.Specifically
Say, the transmission of first device DUT control circuit 602 at interval of a period T will be produced using pseudorandom generator 212 with
Machine signal RND, with determined by random signal RND first device DUT transmit one first host virtual random code M1PN or
S1PN is to second device LP for first subordinate pseudorandom yard, wherein being related to the detailed operating instruction of pseudorandom generator 212
Above-mentioned paragraph is refer to, is seldom repeated herein.And work as first device DUT and be based on random signal RND and transmit the first master control void
During pseudorandom code M1PN, then first device DUT reception control circuit 604 respectively using the first subordinate pseudorandom code S1PN with
And one second subordinate pseudorandom code S2PN come with received one reception signal RXDATA carry out a specific comparison calculation, so
And, when first device DUT is based on random signal RND and transmits the first subordinate pseudorandom code S1PN, then first device DUT
Receiving control circuit 604 can be come using the first host virtual random code M1PN and one second host virtual random code M2PN respectively
The specific comparison calculation is carried out with the reception signal RXDATA for being received.For example, it is possible to use intercorrelation computing
(cross correlation)Result whether reach the foundation that a critical value is come as the specific comparison calculation, and due to
Intercorrelation operation values between one subordinate pseudorandom code S1PN and the first host virtual random code M1PN are very low, similarly,
Intercorrelation operation values between second subordinate pseudorandom code S2PN and the first host virtual random code M1PN are also very low, change sentence
Talk about, first pseudorandom code that first device DUT is transmitted must be used with the reception of first device DUT control circuit 604
Pseudorandom code to carry out the specific comparison calculation belongs to variety classes, therefore first pseudorandom code and for being somebody's turn to do
Intercorrelation computing between the pseudorandom code of specific comparison calculation can be close to zero, that is to say, that even if can receive
The echo-signal that first pseudorandom code bounce-back is returned, does not result in erroneous judgement, therefore avoid the need for as of the invention foregoing yet yet
In embodiment, the echo-signal returned that the signal sent out in itself to avoid receiving first device DUT rebounds causes to miss
Sentence, therefore after first device DUT transmission signals, control first device DUT stops receiving signal within a period.
In brief, the first host virtual random code M1PN, the first host virtual random code M1PN, the first subordinate it is virtual with
Machine code S1PN and the second subordinate pseudorandom code S2PN is the pseudorandom yard being determined in advance, and via appropriately designed ensuring the
Interacting between one host virtual random code M1PN and the first subordinate pseudorandom code the second subordinates of S1PN/ pseudorandom code S2PN
Related operation value is very low, and the first subordinate pseudorandom code S1PN and first host virtual random code the second host virtuals of M1PN/
Intercorrelation operation values between random code M2PN are very low, additionally, first device DUT can be according to pseudorandom generator itself
Random signal RND produced by 212 come optionally transmit the first host virtual random code M1PN or the first subordinate it is virtual with
Machine code S1PN is used as above-mentioned the first pseudorandom code.
On the other hand, also there is the principal and subordinate shown in the 6th figure to detect circuit 600 due to second device LP, therefore, second device
LP can produce one second pseudorandom code to first device DUT, wherein second pseudorandom code similarly at interval of period T
It is the first host virtual random code M1PN or the first subordinate pseudorandom code S1PN.Specifically, the transmission of second device LP
Control circuit 202 will produce random signal RND at interval of a period T using pseudorandom generator 212, and according to random
Signal RND come determine second device LP transmit the first host virtual random code M1PN or the first subordinate pseudorandom code S1PN extremely
First device DUT.When second device LP transmits the first host virtual random code M1PN, then second device LP uses first respectively
Subordinate pseudorandom code S1PN and the second subordinate pseudorandom code S2PN come with received one reception signal RXADTA carry out
The specific comparison calculation, however, when second device LP transmits the first subordinate pseudorandom code S1PN, then second device LP distinguishes
Using the first host virtual random code M1PN and the second host virtual random code M2PN come with the reception signal for being received
RXDATA carries out the specific comparison calculation, i.e. step 502.In brief, via appropriate design, the first host virtual random code
Intercorrelation operation values between M1PN and the first subordinate pseudorandom code the second subordinates of S1PN/ pseudorandom code S2PN are very low,
And first subordinate pseudorandom code S1PN and first host virtual random code M1PN/ the second host virtual random codes M2PN between
Intercorrelation operation values are very low, additionally, second device LP can be according to the random signal produced by pseudorandom generator 212 itself
RND come optionally transmit the first host virtual random code M1PN or the first subordinate pseudorandom code S1PN be used as it is above-mentioned
Second pseudorandom code.
In step 504, if first device DUT first obtains the matching knot of the specific comparison calculation than second device LP
Really, then the control circuit 606 of first device DUT can carry out the specific comparison calculation is used first according to first device DUT
Host virtual random code M1PN or the first subordinate pseudorandom code S1PN, a master control set is set as by first device DUT
Or a slave unit, and first device DUT is transmitted one the 3rd pseudorandom code to second device LP, the wherein the 3rd it is virtual with
Machine code is the second host virtual random code M2PN or the second subordinate pseudorandom code S2PN.For example, when reception control circuit
604 is the matching result that the specific comparison calculation is obtained using the first subordinate pseudorandom code S1PN(First device DUT is current
It is transmission the first host virtual random code M1PN to second device LP), then circuit 606 is controlled to be set as first device DUT
One master control set, and the 3rd pseudorandom code that the master control set is subsequently transmitted is the second host virtual random code M2PN;
However, being the matching that the specific comparison calculation is obtained using the first host virtual random code S1PN when control circuit 604 is received
As a result(First device DUT transmits the first subordinate pseudorandom code S1PN at present)When, then the meeting of circuit 606 is controlled by first device
DUT is set as a slave unit, and the 3rd pseudorandom code that the slave unit is subsequently transmitted for the second subordinate it is virtual with
Machine code S2PN.
It is last in step 506, when second device LP receives the 3rd pseudorandom code, then according to the 3rd it is virtual with
Machine code second device LP is set as the master control set or the slave unit, wherein when second device LP received the 3rd
When pseudorandom code is for the second host virtual random code M2PN, then the control circuit 606 of second device LP can be by second device LP
It is set as the slave unit;However, when the 3rd pseudorandom code that second device LP is received is the second subordinate pseudorandom
During code S2PN, then second device LP can be set as the master control set by the control circuit 606 of second device LP.
For more detailed description operating process of the invention, the situation occurred using an actual capabilities is used as below
The illustrative example of the present embodiment.Fig. 7 is refer to, Fig. 7 is the sequential operation figure of another embodiment of principal and subordinate's detection circuit of the present invention.
Wherein there are two vertical lines the lower section of literal symbol DUT and literal symbol LP respectively, its represent respectively first device DUT when
The time shaft of countershaft and second device LP, represents the carrying out of time from top to bottom, and the stain above time shaft is represented and occurred
The time point of particular event.At the beginning, first device DUT and second device LP is in the shape for not yet completing principal and subordinate's testing mechanism
State(Such as cable between first device DUT and second device LP has just just been connected, therefore, first device DUT and second
Not yet determine the distribution of master control set and slave unit between device LP), and the transmission of first device DUT control circuit
602 use the random signal RND=0 produced by pseudorandom generator 212, decision the first host virtual of transmission in time point t1
Random code M1PN, and the reception control circuit 604 of first device DUT can be using the first subordinate pseudorandom code S1PN and the
Two subordinate pseudorandoms code S2PN with the signal RXDATA for receiving interacts related operation respectively.Additionally, the second dress
The transmission for putting LP controls circuit 602 also compared with time point t1Later time point t2Produced at random using pseudorandom generator 212
Signal RND=0, determines to send the first host virtual random code M1PN, and the reception control circuit 604 of second device LP is same
Ground can using the first subordinate pseudorandom code S1PN and the second subordinate pseudorandom yard S2PN come with the signal for receiving
RXDATA interacts related operation respectively.In time point t3When, the first host virtual transmitted by first device DUT with
Machine code M1PN reaches second device LP, but now the reception control circuit 604 of second device LP is virtual using the first subordinate
Random code S1PN and the second subordinate pseudorandom code S2PN come with the first host virtual random code M1PN for being received point
Related operation is not interacted, thus will not obtain the intercorrelation operation values more than critical value, in other words, this expression
Second device LP will ignore the first received host virtual random code M1PN.Similarly, in time point t4When, the
The first host virtual random code M1PN transmitted by two devices LP reaches first device DUT, but now first device DUT connects
Receive control circuit 604 be using the first subordinate pseudorandom code S1PN and the second subordinate pseudorandom code S2PN come with received
The the first host virtual random code M1PN for coming in interacts related operation respectively, thus will not obtain one more than critical value
Intercorrelation operation values, in other words, this represents that first device DUT will ignore the first received host virtual random code
M1PN。
Next, in time point t5When, the transmission control judging distance first device of circuit 602 of first device DUT
The time of the first host virtual random code M1PN of the last transmission of DUT(That is time point t1)Interval time met equal to when
The requirement of section T, therefore in time point t5Random signal RND=0 is produced using pseudorandom generator 212, determines that sending first leads
Control pseudorandom code M1PN, and the reception control circuit 604 of first device DUT can be using the first subordinate pseudorandom code S1PN
And second subordinate pseudorandom code S2PN with the signal RXDATA for receiving interact related operation respectively.Conversely
Ground, in time point t6When, the transmission control last transmission first of circuit 602 judging distance second device LP of second device LP
The time of subordinate pseudorandom code S1PN(That is time point t2)Interval time met requirement equal to period T, therefore
Time point t6Random signal RND=1 is produced using pseudorandom generator 212, determines to send the first subordinate pseudorandom code
S1PN, and the reception control circuit 604 of second device LP can utilize the first host virtual random code M1PN and the second master control
Pseudorandom code M2PN with the signal RXDATA for receiving interacts related operation respectively.
In time point t7When, the first host virtual random code M1PN transmitted by first device DUT reaches second and fills
LP is put, and the reception of second device LP controls circuit 604 in time point t9When compare out one using intercorrelation computing
Higher than the intercorrelation operation values of critical value, in other words, the reception control circuit 604 of second device LP finds to receive first
Second device LP is set as slave unit by host virtual random code M1PN, the now meeting of control circuit 606 of second device LP(Cause
For now second device LP transmission is the first subordinate pseudorandom code S1PN), and require that transmission control circuit 602 is changed to pass
Send the second subordinate pseudorandom code S2PN, in addition and stop every period T using pseudorandom generator 212 generation random signal
RND carrys out the signal that stochastic transformation is transmitted.And first device DUT is in time point t11When receive the second subordinate pseudorandom
Code S2PN, and the reception of first device DUT controls circuit 604 in time point t13When compare out one using intercorrelation computing
The individual intercorrelation operation values higher than critical value, in other words, the reception control circuit 604 of first device DUT finds to receive
First device DUT is set as master control by the second subordinate pseudorandom code S2PN, the now meeting of control circuit 606 of first device DUT
Device(Because that now first device DUT transmission is the first host virtual random code M1PN), and require transmission control circuit
602 be changed to transmit the second host virtual random code M2PN, in addition and stop produced using pseudorandom generator 212 every period T
Raw random signal RND carrys out the signal that stochastic transformation is transmitted.Finally, in first device DUT and second device LP respectively true
Determine after master control set or slave unit, have passed through a period T2PNObservation, just can confirm line be in stable state, and
By the transmission of the particular sequence IDLE for carrying out follow-up that continues, be related to the detailed description of particular sequence IDLE, due to before
Operating principle in paragraph is identical, therefore seldom repeats herein.
Automatic principal and subordinate's testing mechanism of script also via simple setting, and can be changed into hand-operated forced setting by the present invention
It is fixed.For example, the transmission of first device DUT can be forced to control circuit not send certain pulses LPB, therefore second device LP
Certain pulses LPB will not be necessarily received, in this case, if second device LP has normal principal and subordinate's detection function, then
First device DUT can receive qualified continuous 3 certain pulses LPB and first device DUT is set as into master control set sooner or later,
In other words, force the transmission control circuit of first device DUT not send certain pulses LPB namely to force first device
DUT is set as master control set.Or be that the reception that can force first device DUT controls circuit not check certain pulses
LPB, therefore first device DUT will not necessarily receive certain pulses LPB, in this case, if second device LP has just
Normal principal and subordinate's detection function, then second device LP can receive qualified continuous 3 certain pulses LPB sooner or later and by second device
LP is set as master control set, in other words, forces the reception control circuit of first device DUT not check certain pulses LPB also just
It is to force for first device DUT to be set as slave unit.Give one example again, if forcing first device DUT and the respectively
The transmission control circuit of two devices LP does not send certain pulses LPB, that is, forces first device DUT and second device LP
Master control set is respectively set as, is well imagined, because first device DUT and second device LP are forced to be set as that master control is filled
Put, line is will be unable in this condition.
The present invention can make the single pair of of Fast Ethernet overcome collision without two devices in masking twisted pair system
(collision)Problem and carry out automatic principal and subordinate's testing mechanism, in other words, the present invention proposes a kind of automatic principal and subordinate detection
Single pair of is assigned as master control set and slave unit by mechanism without two devices in masking twisted pair system, consequently, it is possible to
So that availability of the single pair of without masking twisted pair system is greatly improved, and alleviate the cable cost and weight of system.
The foregoing is only the preferred embodiments of the present invention, all impartial changes done according to the claims in the present invention with repair
Decorations, all should belong to covering scope of the invention.
Claims (15)
1. a kind of principal and subordinate's detection method, includes:
Determine whether a first device transmits a certain pulses signal a to second device;
Determine whether the second device transmits the certain pulses signal to the first device;
When the first device first receives at least a portion signal of the certain pulses signal than the second device, by institute
State first device and be set as a master control set, when the second device first receives the certain pulses signal than the first device
At least a portion signal when, the second device is set as the master control set, and make the master control set stop passing
Send the certain pulses signal and start to transmit a particular sequence;And
When the second device or the first device receive the particular sequence, described the of the particular sequence will be received
Two devices or the first device are set as a slave unit.
2. principal and subordinate's detection method according to claim 1, wherein, determine whether the first device transmits the specific arteries and veins
The step of rushing signal includes:
At interval of a period, determine whether the first device transmits the certain pulses signal to described in a random basis
Two devices;And
Determine that the step of whether second device transmits the certain pulses signal includes:
At interval of a period, determine whether the second device transmits the certain pulses signal to described in a random basis
One device.
3. the principal and subordinate's detection method according to claim 2, also includes:
After the first device transmits the certain pulses signal to the second device, described the is stopped in a period
One device receives signal;And
After the second device transmits the certain pulses signal to the first device, described the is stopped in a period
Two devices receive signal.
4. principal and subordinate's detection method according to claim 1, wherein, the first device is arranged at one with the second device
In line transmission system, the line transmission system is a single pair of line Ethernet system.
5. principal and subordinate's detection method according to claim 1, wherein, the certain pulses signal includes multiple single arteries and veins
Punching, at least a portion signal includes continuous Sing plus.
6. a kind of principal and subordinate's detection method, includes:
One first pseudorandom code is periodically transmitted using a first device to a second device, wherein described first is virtual
Random code is one first host virtual random code or one first subordinate pseudorandom code, when first device transmission described the
During one host virtual random code, then the first device uses the first subordinate pseudorandom code and one second subordinate respectively
Pseudorandom code carries out a specific comparison calculation with received signal, and when first device transmission described first from
During category pseudorandom code, then the first device uses the first host virtual random code and one second host virtual respectively
Random code with received signal carries out the specific comparison calculation;
One second pseudorandom code is periodically transmitted using the second device to the first device, wherein described second
Pseudorandom code is the first host virtual random code or the first subordinate pseudorandom code, when the second device is passed
When sending the first host virtual random code, then the second device uses the first subordinate pseudorandom code and institute respectively
The second subordinate pseudorandom code is stated to carry out the specific comparison calculation with received signal, and when the second device is passed
When sending the first subordinate pseudorandom code, then the second device uses the first host virtual random code and institute respectively
The second host virtual random code is stated to carry out the specific comparison calculation with received signal;
When the first device first obtains the matching result of the specific comparison calculation than the second device, according to described
One device carries out first pseudorandom code that the specific comparison calculation used and the first device is set as into one
Master control set or a slave unit, and the first device is transmitted one the 3rd pseudorandom code to the second device;And
When the second device receives the 3rd pseudorandom code, then according to the 3rd pseudorandom code by described the
Two devices are set as the master control set or the slave unit.
7. principal and subordinate's detection method according to claim 6, wherein, periodically transmit described using the first device
The step of first pseudorandom code, includes:
At interval of a period, the first host virtual random code or institute are transmitted determining the first device in a random basis
State the first subordinate pseudorandom code to the second device;And
The step of the second pseudorandom code is periodically transmitted using the second device is included:
At interval of a period, the first host virtual random code or institute are transmitted determining the second device in a random basis
State the first subordinate pseudorandom code to the first device.
8. principal and subordinate's detection method according to claim 6, wherein, the first device is arranged at one with the second device
In line transmission system, the line transmission system is a single pair of line Ethernet system.
9. principal and subordinate's detection method according to claim 6, wherein, the specific comparison calculation is an intercorrelation computing.
10. the principal and subordinate's detection method according to claim 6, wherein, the 3rd pseudorandom code is the described second master
Control pseudorandom code or the second subordinate pseudorandom code;It is described when the first device is set as the master control set
The 3rd pseudorandom code that master control set is transmitted is the second host virtual random code;When first device setting
During for the slave unit, the 3rd pseudorandom code that the slave unit is transmitted is the second subordinate pseudorandom
Code.
11. principal and subordinate's detection methods according to claim 10, wherein, when the 3rd void that the second device is received
When pseudorandom code is the second host virtual random code, the second device can be set as the slave unit;And work as institute
When stating the 3rd pseudorandom code that second device received for the second subordinate pseudorandom code, the second device meeting
It is set as the master control set.
A kind of 12. principal and subordinate's detection circuits, include:
One transmission control circuit, for periodically determining whether a device transmits a certain pulses signal to another device;
One receives control circuit, for judging whether described device receives at least a portion letter of the certain pulses signal
Number;
One control circuit, during at least a portion signal that the certain pulses signal is received when described device, will be described
Device is set as a master control set, and the master control set is stopped the transmission certain pulses signal and is started transmission one
Particular sequence, or when described device receives the particular sequence, described device is set as a slave unit.
13. principal and subordinate's detection circuits according to claim 12, wherein, the transmission control circuit includes:
One pseudorandom generator, at interval of a period, determines whether described device transmits the spy in a random basis
Determine pulse signal to another device.
14. principal and subordinate's detection circuits according to claim 13, also include:
One echo preventing circuit, after transmitting the certain pulses signal to another device in described device, control is described
Stopping receives signal in being installed on a period.
15. principal and subordinate's detection circuits according to claim 12, wherein, described device is arranged in a line transmission system,
The line transmission system is a single pair of line Ethernet system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310084423.1A CN104052615B (en) | 2013-03-15 | 2013-03-15 | Principal and subordinate's detection method and principal and subordinate's detection circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310084423.1A CN104052615B (en) | 2013-03-15 | 2013-03-15 | Principal and subordinate's detection method and principal and subordinate's detection circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104052615A CN104052615A (en) | 2014-09-17 |
CN104052615B true CN104052615B (en) | 2017-06-09 |
Family
ID=51505000
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310084423.1A Active CN104052615B (en) | 2013-03-15 | 2013-03-15 | Principal and subordinate's detection method and principal and subordinate's detection circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104052615B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101257405A (en) * | 2008-04-03 | 2008-09-03 | 中兴通讯股份有限公司 | Method for implementing double chain circuits among master-salve equipments |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1643679B1 (en) * | 2004-09-29 | 2007-11-07 | Siemens Aktiengesellschaft | Configuration of modules in automation systems |
WO2011064998A1 (en) * | 2009-11-27 | 2011-06-03 | パナソニック株式会社 | Master device, slave device and communication system |
-
2013
- 2013-03-15 CN CN201310084423.1A patent/CN104052615B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101257405A (en) * | 2008-04-03 | 2008-09-03 | 中兴通讯股份有限公司 | Method for implementing double chain circuits among master-salve equipments |
Also Published As
Publication number | Publication date |
---|---|
CN104052615A (en) | 2014-09-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101841388B (en) | Information security transmission method for numerical control bus | |
CN102868584B (en) | Synchronization time-division multiplexing bus communication method adopting serial communication interface | |
CN101180837A (en) | Method and devices for transmitting data to a data line between a control appliance and a decentralised data processing appliance | |
CN103414547B (en) | A kind of main website controls method, main website and the system of many slave stations | |
CN104333499B (en) | Device backboard high-speed bus link layer communication protocols based on M LVDS | |
CN105045742B (en) | Cascade communication method and cascade system | |
CN102032927B (en) | System for testing sensitivity of automobile instrument with controller area network (CAN) bus and testing method thereof | |
CN102033141B (en) | Test system based on CAN (Controller Area Network) bus automobile instrument and method | |
CN104702598B (en) | A kind of intelligent grid distributed networking protocol safety detecting method | |
CN105183687B (en) | A kind of timesharing serial port communication method and system | |
CN106411443A (en) | Message transmission method, in-vehicle network system and vehicle | |
CN104052615B (en) | Principal and subordinate's detection method and principal and subordinate's detection circuit | |
CN100553256C (en) | A kind of monobus communication means of a plurality of node equipment interconnections | |
CN102033541B (en) | System for testing automobile instrument with controller area network (CAN) bus and testing method thereof | |
CN109696899A (en) | A kind of dedicated quality synthesis evaluation system of aircraft ARINC429 bus | |
TWI492576B (en) | Master-slave detection method and master-slave detection circuit | |
CN110266568A (en) | The method that data are transmitted in the member stations and serial bus system of serial bus system | |
CN104734900A (en) | Sending control method for communication protocol testing | |
CN108293014A (en) | Communication network, its operating method and participant in a communication network | |
CN102223268A (en) | Network equipment as well as method and device for starting hardware testing of same | |
JP2013093827A (en) | Communication system, communication device, communication method, and communication parameter determining method | |
CN107301144A (en) | A kind of jtag interface multiplexing method and device | |
KR101161811B1 (en) | Burn-in test apparatus for the transmission of high speed signal and burn-in board therefor and method for the transmission of high speed signal | |
US7733947B2 (en) | Data transceiving method and data transceiving equipment | |
CN106603276A (en) | Fault processing method and device of SERDES link group |
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 |