CN112654065B - River flow speed data acquisition and transmission method - Google Patents

River flow speed data acquisition and transmission method Download PDF

Info

Publication number
CN112654065B
CN112654065B CN202110070079.5A CN202110070079A CN112654065B CN 112654065 B CN112654065 B CN 112654065B CN 202110070079 A CN202110070079 A CN 202110070079A CN 112654065 B CN112654065 B CN 112654065B
Authority
CN
China
Prior art keywords
data
data packet
time
terminal unit
remote terminal
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
CN202110070079.5A
Other languages
Chinese (zh)
Other versions
CN112654065A (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.)
Zhengzhou Geruite Technology Co ltd
Hanjiang Water Resources Survey Bureau Of Hydrology Bureau Of Changjiang Water Resources Commission Hanjiang Water Environment Monitoring Center Of Hydrology Bureau Of Changjiang Water Resources Commission
Original Assignee
Zhengzhou Geruite Technology Co ltd
Hanjiang Water Resources Survey Bureau Of Hydrology Bureau Of Changjiang Water Resources Commission Hanjiang Water Environment Monitoring Center Of Hydrology Bureau Of Changjiang Water Resources Commission
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 Zhengzhou Geruite Technology Co ltd, Hanjiang Water Resources Survey Bureau Of Hydrology Bureau Of Changjiang Water Resources Commission Hanjiang Water Environment Monitoring Center Of Hydrology Bureau Of Changjiang Water Resources Commission filed Critical Zhengzhou Geruite Technology Co ltd
Priority to CN202110070079.5A priority Critical patent/CN112654065B/en
Publication of CN112654065A publication Critical patent/CN112654065A/en
Application granted granted Critical
Publication of CN112654065B publication Critical patent/CN112654065B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0289Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication parameters
    • H04W28/22Negotiating communication rate

Abstract

The invention discloses a river flow rate data acquisition and transmission method, which is characterized in that HADCP is used for acquiring flow rate data and transmitting the flow rate data to a host computer through GPRS (general packet radio service) via a remote terminal unit, when the remote terminal unit communicates with the host computer, a heartbeat packet is used for testing the network speed, the size of a first data packet is determined, then the size of a next data packet is determined according to the network speed corresponding to the previous data packet, and if the network speed is not responded, the size of the data packet is further reduced. According to the method, the HADCP is used for collecting river flow speed data and uploading the river flow speed data to the host computer through the GPRS, the size of a data packet can be flexibly adjusted according to the GPRS network speed condition when the data are transmitted, congestion and data loss are not prone to occurring during transmission, the transmission efficiency is high, and the safety is good.

Description

