CN116208530A - Water conservancy monitoring transparent transmission equipment testing method, device, equipment and storage medium - Google Patents

Water conservancy monitoring transparent transmission equipment testing method, device, equipment and storage medium Download PDF

Info

Publication number
CN116208530A
CN116208530A CN202310055716.0A CN202310055716A CN116208530A CN 116208530 A CN116208530 A CN 116208530A CN 202310055716 A CN202310055716 A CN 202310055716A CN 116208530 A CN116208530 A CN 116208530A
Authority
CN
China
Prior art keywords
data
equipment
determining
time information
transparent transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310055716.0A
Other languages
Chinese (zh)
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.)
Shanghai Jinduo Yuchen Water Environment Engineering Co ltd
Original Assignee
Shanghai Jinduo Yuchen Water Environment Engineering 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 Shanghai Jinduo Yuchen Water Environment Engineering Co ltd filed Critical Shanghai Jinduo Yuchen Water Environment Engineering Co ltd
Priority to CN202310055716.0A priority Critical patent/CN116208530A/en
Publication of CN116208530A publication Critical patent/CN116208530A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0002Serial port, e.g. RS232C

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

The invention belongs to the technical field of water conservancy monitoring, and discloses a method, a device and equipment for testing transmission equipment for water conservancy monitoring and a storage medium. The method comprises the following steps: testing framing time information and package connection time information of each to-be-tested transparent transmission device for water conservancy monitoring according to the test configuration information; determining a primary screening qualified device conforming to a serial port framing mechanism from to-be-tested transparent transmission devices according to framing time information and package connection time information; collecting water body collecting data fed back by all primary screening qualified equipment; and determining that the data distortion does not occur from the prescreening qualified equipment according to the water body acquisition data. Through the mode, verification of a serial port framing mechanism of the transparent transmission equipment for water conservancy monitoring is automatically completed without manual operation, meanwhile, testing of data distortion of the transparent transmission equipment for water conservancy monitoring is completed, and finally, equipment which is qualified in the serial port framing mechanism and has no data distortion is obtained through screening, so that testing efficiency and accuracy are improved, and a plurality of test items are completed simultaneously.

Description

