CN103957552B - The method for improving data communication reliability in automatic weather station - Google Patents

The method for improving data communication reliability in automatic weather station Download PDF

Info

Publication number
CN103957552B
CN103957552B CN201410201128.4A CN201410201128A CN103957552B CN 103957552 B CN103957552 B CN 103957552B CN 201410201128 A CN201410201128 A CN 201410201128A CN 103957552 B CN103957552 B CN 103957552B
Authority
CN
China
Prior art keywords
communication link
communication
link
station
base station
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410201128.4A
Other languages
Chinese (zh)
Other versions
CN103957552A (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.)
Aerospace new weather Technology Co., Ltd
Original Assignee
JIANGSU PROVINCIAL RADIO INST 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 JIANGSU PROVINCIAL RADIO INST CO Ltd filed Critical JIANGSU PROVINCIAL RADIO INST CO Ltd
Priority to CN201410201128.4A priority Critical patent/CN103957552B/en
Publication of CN103957552A publication Critical patent/CN103957552A/en
Application granted granted Critical
Publication of CN103957552B publication Critical patent/CN103957552B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to a kind of method, especially a kind of method for improving data communication reliability in automatic weather station, belongs to the technical field of automatic weather station communication.According to the technical scheme that the present invention is provided, the bridger of the method for data communication reliability in the raising automatic weather station, including base station, central station and connection base station and central station;At least two communication links are set up by bridger between the base station and central station, central station sets a communication link as main communication link, remaining communication link is auxiliary communication link, the larger path link of communication link quality enters row data communication with base station in central station selection communication link, to ensure the continuity and real-time of data communication between central station and base station.High degree of automation of the present invention, improves the reliability and operating efficiency of Data of Automatic Weather communication, and wide adaptation range is safe and reliable.

Description