River flow speed data acquisition and transmission method
Technical Field
The invention relates to the field of river flow velocity measurement, in particular to a river flow velocity data acquisition and transmission method.
Background
A horizontal acoustic doppler current profiler (hadp) is a water acoustic current meter for measuring the velocity of water, which transmits sound waves into the water, receives echo signals returned from scatterers in the water, and calculates the flow velocity by analyzing the doppler shift thereof. The collected flow rate data needs to be uploaded to a central station, but the flow rate collection point is generally located in suburbs or in the field, the coverage rate of 4G and 5G signals is low, a GPRS network can be selected generally, and GPRS signals are relatively weak. The online working interval of the HADCP is 5 minutes according to the hydrological flow test standard, namely the acquisition and the transmission of the flow rate by equipment are completed within 5 minutes, and the acquisition time of the flow rate of the HADCP under a complex flow state is 3 minutes, so that the transmission time of original data is only 2 minutes theoretically, and the data volume of the original data acquired once is as much as 4-6K. Therefore, how to improve the data transmission efficiency and the data transmission safety is a key technical problem of using the hadp to measure the flow velocity.
Disclosure of Invention
The invention aims to provide a river flow velocity data acquisition and transmission method, which utilizes HADCP to acquire river flow velocity data, uploads the river flow velocity data to a host computer through GPRS (general packet radio service), can flexibly adjust the size of a data packet according to the network velocity condition of the GPRS when transmitting data, is not easy to cause congestion and data loss during transmission, and has high transmission efficiency and good safety.
In order to achieve the purpose, the invention adopts the following technical scheme:
a river flow data acquisition and transmission method, utilize HADCP to gather the flow data and transmit to the host computer through GPRS via the remote terminal unit, the said remote terminal unit communicates with the host computer by adopting the following way:
(a) When the HADCP collects flow rate data, the remote terminal unit tests the communication speed with the host computer in a heartbeat packet sending mode, determines the size of a first data packet according to the communication speed obtained by multiple tests and sends the first data packet, and the host computer returns the time of receiving the first data packet to the remote terminal unit;
(b) The remote terminal unit determines the communication speed according to the time of receiving the last data packet by the host computer, determines the size of the next data packet and sends the next data packet, and when the ADCP starts to collect the flow rate data next time, the remote terminal unit finishes sending all the flow rate data;
in the above steps (a) and (b), if the host computer does not receive the data packet or receives the error data packet, the time of receiving the data packet is not transmitted to the remote terminal unit, and the remote terminal unit does not receive the feedback of the host computer within a predetermined time, the data amount of the previous data packet is reduced and transmitted.
Preferably, the heartbeat packet is a data packet with a specified format and quantity and is sent to the host computer through the GPRS in milliseconds after the current time calibration, and the host computer returns the time of receiving the heartbeat packet or the data packet to the remote terminal unit in milliseconds.
Preferably, the HADCP completes one-time acquisition and transmission of the flow rate data within 5 minutes, wherein the time for acquiring the flow rate data is not more than 3 minutes, the time for transmitting the flow rate data is not more than 2 minutes, the amount of the flow rate data is not more than 5000 bytes, when the time taken for transmitting a heartbeat packet or a data packet and receiving corresponding feedback is not more than 15 seconds, the size of the data packet is 1000 bytes, when the time taken for transmitting the heartbeat packet or the data packet is more than 15 seconds and less than 20 seconds, the size of the data packet is 500 bytes, and when the time taken for transmitting the heartbeat packet is 20 seconds, the size of the data packet is 200 bytes.
In the technical scheme, the heartbeat packet is used for preventing disconnection in GPRS communication, and remote active online detection is realized. Meanwhile, the invention provides specific transmission parameter setting according to the practical situation of HADCP data acquisition and combined with the fact that the field GPRS signal is relatively weak and the data is easy to lose.
Drawings
FIG. 1 is a schematic view of a flow rate acquisition and delivery method of the present invention;
FIG. 2 is a first portion of a detailed flow chart of remote terminal unit and host computer communications and related comments;
FIG. 3 is a second portion of the detailed flow of communications between the remote terminal unit and the host computer and associated comments.
Detailed Description
The invention is further described with reference to the accompanying drawings:
as shown in figure 1, the river flow velocity data acquisition and transmission method acquires flow velocity by arranging HADCP in a river, the flow velocity data is calculated by summarizing the average flow velocity of each vertical line into the average flow velocity of a cross section, the vertical line interval in a hydrological station is determined according to the importance degree of the hydrological station, the number of the hydrological stations is up to 200, and 200 vertical line flow velocity data are required in flow calculation. The HADCP acoustic flow measurement utilizes the received sound wave intensity to measure and calculate the flow velocity and the flow direction, and has the advantages of no need of sampling, no interference on a water body flow field, real-time and uninterrupted measurement and the like. The data collected by the hadp are uploaded to the remote terminal unit and sent by the remote terminal unit to the host computer of the central station through the GPRS network. In one embodiment, the remote terminal unit includes a terminal computer, a hadp controller, a GPRS module, and an antenna, the terminal computer directing the hadp controller to operate the hadp to perform flow rate measurements and receive data, and then transmit through the GPRS module and the antenna to a host computer at the central station via a GPRS network.
The hydrological station is generally located in the field, the GPRS signal is weak, the network speed is low, the HADCP needs to complete acquisition and transmission once every five minutes, wherein the acquisition takes 3 minutes, the transmission time is only 2 minutes, the original data to be transmitted is coded by adopting a PD0 protocol, and the data volume is about 5 Kbytes. To take full advantage of this 2 minute transmission time, reducing network congestion and packet loss rates, the remote terminal unit communicates with the host computer using the following method:
within 3 minutes of the flow rate data being collected by the hadp, the remote terminal unit sends heartbeat packets to the host computer for a plurality of times, the heartbeat packets being data packets of a prescribed format and data volume and being transmitted to the host computer by GPRS transmission in milliseconds after the current timing. The host computer returns the time of receiving the heartbeat packet to the remote terminal unit in millisecond unit, so that the remote terminal unit can know the time of receiving the heartbeat packet by the host computer and test the network speed of GPRS accordingly, and the size of the first data packet is determined according to the network speed at the moment and sent to the host computer. The host computer checks after receiving the first data packet, and returns the current time of receiving the data packet to the remote terminal unit in milliseconds, the remote terminal unit measures and calculates the network speed of transmitting the first data packet after receiving the feedback time, and determines the size of the second data packet as the current network speed, then sends the second data packet to the host computer, the host computer checks after receiving the feedback time and feeds back the current time in milliseconds, and the remote terminal unit tests the current network speed accordingly, determines the size of the third data packet according to the current network speed and sends the third data packet. And so on until all packets are sent in 2 minutes.
In the above process, if the host computer does not receive a data packet or receives an error data packet, the time of receiving the data packet is not transmitted to the remote terminal unit, and the remote terminal unit does not receive the feedback of the host computer within a predetermined time, the data amount of the previous data packet is reduced and transmitted.
Fig. 2 and 3 show a specific implementation flow of the method of the present invention, as shown in fig. 2 and 3, the remote end unit device is powered on and initialized, and then sends a time correction code, after time correction, it is determined whether the current time is a measurement time, if not, the measurement time is waited, when the measurement time is up, the measurement data is started by sending a command, and the hadp starts to perform measurement, and at this time, the remote end unit sends a heartbeat packet to the host computer and waits for a measurement result. When the remote terminal unit receives the measurement result and judges the authenticity of the data, if the average time consumption received by the heartbeat packet is less than or equal to 15 seconds, the first packet of data comprises 1000 bytes, the current time minute second is added, the number of millisecond pulses is recorded, the total number of data is added, the number of single packet arrangement is added, and the data is sent. If the average time taken by the heartbeat packets is more than 15 seconds and less than 20 seconds, the data of the first packet is 500 bytes, and other contents are unchanged and are sent. The host computer responds, the remote terminal unit judges that time is consumed after receiving a response report, if the response time is less than or equal to 15 seconds, a second packet is sent, 1000 bytes are sent, if the response time is more than 15 seconds, 500 bytes are sent, if the response time exceeds the preset time, for example, no response is carried out when 20 seconds are carried out, the data of the first packet is reduced to 200 bytes, and the first packet is sent again. The determination and processing before sending the third packet is similar. This allowed all data to be completed in 2 minutes. See fig. 2 and 3 for details.
Before the invention, when a GPRS network is used for transmitting flow speed data, a transmission mode of packets with equal size is adopted, if data volume transmission of about 5 Kbytes is completed within 2 minutes, generally, each packet takes 600 to 800 bytes, but in a network consumption peak period, the data packets with the size still cause blockage and data loss, and if the packet capacity is small, all data transmission of one measurement cannot be completed within 2 minutes. According to the measurement, thousands of packets of data are lost in one year when equal-capacity packets are used for transmitting data. After the method is adopted, at most a few packets are lost in one year, and the packet loss rate is less than one thousandth of that of the traditional method.
The above embodiments are only a few illustrations of the inventive concept and implementation, not limitations thereof, and the technical solutions without substantial changes are still within the scope of protection under the inventive concept.