Water conservancy monitoring transparent transmission equipment testing method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of water conservancy monitoring, in particular to a method, a device and equipment for testing transmission equipment for water conservancy monitoring and a storage medium.
Background
The transparent transmission equipment has the characteristics of direct data transmission and self structure capable of keeping original data, a factory can test all transparent transmission equipment when leaving a factory, but the transparent transmission equipment cannot be monitored in real time in the use process, the conventional test mode is operated manually, the manual test efficiency is low, the problem that the test result error is large due to inaccurate interval time when the manual serial port debugging assistant sends data exists, and the problem that the test efficiency and the intelligent degree of the conventional transparent transmission equipment test method are low. For the transparent transmission equipment for water conservancy monitoring, the authenticity and the correctness of the data are ensured, and no accurate and effective method for verifying the serial port mechanism of the data of the transparent transmission equipment for water conservancy monitoring and testing the authenticity of the data exists at present.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a method, a device, equipment and a storage medium for testing transmission equipment for water conservancy monitoring, and aims to solve the technical problems that manual setting and operation are not convenient and accurate enough in the prior art for testing the transmission equipment for water conservancy monitoring.
In order to achieve the above purpose, the invention provides a method for testing a transparent transmission device for water conservancy monitoring, which comprises the following steps:
testing framing time information and package connection time information of each to-be-tested transparent transmission device for water conservancy monitoring according to the test configuration information;
determining a primary screening qualified device conforming to a serial port framing mechanism from the to-be-tested transparent transmission devices according to the framing time information and the packet connection time information;
collecting water body collecting data fed back by all primary screening qualified equipment;
and determining that the test passing equipment without data distortion is in the primary screening qualified equipment according to the water body acquisition data.
Optionally, the testing framing time information and package connection time information of each to-be-tested transparent transmission device monitored by the water conservancy of the user according to the testing configuration information includes:
transmitting test data with preset byte length to each to-be-tested transparent transmission device according to the test configuration information;
and determining framing time information and packet connection time information of each to-be-tested transparent transmission device according to feedback test data fed back by each to-be-tested transparent transmission device.
Optionally, the determining framing time information and packet connection time information of each to-be-tested transparent transmission device according to feedback test data fed back by each to-be-tested transparent transmission device includes:
determining the feedback byte length of each to-be-tested transparent transmission device according to the feedback test data;
comparing the feedback byte length with the preset byte length, and determining the actual framing time and the actual packet connection time of each transparent transmission device to be tested according to the comparison result;
and determining framing time information and packet connection time information of each to-be-tested transparent transmission device according to the actual framing time and the actual packet connection time.
Optionally, the determining, according to the framing time information and the packet connection time information, a prescreening qualified device conforming to a serial port framing mechanism from the to-be-tested transparent transmission devices includes:
determining framing non-result equipment in each to-be-tested transparent transmission equipment according to the framing time information;
determining continuous packet non-result equipment in each to-be-tested transparent transmission equipment according to the continuous packet time information;
and eliminating the framing non-result equipment and the continuous packet non-result equipment from the to-be-tested transparent transmission equipment to obtain the primary screening qualified equipment conforming to the serial port framing mechanism.
Optionally, the test passing device for determining that no data distortion occurs in the prescreening passing device according to the water body acquired data comprises:
acquiring historical water conservancy data of all primary screening qualified equipment;
determining comparative water conservancy data of the same data type corresponding to the water body acquisition data according to the historical water conservancy data;
and determining that the data distortion does not occur in the primary screening qualified equipment according to the comparison water conservancy data and the water body acquisition data.
Optionally, the test passing device for determining that no data distortion occurs in the preliminary screening qualified device according to the comparative water conservancy data and the water body acquisition data comprises:
generating a comparison data change trend curve according to the comparison water conservancy data;
generating an acquisition data change trend curve according to the water body acquisition data;
fitting the comparison data change trend curve and the collected data change trend curve to obtain a fitted curve graph;
determining an abnormal data curve segment according to the fitting curve graph;
determining an abnormal equipment type corresponding to the abnormal data curve segment;
and determining the test passing equipment without data distortion from the prescreening qualified equipment according to the abnormal equipment type.
Optionally, the determining, according to the abnormal equipment type, that no data distortion occurs in the prescreening qualified equipment includes:
determining data abnormal equipment according to the abnormal equipment type;
acquiring control data acquired by the same type of equipment in the same water area of the data abnormal equipment;
comparing the comparison data with abnormal data corresponding to the data abnormal equipment to obtain data difference information;
and when the data difference information meets the data distortion condition, removing the data abnormal equipment from the primary screening qualified equipment to obtain test passing equipment without data distortion.
In addition, in order to achieve the above purpose, the invention also provides a hydraulic monitoring transparent transmission equipment testing device, which comprises:
the serial port testing module is used for testing framing time information and package connection time information of each to-be-tested transparent transmission device for water conservancy monitoring according to the testing configuration information;
the equipment primary screening module is used for determining primary screening qualified equipment conforming to a serial port framing mechanism from the to-be-tested transparent transmission equipment according to the framing time information and the continuous package time information;
the data acquisition module is used for acquiring water body acquisition data fed back by each primary screening qualified device;
and the equipment testing module is used for determining that the data distortion does not occur in the primary screening qualified equipment according to the water body acquisition data.
In addition, in order to achieve the above purpose, the present invention further provides a hydraulic monitoring transmission equipment testing device, where the hydraulic monitoring transmission equipment testing device includes: the hydraulic monitoring transmission equipment test program is configured to realize the steps of the hydraulic monitoring transmission equipment test method.
In addition, in order to achieve the above object, the present invention further provides a storage medium, on which a hydraulic monitoring transmission equipment test program is stored, where the hydraulic monitoring transmission equipment test program, when executed by a processor, implements the steps of the hydraulic monitoring transmission equipment test method as described above.
According to the invention, framing time information and package connection time information of each to-be-tested transparent transmission device for water conservancy monitoring are tested according to the test configuration information; determining a primary screening qualified device conforming to a serial port framing mechanism from the to-be-tested transparent transmission devices according to the framing time information and the packet connection time information; collecting water body collecting data fed back by all primary screening qualified equipment; and determining that the test passing equipment without data distortion is in the primary screening qualified equipment according to the water body acquisition data. By the method, the serial port mechanism of each to-be-tested transmission device of the water conservancy monitoring is automatically tested according to the pre-configured test configuration information, then the water body acquisition data acquired by the primary screening qualified device is acquired, whether the data is distorted or not is verified on the water body acquisition data, verification of the serial port framing mechanism of the transmission device for the water conservancy monitoring is automatically completed without manual work, meanwhile, the data distortion of the transmission device for the water conservancy monitoring is tested, finally, the device which is qualified in the serial port framing mechanism and has no data distortion is obtained through screening, the testing efficiency and accuracy are improved, and a plurality of test items are completed simultaneously.
Drawings
FIG. 1 is a schematic structural diagram of a transmission equipment test device for hydraulic monitoring of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of a method for testing a transparent transmission device for water conservancy monitoring according to the present invention;
FIG. 3 is a schematic flow chart of a second embodiment of a method for testing a transparent transmission device for water conservancy monitoring according to the present invention;
fig. 4 is a block diagram of a first embodiment of a test device for a transparent transmission device for water conservancy monitoring according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a transmission equipment test device for hydraulic monitoring of a hardware operation environment according to an embodiment of the present invention.
As shown in fig. 1, the hydraulic monitoring transparent transmission equipment testing device may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) Memory or a stable nonvolatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the configuration shown in fig. 1 is not limiting of the transmission device testing apparatus for hydraulic monitoring and may include more or fewer components than shown, or certain components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include an operating system, a network communication module, a user interface module, and a transmission device test program for water conservancy monitoring.
In the transmission equipment test equipment for water conservancy monitoring shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the hydraulic monitoring transmission equipment test equipment can be arranged in the hydraulic monitoring transmission equipment test equipment, and the hydraulic monitoring transmission equipment test equipment invokes a hydraulic monitoring transmission equipment test program stored in the memory 1005 through the processor 1001 and executes the hydraulic monitoring transmission equipment test method provided by the embodiment of the invention.
The embodiment of the invention provides a method for testing transmission equipment for water conservancy monitoring, and referring to fig. 2, fig. 2 is a flow chart of a first embodiment of the method for testing transmission equipment for water conservancy monitoring.
In this embodiment, the method for testing the transmission equipment for water conservancy monitoring includes the following steps:
step S10: and testing framing time information and package connection time information of each to-be-tested transparent transmission device for water conservancy monitoring according to the test configuration information.
It should be noted that, the execution body of the embodiment is a server, mainly a server that receives data sent by the transparent transmission device, and may be an entity server, a cloud server, or other devices that can implement this function, which is not limited in this embodiment.
It should be understood that the test of the serial port framing mechanism of the transparent transmission equipment is remained in the manual configuration test at present, but the efficiency of such a test mode is low and the accuracy is not high, and whether the data uploaded by each equipment is distorted or not cannot be verified after the test of the serial port framing mechanism is completed.
In a specific implementation, the byte length, the baud rate, the preset byte length, the preset framing time and the preset packet connection time of the test data set by the user are specifically defined in the test configuration information.
It should be noted that the framing time information and the packet connection time information refer to package information of actual framing time and actual packet connection time of each to-be-tested transparent transmission device.
Further, in order to accurately test the framing time information and the continuous packet time information of each to-be-tested transparent transmission device, step S10 includes: transmitting test data with preset byte length to each to-be-tested transparent transmission device according to the test configuration information; and determining framing time information and packet connection time information of each to-be-tested transparent transmission device according to feedback test data fed back by each to-be-tested transparent transmission device.
It should be understood that, sending test data with a preset byte length to each to-be-tested transparent transmission device according to the test configuration information refers to: and sending test data with preset byte length and specified baud rate to each to-be-tested transparent transmission device according to the test configuration information, and sending the test data once every preset interval time. When each to-be-tested transparent transmission device receives test data, the test data are fed back, so that the actual framing time and the actual packet connection time can be determined, and specifically, when the data interval time received by the serial port of the to-be-tested transparent transmission device is more than the framing time, the transparent transmission device packages the data before the interval time for feedback; when the data interval time received by the serial port is less than the framing time, the data of two packets before and after the interval time are packed into one packet until the byte length of the buffer data is more than or equal to the maximum transmission buffer byte length of the transparent transmission device, the data of the maximum transmission buffer byte length is packed for feedback, or the interval time with the data of the next packet is more than the framing time, the whole packet of data is packed for feedback.
By the method, framing time information and continuous package time information of each to-be-tested transparent transmission device are calculated by sending test data to each to-be-tested transparent transmission device and according to the received feedback test data.
Further, in order to accurately calculate the actual framing time and the actual packing time of each to-be-tested transparent transmission device, the step of determining the framing time information and the continuous packing time information of each to-be-tested transparent transmission device according to the feedback test data fed back by each to-be-tested transparent transmission device includes: determining the feedback byte length of each to-be-tested transparent transmission device according to the feedback test data; comparing the feedback byte length with the preset byte length, and determining the actual framing time and the actual packet connection time of each transparent transmission device to be tested according to the comparison result; and determining framing time information and packet connection time information of each to-be-tested transparent transmission device according to the actual framing time and the actual packet connection time.
In a specific implementation, after feedback test data is received, the feedback byte length of the feedback test data of each to-be-tested transparent transmission device is determined according to the feedback test data.
It should be noted that, after determining the feedback byte length of each to-be-tested transparent transmission device, comparing the feedback byte length with the preset byte length, so as to determine the actual framing time and the actual packet connection time of each to-be-tested transparent transmission device. Specifically, if the feedback byte length of the feedback test data returned by the to-be-tested transparent transmission equipment each time is the preset byte length within the preset test duration, the actual framing time of the to-be-tested transparent transmission equipment is the preset interval time; if the feedback byte length of the feedback test data returned by the transparent transmission equipment to be tested is not the preset byte length within the preset test duration, the first transmission interval time is added with the preset unit time, and then the test data is transmitted to the transparent transmission equipment; and when the preset interval time exceeds an interval time threshold, the actual framing time is no result. The preset unit time is a unit accumulated value of a preset interval time preset by a user and changed each time, and may be any value, which is not limited in this embodiment.
It should be understood that if the feedback byte length of the feedback test data returned by the to-be-tested transparent transmission device except the last time is the preset byte length within the preset test duration, the actual framing time of the to-be-tested transparent transmission device is the preset interval time; if the feedback byte length of the feedback test data returned by the to-be-tested transparent transmission equipment except the last one in turn is not the preset byte length within the preset test duration, subtracting the preset unit time from the first transmission interval time, and then transmitting the test data to the transparent transmission equipment; and when the preset interval time exceeds an interval time threshold, the actual continuous package time is no result.
By the method, accurate calculation and testing are realized, and the actual framing time and the actual package connection time of each to-be-tested transparent transmission device are determined.
Step S20: and determining the primary screening qualified equipment conforming to a serial port framing mechanism from the to-be-tested transparent transmission equipment according to the framing time information and the packet connection time information.
In a specific implementation, after the framing time information and the packet connection time information are determined, determining the test disqualification equipment to be rejected according to the framing time information and the packet connection time information.
Further, in order to determine the prescreening qualified device conforming to the serial port framing mechanism, step S20 includes: determining framing non-result equipment in each to-be-tested transparent transmission equipment according to the framing time information; determining continuous packet non-result equipment in each to-be-tested transparent transmission equipment according to the continuous packet time information; and eliminating the framing non-result equipment and the continuous packet non-result equipment from the to-be-tested transparent transmission equipment to obtain the primary screening qualified equipment conforming to the serial port framing mechanism.
It should be noted that, first, according to the framing time information, determining that the actual framing time of each to-be-tested transparent transmission device is a device without result, and using the device as the framing device without result. And then determining that the actual continuous package time in each to-be-tested transparent transmission device is the device without the result according to the continuous package time information, and taking the device without the result as the continuous package. And finally, eliminating the framing non-result equipment and the continuous packet non-result equipment in all the to-be-tested transparent transmission equipment, and finally screening the rest equipment to obtain the primary screening qualified equipment conforming to the serial port framing mechanism.
By the method, the device to be tested is accurately subjected to preliminary screening, the devices which do not accord with the serial port framing mechanism are removed, and the devices which pass the serial port framing mechanism test remain.
Step S30: and collecting water body collecting data fed back by all the primary screening qualified equipment.
It should be noted that, the water body collection data refers to water body data collected by each primary screening qualified device itself or a sensor corresponding to each primary screening qualified device, for example: water level, flow rate, water composition, etc.
Step S40: and determining that the test passing equipment without data distortion is in the primary screening qualified equipment according to the water body acquisition data.
It should be understood that after the water body acquisition data is acquired, the water body acquisition data is compared with the historical water conservancy data and then is compared with the data of the same data type, so that whether the condition of data distortion occurs in the primary screening qualified equipment is judged.
According to the embodiment, framing time information and package connection time information of each to-be-tested transparent transmission device for water conservancy monitoring are tested according to the test configuration information; determining a primary screening qualified device conforming to a serial port framing mechanism from the to-be-tested transparent transmission devices according to the framing time information and the packet connection time information; collecting water body collecting data fed back by all primary screening qualified equipment; and determining that the test passing equipment without data distortion is in the primary screening qualified equipment according to the water body acquisition data. By the method, the serial port mechanism of each to-be-tested transmission device of the water conservancy monitoring is automatically tested according to the pre-configured test configuration information, then the water body acquisition data acquired by the primary screening qualified device is acquired, whether the data is distorted or not is verified on the water body acquisition data, verification of the serial port framing mechanism of the transmission device for the water conservancy monitoring is automatically completed without manual work, meanwhile, the data distortion of the transmission device for the water conservancy monitoring is tested, finally, the device which is qualified in the serial port framing mechanism and has no data distortion is obtained through screening, the testing efficiency and accuracy are improved, and a plurality of test items are completed simultaneously.
Referring to fig. 3, fig. 3 is a schematic flow chart of a second embodiment of a method for testing a transmission device for water conservancy monitoring according to the present invention.
Based on the above first embodiment, the method for testing a transparent transmission device for water conservancy monitoring according to this embodiment includes, in step S40:
step S401: and acquiring historical water conservancy data of all the primary screening qualified equipment.
It should be noted that, the historical water conservancy data includes collected data of all the qualified equipment for preliminary screening, which is uploaded and stored in the server, and also includes collected data of the same type of the qualified equipment for preliminary screening or equipment for monitoring different positions of the same water body.
Step S402: and determining the comparison water conservancy data of the same data type corresponding to the water body acquisition data according to the historical water conservancy data.
It should be understood that, after the historical water conservancy data is obtained, the data types corresponding to the water body collected data are determined first, and then the data with the same data type as the water body collected data in the historical water conservancy data are extracted for comparison to be used as comparison water conservancy data. Wherein, the data types include: water conservation related data such as water level data, flow rate data, composition data, color data, transparency data, flow direction data and the like.
Step S403: and determining that the data distortion does not occur in the primary screening qualified equipment according to the comparison water conservancy data and the water body acquisition data.
In specific implementation, after the comparison water conservancy data are determined, curve drawing and fitting are carried out on the comparison water conservancy data and the water body acquisition data, so that abnormal data can be compared and determined, corresponding equipment is determined according to the abnormal data, and the test passing equipment without data distortion is determined from the primary screening qualified equipment according to the type of the abnormal equipment.
Further, in order to accurately determine the abnormal data and determine the test passing device, step S403 includes: generating a comparison data change trend curve according to the comparison water conservancy data; generating an acquisition data change trend curve according to the water body acquisition data; fitting the comparison data change trend curve and the collected data change trend curve to obtain a fitted curve graph; determining an abnormal data curve segment according to the fitting curve graph; determining an abnormal equipment type corresponding to the abnormal data curve segment; and determining the test passing equipment without data distortion from the prescreening qualified equipment according to the abnormal equipment type.
It should be noted that, generating a comparison data change trend curve according to the comparison water conservancy data, and generating an acquisition data change trend curve according to the water body acquisition data refers to: and generating curves of each data along with time change according to the comparison water conservancy data and the water body acquisition data respectively, and finally obtaining a comparison data change trend curve and an acquisition data change trend curve.
It should be understood that, after the comparison data change trend curve and the collected data change trend curve are obtained, the comparison data change trend curve and the collected data change trend curve are brought into the same coordinate system, so that curve fitting is completed, and a fitting curve graph is obtained. And then analyzing the fitted curve graph, selecting a point position, on which the distance difference value between the collected data change trend curve and the contrast data change trend curve is larger than a distance threshold value, as an abnormal point position, and then taking a curve segment at the joint of the point positions before and after the abnormal point position as an abnormal data curve segment.
In a specific implementation, after determining the abnormal data curve segment, determining the device type of the device from which the data corresponding to the abnormal data curve segment is derived as the abnormal device type.
It should be noted that, determining that no data distortion occurs in the prescreening qualified device according to the abnormal device type refers to: firstly, determining data abnormal equipment, then acquiring control data acquired by equipment of the same type in the same water area of the data abnormal equipment, comparing the control data with the abnormal data, judging whether data distortion exists or not according to final data difference information, and finally determining that the test passes through the equipment.
Further, in order to compare the abnormal data with the data collected by other devices to determine whether the data distortion occurs, determining, according to the abnormal device type, that the data distortion does not occur in the prescreening qualified device passes through the device, including: determining data abnormal equipment according to the abnormal equipment type; acquiring control data acquired by the same type of equipment in the same water area of the data abnormal equipment; comparing the comparison data with abnormal data corresponding to the data abnormal equipment to obtain data difference information; and when the data difference information meets the data distortion condition, removing the data abnormal equipment from the primary screening qualified equipment to obtain test passing equipment without data distortion.
It should be understood that, first, the data anomaly device from which the data originates is determined according to the anomaly device type, and after the data anomaly device is determined, the comparison data collected by the device of the same type as the data anomaly device monitoring the same water area is obtained. For example: when the data abnormality equipment is water level equipment, acquiring data acquired by the water level equipment monitoring the same water area as the data abnormality equipment as comparison data.
In specific implementation, after the comparison data is determined, the comparison data is compared with the abnormal data, so that the difference between the two groups of data is determined, finally, the data difference information is compared with the data distortion condition, so that whether the data distortion occurs in the data abnormal equipment is determined, and when the data distortion occurs in the data abnormal equipment, the data abnormal equipment is removed from the primary screening qualified equipment, so that the test passing equipment without the occurrence of data is obtained. Specifically, the data distortion condition includes two conditions: 1. the data difference value of the control data and the abnormal data in the data difference information under the same acquisition time exceeds a preset difference value threshold; 2. the average value of the data difference values of the control data and the abnormal data under the same continuous target times of acquisition time is larger than a preset average difference value threshold value. The preset difference threshold and the average difference threshold are preset values which are different based on different data types, and the embodiment is not limited to the preset values, and the continuous target number is any number greater than 1.
By the method, the data comparison between the data abnormal equipment and the equipment collected by the same type of equipment in the same water area is realized, so that whether the data is distorted or not and whether the data is wrong are verified secondarily.
According to the embodiment, historical water conservancy data of all the primary screening qualified equipment are obtained; determining comparative water conservancy data of the same data type corresponding to the water body acquisition data according to the historical water conservancy data; and determining that the data distortion does not occur in the primary screening qualified equipment according to the comparison water conservancy data and the water body acquisition data. By the method, comparison between the water body acquisition data and the historical water conservancy data is realized, so that whether obvious data abnormality exists in the water body acquisition data or not is accurately determined, whether equipment with data distortion exists or not can be accurately judged, and finally equipment meeting a serial port framing mechanism and not having data distortion is screened out from primary screening qualified equipment and used as test passing equipment.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium is stored with a hydraulic monitoring transmission equipment test program, and the hydraulic monitoring transmission equipment test program realizes the steps of the hydraulic monitoring transmission equipment test method when being executed by a processor.
The storage medium adopts all the technical solutions of all the embodiments, so that the storage medium has at least all the beneficial effects brought by the technical solutions of the embodiments, and is not described in detail herein.
Referring to fig. 4, fig. 4 is a block diagram of a first embodiment of a test device for a transparent transmission device for water conservancy monitoring according to the present invention.
As shown in fig. 4, a device for testing a transparent transmission device for water conservancy monitoring according to an embodiment of the present invention includes:
the serial port testing module 10 is configured to test framing time information and package connection time information of each to-be-tested transparent transmission device for water conservancy monitoring according to the testing configuration information.
And the device primary screening module 20 is used for determining primary screening qualified devices conforming to a serial port framing mechanism from the to-be-tested transparent transmission devices according to the framing time information and the continuous package time information.
The data acquisition module 30 is used for acquiring water body acquisition data fed back by each primary screening qualified device.
And the equipment testing module 40 is used for determining that the data distortion does not occur in the test passing equipment from the primary screening qualified equipment according to the water body acquisition data.
According to the embodiment, framing time information and package connection time information of each to-be-tested transparent transmission device for water conservancy monitoring are tested according to the test configuration information; determining a primary screening qualified device conforming to a serial port framing mechanism from the to-be-tested transparent transmission devices according to the framing time information and the packet connection time information; collecting water body collecting data fed back by all primary screening qualified equipment; and determining that the test passing equipment without data distortion is in the primary screening qualified equipment according to the water body acquisition data. By the method, the serial port mechanism of each to-be-tested transmission device of the water conservancy monitoring is automatically tested according to the pre-configured test configuration information, then the water body acquisition data acquired by the primary screening qualified device is acquired, whether the data is distorted or not is verified on the water body acquisition data, verification of the serial port framing mechanism of the transmission device for the water conservancy monitoring is automatically completed without manual work, meanwhile, the data distortion of the transmission device for the water conservancy monitoring is tested, finally, the device which is qualified in the serial port framing mechanism and has no data distortion is obtained through screening, the testing efficiency and accuracy are improved, and a plurality of test items are completed simultaneously.
In an embodiment, the serial port testing module 10 is further configured to send test data with a preset byte length to each to-be-tested transparent transmission device according to the test configuration information; and determining framing time information and packet connection time information of each to-be-tested transparent transmission device according to feedback test data fed back by each to-be-tested transparent transmission device.
In an embodiment, the serial port testing module 10 is further configured to determine a feedback byte length of each transparent device to be tested according to the feedback test data; comparing the feedback byte length with the preset byte length, and determining the actual framing time and the actual packet connection time of each transparent transmission device to be tested according to the comparison result; and determining framing time information and packet connection time information of each to-be-tested transparent transmission device according to the actual framing time and the actual packet connection time.
In an embodiment, the device prescreening module 20 is further configured to determine a framing non-result device in each to-be-tested transparent transmission device according to the framing time information; determining continuous packet non-result equipment in each to-be-tested transparent transmission equipment according to the continuous packet time information; and eliminating the framing non-result equipment and the continuous packet non-result equipment from the to-be-tested transparent transmission equipment to obtain the primary screening qualified equipment conforming to the serial port framing mechanism.
In one embodiment, the device testing module 40 is further configured to obtain historical water conservancy data of each of the primary screening qualified devices; determining comparative water conservancy data of the same data type corresponding to the water body acquisition data according to the historical water conservancy data; and determining that the data distortion does not occur in the primary screening qualified equipment according to the comparison water conservancy data and the water body acquisition data.
In an embodiment, the device testing module 40 is further configured to generate a comparative data trend curve according to the comparative water conservancy data; generating an acquisition data change trend curve according to the water body acquisition data; fitting the comparison data change trend curve and the collected data change trend curve to obtain a fitted curve graph; determining an abnormal data curve segment according to the fitting curve graph; determining an abnormal equipment type corresponding to the abnormal data curve segment; and determining the test passing equipment without data distortion from the prescreening qualified equipment according to the abnormal equipment type.
In one embodiment, the device testing module 40 is further configured to determine a data exception device according to the exception device type; acquiring control data acquired by the same type of equipment in the same water area of the data abnormal equipment; comparing the comparison data with abnormal data corresponding to the data abnormal equipment to obtain data difference information; and when the data difference information meets the data distortion condition, removing the data abnormal equipment from the primary screening qualified equipment to obtain test passing equipment without data distortion.
It should be understood that the foregoing is illustrative only and is not limiting, and that in specific applications, those skilled in the art may set the invention as desired, and the invention is not limited thereto.
It should be noted that the above-described working procedure is merely illustrative, and does not limit the scope of the present invention, and in practical application, a person skilled in the art may select part or all of them according to actual needs to achieve the purpose of the embodiment, which is not limited herein.
In addition, technical details which are not described in detail in the embodiment can be referred to the transparent transmission equipment testing method for water conservancy monitoring provided by any embodiment of the present invention, and are not described herein again.
Furthermore, it should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk) and including several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. The method for testing the hydraulic monitoring transmission equipment is characterized by comprising the following steps of:
testing framing time information and package connection time information of each to-be-tested transparent transmission device for water conservancy monitoring according to the test configuration information;
determining a primary screening qualified device conforming to a serial port framing mechanism from the to-be-tested transparent transmission devices according to the framing time information and the packet connection time information;
collecting water body collecting data fed back by all primary screening qualified equipment;
and determining that the test passing equipment without data distortion is in the primary screening qualified equipment according to the water body acquisition data.
2. The method of claim 1, wherein the testing framing time information and the packet connection time information of each to-be-tested transparent transmission device monitored by the user water conservancy according to the test configuration information comprises:
transmitting test data with preset byte length to each to-be-tested transparent transmission device according to the test configuration information;
and determining framing time information and packet connection time information of each to-be-tested transparent transmission device according to feedback test data fed back by each to-be-tested transparent transmission device.
3. The method of claim 2, wherein the determining framing time information and packet connection time information of each transparent transmission device to be tested according to feedback test data fed back by each transparent transmission device to be tested comprises:
determining the feedback byte length of each to-be-tested transparent transmission device according to the feedback test data;
comparing the feedback byte length with the preset byte length, and determining the actual framing time and the actual packet connection time of each transparent transmission device to be tested according to the comparison result;
and determining framing time information and packet connection time information of each to-be-tested transparent transmission device according to the actual framing time and the actual packet connection time.
4. The method of claim 1, wherein the determining, from the to-be-tested transparent transmission devices, a prescreening qualified device conforming to a serial port framing mechanism according to the framing time information and the packet connection time information comprises:
determining framing non-result equipment in each to-be-tested transparent transmission equipment according to the framing time information;
determining continuous packet non-result equipment in each to-be-tested transparent transmission equipment according to the continuous packet time information;
and eliminating the framing non-result equipment and the continuous packet non-result equipment from the to-be-tested transparent transmission equipment to obtain the primary screening qualified equipment conforming to the serial port framing mechanism.
5. The method of claim 1, wherein said determining from said prescreening pass equipment that no data distortion has occurred based on said water body acquisition data comprises:
acquiring historical water conservancy data of all primary screening qualified equipment;
determining comparative water conservancy data of the same data type corresponding to the water body acquisition data according to the historical water conservancy data;
and determining that the data distortion does not occur in the primary screening qualified equipment according to the comparison water conservancy data and the water body acquisition data.
6. The method of claim 5, wherein said determining from said prescreening pass equipment that no data distortion has occurred based on said comparative water conservancy data and said water body acquisition data comprises:
generating a comparison data change trend curve according to the comparison water conservancy data;
generating an acquisition data change trend curve according to the water body acquisition data;
fitting the comparison data change trend curve and the collected data change trend curve to obtain a fitted curve graph;
determining an abnormal data curve segment according to the fitting curve graph;
determining an abnormal equipment type corresponding to the abnormal data curve segment;
and determining the test passing equipment without data distortion from the prescreening qualified equipment according to the abnormal equipment type.
7. The method of claim 6, wherein said determining from said prescreened qualified devices that no data distortion has occurred based on said abnormal device type comprises:
determining data abnormal equipment according to the abnormal equipment type;
acquiring control data acquired by the same type of equipment in the same water area of the data abnormal equipment;
comparing the comparison data with abnormal data corresponding to the data abnormal equipment to obtain data difference information;
and when the data difference information meets the data distortion condition, removing the data abnormal equipment from the primary screening qualified equipment to obtain test passing equipment without data distortion.
8. The utility model provides a water conservancy monitoring pass through equipment testing arrangement, its characterized in that, water conservancy monitoring pass through equipment testing arrangement includes:
the serial port testing module is used for testing framing time information and package connection time information of each to-be-tested transparent transmission device for water conservancy monitoring according to the testing configuration information;
the equipment primary screening module is used for determining primary screening qualified equipment conforming to a serial port framing mechanism from the to-be-tested transparent transmission equipment according to the framing time information and the continuous package time information;
the data acquisition module is used for acquiring water body acquisition data fed back by each primary screening qualified device;
and the equipment testing module is used for determining that the data distortion does not occur in the primary screening qualified equipment according to the water body acquisition data.
9. A transmission equipment test device for water conservancy monitoring, the device comprising: a memory, a processor and a hydraulic monitoring transmission equipment test program stored on the memory and operable on the processor, the hydraulic monitoring transmission equipment test program configured to implement the hydraulic monitoring transmission equipment test method of any one of claims 1 to 7.
10. A storage medium, wherein a hydraulic monitoring transmission equipment test program is stored on the storage medium, and the hydraulic monitoring transmission equipment test program realizes the hydraulic monitoring transmission equipment test method according to any one of claims 1 to 7 when being executed by a processor.
CN202310055716.0A 2023-01-17 2023-01-17 Water conservancy monitoring transparent transmission equipment testing method, device, equipment and storage medium Pending CN116208530A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310055716.0A CN116208530A (en) 2023-01-17 2023-01-17 Water conservancy monitoring transparent transmission equipment testing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310055716.0A CN116208530A (en) 2023-01-17 2023-01-17 Water conservancy monitoring transparent transmission equipment testing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116208530A true CN116208530A (en) 2023-06-02

