Summary of the invention
The present invention is directed to the deficiencies in the prior art, proposed the husky remote supervision system of a kind of water based on dual link communication, comprising:
Far-end monitoring subsystem, for gathering the hydrologic regime data of river basins, voice data, video data; By described hydrologic regime data via satellite communication link be sent to near-end demonstration subsystem; And by described hydrologic regime data, voice data, video data is sent to near-end demonstration subsystem via primary communication link;
The hydrologic regime data that described near-end demonstration subsystem receives according to satellite communication link detects the operating state of primary communication link, and select the data of satellite communication link or the reception of primary communication link as calculation data, at computer graphical demonstration on interface according to testing result.
According to one embodiment of present invention, described near-end demonstration subsystem comprises:
Detection module, compares as benchmark the hydrologic regime data receiving via primary communication link take the hydrologic regime data that communication link receives via satellite, detects primary communication link in normal condition or malfunction, obtains testing result;
Scheduler module, dispatches according to testing result the data that communication link via satellite or primary communication link transmit; When primary communication link is during in normal condition, with the data that receive via primary communication link as calculation data; When primary communication link is during in malfunction, with communication link receives via satellite data as calculation data;
Demonstration module, to described calculation data analysis prediction, at computer graphical demonstration on interface.
According to one embodiment of present invention, described detection module extract respectively the element of time data in the hydrologic regime data that communication link via satellite receives and the hydrologic regime data that receives via primary communication link in element of time data, computing time difference; According to described time difference, judge that primary communication link is step-out or synchronous;
If primary communication link is synchronous, detection module extracts respectively regimen factor data value corresponding to same time factor data in the hydrologic regime data that communication link receives via satellite and the hydrologic regime data receiving via primary communication link, the regimen factor data value receiving via primary communication link as benchmark comparison take the regimen factor data value of communication link reception via satellite, judges that according to comparison result primary communication link is for inefficacy or effective;
If primary communication link is that effectively described testing result is that primary communication link is in normal condition;
If primary communication link is step-out or inefficacy, described testing result is that primary communication link is in malfunction.
According to one embodiment of present invention, described far-end monitoring subsystem comprises:
The some monitoring devices that are arranged on river basins, are connected to respectively pretreatment module; Described monitoring device comprises water regime monitoring device, and audio frequency monitoring device and video monitoring device, for gathering the environmental information of river basins; Described pretreatment module is carried out preliminary treatment to described environmental information, obtains described hydrologic regime data, voice data, video data;
Coding module, encodes and generates satellite link monitoring message described hydrologic regime data, and to described hydrologic regime data, voice data, coding video data generates active link monitoring message.
According to one embodiment of present invention, the message data in described satellite link monitoring message and active link monitoring message is json form, and the hydrologic regime data in described message data, voice data, video data adopt the structure of key-value pair to encode.
According to one embodiment of present invention, described pretreatment module is carried out preliminary treatment to described environmental information, comprising:
Read the Hydrologic Information in described environmental information and be converted into described hydrologic regime data;
Read the audio-frequency information in described environmental information, by high frequency sampling, and adopt wavelet transformation to carry out filtering, utilize Base64 cryptographic algorithm to encrypt, obtain described voice data;
Read the video information in described environmental information, be converted into the discrete picture of BITMAP form, utilize Base64 cryptographic algorithm to encrypt, obtain described video data.
According to a further aspect in the invention, propose the husky remote monitoring method of a kind of water based on dual link communication, comprising:
Between far-end monitoring subsystem and near-end demonstration subsystem, set up satellite communication link and primary communication link;
Gather the environmental information of river basins; Described environmental information is carried out to preliminary treatment, obtain hydrologic regime data, voice data, video data;
By described hydrologic regime data via satellite communication link be sent to near-end demonstration subsystem; And by described hydrologic regime data, voice data, video data is sent to near-end demonstration subsystem via primary communication link;
The hydrologic regime data receiving according to satellite communication link detects the operating state of primary communication link, and selects the data of satellite communication link or the reception of primary communication link as calculation data, at computer graphical demonstration on interface according to testing result.
According to one embodiment of present invention, the described hydrologic regime data receiving according to satellite communication link detects the operating state of primary communication link, comprising:
Take the hydrologic regime data that communication link receives via satellite, as benchmark, compare the hydrologic regime data receiving via primary communication link, detect primary communication link in normal condition or malfunction, obtain testing result.
According to one embodiment of present invention, described detection module extract respectively the element of time data in the hydrologic regime data that communication link via satellite receives and the hydrologic regime data that receives via primary communication link in element of time data, computing time is poor; According to the described time difference, judge that primary communication link is step-out or synchronous;
If primary communication link is synchronous, detection module extracts respectively regimen factor data value corresponding to same time factor data in the hydrologic regime data that communication link receives via satellite and the hydrologic regime data receiving via primary communication link, the regimen factor data value receiving via primary communication link as benchmark comparison take the regimen factor data value of communication link reception via satellite, judges that according to comparison result primary communication link is for inefficacy or effective;
If primary communication link is that effectively described testing result is that primary communication link is in normal condition;
If primary communication link is step-out or inefficacy, described testing result is that primary communication link is in malfunction.
According to one embodiment of present invention, describedly according to testing result, select data that satellite communication link or primary communication link receive as calculation data, comprising:
According to testing result, dispatch the data that communication link via satellite or primary communication link transmit; When primary communication link is during in normal condition, with the data that receive via primary communication link as calculation data; When primary communication link is during in malfunction, with communication link receives via satellite data as calculation data.
The invention provides satellite communication link and primary communication link transmits river environment Monitoring Data, and the data that dual communication link is transmitted compare simultaneously, guarantee river course environment Monitoring Data accuracy.Utilize the environmental monitoring message of json data format and the feature of primary communication link high-speed transfer, compatible regimen key element and voice data, video data, enrich the information content of transfer of data.Under crisis situation, when primary communication link performance reduces, communication link provides the real-time Transmission of Monitoring Data via satellite.
Other features and advantages of the present invention will be set forth in the following description, and partly from specification, become apparent, or understand by implementing the present invention.Object of the present invention and other advantages can be realized and be obtained by specifically noted structure in specification, claims and accompanying drawing.
Embodiment
Below with reference to accompanying drawing, describe embodiments of the present invention in detail, to the present invention, how application technology means solve technical problem whereby, and the implementation procedure of reaching technique effect can fully understand and implement according to this.It should be noted that, only otherwise form conflict, each feature in various embodiments of the present invention and each embodiment can mutually combine, and the technical scheme forming is all within protection scope of the present invention.
embodiment mono-
Fig. 1 is the structural representation of the husky remote supervision system 100 of water based on dual link communication according to the embodiment of the present invention one.
System 100 comprises far-end monitoring subsystem 101, for gathering the hydrologic regime data of river basins, voice data, video data; By described hydrologic regime data via satellite communication link 102 be sent to near-end demonstration subsystem 104; And by described hydrologic regime data, voice data, video data is sent to near-end demonstration subsystem 104 via primary communication link 103;
The hydrologic regime data that near-end demonstration subsystem 104 receives according to satellite communication link 102 detects the operating state of primary communication link 103, and select data that satellite communication link 102 or primary communication link 103 receive as calculation data, at computer graphical demonstration on interface according to testing result.
In the present embodiment, satellite communication link 102 is provided by big-dipper satellite network; Primary communication link 103 can be the communication link being provided by any communication network in LTE, WCDMA, CDMA2000, TD-CDMA, WLAN, GPRS, or for using the short distance wireless communication technology, for example Wi-Fi, Zigbee, and the communication link providing in conjunction with internet.
Fig. 2 is according to the structural representation of the far-end monitoring subsystem 101 of the embodiment of the present invention one, the function of the collection of river environment Monitoring Data that far-end monitoring subsystem 101 is integrated, storage, preliminary treatment, transmission.Comprise the some monitoring devices 201 that are arranged on river basins, be connected to respectively pretreatment module 202; Monitoring device 201 comprises water regime monitoring device, and audio frequency monitoring device and video monitoring device, for gathering the environmental information of river basins, comprise Hydrologic Information, audio-frequency information and video information; Pretreatment module 202 is carried out preliminary treatment to environmental information, obtains corresponding hydrologic regime data, voice data, video data.
Preferably, water regime monitoring device can be one or more in level sensor, flowmeter, current meter, the husky transducer of water, for gathering the hydrologic regime data in river, comprises water level, flow, flow velocity, silt, ice slush etc.; Audio frequency monitoring device uses microphone, for gathering the audio-frequency information in river; Video monitoring device is used the first-class video monitoring device of shooting, for gathering the video information in river.
Level sensor, flowmeter, the husky transducer of water, microphone, camera etc. is connected with pretreatment module 202 by modes such as RS485 bus, microwave, USB cables.
Pretreatment module 202 is carried out preliminary treatment to the environmental information in river, reads regimen sensing data and is converted into regimen factor data, for example, the range data of level transducer is converted to waterlevel data.
Particularly, the numerical value of level transducer output is the distance of transducer to the water surface, and water level is the distance that the water surface arrives standard sea level.When installation material level sensor, level transducer has been set to standard sea level distance, therefore the numerical value of level transducer output and level transducer are waterlevel data to the difference of standard sea level distance.
Pretreatment module 202 is carried out preliminary treatment to the environmental information in river, also comprise the audio-frequency information being gathered by audio frequency monitoring device in read loop environment information, by high frequency sampling, and adopt wavelet transformation to carry out filtering, utilize Base64 cryptographic algorithm to encrypt, obtain voice data.Wherein, to audio-frequency information, utilize wavelet transformation to carry out filtering, the data volume that reduces voice data that can be a large amount of, effectively utilizes communication link transmission capacity.
Pretreatment module 202 is carried out preliminary treatment to the environmental information in river, also comprises the video information being gathered by video monitoring device in read loop environment information, is converted into the discrete picture of BITMAP form, utilizes Base64 cryptographic algorithm to encrypt, and obtains video data.
Preferably, far-end working equipment also can be set in far-end monitoring subsystem for staff's service data at the scene.Pretreatment module 202 pushes to hydrologic regime data, voice data, video data far-end working equipment and is stored as textual form, is conducive to sharing and safeguarding of river environment information.
Coding module 203 is encoded and is generated satellite link monitoring message hydrologic regime data, and to hydrologic regime data, voice data, coding video data generates active link monitoring message.
It is a kind of based on json(Javascript Object Notation that the present embodiment provides) the river environment monitoring message coding mode of data format, compatible existing hydrology supervision control engineering standard, and can process the complicated monitor message that multiple regimen sensing device, microphone, camera produce.
This river environment monitoring message format is as shown in table 1.
Table 1
Code identifier |
Survey station identifier |
Object identifier |
Message data length |
Message data |
Wherein, code identifier is: " C ", " D " and " Z "." C " is order indications, and " D " is content indications, and " Z " is state indications.Code identifier is English alphabet, accounts for 1 byte.
Order indications represents that current message sends to far-end monitoring modular by near-end demonstration module.For the control operation to each monitoring device, for example, enable, close and status poll and content requests.
Content indications represents that current message sends to near-end demonstration module by far-end monitoring modular.For river environment information reporting is demonstrated to near-end demonstration module.
Survey station identifier is unique sign of each monitoring station; Object identifier is the water regime monitoring device mark code in monitoring station.Survey station identifier is 10bit, and front 6bit is regional postcode numbering, and rear 4bit is the sequence number of survey station in this area.
Message data length represents the length of message data.Preferably, the message data length in this satellite link monitoring message takies 8bit, and the message data length in this active link monitoring message takies 32bit.
Message data represents the river environment data corresponding with code identifier, survey station identifier, object identifier, comprises hydrologic regime data, voice data and video data; Or expression and code identifier, survey station identifier, the corresponding control data of object identifier.
Message data adopts json form to encode, as shown in table 2.
Table 2
Wherein, key element represents the regimen key element including water level, flow, flow velocity, sediment charge etc., and audio essence, video key element.
Table 3, table 4 describe the form of message data with concrete example.
Table 3
{ |
Date |
: |
20131121 |
Time |
: |
122130 |
, |
Water level |
: |
18.11 |
} |
Shown in table 3, waterlevel data is expressed as to json form, the date that represents this waterlevel data collection is November 21 in 2013, and the time of collection is 12:21:30, and waterlevel data is 18.11.Wherein, " date " and " time " is element of time, and " 20131121 " and " 122130 " are element of time data; " water level " is regimen key element, and " 18.11 " are regimen factor data.
Shown in table 4, video data is expressed as to json form, the date that represents this video data acquiring is on November 21st, 2013, and the time of collection is that the time gathering is 12:21:30, and these data are gathered by camera 1.
Table 4
Json data format is a kind of data interchange format of lightweight, adopts the textual form that is totally independent of language, is easy to read and writes and be easy to machine resolve and generate.Json data structure be key:value, and key:value ... } and the structure of key-value pair, the hydrologic regime data in the present embodiment message data, voice data, video data adopt the structure of key-value pair to encode, and are conducive to the husky data cloud storage of water and cloud shared.Such as waterlevel data, flow speed data, sediment charge etc., its middle water level, flow velocity, silt content are the key key in structure, data volume is the value value of this key.
Further, of a great variety due to water regime monitoring device, the water regime monitoring data that it generates have the data format of self.In the present embodiment, adopt json form to encode, multiple water regime monitoring device that can compatible many producers.Because the data message of json form is described succinctly, carry regimen key element and voice data, video data simultaneously, be convenient to far-end demonstration subsystem 104 and process.
Far-end satellite communication module 204, for realizing the conversion of communication protocol, is processed with adaptive satellite communication agreement satellite link monitoring message, and communication link 102 is sent to near-end demonstration subsystem 104 via satellite.
Preferably, satellite communication link 102 is provided by big-dipper satellite network.In the present embodiment, adopt the Big Dipper note message of 98 byte lengths, as shown in table 5.Far-end satellite communication module 204 is monitored message adaptation by satellite link becomes the monitoring message of 76 bytes, obtains Big Dipper packet, and Big Dipper packet is sent via big-dipper satellite communication network.
Table 5
The primary communication module 205 of far-end, for realizing the conversion of communication protocol, is processed with adaptive active link communication protocol active link monitoring message, via primary communication link 103, is sent to near-end demonstration subsystem 104.
Preferably, primary communication link 103 is by Long Term Evolution LTE(Long Term Evolution) communication network provides, and realizes the HD video transmission to monitoring river basins environment.The primary communication module 205 of far-end to active link monitoring message with transmission block TB(Transmission Block) form be adapted for LTE packet.Can suitably active link monitoring message waiting for transmission be cut apart or cascade according to the size of transmission block TB, farthest to utilize the limited transmission time.Through CRC check, code block, cut apart and encode, modulate again, finally generating LTE packet, via LTE communication network, being sent to near-end demonstration subsystem 104.
Preferably, because far-end monitoring subsystem 101 is arranged on field conventionally, by storage battery or solar panel, powered, for reducing transmitting power consumption, can be far-end satellite communication module 204 and set with the primary communication module 205 of far-end the frequency of communicating by letter.In the present embodiment, set the transmission frequency of hydrologic regime data for sending once every 5 minutes, and voice data and video data send in real time via primary communication link 103.
Fig. 3 is according to the structural representation of the near-end monitoring subsystem 104 of the embodiment of the present invention one, comprising:
Near-end satellite communication module 301, receives the packet that communication link 102 transmits via satellite and resolves, and obtains satellite link monitoring message, is forwarded to decoder module 303; The primary communication module 302 of near-end, receives the packet transmitting via primary communication link 103 and resolves, and obtains active link monitoring message, is forwarded to decoder module 303.
Decoder module 303 is decoded to the satellite link monitoring message receiving and active link monitoring message, obtain respectively the hydrologic regime data so that communication link 102 receives via satellite, and the hydrologic regime data receiving via primary communication link 103, voice data, video data.
Detection module 304 compares as benchmark the hydrologic regime data receiving via primary communication link 103 take the hydrologic regime data that communication link 102 receives via satellite, detects primary communication link 103 in normal condition or malfunction, obtains testing result.
Concrete, detection module 304 extract respectively the element of time data in the hydrologic regime data that communication link 102 receives via satellite and the hydrologic regime data that receives via primary communication link 103 in element of time data, computing time is poor; According to the described time difference, judge that primary communication link 103 is for step-out or synchronous;
If primary communication link is synchronous, detection module 304 extracts respectively regimen factor data value corresponding to same time key element in the hydrologic regime data that communication link 102 receives via satellite and the hydrologic regime data receiving via primary communication link 103, take the regimen factor data value that communication link 102 receives via satellite, as benchmark, compare the regimen factor data value receiving via primary communication link 103, according to comparison result, judge that primary communication link is for inefficacy or effective;
If primary communication link is that effectively described testing result is that primary communication link is in normal condition;
If primary communication link is step-out or inefficacy, described testing result is that primary communication link is in malfunction.
Scheduler module 305 dispatches according to testing result the data that communication link 102 via satellite or primary communication link 103 transmit; When primary communication link is during in normal condition, with the data that receive via primary communication link as calculation data; When primary communication link is during in malfunction, with communication link receives via satellite data as calculation data.
Demonstration module 306 is to the prediction of calculation data analysis, at computer graphical demonstration on interface.
Fig. 4 is the workflow diagram that detection module 304 detects primary communication link, comprises the following steps:
Step S401, setting-up time difference limen value and wrong report threshold value, definition wrong report counter; The wrong report number of times initial value of wherein reporting by mistake in counter is 0.Preferably, in the present embodiment, time difference Threshold is 10 minutes, and wrong report Threshold is 5 times.
Step S402, extract respectively the element of time data in the hydrologic regime data that communication link 102 receives via satellite and the hydrologic regime data that receives via primary communication link 103 in element of time data, computing time difference;
Step S403, judges whether described time difference is greater than time difference threshold value,
If described time difference is greater than time difference threshold value, primary communication link 103 is step-out, and testing result is that primary communication link 103 is malfunction; If described time difference is less than time difference threshold value, primary communication link 103 is synchronous, execution step S404.
Preferably, if described time difference is greater than 10 minutes, primary communication link 103 is step-out, and testing result is that primary communication link 103 is malfunction; If described time difference is less than 10 minutes, primary communication link 103 is synchronous.
Step S404, extract respectively regimen factor data value corresponding to same time factor data in the hydrologic regime data that communication link 102 receives via satellite and the hydrologic regime data receiving via primary communication link 103, take communication link 102 receives via satellite regimen factor data value as benchmark, compare the regimen factor data value receiving via primary communication link 103.
Step S405, judges that whether the regimen factor data value that same time factor data is corresponding is consistent, if consistent, primary communication link 103 is effectively, wrong report counter O reset, and testing result is that primary communication link 103 is in normal condition; If inconsistent, perform step S406.
Step S406, in primary communication link 103 there is wrong report in regimen factor data, the wrong report number of times in wrong report counter adds 1, execution step 407.
Step S407, judges whether the wrong report number of times in wrong report counter is greater than wrong report threshold value;
If wrong report number of times is greater than wrong report threshold value, primary communication link 103 is for losing efficacy, testing result be primary communication link 103 in malfunction, wrong report counter O reset;
If wrong report number of times is less than wrong report threshold value, extract next element of time data, execution step 404.
Preferably, if the continuous wrong report number of times of primary communication link is greater than 5 times, primary communication link 103 was for losing efficacy, and testing result is that primary communication link 103 is in malfunction.
The present embodiment is by provide satellite communication link and primary communication link to transmit river environment Monitoring Data simultaneously, and the data that dual communication link is transmitted compare, and guarantees river course environment Monitoring Data accuracy.Utilize the environmental monitoring message of json data format and the feature of primary communication link high-speed transfer, compatible regimen key element and voice data, video data, enrich the information content of transfer of data.Under crisis situation, when primary communication link performance reduces, communication link provides the real-time Transmission of Monitoring Data via satellite.
embodiment bis-
Fig. 5 is the husky remote monitoring method flow chart of the water based on dual link communication according to the embodiment of the present invention two, comprising:
Step S501 sets up satellite communication link and primary communication link between far-end monitoring subsystem and near-end demonstration subsystem.
Step S502, the environmental information of collection river basins; Described environmental information is carried out to preliminary treatment, obtain hydrologic regime data, voice data, video data.
Step S503, by described hydrologic regime data via satellite communication link be sent to near-end demonstration subsystem; And by described hydrologic regime data, voice data, video data is sent to near-end demonstration subsystem via primary communication link.
Step S504, the hydrologic regime data receiving according to satellite communication link detects the operating state of primary communication link, and selects the data of satellite communication link or the reception of primary communication link as calculation data, at computer graphical demonstration on interface according to testing result.
Particularly, take the hydrologic regime data that communication link receives via satellite, as benchmark, compare the hydrologic regime data receiving via primary communication link, detect primary communication link in normal condition or malfunction, obtain testing result.
Detailed step is consistent with the step in the workflow diagram shown in Fig. 4, primary communication link being detected, and repeats no more.
Although the disclosed execution mode of the present invention as above, the execution mode that described content just adopts for the ease of understanding the present invention, not in order to limit the present invention.Technical staff in any the technical field of the invention; do not departing under the prerequisite of the disclosed spirit and scope of the present invention; can do any modification and variation what implement in form and in details; but scope of patent protection of the present invention, still must be as the criterion with the scope that appending claims was defined.