Claims (3)

1. A river flow data collecting and transmitting method, using HADCP to collect flow data and transmit to a main computer through GPRS via a remote terminal unit, characterized in that the remote terminal unit and the main computer communicate with each other by the following method:
(a) When the HADCP collects flow rate data, the remote terminal unit tests the communication speed with the host computer in a heartbeat packet sending mode, determines the size of a first data packet according to the communication speed obtained by multiple tests and sends the first data packet, and the host computer returns the time of receiving the first data packet to the remote terminal unit;
(b) The remote terminal unit determines the communication speed according to the time when the host computer receives the last data packet, determines the size of the next data packet and sends the next data packet, and when the HADCP starts to collect the flow rate data next time, the remote terminal unit finishes sending all the flow rate data;
in the above steps (a) (b), if the host computer does not receive a data packet or receives an error data packet, the time of receiving the data packet is not transmitted to the remote terminal unit, and if the remote terminal unit does not receive the feedback of the host computer within a predetermined time, the data amount of the previous data packet is reduced and transmitted.
2. The river flow data collection and transmission method according to claim 1, wherein the heartbeat packets are data packets of a predetermined format and quantity and are transmitted to the host computer via GPRS in milliseconds at the time since the current time correction, and the host computer transmits the time of receiving the heartbeat packets or data packets back to the remote terminal unit in milliseconds.
3. A river flow data collection and transmission method according to claim 1 or 2, wherein the hadp completes collection and transmission of the flow data once in 5 minutes, wherein the time to collect flow data is not more than 3 minutes, the time to transmit the flow data is not more than 2 minutes, the amount of the flow data is not more than 5000 bytes, the size of the data packet is 1000 bytes when the time taken to transmit a heartbeat packet or data packet and receive corresponding feedback is 15 seconds or less, the size of the data packet is 500 bytes when the time taken is more than 15 seconds and less than 20 seconds, and the size of the data packet is 200 bytes when the time taken is 20 seconds.
CN202110070079.5A 2021-01-19 2021-01-19 River flow speed data acquisition and transmission method Active CN112654065B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110070079.5A CN112654065B (en) 2021-01-19 2021-01-19 River flow speed data acquisition and transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110070079.5A CN112654065B (en) 2021-01-19 2021-01-19 River flow speed data acquisition and transmission method