The method for improving data communication reliability in automatic weather station
Technical field
The present invention relates to a kind of method, especially a kind of method for improving data communication reliability in automatic weather station, category In the technical field of automatic weather station communication.
Background technology
At present, automatic weather station system include for gather meteorological data and by the meteorological data outwards transmission Base station, central station and the bridger of the connection central station and base station for being received to base station data, being analyzed and processed. Usually, central station by bridger between bridger and base station communication, i.e. base station and central station by setting up a communication chain Road.And work as central station and normally run, but when can not receive data, occur wherein with regard to being badly in need of understanding problem.If now communicated Link is still unimpeded, then can combine the communication information for receiving carries out case study.But when this communication link is interrupted When, it is impossible to know effective information, be now accomplished by user by artificial means, such as carry out site inspection or find other clothes Business, problem is investigated with this and is appeared on earth on which node.This way not only reduce data to report rate, while tighter Reduce operating efficiency again, it is impossible to meet user can pinpoint the problems in time and solve problem demand.
The content of the invention
The purpose of the present invention is to overcome the deficiencies in the prior art, there is provided data can during one kind improves automatic weather station By the method for property, its high degree of automation improves the reliability and operating efficiency of Data of Automatic Weather communication, accommodation Extensively, it is safe and reliable.
According to the technical scheme that the present invention is provided, the method for data communication reliability in the raising automatic weather station, bag Include the bridger of base station, central station and connection base station and central station;Between the base station and central station by bridger set up to Few two communication links, central station sets a communication link as main communication link, and remaining communication link is auxiliary communication link, The larger path link of communication link quality enters row data communication with base station in central station selection communication link, to ensure central station The continuity and real-time of data communication between base station.
The base station includes data acquisition unit and physical communications module, and the physical communications module includes at least two SIM, unique IP address and UDP port number is configured per SIM card, to set up at least two communication links.
The data communication mode of the principal communication link includes GPRS.
The data acquisition unit passes through RS232 connection communications with physical communications module.
The central station includes link detection module, link analysis module and link switching module;By link detecting Module polls physical communications module, to determine whether every SIM card has heartbeat packet, while in setting time, detecting principal communication Whether link is online;
Link analysis module obtains each communication link state according to above-mentioned heartbeat bag data and work on off operating mode, To obtain the communication link quality of communication link according to communication link state;The communication link state includes heartbeat packet promptness rate Ppkg, the online rate P of linkon, nearest hour online rate Pon_hAnd link priority Ppriority, communication link quality P is
P=a1*Ppkg+a2*Pon+a3*Pon_h+a4*Ppriority
Wherein, parameter a1, parameter a2, parameter a3And parameter a4It is weight factor;Heartbeat packet promptness rate PpkgIt is Ppkg=n/ N, n are the number of times for receiving heartbeat packet, and N is the total degree of poll heartbeat packet;Online rate PonIt is Pon=m/M, m exist for communication link Line number of times, M is the online total degree of detection;Link priority Ppriority∈[0,1]。
Link switching module is according to above-mentioned communication link quality P, switching selection communication link quality P larger communication link As the data link between central station and base station.
Communicated using UDP between the base station and bridger.
Advantages of the present invention:When principal communication link breaks down to be caused to communicate obstructed, what central station automatic identification was changed Routing address, switches to auxiliary communication link, and its communication process is consistent with principal communication link, and the timely of data communication is improved with this Property, continuity, effectively overcome data-transmission interruptions and the problem such as time delay because caused by single communication link failure.Central station By the change of routing address, you can know to have broken down any communication link belonged to;Meanwhile, by by present communications chain Road sends the communication information, facility information of acquisition request present physical communication module etc., determines that failure cause is to belong to equipment Communication link or other situations, improve the accuracy of fault diagnosis, and wide adaptation range is safe and reliable.
Brief description of the drawings
Fig. 1 is the flow chart that communication monitoring is carried out between central station of the invention and base station.
Fig. 2 is the schematic diagram to communication link analysis switching in central station of the present invention.
Specific embodiment
With reference to specific drawings and Examples, the invention will be further described.
At present, communicated using UDP (User Datagram Protocol) between base station and central station, wherein, UDP communications Mode uses the product of one physical communications module of configuration in the data acquisition unit of base station, such as grand electricity or Nuo Lang.For The user is allowed to grasp whether current communications link is unimpeded in real time, the physical communications module is responsible for central station active push number According to bag, referred to as " heartbeat packet ", the major function of heartbeat packet is the state for notifying central station current time physical communications module.Together When, the physical communications module can also provide the information related to communication, and the communication-related information main contents include module State, SIM (Subscriber Identity Module) card-like state, base station signal strength etc..
Under conditions of communication link normal work, central station is by obtaining physical communications module information, such as GPRS Whether (General Packet Radio Service) module normal, SIM whether normal, base station signal strength value etc., use Family can grasp Current Communications Status according to this, and failure to being likely to occur is taken precautions against.
But, above-mentioned situation establishes a unique communication link between base station and central station, and by heartbeat packet And whether the analysis of other related communications is unimpeded to monitor unique communication link, has main steps that:
(1), physical communications module, such as GPRS module, configure unique communication terminal number, IP address and UDP port number.Institute State physical communications module and heartbeat packet and the information related to communication, such as module status, SIM state, base station signal strength are provided Deng;
(2), central station receives above- mentioned information by bridger;
(3), central station is processed according to the communication information that reception is obtained, analyzed, and communications status monitoring is completed with this Purpose.Now, user can obtain the real time information of communications status, such as base station signal, base station change by interactive interface.
In the state of communication link normal work, GPRS communication modules provide the information related to communication, including base station Signal, Link State, SIM state etc., central station can infer the failure that may occur with this.
But, once unique communication link is interrupted, even if the physical communications module can provide it is more more It is the detailed communication information, also central station cannot be sent to by communication link, because has now lost monitoring communications status Necessary condition.So now, central station cannot clearly judge which node there occurs failure at, be on earth equipment or logical Believe the problem of link, it is impossible to the localization of faults, the answer that user directly cannot be clearly satisfied with by software, and have to be by Artificial means investigation failure cause, has had a strong impact on operating efficiency.
As depicted in figs. 1 and 2:In order to be able to improve the reliability and operating efficiency of Data of Automatic Weather communication, the present invention Bridger including base station, central station and connection base station and central station;Set up by bridger between the base station and central station At least two communication links, central station sets a communication link as main communication link, and remaining communication link is auxiliary communication chain Road, the larger path link of communication link quality enters row data communication with base station in central station selection communication link, in ensuring The continuity and real-time of data communication between center station and base station.
Specifically, due to setting up at least two communication links between central station and base station, in the bar that central station normally runs Under part, wherein only a communication link is set to principal communication link, for data communication.When this principal communication link occurs When failure causes communication disruption, central station wakes up the communication link in auxiliary communication link immediately, with rehabilitation center station with Data communication between base station;When principal communication link-recovery is normal, central station still can select to switch to principal communication link. In the process, by the continuous switching of communication link, it is ensured that the continuity of data communication.Meanwhile, when principal communication link occurs During failure, communicated by auxiliary communication link, can effectively be found out the problem that current principal communication link occurs, and accuse in time Know user, improve the efficiency of fault diagnosis.
The base station includes data acquisition unit and physical communications module, and the physical communications module includes at least two SIM, unique IP address and UDP port number is configured per SIM card, to set up at least two communication links.
Further, communicated using UDP between the base station and bridger, UDP communications can be by China Mobile, China The basic network that telecommunications or other multiple operators provide is realized, therefore configures various different fortune in physical communications module The network that battalion business provides, that is, the SIM of two or more than two is configured, a plurality of communication is formed with the SIM by multiple Link, principal communication link can be using mobile GPRS, the network that auxiliary communication link is provided using other operators.Central station reality When monitoring language base station between communication link, if interrupting occur in the GPRS links of principal communication link, other will be automatically switched to Auxiliary communication link, recovers data communication;If after operation a period of time, history run of the central station according to each communication link Quality condition, automatic prioritizing selection link circuit condition is preferably as principal communication link.In general, in base station and the number of central station A communication link is showed only as during according to communication.
The data acquisition unit passes through RS232 connection communications with physical communications module.Every SIM in physical communications module The unique IP address of card configuration and UDP port number, for matching different bridgers.If principal communication link and subsidiary communications chain In the case that road is unimpeded, all heartbeat packet can be sent to central station per communication link, now, just obligated shielding is auxiliary for central station The heartbeat packet of communication link is helped, only allows the heartbeat packet of principal communication link to return to central station, central station can be by master afterwards Communication link selects corresponding routing address to carry out data transmission.Meanwhile, either principal communication link or auxiliary communication link, What is represented due to them is all a base station, what the communication terminal number that they return in the heartbeat packet of central station was just as. Therefore, central station is by the information analysis to heartbeat packet, it is determined that current routing address, and carry out data biography with reference to communication terminal number It is defeated.
The central station includes link detection module, link analysis module and link switching module;By link detecting Module polls physical communications module, to determine whether every SIM card has heartbeat packet, while in setting time, detecting principal communication Whether link is online;
Link analysis module obtains each communication link state according to above-mentioned heartbeat bag data and work on off operating mode, To obtain the communication link quality of communication link according to communication link state;The communication link state includes heartbeat packet promptness rate Ppkg, the online rate P of linkon, nearest hour online rate Pon_hAnd link priority Ppriority, communication link quality P is
P=a1*Ppkg+a2*Pon+a3*Pon_h+a4*Ppriority
Wherein, parameter a1, parameter a2, parameter a3And parameter a4It is weight factor;Heartbeat packet promptness rate PpkgIt is Ppkg=n/ N, n are the number of times for receiving heartbeat packet, and N is the total degree of poll heartbeat packet;Online rate PonIt is Pon=m/M, m exist for communication link Line number of times, M is the online total degree of detection;Link priority Ppriority∈[0,1]。
Link switching module is according to above-mentioned communication link quality P, switching selection communication link quality P larger communication link As the data link between central station and base station.
Because wireless network is unstable, therefore online rate PonThe communication link state at nearest moment cannot truly be reflected, because Online rate P in this statistics nearest houron_h.The basic network quality condition that various operators provide is not quite similar, root According to people to the long-term observation experience and statistics of various network quality situations, the link priority per communication link is set Ppriority.Above-mentioned weight factor represents four above-mentioned significance levels of parameter, according to actual conditions, different communication links In varied situations, weight factor can be variant.For example in some cases, heartbeat packet promptness rate occupies topmost status, So a1A can be compared2, a3, a4Greatly, four values of weight factor are finished in initial just the setting in central station that link is connected.
If current principal communication link does not have heartbeat packet to send, judge that principal communication link breaks down.If current Only two communication links, central station changes routing address, then switch to the auxiliary communication link of other.If system has Three or more than three communication links, then link switching module is drawn according to link analysis module communication link quality P, it is excellent First a larger auxiliary communication link of selection communication link quality P values is used as data communication, shields the heart of other communication links Bag is jumped, routing address is changed.
The present invention when principal communication link break down cause to communicate obstructed when, central station automatic identification change route ground Location, switches to auxiliary communication link, and its communication process is consistent with principal communication link, improves the promptness of data communication with this, connects Continuous property, effectively overcomes because of problems such as the data-transmission interruptions caused by single communication link failure and time delays.Central station passes through The change of routing address, you can know to have broken down any communication link belonged to;Meanwhile, sent out by by current communications link Send the communication information, facility information of acquisition request present physical communication module etc., determine failure cause be the equipment that belongs to or Communication link or other situations, improve the accuracy of fault diagnosis, and wide adaptation range is safe and reliable.