Family

ID=86510659

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310055716.0A Pending CN116208530A (en) 2023-01-17 2023-01-17 Water conservancy monitoring transparent transmission equipment testing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116208530A (en)

Similar Documents

Publication Publication Date Title
CN107478455B (en) Timing truncation reliability test method suitable for Weibull distribution type product
WO2019214309A1 (en) Model test method and device
US20200244355A1 (en) Method, Apparatus and Device for Predicting Fault of Optical Module
CN105974273A (en) Power distribution network fault positioning system
CN100514307C (en) Test cost-sensitive system failure position finding method and its device
CN110650042A (en) Electric power communication network health degree evaluation method and terminal equipment
CN111181800A (en) Test data processing method and device, electronic equipment and storage medium
CN115113125A (en) Correction system of multichannel arbitrary waveform generator
CN113934536B (en) Data acquisition method facing edge calculation
CN115545058A (en) Water meter data analysis method and system and readable storage medium
CN113569432B (en) Simulation detection method and system for liquid-air-tight element
CN116319081B (en) Electronic signature security management system based on big data cloud platform
CN112566170B (en) Network quality evaluation method, device, server and storage medium
CN116208530A (en) Water conservancy monitoring transparent transmission equipment testing method, device, equipment and storage medium
CN112612824A (en) Water supply pipe network abnormal data detection method based on big data
CN109858632B (en) Method and device for determining threshold
CN111461329A (en) Model training method, device, equipment and readable storage medium
CN115422263B (en) Multifunctional universal fault analysis method and system for electric power field
CN114500615B (en) Intelligent terminal based on thing allies oneself with sensing technology
CN110768871A (en) Test method and system for automatically counting data transmission correctness of DCS (distributed control system)
CN115203810A (en) CM three-dimensional high-strength composite foundation settlement prediction method and system
CN108874646A (en) The method and apparatus for analyzing data
CN113505039A (en) Communication fault analysis method, device and system
CN102256271B (en) The acquisition methods and device of capacity expansion indication information
CN113030883B (en) Method and system for efficiently transmitting radar map data in computer simulation

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