CN101064751B - U interface loop polarity automatic reverse system and method - Google Patents

U interface loop polarity automatic reverse system and method Download PDF

Info

Publication number
CN101064751B
CN101064751B CN2006100605298A CN200610060529A CN101064751B CN 101064751 B CN101064751 B CN 101064751B CN 2006100605298 A CN2006100605298 A CN 2006100605298A CN 200610060529 A CN200610060529 A CN 200610060529A CN 101064751 B CN101064751 B CN 101064751B
Authority
CN
China
Prior art keywords
loop
interface
polarity
counter
loop polarity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2006100605298A
Other languages
Chinese (zh)
Other versions
CN101064751A (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.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry 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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN2006100605298A priority Critical patent/CN101064751B/en
Publication of CN101064751A publication Critical patent/CN101064751A/en
Application granted granted Critical
Publication of CN101064751B publication Critical patent/CN101064751B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

A U interface loop polar auto reserve system is mounted in line terminal, the line terminal and digital service unit are connected with U interface communication, and the system includes: current detection module, loop polar judging module and loop polar reserve module. The current detection module is used to detect the loop current of U interface. The loop polar judging module is used to judge the polarity of U interface loop correct or not when there is loop current. The loop polar reserve module is used to reserve the polarity of U interface loop when the polarity of loop is not correct. The U interface loop polar auto reserve system and method provided by invention uses the loop polar judging module to judge the polarity of U interface correct or not, and when the loop polarity is not correct, reserves the loop polarity automatically, it can avoid that the network device can not work normally when the loop polarity is not correct.

Description

U interface loop polarity automatic reverse system and method
[technical field]
The present invention relates to a kind of loop polarity automatic reverse system and method, refer to a kind of u interface loop polarity automatic reverse system and method especially.
[background technology]
At existing integrated digital service network (Integrated Services Digital Network, ISDN) in, user terminal is connected with line terminal (Line terminal) by a digital service unit (Digital Service Unit), and is connected with exchange termination (Exchange Termination) by the line terminal.Digital service unit is installed on indoor with user terminal.And communicate to connect by u interface between line terminal and the digital service unit.
Because artificial the installation, digital service unit can be because of the inversion of u interface loop polarity, and can't and the line terminal between proper communication, and then make that user terminal can't operate as normal.And it is then very inconvenient that the user changes the u interface loop polarity of digital service unit voluntarily.
[summary of the invention]
In view of this, need provide a kind of u interface loop polarity automatic reverse system, be used to realize the auto-reverse of u interface loop polarity.
In addition, also need to provide a kind of u interface loop polarity automatic reverse method, be used to realize the auto-reverse of u interface loop polarity.
A kind of u interface loop polarity automatic reverse system is arranged in the line terminal, communicates to connect by this u interface between this line terminal and the digital service unit, and this system comprises: current detection module, loop polarity judge module and loop polarity counter-rotating module.Current detection module is used to detect the loop current of this u interface.Whether the loop polarity judge module is used at the situation that this loop current exists this u interface loop polarity that judges correct.Loop polarity counter-rotating module be used for when loop polarity is incorrect, the reversing polarity in u interface loop of this line terminal.
A kind of u interface loop polarity automatic reverse method, this method is used for the line terminal, and this line terminal is crossed these u interface news all and is connected digital service unit, and this method comprises: the loop current that detects the u interface of this line terminal; Whether the loop polarity of judging this u interface when loop current exists is correct; And if the polarity in the loop of this u interface is incorrect, the loop polarity of the u interface of this line terminal of then reversing.
U interface loop polarity automatic reverse system provided by the present invention and method utilize the loop polarity judge module to judge whether the loop polarity of u interface of line terminal is correct, and when loop polarity is incorrect auto-reverse loop polarity, avoided the network equipment because loop polarity is incorrect can't operate as normal situation.
[description of drawings]
Fig. 1 is the module map of u interface loop polarity automatic reverse system one execution mode of the present invention.
Fig. 2 is the module map of another execution mode of u interface loop polarity automatic reverse system of the present invention.
Fig. 3 is the module map of the another execution mode of u interface loop polarity automatic reverse system of the present invention.
Fig. 4 is the module map of the another execution mode of u interface loop polarity automatic reverse system of the present invention.
Fig. 5 is the module map of the another execution mode of u interface loop polarity automatic reverse system of the present invention.
Fig. 6 is the flow chart of u interface loop polarity automatic reverse method one execution mode of the present invention.
Fig. 7 is the flow chart of another execution mode of u interface loop polarity automatic reverse method of the present invention.
Fig. 8 is the flow chart of the another execution mode of u interface loop polarity automatic reverse method of the present invention.
Fig. 9 is the flow chart of the another execution mode of u interface loop polarity automatic reverse method of the present invention.
Figure 10 is the flow chart of the another execution mode of u interface loop polarity automatic reverse method of the present invention.
Figure 11 is the flow chart after the node D among Figure 10.
Figure 12 is the flow chart after the node C among Figure 10.
Figure 13 is the flow chart after the node E among Figure 12.
[embodiment]
Consult Fig. 1, be depicted as the module map of u interface loop polarity automatic reverse system 100 in an embodiment of the present invention.In the present embodiment, communicate to connect by u interface between line terminal 10 and the digital service unit 20, u interface loop polarity automatic reverse system 100 is arranged in the line terminal 10.U interface loop polarity automatic reverse system 100 comprises current detection module 101, loop polarity judge module 103 and loop polarity counter-rotating module 105.
Whether the loop current that current detection module 101 is used for the u interface between detection line terminal 10 and the digital service unit 20 exists, and starts 103 work of loop polarity judge module under the situation that electric current exists.
Loop polarity judge module 103 is used to judge whether the loop polarity between line terminal 10 and the digital service unit 20 is correct, and starts 105 work of loop polarity counter-rotating module under the incorrect situation of loop polarity.
Loop polarity counter-rotating module 105 be used to the to reverse u interface loop polarity of line terminal 10.
Consult Fig. 2, be depicted as the module map of u interface loop polarity automatic reverse system 200 in another execution mode of the present invention.U interface loop polarity automatic reverse system 200 comprises current detection module 201, loop polarity judge module 203 and loop polarity counter-rotating module 205.
Current detection module 201 is used to detect the u interface loop current between digital service unit 20 and the line terminal 10, and starts 203 work of loop polarity judge module under the situation that loop current exists.
Whether loop polarity judge module 203 is used for the u interface loop polarity of detection line terminal 10 correct, and it comprises first timer 2031, first judgement submodule 2033 and the frame detection sub-module 2035.First timer 2031 is used for according to the timing of setting time-count cycle.In the present embodiment, this time-count cycle is greater than the required time of frame synchronization between line terminal 10 and the digital service unit 20.First judges submodule 2033 is used to judge whether first timer 2031 is overtime, and starts 2035 work of frame detection sub-module under the not overtime situation of first timer 2031.Frame detection sub-module 2035 is used to judge whether the frame between the line terminal 10 and digital service unit 20 is synchronous in first time-count cycle.In the present embodiment, if in first time-count cycle, frame is not synchronous, promptly first timer 2031 overtime before, frame is not synchronous yet, then starts 205 work of loop polarity counter-rotating module.
The loop polarity counter-rotating module 205 line terminal 10 u interface loop polarities that are used for reversing.
Consult Fig. 3, be depicted as the module map of u interface loop polarity automatic reverse system 300 in the another execution mode of the present invention.
U interface loop polarity automatic reverse system 300 comprises current detection module 301, loop polarity judge module 303 and loop polarity counter-rotating module 305.
Current detection module 301 is used to detect the variation of u interface loop current.In the present embodiment, the variation of u interface loop current comprises that loop current exists and loop current does not exist.
Loop polarity judge module 303 is used to judge whether the u interface loop polarity is correct, and drives 305 work of loop polarity counter-rotating module under the incorrect situation of loop polarity.Loop polarity judge module 303 comprises second timer 3031, the second judgement submodule 3033, counter 3035 and the 3rd judgement submodule 3037.System time when second timer 3031 is used to write down the loop current variation.Second judges that submodule 3033 is used to judge that loop current changes twice the time difference Td of system continuously and whether is present in the open interval (A-x is A+x) in the ms.In the present embodiment, A is a preset value, and for example: 40ms, x are systematic error.Counter 3035 is used to write down Td and is present in open interval (A-x, A+x) the number of times C in the ms.Whether the 3rd judge value C that submodule is used to judge counter 3035 greater than presetting first threshold, and C during greater than first threshold with counter 3035 zero clearings, drive 305 work of loop polarity counter-rotating module simultaneously.
Loop polarity counter-rotating module 305 be used to the to reverse u interface loop polarity of line terminal 10.
Consult Fig. 4, be depicted as the module map of u interface loop polarity automatic reverse system 400 in the another execution mode of the present invention.
U interface loop polarity automatic reverse system 400 comprises current detection module 401, loop polarity judge module 403 and loop polarity counter-rotating module 405.
Current detection module 401 is used for the variation of detection line terminal 10 u interface loop currents.In the present embodiment, the variation of u interface loop current comprises that loop current exists and loop current does not exist.
Loop polarity judge module 403 is used to judge whether the u interface loop polarity is correct, and drives 405 work of loop polarity counter-rotating module under the incorrect situation of loop polarity.Loop polarity judge module 403 comprises second timer 4031 and the 4th judgement submodule 4033.System time when second timer 4031 is used to write down the loop current variation.In the present embodiment, the system time when second timer 4031 changes loop current at every turn is recorded in first formation of M+1 position, and the system time that changes of i+1 primary current be recorded in first formation the i position (i=1,2...M+1).The 4th judges that submodule 4033 is used for judging that according to the system time of first queue record electric current changes M time the time difference Tm of system continuously whether less than the second default threshold value, and Tm during less than second threshold value with the first formation zero clearing, drive 405 work of loop polarity counter-rotating module simultaneously.In the present embodiment, this second threshold value equals (M*A+x) ms, and for example: A can be 40ms, and x is a systematic error.
Loop polarity counter-rotating module 405 be used to the to reverse u interface loop polarity of line terminal 10.
Consult Fig. 5, be depicted as in the another execution mode of the present invention the module map of u interface loop polarity automatic reverse system 500.
U interface loop polarity automatic reverse system 500 comprises current detection module 501, loop polarity judge module 503, loop polarity counter-rotating module 505 and loop polarity counter-rotating counter 507.
Current detection module 501 is used to detect the variation of u interface loop current.In the present embodiment, the variation of u interface loop current comprises that loop current exists and loop current does not exist.
Loop polarity counter-rotating module 505 be used to the to reverse u interface loop polarity of line terminal 10.
Loop polarity counter-rotating counter 507 is used to write down the number of times of loop polarity counter-rotating.
Loop polarity judge module 503 is used to judge whether the u interface loop polarity of line terminal 10 is correct, and drives 505 work of loop type counter-rotating module under the incorrect situation of loop polarity.
Loop polarity judge module 503 comprises second timer 5031, the 4th judgement submodule 5033, the 5th judgement submodule 5035, first timer 5037, first judgement submodule 5039 and the frame detection sub-module 5041.
Second timer 5031 is used to write down the system time that loop current changes.In the present embodiment, system time when second timer 5031 changes loop current at every turn be recorded in M+1 (M=1,2,3...) in Wei first formation, and the system time that the i+1 primary current changes be recorded in this formation the i position (i=1,2...M+1).
The 4th judges that submodule 5033 is used to judge that whether first of first formation be 0 and judge that loop current changes M time the time difference Tm of system continuously whether less than second threshold value, and be recorded in the T0 position of two second formation at the system time that Tm changes the M+1 primary current during less than second threshold value, with the value record of former T0 position in the T1 position, simultaneously with the first formation zero clearing.In the present embodiment, this second threshold value equals (M*A+x) ms, and wherein A is a preset value, and for example: 40ms, x are systematic error.
The 5th judges submodule 5035 is used for judging whether the value of the second formation T1 position is 0, and the value in the T1 position is not to judge that whether the difference of T0 and T1 was greater than this second threshold value at 0 o'clock.In the present embodiment, if the difference of T0 and T1 is greater than this second threshold value, then loop polarity counter-rotating counter 507 zero clearings, the u interface loop polarity of loop polarity counter-rotating module 505 counter-rotating line terminals 10, the loop polarity counter 507 that reverses adds 1 automatically afterwards; If the value of T1 position is 0, the loop polarity counter-rotating module 505 u interface loop polarity of line terminal 10 that directly reverses then.
First timer 5037 is used for according to timing first time-count cycle.In the present embodiment, if the 4th judge that submodule 5033 judges that first of first formation is 0 or judges that electric current changes M time the time difference Tm of system continuously greater than second threshold value, then first timer, 5037 startups; Or loop polarity counter-rotating counter 507 adds at 1 o'clock, 5037 startups of first timer automatically; Or the value of loop polarity counter-rotating counter 507 is during more than or equal to B, and first timer 5037 starts.
First judges that submodule 5039 is used to judge whether first timer 5037 is overtime.In the present embodiment, if first timer 5037 is not overtime, then whether current detection module 501 detection loop currents disappear, and start 5041 work of frame detection sub-module when electric current does not disappear.
Frame detection sub-module 5041 is used to judge whether the frame between line terminal 10 and the digital service unit 20 is synchronous.In the present embodiment, if first timer 5037 is overtime, the u interface loop polarity of loop polarity counter-rotating module 505 counter-rotating line terminals 10 then.
Consult Fig. 6, be depicted as the flow chart of u interface loop polarity automatic reverse method in the embodiment of the present invention, this flow chart is applicable to the execution mode of Fig. 1.In step S601, start u interface connection line terminal 10 and digital service unit 20.In step S603, the u interface loop current of current detection module 101 detection line terminals 10.In step S605, whether the situation that loop polarity judge module 103 exists in the loop current loop polarity that judges is correct.If loop polarity judge module 103 judges that loop polarity is incorrect, then change step S607 over to, loop polarity counter-rotating module 105 is judged the u interface loop polarity of line terminal 10.
Consult Fig. 7, be depicted as u interface polarity automatic reverse method flow diagram in another execution mode of the present invention, this flow chart is applicable to the execution mode of Fig. 2.In step S701, start u interface connection line terminal 10 and digital service unit 20.In step S703, whether current detection module 201 detects the u interface loop current and exists.In step S705, when loop current exists, start first timer 2031 and pick up counting.In step S707, first judges that submodule 2033 judges whether first timer 2031 is overtime.If first timer 2031 is overtime, then change step S715 over to, the u interface loop polarity of loop polarity counter-rotating module 205 counter-rotating line terminals 10.
In step S705, if first timer 2031 is not overtime, then change step S709 over to, current detection module 201 judges whether loop current disappears.If loop current does not disappear, whether the frame that then changes between step S711 frame detection sub-module 2033 detection line terminals 10 and the digital service unit 20 is synchronous.If frame is not synchronous, then return step S707, first judges that submodule 2033 continues to judge whether first timer 2031 is overtime.If frame synchronization then changes step S713 over to, cancel first timer 2031.
In step S709, if loop current disappears, then change step S717 over to, cancel first timer 2031, change step S703 then over to, whether current detection module 201 continues to detect loop current and exists.
Consult Fig. 8, be depicted as the flow chart of u interface loop polarity automatic reverse method in the another execution mode of the present invention, this flow chart is applicable to the execution mode of Fig. 3.In step S801, start u interface connection line terminal 10 and digital service unit 20.Among the step S803, current detection module 301 detects the variation of the loop current of u interface.In the present embodiment, the variation of loop current comprises that loop current exists and loop current does not exist.In step S805, the system time when second timer, 3031 record currents change.In step S807, second judges that sub-judge module 3033 judges that electric current changes continuously twice time difference Td and whether is present in the open interval (A-x is A+x) in the ms.In the present embodiment, A is a preset value, and for example: 40ms, x are systematic error.In step S809, if Td is present in this open interval, then counter 3035 adds 1 automatically.In step S811, the 3rd judges that submodule 3037 judges that whether the value of counter 3035 is greater than first threshold.In the present embodiment, for example, this first threshold is 8.In step S813, if the value of counter 3035 is greater than first threshold, then counter 3035 zero clearings, loop polarity counter-rotating module 305 counter-rotating u interface loop polarities.
If in step S811, the value of counter 3035 is less than or equal to first threshold, gets back to step S803, and current detection module 301 continues the loop current of detection line terminal 10.
In step S807,, then change step S815 over to, counter 3035 zero clearings if Td is not present in this open interval.After counter 3035 zero clearings, get back to step S803, current detection module 301 continues the loop current of detection line terminal 10.
Consult Fig. 9, be depicted as the flow chart of u interface loop polarity automatic reverse method in the another execution mode of the present invention, this flow chart is applicable to the execution mode of Fig. 4.In step S901, start u interface connection line terminal 10 and digital service unit 20.In step S903, current detection module 401 detects the variation of loop current.In step S905, the system time when second timer, 4031 record currents change.In the present embodiment, the system time when electric current changes at every turn all be recorded in M+1 (M=1,2,3...) in Wei first formation, and the system time that changes of i+1 primary current be recorded in first formation the i position (i=1,2...M+1).At step S907, the 4th judges that submodule 4033 judges that whether electric current changes M time the time difference Tm of system less than second threshold value.In the present embodiment, this second threshold value equals (M*A+x) ms, and for example: A is a preset value, and for example: 40ms, x are systematic error.If electric current changes M time the time difference Tm of system continuously less than second threshold value, enter step S909, then the polarity in loop polarity counter-rotating module 405 counter-rotating u interface loops.
In step S907, if electric current changes M time the time difference Tm of system continuously more than or equal to second threshold value, then change among the step S903, current detection module 401 continues the loop current of detection line terminal 10.
Consult Figure 10, be depicted as the flow chart of u interface loop polarity automatic reverse mode in the another execution mode of the present invention, this flow chart is applicable to the execution mode of Fig. 5.
In step S101, start u interface connection line terminal 10 and digital service unit 20.
In step S103, current detection module 501 detects loop current.
In step S105, the system time when second timer, 5031 record currents change.In the present embodiment, the system time when electric current changes at every turn all be recorded in M+1 (M=1,2,3...) in Wei first formation, and the system time that changes of i+1 primary current be recorded in this formation the i position (i=1,2...M+1).
In step S107, the 4th judges that submodule 5033 judges whether first in first formation be 0.
If first is 0, then change node C over to.If first be not 0, then change step S109 over to, the 4th judges that submodule 5033 judges that whether the time difference Tm of system of electric current variation M time is less than second threshold value.In the present embodiment, this second threshold value equals (M*A+x) ms, and wherein A is a preset value, and for example: 40ms, x are systematic error.
If the time difference Tm of this system less than second threshold value, then changes step S111 over to, the first formation zero clearing.
In step S113, the time that the M+1 primary current is changed is recorded in the T0 position in two second formation, with the value record of former T0 position in the T1 position.
Consult Figure 11, be depicted as the flow chart after the node D among Figure 10.
Enter step S115 from node D, the 5th judges that submodule 5035 judges whether the value of T1 position in second formation is 0.
If the value of T1 position is not 0, then change among the step S117, the 5th judges that submodule 5035 judges that whether the difference of T0 and T1 is greater than second threshold value.
If the difference of T0 and T1 then changes step S119 over to greater than second threshold value, 507 zero clearings of loop polarity counter-rotating counter.
In step S121, after 507 zero clearings of loop polarity counter-rotating counter, loop polarity counter-rotating module 505 counter-rotating u interface loop polarities.
In step S123, loop polarity counter-rotating counter 507 adds 1 automatically, is entered the step S201 of Figure 12 afterwards by node C.
In step S117, if if the difference of T0 and T1 is less than or equal to second threshold value, then change step S125 over to, loop polarity counter-rotating counter 507 judges that whether loop counter-rotating number of times is more than or equal to B.In the present embodiment, B is a preset value, and more than or equal to 2.
If loop polarity counter-rotating number of times then changes step S121 over to less than B, loop polarity counter-rotating module 505 counter-rotating u interface loop polarities.
In step S117, if loop polarity counter-rotating number of times then changes node C over to more than or equal to B.
Consult Figure 12, be depicted as the flow chart after the node C among Figure 10.At step S107, or step S109, or step S123, or after the step S125, enter step S201 by node C.Current detection module 501 detects whether loop current exists in the u interface.
If loop current exists in the u interface, then change step S203 over to, start first timer 5037 and pick up counting.
In step S205, first judges that submodule 5035 judges whether first timer 5037 is overtime.
If first timer 5037 is not overtime, then change step S207 over to, whether current detection module 501 detects loop current and disappears.
If loop current does not disappear, then change step S209 over to, frame detection sub-module 5041 judges whether the frame between line terminal 10 and the digital service unit 20 is synchronous.
If frame synchronization then changes step S211 over to, cancel first timer 5037.
In step S213, current detection module 501 continues to judge whether loop current exists after cancellation first timer 5037.
If loop current exists, then change step S215 over to, frame detection sub-module 5041 judges whether the frame between line terminal 10 and the digital service unit 20 is synchronous.If frame synchronization is then returned step S213; Otherwise, then return step S203.
In step S205,, then change node E over to if first timer 5037 is overtime.
In step S207, if loop current disappears, then change step S217 over to, cancel first o'clock device 5037, then, change Node B over to.
In step S209,, then return step S205 if frame is not synchronous.
In step S201, if loop current does not exist, then change node A over to, get back to step S103.
Consult Figure 13, be depicted as among Figure 12, the flow chart after the node E.
In step S219,507 zero clearings of loop polarity counter-rotating counter.
In step S221, the u interface loop polarity of loop polarity counter-rotating module 505 counter-rotating line terminals 10.
In step S223, loop polarity counter-rotating counter 507 adds 1.
In step S225, first timer 5037 restarts.
In step S227, first judges that submodule 5039 judges whether first timer 5037 is overtime.
If first timer 5037 is not overtime, then change step S229 over to, whether current detection module 501 detects loop current and disappears.
If loop current does not disappear, then change step S231 over to, whether the frame between frame detection sub-module 5041 detection line terminals 10 and the digital service unit 20 is synchronous.
If frame synchronization then changes node F over to, enter the step S211 among Figure 12 afterwards; Otherwise then change step S227 over to.
In step S229, if loop current disappears, then change node G over to, change step S217 among Figure 12 afterwards over to.
In step S227, if first timer 5037 is overtime, then change step S233 over to, loop polarity counter-rotating counter 507 judges that whether polarity inversion number of times in road is more than or equal to B.In the present embodiment, B is a preset value, and more than or equal to 2.
If loop polarity counter-rotating number of times then changes step S235 over to more than or equal to B, whether the current detecting mould is walked 501 detection loop currents and is existed.
If loop current exists, then change step S237 over to, whether the frame that frame detection sub-module 5041 detects between detection line terminal 10 and the digital service unit 20 is synchronous.If frame synchronization then changes node H over to, change step S213 among Figure 12 afterwards over to; Otherwise, then return step S235, whether current detection module 501 continues to detect loop current and exists.
In step S233, if loop counter-rotating number of times then changes step S221 over to less than B, the u interface loop polarity of loop polarity counter-rotating module 505 counter-rotating line terminals 10.
In step S235, if loop current does not exist, then change Node B over to, change step S105 among Figure 10 afterwards over to.
U interface loop polarity automatic reverse system that is provided in the embodiment of the present invention and method utilize the loop polarity judge module to judge whether the loop polarity of u interface of line terminal is correct, and when loop polarity is incorrect, auto-reverse loop polarity, avoided the network equipment because loop polarity is incorrect can't operate as normal situation.

Claims (41)

1. a u interface loop polarity automatic reverse system is arranged in the line terminal, communicates to connect by u interface between this line terminal and the digital service unit, it is characterized in that, this system comprises:
Current detection module is used to detect the loop current of this u interface;
Whether the loop polarity judge module is used at the situation that this loop current exists this u interface loop polarity that judges correct; And
Loop polarity counter-rotating module, the polarity in the u interface loop of this line terminal that is used for when loop polarity is incorrect, reversing.
2. u interface loop polarity automatic reverse system as claimed in claim 1 is characterized in that, this loop polarity judge module comprises:
First timer is used for when electric current exists according to timing time-count cycle;
First judges submodule, is used to judge whether this first timer is overtime; And
The frame detection sub-module is used for judging whether the frame between this line terminal and this digital service unit is synchronous when this first timer is not overtime.
3. u interface loop polarity automatic reverse system as claimed in claim 1 is characterized in that this current detection module more is used to detect the variation of loop current.
4. u interface loop polarity automatic reverse system as claimed in claim 3 is characterized in that, this loop polarity judge module more comprises:
Second timer, the system time when being used to write down this loop current variation;
Second judges submodule, be used for according to the system time of this second timer record judge electric current continuously system's time difference of twice of variation whether be present in the open interval (A-x, A+x) in the ms, wherein, x is a systematic error, A is a preset value;
Counter is used for the continuous system that changes twice of record current and is present in open interval (A-x, A+x) number of times in the ms time difference; And
The 3rd judges submodule, and whether the value that is used to judge this counter greater than presetting first threshold, and during greater than this first threshold, with this counter O reset, and starts this loop polarity counter-rotating module work in the value of this counter.
5. u interface loop polarity automatic reverse system as claimed in claim 4 is characterized in that, this preset value A is 40ms.
6. u interface loop polarity automatic reverse system as claimed in claim 3, it is characterized in that, this loop polarity judge module comprises that more the system time when second timer is used for electric current changed at every turn all is recorded in first formation of a M+1 position, and the system time that the i+1 primary current changes is recorded in the i position of this first formation, i=1,2...M+1.
7. u interface loop polarity automatic reverse system as claimed in claim 6, it is characterized in that, this loop polarity judge module comprises that more the 4th judges submodule, be used for judging that according to the system time that the electric current of this second timer record changes this loop current changes system's time difference of M time continuously whether less than second threshold value, and change system's time difference of M time continuously during less than this second threshold value at electric current, with this first formation zero clearing, and start this loop polarity counter-rotating module work.
8. u interface loop polarity automatic reverse system as claimed in claim 7 is characterized in that, this second threshold value is a preset value, and equals (M*A+x) ms, and wherein M is the electric current change frequency, and A is 40ms, and x is a systematic error.
9. u interface loop polarity automatic reverse system as claimed in claim 1, it is characterized in that, system more comprises loop polarity counter-rotating counter, be used to write down the number of times of this line terminal u interface loop polarity counter-rotating, and after this loop polarity counter-rotating module is reversed the u interface loop polarity of this line terminal, add 1 automatically.
10. u interface loop polarity automatic reverse system as claimed in claim 9 is characterized in that, this loop polarity judge module more comprises:
Second timer, the system time when being used for record current and changing, and the system time of electric current when at every turn changing all is recorded in first formation of M+1 position, M=1,2,3..., the system time that the i+1 primary current changes is recorded in the i position of this first formation, i=1,2...M+1;
The 4th judges submodule, be used to judge that this loop current changes system's time difference of M time continuously whether less than second threshold value, and change system's time difference of M time continuously during less than this second threshold value at electric current, with the first formation zero clearing, and be recorded in T0 position in two second formation time that the M+1 primary current changes, with the value record of former T0 position in the T1 position; And
The 5th judges submodule, be used for judging whether this second formation T1 position is zero, and in the T1 position when non-vanishing, whether the difference of judging T0 and T1 is greater than this second threshold value, and the difference of T0 and T1 during greater than this second threshold value with this loop polarity counter-rotating counter O reset, and start this loop polarity counter-rotating module work.
11. u interface loop polarity automatic reverse system as claimed in claim 10, it is characterized in that, this another judge when submodule more is used for difference at T0 and T1 less than second threshold value, whether this loop polarity counter-rotating counter judges loop polarity counter-rotating number of times more than or equal to the 3rd threshold value, and the 3rd threshold value is more than or equal to 2.
12. u interface loop polarity automatic reverse system as claimed in claim 11 is characterized in that, this second threshold value is a preset value, and equals (M*A+x) ms, and wherein M is the electric current change frequency, and A is 40ms, and x is a systematic error.
13. u interface loop polarity automatic reverse system as claimed in claim 12 is characterized in that, this loop polarity judge module more comprises:
First timer, be used for electric current change continuously system's time difference of M time during greater than this second threshold value according to default timing time-count cycle;
First judges submodule, is used to judge whether this first timer is overtime; And
Whether the frame detection sub-module, it is synchronous to be used for before this first timer is not overtime the frame that detects between this line terminal and this digital service unit.
14. u interface loop polarity automatic reverse system as claimed in claim 13 is characterized in that, this first timer more is used at this loop counter-rotating number of times during greater than the 3rd threshold value, according to this timing time-count cycle.
15. u interface loop polarity automatic reverse system as claimed in claim 13 is characterized in that, this first timer more is used for after this loop polarity counter-rotating counter adds 1 automatically according to starting this time-count cycle.
16. a u interface loop polarity automatic reverse method, this method is used for the line terminal, and this line terminal communicates to connect digital service unit by u interface, it is characterized in that this method comprises:
Detect the loop current of the u interface of this line terminal;
Whether the loop polarity of judging this u interface when loop current exists is correct; And
If the polarity in the loop of this u interface is incorrect, the loop polarity of the u interface of this line terminal of then reversing.
17. u interface loop polarity automatic reverse method as claimed in claim 16 is characterized in that, more comprises:
Start first timer according to default timing time-count cycle;
Judge whether this first timer is overtime;
If this first timer is not overtime, judge then whether loop current continues to exist;
If this loop current continues to exist, judge then whether the frame between this line terminal and this digital service unit is synchronous;
If this frame is not synchronous, then continue to judge whether this first timer is overtime; And
If this first timer expired, this line terminal u interface loop polarity then reverses.
18. u interface loop polarity automatic reverse method as claimed in claim 17 is characterized in that, more comprises if the frame synchronization between this line terminal and this digital service unit is then cancelled this first timer.
19. u interface loop polarity automatic reverse method as claimed in claim 16 is characterized in that, more comprises:
System time when starting this loop current of second timer record and changing at every turn;
Judge that according to the system time of this record electric current changes twice system continuously and is present in the open interval time difference (wherein x is a systematic error for A-x, A+x) ms, and A is a preset value;
If this system is present in this open interval the time difference, then the number of times that this system is present in this open interval the time difference is recorded in the counter;
Whether the value of judging this this counter is greater than presetting first threshold; And
If the value of this counter is greater than this first threshold, the loop polarity of the u interface of this line terminal of then reversing.
20. u interface loop polarity automatic reverse method as claimed in claim 19 is characterized in that this preset value A is 40ms.
21. u interface loop polarity automatic reverse method as claimed in claim 19 is characterized in that, more comprises: if this system's time difference be not present in this open interval, then with this counter O reset.
22. u interface loop polarity automatic reverse method as claimed in claim 21 is characterized in that, more comprises: if the value of this counter less than this first threshold, then continues to detect this loop current.
23. u interface loop polarity automatic reverse method as claimed in claim 16 is characterized in that, more comprises:
System time when starting the second timer record loop current and changing, and the system time of electric current when at every turn changing all is recorded in first formation of M+1 position M=1,2,3..., the system time that the i+1 primary current changes is recorded in the i position of this first formation, i=1,2...M+1;
Judge that this loop current changes system's time difference of M time continuously whether less than second threshold value; And
If this loop current changes system's time difference of M time continuously less than this second threshold value, the loop polarity of the u interface of the line terminal of then reversing.
24. u interface loop polarity automatic reverse method as claimed in claim 23 is characterized in that, more comprises if this system's time difference more than or equal to this second threshold value, is then continued the loop current of the u interface of detection line terminal.
25. u interface loop polarity automatic reverse method as claimed in claim 24 is characterized in that this second threshold value equals (M*A+x) ms, wherein M is the electric current change frequency, and A is 40ms, and x is a systematic error.
26. u interface loop polarity automatic reverse method as claimed in claim 16 is characterized in that, more comprises:
System time when starting the second timer record loop current and changing, and the system time of electric current when at every turn changing all is recorded in first formation of M+1 position M=1,2,3..., the system time that the i+1 primary current changes is recorded in the i position of this first formation, i=1,2...M+1;
Whether first that judges this first formation be zero;
If first of this first formation is non-vanishing, judge that then this loop current changes system's time difference of M time continuously whether less than second threshold value of presetting;
If this system's time difference is less than second threshold value, then with this first formation zero clearing, and be recorded in T0 position in two second formation time that the M+1 primary current changes, with the value record of former T0 position in the T1 position;
Judge whether the T1 position is zero in this second formation;
If this T1 position is zero, the loop polarity of the u interface of the line terminal of then reversing; And
Loop polarity counter-rotating counter adds 1 automatically.
27. u interface loop polarity automatic reverse method as claimed in claim 26 is characterized in that, more comprises:
If this T1 position is non-vanishing, whether the difference of then judging T0 and T1 is greater than this second threshold value;
If the difference of this T0 and T1, judges then that whether the number of times of this loop polarity counter-rotating is more than or equal to the 3rd threshold value less than second threshold value;
If the number of times of this loop polarity counter-rotating is less than the 3rd threshold value, the loop polarity of the u interface of this line terminal of then reversing; And
This loop polarity counter-rotating timer adds 1 automatically.
28. u interface loop polarity automatic reverse method as claimed in claim 27 is characterized in that the 3rd threshold value is more than or equal to 2.
29. u interface loop polarity automatic reverse method as claimed in claim 28 is characterized in that, more comprises:, then detect loop current and whether exist if first of this first formation is zero.
30. u interface loop polarity automatic reverse method as claimed in claim 28 is characterized in that, more comprises: if whether this loop polarity counter-rotating number of times then detects loop current and exist more than or equal to the 3rd threshold value.
31. u interface loop polarity automatic reverse method as claimed in claim 28 is characterized in that, more comprises: if this system's time difference more than or equal to this second threshold value, then detect loop current and whether exist.
32. as any described u interface loop polarity automatic reverse method of claim 29 to 31, it is characterized in that, more comprise:
When existing, the loop current of the u interface of this line terminal starts first timer according to default timing time-count cycle;
Judge whether this first timer is overtime;
If this first timer is not overtime, judge then whether this loop current disappears;
If this loop current does not disappear, judge then whether the frame between this line terminal and this digital service unit is synchronous; And
If the frame between this line terminal and this digital service unit is not synchronous, then continue to judge whether this first timer is overtime.
33. u interface loop polarity automatic reverse method as claimed in claim 32 is characterized in that, more comprises:
If the frame synchronization between this line terminal and this digital service unit is then cancelled this first timer;
Judge whether this loop current exists;
If this loop current exists, judge then whether the frame between this line terminal and this digital service unit is synchronous; And
If this frame is asynchronous, then restart this first timer.
34. u interface loop polarity automatic reverse method as claimed in claim 33 is characterized in that, more comprises if this frame synchronization then continues to judge whether this loop current exists.
35. u interface loop polarity automatic reverse method as claimed in claim 32 is characterized in that, more comprises:
If this loop current disappears, then cancel this first timer; And
Again write down the system time that loop current changes.
36. u interface loop polarity automatic reverse method as claimed in claim 32 is characterized in that, more comprises:
If this first timer expired, then this loop polarity counter-rotating counter O reset;
The counter-rotating loop polarity;
Loop polarity counter-rotating counter adds 1; And
Restart this first timer timing.
37. u interface loop polarity automatic reverse method as claimed in claim 36 is characterized in that, after the step that restarts this first timer timing, more comprises:
Judge whether this first timer is overtime;
If this first timer is not overtime, judge then whether this loop current disappears;
If this loop current does not disappear, judge then whether the frame between this line terminal and this digital service unit is synchronous; And
If this frame is not synchronous, then continue to judge whether this first timer is overtime.
38. u interface loop polarity automatic reverse method as claimed in claim 36 is characterized in that, more comprises: if the frame synchronization between this line terminal and this digital service unit is then cancelled this first timer.
39. u interface loop polarity automatic reverse method as claimed in claim 36 is characterized in that, more comprises:
If this first timer expired judges that then whether this loop polarity counter-rotating number of times is more than or equal to the 3rd threshold value;
If this loop polarity counter-rotating number of times judges then more than or equal to the 3rd threshold value whether this loop current exists;
If this loop current exists, judge then whether the frame between this line terminal and this digital service unit is synchronous; And
If this frame is asynchronous, then continue to judge whether this loop current exists.
40. u interface loop polarity automatic reverse method as claimed in claim 39 is characterized in that, more comprises if this loop current does not exist, and then writes down the system time that this loop current changes again.
41. u interface loop polarity automatic reverse method as claimed in claim 39 is characterized in that, more comprises:
If this frame synchronization judges then whether this loop current exists; And
If this loop current does not exist, then write down the system time that this loop current changes again.
CN2006100605298A 2006-04-28 2006-04-28 U interface loop polarity automatic reverse system and method Expired - Fee Related CN101064751B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2006100605298A CN101064751B (en) 2006-04-28 2006-04-28 U interface loop polarity automatic reverse system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006100605298A CN101064751B (en) 2006-04-28 2006-04-28 U interface loop polarity automatic reverse system and method

Publications (2)

Publication Number Publication Date
CN101064751A CN101064751A (en) 2007-10-31
CN101064751B true CN101064751B (en) 2011-06-08

Family

ID=38965453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006100605298A Expired - Fee Related CN101064751B (en) 2006-04-28 2006-04-28 U interface loop polarity automatic reverse system and method

Country Status (1)

Country Link
CN (1) CN101064751B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4434324A (en) * 1981-01-30 1984-02-28 Ing. C. Olivetti & C., S.P.A. Reversal of connections of telegraphic line wires upon detection of unwanted polarity of the loop current
US5208846A (en) * 1991-09-03 1993-05-04 Tektronix, Inc. Subscriber loop tester for telephone switching systems
CN1220539A (en) * 1997-09-02 1999-06-23 Gpt有限公司 Telecommunications line termination test
CN1288344A (en) * 1999-06-30 2001-03-21 上海贝尔有限公司 Multifunction subscriber network terminal of comprehensive business digital net
CN1310544A (en) * 2000-04-11 2001-08-29 深圳市中兴通讯股份有限公司 Multifunctional ISDN digital telephone set

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4434324A (en) * 1981-01-30 1984-02-28 Ing. C. Olivetti & C., S.P.A. Reversal of connections of telegraphic line wires upon detection of unwanted polarity of the loop current
US5208846A (en) * 1991-09-03 1993-05-04 Tektronix, Inc. Subscriber loop tester for telephone switching systems
CN1220539A (en) * 1997-09-02 1999-06-23 Gpt有限公司 Telecommunications line termination test
CN1288344A (en) * 1999-06-30 2001-03-21 上海贝尔有限公司 Multifunction subscriber network terminal of comprehensive business digital net
CN1310544A (en) * 2000-04-11 2001-08-29 深圳市中兴通讯股份有限公司 Multifunctional ISDN digital telephone set

Also Published As

Publication number Publication date
CN101064751A (en) 2007-10-31

Similar Documents

Publication Publication Date Title
CN104077207A (en) Electric quantity prompt method and device
US20120057438A1 (en) Power consumption control device, timepiece device, electronic device, power consumption control method, power consumption control program
GB2142490A (en) Low power consumption electronic circuit
CN105320263A (en) Reminding method for wearable device and wearable device
EP2064629B1 (en) Improved mode switching of a data communications link
CN101064751B (en) U interface loop polarity automatic reverse system and method
CN100524167C (en) Multiple-CPU portable terminal with communication function and control method
CN106165378A (en) Multifactor driving model determines
CN104168679B (en) Electromagnetic oven and charging method thereof
JP5001056B2 (en) System and method for automatically reversing circuit polarity of U interface
EP0450930A2 (en) Data transmission system with double lines
JP2000292841A (en) Camera
JP2003130975A (en) Electronic timepiece and method of controlling the same
CN101313492A (en) Apparatus and method for reducing power consumption in a position-determination device
JP2744066B2 (en) Charge control circuit
JP2009031553A (en) Power supply monitoring device, lens-barrel, and camera
CN220820664U (en) I2C slave device detection circuit
KR0176958B1 (en) Remocon code learning method
JP3576079B2 (en) Radio-controlled clock and its hand operation method
JP2001317980A (en) Flow rate display device
JP3801421B2 (en) Steering angle detection mechanism
CN112129993B (en) Zero crossing signal output and power line data transmission method and device
JPH0342798B2 (en)
JP2004173408A (en) Portable telephone and charging method used for it
CN115991161A (en) Power management device and system of vehicle and vehicle

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110608

Termination date: 20190428

CF01 Termination of patent right due to non-payment of annual fee