Claims (4)

1. it is a kind of improve automatic weather station in data communication reliability method, including base station, central station and connection base station with The bridger of central station;It is characterized in that:At least two communication links, center are set up by bridger between the base station and central station Stand and set a communication link as main communication link, remaining communication link is auxiliary communication link, central station selection communication link The larger path link of middle communication link quality enters row data communication with base station, to ensure data communication between central station and base station Continuity and real-time;
The base station includes data acquisition unit and physical communications module, and the physical communications module includes at least two SIM Card, unique IP address and UDP port number is configured per SIM card, to set up at least two communication links;
The central station includes link detection module, link analysis module and link switching module;By link detection module Poll physical communications module, to determine whether every SIM card has heartbeat packet, while in setting time, detecting principal communication link It is whether online;
Link analysis module obtains each communication link state, with root according to above-mentioned heartbeat bag data and work on off operating mode The communication link quality of communication link is obtained according to communication link state;The communication link state includes heartbeat packet promptness rate Ppkg、 The online rate P of linkon, nearest hour online rate Pon_hAnd link priority Ppriority, communication link quality P is
P=a1*Ppkg+a2*Pon+a3*Pon_h+a4*Ppriority
Wherein, parameter a1, parameter a2, parameter a3And parameter a4It is weight factor;Heartbeat packet promptness rate PpkgIt is Ppkg=n/N, n are The number of times of heartbeat packet is received, N is the total degree of poll heartbeat packet;Online rate PonIt is Pon=m/M, m are that communication link is secondary online Number, M is the online total degree of detection;Link priority Ppriority∈[0,1];
Link switching module is according to above-mentioned communication link quality P, switching selection communication link quality P larger communication link conduct Data link between central station and base station.
2. it is according to claim 1 improve automatic weather station in data communication reliability method, it is characterized in that:The master The data communication mode of communication link includes GPRS.
3. it is according to claim 1 improve automatic weather station in data communication reliability method, it is characterized in that:The number Pass through RS232 connection communications according to collector and physical communications module.
4. it is according to claim 1 improve automatic weather station in data communication reliability method, it is characterized in that:The base Stand and communicated using UDP between bridger.
CN201410201128.4A 2014-05-13 2014-05-13 The method for improving data communication reliability in automatic weather station Active CN103957552B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410201128.4A CN103957552B (en) 2014-05-13 2014-05-13 The method for improving data communication reliability in automatic weather station

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410201128.4A CN103957552B (en) 2014-05-13 2014-05-13 The method for improving data communication reliability in automatic weather station