Publications (2)

Publication Number Publication Date
CN112654065A CN112654065A (en) 2021-04-13
CN112654065B true CN112654065B (en) 2022-10-21

Family

ID=75370575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110070079.5A Active CN112654065B (en) 2021-01-19 2021-01-19 River flow speed data acquisition and transmission method

Country Status (1)

Country Link
CN (1) CN112654065B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067791A (en) * 2012-12-11 2013-04-24 深圳市梦网科技发展有限公司 Network dynamic adaptation monitoring video transmission method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289921B (en) * 2010-06-18 2012-10-31 新华都特种电气股份有限公司 Transformer test data measurement system and measurement locating method thereof based on wireless network
CN104101728A (en) * 2014-07-23 2014-10-15 杭州电子科技大学 Optimized flow rate based automatic tidal bore arrival detection method
JP2016040857A (en) * 2014-08-12 2016-03-24 富士通株式会社 Communication device and adjusting method
CN105021843A (en) * 2015-07-28 2015-11-04 江苏中海达海洋信息技术有限公司 600kHZ broadband acoustics Doppler current profiler and realization method
CN106961473B (en) * 2017-03-03 2020-07-07 上海枫昱能源科技有限公司 High-efficiency data transmission method and system for dynamically balancing intelligent city network bandwidth
CN108168635A (en) * 2018-01-31 2018-06-15 长江水利委员会水文局 Discharge of river realtime on-line monitoring method and device
CN111132234B (en) * 2018-11-01 2023-08-04 华为终端有限公司 Data transmission method and corresponding terminal
CN111486824B (en) * 2020-04-15 2023-06-13 北京东方金炬科技有限公司 River reconnaissance equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067791A (en) * 2012-12-11 2013-04-24 深圳市梦网科技发展有限公司 Network dynamic adaptation monitoring video transmission method

Also Published As

Publication number Publication date
CN112654065A (en) 2021-04-13

Similar Documents

Publication Publication Date Title
CN104125022B (en) The method of measurement of audio transmission time delay and system
KR100378613B1 (en) Antenna and Feeder Cable Testing Apparatus and Method
CN206331577U (en) A kind of super low-power consumption remote measurement water level collection system based on LoRa technologies
RU2002111872A (en) METHOD AND DEVICE FOR PREDICTING PREFERRED TIME INTERVALS OF TRANSFER OF AN ADDITIONAL CHANNEL USING MEASUREMENTS OF POWER OF TRANSFER OF THE MAIN CHANNEL
JP2006060762A5 (en)
EP4266817A3 (en) Measuring round trip time in a mobile communication network
CN112654065B (en) River flow speed data acquisition and transmission method
CN101599821A (en) A kind of packet loss rate of tire pressure monitoring system method of measurement and device
CN106338709A (en) Intelligent meter system based on embedded platform
CN202204863U (en) Digital multimeter based on Bluetooth interface
CN110412562B (en) Health degree evaluation method for airborne distance measurement equipment
CN116540170A (en) Remote online verification system for charging pile
CN215682301U (en) NAVTEX system broadcasting efficiency detection platform based on frequency domain difference
CN203643616U (en) Monitoring device with close distance positioning and GPS positioning functions
CN112272337A (en) Water meter based on NB-IoT, data uploading method and device
CN112788643B (en) Wireless signal quality testing method
Trinder et al. Algorithms for the adaption of data rate using STANAG 5066
CN110673517A (en) FPGA and ARM-based high-speed blade tip clearance signal acquisition and processing device and method
JP4026069B2 (en) Remote monitoring system
CN204988406U (en) Fuel gas metering device and system based on power communication
CN215300928U (en) LORA system based on GNSS terminal time service technology
CN218998210U (en) Flue gas velocity monitor with data real-time transmission function
CN203192210U (en) Wireless sensor network system for online environment detection
US6618001B2 (en) Apparatus for detecting signal
CN105006127A (en) Electric quantity remote acquisition system

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
GR01 Patent grant
GR01 Patent grant