A method for uploading water conservancy and hydropower data and a data acquisition system
By adding series communication modules to the water conservancy and hydropower data acquisition system, virtual output nodes are output to control data transmission, the complex communication needs of unattended telemetry stations is solved, and flexible upload of water conservancy and hydropower data is realized, and maintenance costs and engineering are reduced. quantity.
Patent Information
- Application Number
- CN202410672386.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-12-31
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the field of automatic water conservancy and hydropower measurement and reporting, the firmware program of the data collector used by the existing unattended telemetry station cannot be modified according to communication needs, resulting in high equipment maintenance costs and large engineering volume, especially when communication needs are complex and change, professional technology is required Personnel update data transmission terminal equipment and firmware programs on site.
By adding multiple series communication modules to the data acquisition system, the data collector outputs the virtual output node according to the communication needs, controls the data transmission terminal to send the data to be uploaded to the central station, and re-outs the virtual when the data does not meet the preset communication needs. Output nodes realize data upload, avoiding the need to increase data communication terminal equipment and update firmware programs.
Without adding data communication terminal equipment and updating on-site data collector firmware programs, the complex communication needs are met, the equipment maintenance costs and engineering volume are reduced, and the flexibility and efficiency of data upload are improved.
Smart Images

Figure CN118413761B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of water conservancy and hydropower technology, and in particular to a method for uploading water conservancy and hydropower data and a data acquisition system. Background Art
[0002] At present, in the field of automatic measurement and reporting of water conservancy and hydropower, there are firmware programs for data collectors used in unmanned telemetry stations. Such data collectors generally use a single program to manage data transmission terminals. When the needs are determined, they cannot be modified. When communication needs change, professional technicians must be dispatched to the site to add data transmission terminal equipment, wire, update the data collector firmware program, or replace the data collector. In this case, the equipment maintenance cost is high and the workload is large. Summary of the invention
[0003] The embodiment of the present application provides a method for uploading water conservancy and hydropower data and a data acquisition system, so as to realize the uploading of water conservancy and hydropower data in the case of complex communication requirements when the data acquisition requirements change, without adding data communication terminal equipment and updating the firmware program of the field data collector.
[0004] A first aspect of an embodiment of the present application provides a method for uploading water conservancy and hydropower data, the data uploading method is applied to a data acquisition system, the data acquisition system at least comprising: a data collector, and a peripheral acquisition device connected to the data collector and a plurality of serially connected communication modules;
[0005] The method for uploading water conservancy and hydropower data includes:
[0006] The data collector obtains a data upload instruction, wherein the data upload instruction at least includes: a data upload requirement;
[0007] The data collector obtains the data to be uploaded from the peripheral collection device according to the data upload requirements;
[0008] The data collector outputs a virtual output node connected to a plurality of serially connected communication modules according to the data to be uploaded;
[0009] The communication module controls the data transmission terminal to send the data to be uploaded to the central station;
[0010] If the data sent by the data transmission terminal does not meet the preset communication requirements, the data collector will again output a virtual output node connected to multiple communication modules in series, and the communication module will control the data transmission terminal to send the data to be uploaded to the central station again.
[0011] In one implementation, the step of the communication module controlling the data transmission terminal device to send the data to be uploaded to the central station further includes:
[0012] The communication module converts the data to be uploaded into a data stream that can be processed by the data transmission terminal device mapped by the communication module according to the data upload requirement.
[0013] In one implementation, the data upload requirement includes at least data type, data quantity and data encoding method.
[0014] In one implementation, the preset communication requirement is: the data transmission terminal receives a communication receipt sent by the central station within a first preset time.
[0015] In one implementation, the first preset time is 10 seconds or 15 seconds;
[0016] The data sent by the data transmission terminal does not meet the preset communication requirements when: the data transmission terminal does not receive the communication receipt sent by the central station within 10 or 15 seconds.
[0017] In one implementation, if the number of times that the data sent by the data transmission terminal does not meet the preset communication requirements is less than the preset number of times, the data collector again outputs a virtual output node connected to multiple communication modules in series, and the communication module controls the data transmission terminal to send the data to be uploaded to the central station again.
[0018] In one implementation, the port attributes of the multiple serially connected communication modules are the same.
[0019] In one implementation, the data upload instruction is generated by a data collector according to a preset rule;
[0020] The preset rule is: when the data collector is in normal operation, the data collector generates a data upload instruction every second preset time.
[0021] In one implementation, the second preset time is a fixed time interval or a variable time interval.
[0022] A second aspect of an embodiment of the present application provides a data acquisition system, which includes at least: a data collector, and peripheral acquisition equipment connected to the data collector and multiple communication modules connected in series. The data acquisition system adopts a method for uploading water conservancy and hydropower data provided in the first aspect of an embodiment of the present application to realize data uploading.
[0023] An embodiment of the present application provides a method for uploading water conservancy and hydropower data and a data acquisition system. In the method for uploading water conservancy and hydropower data, after the data collector obtains the data upload instruction, the data collector obtains the data to be uploaded from the peripheral acquisition device according to the data upload requirement; then the data collector outputs a virtual output node connected to multiple communication modules in series according to the data to be uploaded; then, the communication module controls the data transmission terminal to send the data to be uploaded to the central station; finally, if the data sent by the data transmission terminal does not meet the preset communication requirement, the data collector again outputs a virtual output node connected to multiple communication modules in series, and the communication module controls the data transmission terminal to send the data to be uploaded to the central station again.
[0024] By applying the technical solution provided in the embodiment of the present application, the data communication terminal equipment is mapped into a communication module in the water conservancy and hydropower data acquisition system. By adding a communication module to the data acquisition system, the on-site communication needs are solved. Without adding data communication terminal equipment and updating the firmware program of the on-site data collector, the uploading of water conservancy and hydropower data can be realized in the case of complex communication needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0026] Figure 1 A schematic diagram of the structure of an existing unmanned telemetry station provided for this application;
[0027] Figure 2 A flowchart of a method for uploading water conservancy and hydropower data provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] In the field of automatic water conservancy and hydropower monitoring and reporting, the structure diagram of the existing unmanned telemetry station is as follows: Figure 1 As shown, the management of all peripheral acquisition devices is implemented through the firmware program on the data collector. After the program is fixed, the peripheral acquisition devices it manages are also fixed and cannot be modified. When the communication requirements change:
[0029] For example, when the SMS module (or 3G / 4G module) is used to upload water conservancy and hydropower data, the number of the target addresses (or IP addresses) of the telephone number uploaded by the SMS module (or 3G / 4G module) to the central station changes (e.g., from 1 to 2). The current solution is to add a data transmission terminal device GSM (Global System for Mobile Communications, GSM) module (or 3G / 4G module of data transmission terminal device) to the unattended telemetry station system, and update the firmware program of the data collector at the same time. This solution can also be solved by adding a GSM module of the data transmission terminal device (or 3G / 4G module of data transmission terminal device) and updating the firmware program of the data collector when the number of addresses added is 1. However, the number of additions is limited by the communication ports that the data collector can provide. Generally, the data collector has only two communication ports. Therefore, adding 1 telephone number (or IP address) can also be solved by this solution. When there is more than one target address, this method cannot be solved.
[0030] For another example, the communication channel group of the 3G / 4G module telemetry station changes, for example, from TCP (Transmission Control Protocol) or SMS to TCP+SMS / or SMS+TCP. The current solution is to add a data transmission terminal device 3G / 4G module to the unattended telemetry station system and update the firmware program of the data collector at the same time. This solution can also be solved by adding a data transmission terminal device 3G / 4G module and updating the firmware program of the data collector when there is 1 TCP channel + 1 SMS channel. The number of increases is limited by the communication ports that the data collector can provide. Generally, a data collector has only two communication ports. Therefore, adding 1 TCP+1 SMS channel can also be solved by this solution. When there are more than 2 communication targets, such as 2 TCP channels + 1 SMS channel, this method cannot be solved.
[0031] At present, in actual projects, the above two situations require professional technicians to go to the unmanned telemetry station installation site, update the firmware program of the data collector, add new data communication terminal equipment 3G / 4G module or SMS module, rewire and debug. The actual cost may be higher than the cost of a new site, and the project volume is large.
[0032] In order to realize the uploading of water conservancy and hydropower data under complex communication requirements without adding data communication terminal equipment and updating the firmware program of the on-site data collector, a first aspect of an embodiment of the present application provides a method for uploading water conservancy and hydropower data. The data uploading method is applied to a data acquisition system, and the data acquisition system at least includes: a data collector, and a peripheral acquisition device connected to the data collector and a plurality of communication modules connected in series, wherein the port attributes of the plurality of communication modules connected in series are the same.
[0033] See also Figure 2 The method for uploading water conservancy and hydropower data includes steps 210 to 250.
[0034] Step 210: The data collector obtains a data upload instruction, wherein the data upload instruction includes: a data upload type and a data upload requirement.
[0035] Among them, the data upload instruction can be sent by a remote device, or it can be issued by an operator on-site through a button or command, or the data collector can automatically generate it according to preset rules. For example, during the normal operation of the data collector, the data collector generates a data upload instruction once every second preset time. In the embodiment of the present application, the second preset time of the data collector is 5 minutes, that is, a data upload instruction is generated every 5 minutes, wherein the data upload instruction includes a data upload type and a data upload requirement, wherein the data upload requirement includes at least the data type, the number of data and the data encoding method.
[0036] It should be noted that the second preset time can be a fixed time interval or a variable time interval. For example, the second preset time can be directly set to 5 minutes. For example, considering seasonal factors, different second preset times are set in different seasons. Or, considering the difference between day and night, different second preset times are set during the day and at night. In specific circumstances, the staff can set it according to the demand data of the time collection environment.
[0037] Step 220: The data collector obtains the data to be uploaded from the peripheral collection device according to the data upload type.
[0038] The peripheral data collection equipment includes one or more of a rain sensor, a water level sensor, an artificial counter or a solar panel. In actual application, a variety of collected data can be uploaded separately or in a package and uploaded together. The specific method can be preset by the administrator.
[0039] Step 230: The data collector outputs a virtual output node connected to a plurality of serially connected communication modules according to the data to be uploaded.
[0040] Among them, the virtual output node is the virtual node between the mapping module of the data transmission terminal device and the data acquisition system. It is the channel for data transmission between the mapping module of the data acquisition system and the data transmission terminal device. It also includes the management of the physical interface connecting the actual data transmission terminal device and the data collector.
[0041] Step 240: The communication module controls the data transmission terminal to send the data to be uploaded to the central station.
[0042] Specifically, in the process of the communication module controlling the data transmission terminal device to send the data to be uploaded to the central station, the communication module needs to first convert the data to be uploaded into a data stream that can be processed by the data transmission terminal device mapped by the communication module according to the data upload requirements (including data type, data quantity and data encoding method).
[0043] Among them, according to the workflow of the data transmission terminal device preset by the communication module, the workflow is triggered by the data transmitter through the input node of the communication module. In other words, after the input node of the communication module receives the data to be uploaded, the communication module starts and controls the data transmission terminal device to start working, starts the data transmission terminal device, and sends the data to the central station. In this way, when the communication requirements are complex, the firmware program on the data collector can output multiple combined virtual output nodes to meet the complex communication requirements.
[0044] Step 250, if the data sent by the data transmission terminal does not meet the preset communication requirements, the data collector again outputs a virtual output node connected to multiple serially connected communication modules, and the communication module controls the data transmission terminal to send the data to be uploaded to the central station again.
[0045] Among them, the preset communication requirement is: the data transmission terminal receives the communication receipt sent by the central station within the first preset time; specifically, in the embodiment of the present application, the first preset time is 10 seconds or 15 seconds; the data sent by the data transmission terminal does not meet the preset communication requirement: the data transmission terminal does not receive the communication receipt sent by the central station within 10 or 15 seconds. It should be noted that when the data sent by the data transmission terminal does not meet the preset communication requirement, the data transmission terminal has received the communication receipt sent by the central station, but the receiving time is greater than or equal to 10 seconds or 15 seconds, and the communication receipt sent by the central station is not received.
[0046] An embodiment of the present application provides a method for uploading water conservancy and hydropower data. After a data collector obtains a data upload instruction, the data collector obtains the data to be uploaded from a peripheral acquisition device according to the data upload requirement; then the data collector outputs a virtual output node connected to multiple communication modules in series according to the data to be uploaded; then, the communication module controls the data transmission terminal to send the data to be uploaded to the central station; finally, if the data sent by the data transmission terminal does not meet the preset communication requirement, the data collector again outputs a virtual output node connected to multiple communication modules in series, and the communication module controls the data transmission terminal to send the data to be uploaded to the central station again.
[0047] By applying the technical solution provided in the embodiment of the present application, the data communication terminal equipment is mapped into a communication module in the water conservancy and hydropower data acquisition system. By adding a communication module to the data acquisition system, the on-site communication needs are solved. Without adding data communication terminal equipment and updating the firmware program of the on-site data collector, the uploading of water conservancy and hydropower data can be realized in the case of complex communication needs.
[0048] It should be noted that, in the actual application process, the number of virtual output nodes is determined by the project requirements. The number of virtual output nodes for different specific projects may also be different, and is set by technical personnel according to actual requirements. For example, in the embodiment of the present application, the number of virtual output nodes is 3. In this way, if the number of times that the data sent by the data transmission terminal does not meet the preset communication requirements is less than the preset number of times (3 times), the data collector will output a virtual output node connected to multiple serially connected communication modules again, and the communication module will control the data transmission terminal to send the data to be uploaded to the central station again. In other words, after sending the data to be uploaded to the central station 3 times (corresponding to the number of virtual output nodes) in succession, if no communication receipt is received within the first preset time, it is determined that the data upload itself has failed.
[0049] The technical solution provided in the embodiment of the present application solves the change of communication requirements of the data transmission terminal (including the problem of limited number of destination addresses, change of communication channels, etc.) without increasing the data transmission terminal equipment by connecting the communication modules in series. By applying the technical solution of the embodiment of the present application, the central station address (length or number) of the data transmission terminal equipment can be customized and managed as needed.
[0050] In order to further illustrate the technical solution of the present application, the following is a detailed description of the situation where the communication requirements are: the number of destination addresses is limited and the communication channel changes.
[0051] Take multiple IP / SMS numbers as an example:
[0052] In a water regime telemetry equipment installation project, in response to the communication needs of 4 IP addresses, the original unattended telemetry station had only one 4G data transmission terminal, which could no longer meet the data upload needs. By using a communication module that can be connected in series to increase the IP address, only one 4G data transmission terminal needs to be installed on the unattended telemetry station, and 4 4G modules are set in the control system. These 4G modules only have different server number settings, and other settings are the same. When the server number is a mobile phone number, only 4 GSM SMS modules need to be set.
[0053] When the data acquisition system is running, the data collector pushes the prepared collected data to the input port of the communication module through output port 1 every 5 minutes, and starts the communication module to start working. The communication module starts the 4G data transmission terminal to start sending data, and the data is uploaded to the central station through the 4G data transmission terminal. At the same time, the 4G data transmission terminal is controlled to monitor IP data. If the receipt returned by the central station is received within 15S, it is considered that the transmission is successful, the channel packet count is increased by 1, the IP1 address sending process is exited, and the IP2 address sending is started; if the receipt from the central station is not received within 15S, it is considered that the transmission failed, and the channel packet count remains unchanged at this time, the IP1 address sending process is exited, and the IP2 address sending is started; the data collector pushes the prepared data to the input port of the communication module through output port 2, and starts the communication module to start working. Its working process is the same as the IP1 address sending process. The IP3 address and IP4 address sending process are the same as the IP1 and IP2 address sending process. After all data sending processes are completed, the data collector exits the data upload process and enters the next working cycle.
[0054] Take various channel combinations as examples:
[0055] In a certain project, it involves the transformation of old and new systems. In order to ensure the integrity of the data, multi-server and multi-channel reception will often occur. The central station of the new system uses the 4G network, and the central station of the old system requires SMS data.
[0056] In previous solutions, a new unmanned telemetry station is usually built at a new site, while the old unmanned telemetry station remains in operation. After all the unmanned telemetry stations in the entire project are built, the old unmanned telemetry station is dismantled. By adopting the technical solution of this application, the unmanned telemetry station at the old site can be directly replaced with the unmanned telemetry station built by the data collector provided in the embodiment of this application, using a 4G data transmission terminal device, and the communication module is connected in series to form a line of sight TCP+SMS combination channel.
[0057] Two communication modules are set in the data acquisition system to control the data transmission terminal respectively, and realize single signal transmission respectively. One uses the data transmission terminal to transmit TCP data, and the other data transmission terminal transmits SMS data. The settings of the two modules on the server number are different, and the other settings are the same.
[0058] When the data acquisition system is running, the data collector pushes the data collected in time or in real time to the input node of the communication module connected to output port 1 according to business needs, and starts the communication module to send data. The data is uploaded to the central station through the data transmission terminal, and the IP port connected to the central station is monitored at the same time. If the receipt data returned by the central station is received within 15S, it is considered that the transmission is successful, the channel packet count is +1, the transmission process is exited, and the output port 2 transmission process is started; if the receipt data from the central station is not received within 15S, the data transmission terminal is restarted to resend the data. Only when the transmission fails for three consecutive times, the transmission is considered to have failed, the channel packet count remains unchanged, the transmission process is exited, and the output port 2 transmission process is started;
[0059] The data collector pushes the prepared sending data to the input node of the communication module connected to output port 2 through output port 2, and starts the communication module to start sending data. The communication module controls the data transmission terminal to exit the TCP network mode and enter the SMS mode. The communication module controls the data transmission terminal to send data to the central station and monitors the communication port of the data transmission terminal at the same time. When the module is received within 10S, it is considered that the data upload is successful, the number of channel packets +1, and the module data transmission terminal is controlled to exit the SMS mode and enter the network mode. If the module upload success information is not received within 10S or the upload failure information is received, the data upload fails and the data is resent. If the transmission fails for three consecutive times, it is considered that the data upload has failed, the number of channel packets remains unchanged, and the data transmission terminal is controlled to exit the SMS mode and enter the network mode, exit the entire data sending process, and enter the next working cycle of the data acquisition system.
[0060] A second aspect of an embodiment of the present application provides a data acquisition system, which includes at least: a data collector, and peripheral acquisition equipment connected to the data collector and multiple communication modules connected in series. The data acquisition system adopts a method for uploading water conservancy and hydropower data provided in the first aspect of an embodiment of the present application to realize data uploading.
[0061] An embodiment of the present application provides a method for uploading water conservancy and hydropower data and a data acquisition system. In the method for uploading water conservancy and hydropower data, after the data collector obtains the data upload instruction, the data collector obtains the data to be uploaded from the peripheral acquisition device according to the data upload requirement; then the data collector outputs a virtual output node connected to multiple communication modules in series according to the data to be uploaded; then, the communication module controls the data transmission terminal to send the data to be uploaded to the central station; finally, if the data sent by the data transmission terminal does not meet the preset communication requirement, the data collector again outputs a virtual output node connected to multiple communication modules in series, and the communication module controls the data transmission terminal to send the data to be uploaded to the central station again.
[0062] By applying the technical solution provided in the embodiment of the present application, the data communication terminal equipment is mapped into a communication module in the water conservancy and hydropower data acquisition system. By adding a communication module to the data acquisition system, the on-site communication needs are solved. Without adding data communication terminal equipment and updating the firmware program of the on-site data collector, the uploading of water conservancy and hydropower data can be realized in the case of complex communication needs.
[0063] The above specific implementation methods further illustrate the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above are only specific implementation methods of the present application and are not used to limit the protection scope of the present application. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present application should be included in the protection scope of the present application.
Claims
1. A method for uploading water conservancy and hydropower data, characterized in that: The data uploading method is applied to a data acquisition system, which at least includes: a data acquisition device, and a peripheral acquisition device connected to the data acquisition device and a plurality of serially connected communication modules, wherein the port attributes of the plurality of serially connected communication modules are the same; The method for uploading water conservancy and hydropower data includes: The data collector obtains a data upload instruction, wherein the data upload instruction at least includes: a data upload requirement; The data collector obtains the data to be uploaded from the peripheral collection device according to the data upload requirements; The data collector outputs a virtual output node connected to multiple serially connected communication modules according to the data to be uploaded; The communication module controls the data transmission terminal to send the data to be uploaded to the central station; If the data uploaded by the data transmission terminal does not meet the preset communication requirements, the data collector will again output a virtual output node connected to multiple serially connected communication modules, and the communication module will control the data transmission terminal to send the data to be uploaded to the central station again; The method for uploading water conservancy and hydropower data further includes: if the number of times that the data sent by the data transmission terminal does not meet the preset communication requirements is less than a preset number of times, the data collector again outputs a virtual output node connected to a plurality of serially connected communication modules, and the communication module controls the data transmission terminal to send the data to be uploaded to the central station again, and the preset number of times is the number of virtual output nodes; The step in which the communication module controls the data transmission terminal to send the data to be uploaded to the central station also includes: the communication module converts the data to be uploaded into a data stream that can be processed by the data transmission terminal mapped by the communication module according to the data upload requirements, and the data upload requirements at least include data type, data quantity and data encoding method.
2. A method for uploading water conservancy and hydropower data according to claim 1, characterized in that: The preset communication requirement is that the data transmission terminal receives a communication receipt sent by the central station within a first preset time.
3. A method for uploading water conservancy and hydropower data according to claim 2, characterized in that: The first preset time is 10 seconds or 15 seconds; The data sent by the data transmission terminal does not meet the preset communication requirements when: the data transmission terminal does not receive the communication receipt sent by the central station within 10 or 15 seconds.
4. The method for uploading water conservancy and hydropower data according to claim 1, characterized in that: The data upload instruction is generated by the data collector according to preset rules; The preset rule is: when the data collector is in normal operation, the data collector generates a data upload instruction every second preset time.
5. A method for uploading water conservancy and hydropower data according to claim 4, characterized in that: The second preset time is a fixed time interval or a variable time interval.
6. A data acquisition system, characterized in that: The data acquisition system at least includes: a data collector, and peripheral acquisition equipment connected to the data collector and multiple communication modules connected in series. The data acquisition system adopts a method for uploading water conservancy and hydropower data described in any one of claims 1-5 to realize data uploading.
Citation Information
Patent Citations
Multi-information-source water regime telemetering system
CN112684765A
Data acquisition method and device, electronic equipment and computer readable storage medium
CN115278401A
Rainfall telemetering system capable of forecasting adjacent rainfall
CN220650920U