Publications (2)

Publication Number Publication Date
CN103957552A CN103957552A (en) 2014-07-30
CN103957552B true CN103957552B (en) 2017-05-31

Family

ID=51334755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410201128.4A Active CN103957552B (en) 2014-05-13 2014-05-13 The method for improving data communication reliability in automatic weather station

Country Status (1)

Country Link
CN (1) CN103957552B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104635281B (en) * 2015-02-17 2016-08-24 南京信息工程大学 Data of Automatic Weather method of quality control based on severe weather process correction
CN106341322A (en) * 2016-08-28 2017-01-18 航天恒星科技有限公司 Link switching method and system
CN106802583A (en) * 2017-02-17 2017-06-06 莫沙 A kind of unmanned automatic Weather Station monitoring system and method
CN107708164B (en) * 2017-10-31 2020-11-20 中国南方电网有限责任公司电网技术研究中心 Network access method and system of power distribution terminal
CN107979858B (en) * 2017-12-07 2021-03-16 北京小米移动软件有限公司 Data path switching method, device, terminal and computer readable storage medium
CN113573301B (en) * 2021-09-24 2022-06-24 北京智芯微电子科技有限公司 Wireless communication terminal multichannel switching method, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2687971Y (en) * 2004-03-16 2005-03-23 江苏省无线电科学研究所有限公司 Automatic weather station data transmission device based on GPRS service
CN1963879A (en) * 2005-11-07 2007-05-16 国网北京电力建设研究院 System and method for detecting online of built on stilts power transmission sequence
CN101150868A (en) * 2007-11-13 2008-03-26 北京北方烽火科技有限公司 A scrolling switching method of mobile station dominated mobile communication system based on MIMO technology

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2687971Y (en) * 2004-03-16 2005-03-23 江苏省无线电科学研究所有限公司 Automatic weather station data transmission device based on GPRS service
CN1963879A (en) * 2005-11-07 2007-05-16 国网北京电力建设研究院 System and method for detecting online of built on stilts power transmission sequence
CN101150868A (en) * 2007-11-13 2008-03-26 北京北方烽火科技有限公司 A scrolling switching method of mobile station dominated mobile communication system based on MIMO technology

