CN106571852A - Clock-system-independent DC transmission monitoring system data link on-off judging method - Google Patents
Clock-system-independent DC transmission monitoring system data link on-off judging method Download PDFInfo
- Publication number
- CN106571852A CN106571852A CN201610954275.8A CN201610954275A CN106571852A CN 106571852 A CN106571852 A CN 106571852A CN 201610954275 A CN201610954275 A CN 201610954275A CN 106571852 A CN106571852 A CN 106571852A
- Authority
- CN
- China
- Prior art keywords
- time difference
- monitoring system
- relative time
- count
- thread
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B3/00—Line transmission systems
- H04B3/02—Details
- H04B3/46—Monitoring; Testing
Abstract
The invention relates to a clock-system-independent DC transmission monitoring system data link on-off judging method. Counting is carried out through one counting thread cycle. When a data sending and receiving thread needs to acquire absolute time, count values N1 and N2 are acquired. The difference between the two count values is multiplied by a looping thread cycle t to get the relative time difference between two communication messages, namely, the relative time difference=(N2-N1)*t, wherein the relative time difference is continuous and incremental. The data sending and receiving thread compares the relative time difference with a constant value Tc. The advantage lies in that counting is carried out by a crystal oscillator of an electronic device of a DC transmission monitoring system to get the relative time difference, and the relative time difference is compared with a constant value to judge whether the communication of a link is abnormal or not. The stability of a high-voltage DC transmission monitoring system can be improved, and the dependence on an external system can be reduced.
Description
Technical field
The invention belongs to power system high-voltage dc transmission electrical domain, more particularly to the direct current transportation that a kind of clock system is unrelated
Monitoring system data link break-make criterion.
Background technology
Because direct current transportation monitoring system should complete the monitoring to straight-flow system, in addition it is also necessary to complete the control of straight-flow system
Function.The break-make communicated between monitoring system and control main frame, directly affects the availability of direct current transportation monitoring system, and communicate shape
The erroneous judgement of state, it will cause the untrue of DC monitoring system data, or even abnormal control consequence occur;And then cause the shape
Under state, DC transmission system it is uncontrollable.
Conventional decision method is judged by the time difference of packet sending and receiving and process, data transmit-receive thread cycle
For T, set up after data link connects and receive data in thread, record system time T1, then carry out data transmitting-receiving and
Work is processed, process terminates rerecording system time T2, when time difference is in (T2-T1=Δ T) constant value (Tc) scope
Within, judging that communication link is normal, then the T- Δ T times of thread dormancy afterwards are circulated data transmit-receive, are otherwise exception,
After communication link exception, the related total data of the link will be set to invalid data, flow chart such as Fig. 1 of judgement.Should
For system time, system time takes from GPS time service clock systems to the timestamp that method is adopted.When clock system is normal, the party
Method is feasible, and only in the case where transceiver communication message time-out or other side close connection, link can just be judged to exception.But
When saltus step before and after clock system occurs, normal in spite of transmitting-receiving message, the relative difference of time will exceed constant value
(Tc) scope, then, monitoring system will judge communication link exception, close connection, wait being reattempted after certain hour and build again
Vertical communication connection.If the saltus step of continuous surrounding time occurs in clock system, data link will back and forth in break-make shape
State jitter, causes the system data that monitoring system shows invalid (after communication failure, above sending data band invalidated identification), finally leads
Cause monitoring system is unavailable, and straight-flow system is uncontrollable.
The content of the invention
To overcome the deficiencies in the prior art, it is an object of the invention to provide a kind of direct current transportation prison unrelated with clock system
Control system data link break-make criterion, counting and circular wait cycle only rely upon the crystal oscillator of device electronics itself, keep away
The shake for exempting from external clock causes system time disorderly, and then the Link State of EVAC.
For achieving the above object, the present invention is achieved through the following technical solutions:
The direct current transportation monitoring system data link break-make criterion unrelated with clock system, by one thread week is counted
Phase is counted, and when data transmit-receive thread is when needing to obtain absolute time, obtains count value N1 and N2, twice the difference of count value
Value is multiplied by circulation thread cycle t, obtains the relative time difference of communication message twice, i.e. relative time difference=(N2-N1) * t,
Relative time difference is continuous and incremental;
Data transmit-receive thread is compared by relative time difference and a constant value Tc:
As (N2-N1) * t≤Tc, judge that link communication is normal;
As (N2-N1) * t > Tc, link communication exception is judged.
It is t that one counts thread cycle, starts counting up successively, initial count N=0, enters cycle period, when dormancy is waited
Long t, counting N=N+1, as N < 2147483647, return and continue new cycle period, and sleep time t continues to count N, i.e. N
=N+1;When N >=2147483647, restart to count, i.e. N=0, restart a circulation.
Count value and circular wait cycle depend on the crystal oscillator of the electronic device of direct current transportation monitoring system itself to detect and obtain
.
Compared with prior art, the invention has the beneficial effects as follows:
Counted using the crystal oscillator of the electronic device of direct current transportation monitoring system itself, obtained relative time difference, then
Contrasted by relative time difference and constant value, judged link whether communication abnormality.By simulated time interrupt techniques, height is made
Pressure direct current transportation monitoring system can not rely on time dissemination system and independent operating, be logical to traditional monitoring system data link
The improvement and lifting of disconnected decision method, is favorably improved the stability of high-voltage dc transmission electricity consumption monitoring system and reduces to external system
Dependence.
Description of the drawings
Fig. 1 is customary DC transmission of electricity monitoring system data link break-make decision flowchart.
Fig. 2 is to count thread schematic flow sheet.
Fig. 3 is the direct current transportation monitoring system data link break-make determination flow schematic diagram unrelated with clock system.
Specific embodiment
The present invention is described in detail with reference to Figure of description, it should be noted that the enforcement of the present invention is not limited
In following embodiment.
See Fig. 3, the direct current transportation monitoring system data link break-make criterion unrelated with clock system, by a circulation
Thread is counted, when data transmit-receive thread is when needing to obtain absolute time, obtain count value N1 and N2, twice count value
Difference is multiplied by circular wait cycle t, obtains the relative time difference of communication message twice, i.e. relative time difference=(N2-N1) *
T, relative time difference is continuous and incremental;
Data transmit-receive thread is compared by relative time difference and a constant value Tc:
As (N2-N1) * t≤Tc, judge that link communication is normal;
As (N2-N1) * t > Tc, link communication exception is judged.
Count value and circular wait cycle depend on the crystal oscillator of the electronic device of direct current transportation monitoring system itself to detect and obtain
.
See Fig. 2, cycle count thread successively by counting N=0, sleep time t, then N=N+1, if N<
When 2147483647, continue to count;If during N >=2147483647, restarting to count, i.e. N=0.Complete a circular route
Journey.
Embodiment:
See Fig. 2, Fig. 3, it is assumed that count thread cycle (i.e.:Count thread cycle=sleep time=circular wait cycle) be
T=20 milliseconds, data transmit-receive thread cycle T=1 seconds (1000 milliseconds), link failure judges second time Tc=2 (2000 milliseconds),
Now count thread not stop to count.Data transmit-receive thread obtains current count value N1=100 after data link connection is set up
(assumption value), then carries out the transmitting-receiving of data and processes to judge work, obtains the count value for counting thread after power cut-off again
N2=130 (assumption value), then draw communication elapsed time Δ T=(N2-N1) * t=(130-100) * 20=600 millis by counting
Second<Tc, now judges that data link is normal.If as not receiving, data, data transmit-receive are abnormal, and data receiver is abnormal
Cause data transmit-receive and processing latency long etc. reason, the count value that now may be obtained after transceiving data is received extremely
N2=300 (assumption value), then draw communication elapsed time Δ T=(N2-N1) * t=(300-100) * 20=4000 by counting
Millisecond>Tc, now judges data link exception, and communication disruption waits next cycle to resettle connection.
Claims (3)
1. the direct current transportation monitoring system data link break-make criterion unrelated with clock system, it is characterised in that by
Count thread cycle to be counted, when data transmit-receive thread is when needing to obtain absolute time, obtain count value N1 and N2, twice
The difference of count value be multiplied by circulation thread cycle t, obtain the relative time difference of communication message twice, i.e. relative time difference=
(N2-N1) * t, relative time difference is continuous and incremental;
Data transmit-receive thread is compared by relative time difference and a constant value Tc:
As (N2-N1) * t≤Tc, judge that link communication is normal;
As (N2-N1) * t > Tc, link communication exception is judged.
2. the direct current transportation monitoring system data link break-make criterion unrelated with clock system according to claim 1,
Characterized in that, it is t that one counts thread cycle, starts counting up successively, initial count N=0, enter cycle period, dormancy etc.
Treat duration t, count N=N+1, as N < 2147483647, return and continue new cycle period, sleep time t continues to count
N, i.e. N=N+1;When N >=2147483647, restart to count, i.e. N=0, restart a circulation.
3. the direct current transportation monitoring system data link break-make criterion unrelated with clock system according to claim 1,
Characterized in that, count value and circular wait cycle depend on the crystal oscillator week of the electronic device of direct current transportation monitoring system itself
It is phase, unrelated with External clock system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610954275.8A CN106571852A (en) | 2016-11-03 | 2016-11-03 | Clock-system-independent DC transmission monitoring system data link on-off judging method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610954275.8A CN106571852A (en) | 2016-11-03 | 2016-11-03 | Clock-system-independent DC transmission monitoring system data link on-off judging method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106571852A true CN106571852A (en) | 2017-04-19 |
Family
ID=58535236
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610954275.8A Pending CN106571852A (en) | 2016-11-03 | 2016-11-03 | Clock-system-independent DC transmission monitoring system data link on-off judging method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106571852A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109213589A (en) * | 2018-09-28 | 2019-01-15 | 深圳市景阳科技股份有限公司 | A kind of method and device of Message Processing |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090040934A1 (en) * | 2007-08-06 | 2009-02-12 | Hitachi, Ltd. | Distributed System |
CN102075390A (en) * | 2011-02-16 | 2011-05-25 | 华为技术有限公司 | Transmission state detection method and related device thereof |
CN103546306A (en) * | 2012-07-13 | 2014-01-29 | 广州汽车集团股份有限公司 | Periodic CAN (cable area network) message loss fault judging system and method |
CN103856360A (en) * | 2012-11-28 | 2014-06-11 | 中兴通讯股份有限公司 | Method and device for synchronization link fault detection |
-
2016
- 2016-11-03 CN CN201610954275.8A patent/CN106571852A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090040934A1 (en) * | 2007-08-06 | 2009-02-12 | Hitachi, Ltd. | Distributed System |
CN102075390A (en) * | 2011-02-16 | 2011-05-25 | 华为技术有限公司 | Transmission state detection method and related device thereof |
CN103546306A (en) * | 2012-07-13 | 2014-01-29 | 广州汽车集团股份有限公司 | Periodic CAN (cable area network) message loss fault judging system and method |
CN103856360A (en) * | 2012-11-28 | 2014-06-11 | 中兴通讯股份有限公司 | Method and device for synchronization link fault detection |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109213589A (en) * | 2018-09-28 | 2019-01-15 | 深圳市景阳科技股份有限公司 | A kind of method and device of Message Processing |
CN109213589B (en) * | 2018-09-28 | 2020-10-23 | 深圳市景阳科技股份有限公司 | Message processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101012627B1 (en) | Network terminal with a low duty cycle | |
US9032227B2 (en) | Wireless communication apparatus and power management method for the same | |
US20190349970A1 (en) | Data transmission method, device and system | |
CN111405610A (en) | Method and equipment for receiving data by D2D | |
JP2008042888A (en) | Telecommunication network system and method of waking up non-wake-up node | |
US20130138987A1 (en) | Method for entering idle mode and mobile terminal for implementing such method | |
US7587195B2 (en) | Wireless communications apparatus made operative in dependent upon a received signal strength | |
WO2015154462A1 (en) | Method and device for managing instant communication application program, and mobile terminal thereof | |
CN106550438B (en) | Method and system for limiting regular awakening and mobile device | |
CN108055696B (en) | Method of controlling operation of a communication device, transceiver and computer readable medium for corresponding operation | |
US7373134B2 (en) | Multiple-CPU portable terminal with communication function and control method | |
CN110320840B (en) | Method and system capable of reducing power consumption of Internet of things product battery | |
US9426746B2 (en) | Communication apparatus and control method therefor | |
CN105426949B (en) | A kind of low-power consumption timing wake-up method and apparatus | |
CN106571852A (en) | Clock-system-independent DC transmission monitoring system data link on-off judging method | |
US10142934B2 (en) | Wireless communication apparatus and communication system | |
CN110475321A (en) | The economize on electricity optimization method and device of wireless local area network AP | |
JP2014518603A (en) | Data transmission method, apparatus and system | |
CN113784232B (en) | Low-power-consumption communication method of intelligent water meter based on LoRa | |
TWI430614B (en) | Network device, network wake-up device and network notifying method applied to network device | |
US9820227B2 (en) | Program and base station apparatus | |
US7661009B2 (en) | Apparatus and methods for discriminating late software commands sent to hardware | |
JP5443275B2 (en) | Transceiver and operation method thereof | |
CN109391544B (en) | Automatic restarting method and circuit for dead halt of 2G/3G/4G router | |
JP2009265739A (en) | Data transmission/reception circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170419 |