Also Published As

Publication number Publication date
CN103957552A (en) 2014-07-30

Similar Documents

Publication Publication Date Title
CN103957552B (en) The method for improving data communication reliability in automatic weather station
CN106571977B (en) Data transmission method and device
CN107071840B (en) Netsurfing switching method and device
CN101355466B (en) Method and apparatus for transmitting continuous check information message
CN101931982A (en) Network failure positioning method and device
CN103684580B (en) The method of Remote Radio Unit and reporting links fault thereof, wireless communication system
CN107453849A (en) Power distribution communication network wire link and the mutually standby interlock method of Radio Link and system, vacant lot are mutually for integrated apparatus
CN104954153A (en) Method and device for node fault detection
CN109215315A (en) The remote meter reading method and system of dual mode communication
CN109728967A (en) Communication quality detection method, communication equipment and system
CN103368849A (en) OAM (Operations, Administration and Management) message processing method and device
CN107205239A (en) A kind of method and detection device for detecting wireless network connection
CN106230993A (en) The security protection compliance data acquisition method of electric power monitoring system and system
CN103002483B (en) A kind of base station fault detection method, Apparatus and system
CN102387524B (en) Indoor distributed monitoring system for WLAN (Wireless Local Area Network)
CN103259687A (en) Air traffic control data access platform in civil aviation
CN104869644B (en) A kind of data transmission method and equipment
CN111030910A (en) Method and system for monitoring communication state of ring network node, measurement and control device and local module
CN103763741B (en) A kind of intelligent parking lot wireless communications method and system
CN113452576B (en) Method and device for monitoring network environment, storage medium and electronic device
CN108011758A (en) A kind of long distance wireless channel monitoring method of electric power remote centralized meter-reading system
CN103457782A (en) VLAN-based loopback detection method and network equipment
CN107918375A (en) A kind of equipment high in the clouds monitoring management system
CN102904758B (en) Method for detecting communication failure of mine leakage communication network
CN106488495A (en) Base station selecting method and device based on base station signal quality

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
TR01 Transfer of patent right

Effective date of registration: 20191220

Address after: 214000 28 Weiming Road, Binhu District, Wuxi City, Jiangsu Province

Patentee after: Aerospace new weather Technology Co., Ltd

Address before: Jinxi road Binhu District 214125 Jiangsu city of Wuxi province No. 100

Patentee before: Jiangsu Provincial Radio Inst Co., Ltd.

TR01 Transfer of patent right