Automatic standard sample verification method and system for online monitoring of water pollution sources
By generating random next-day standard sample verification time and issuing standard sample verification instructions, the risk of secret discharge during fixed time period verification in the online monitoring system of water pollution sources is solved, and the verification time with strong randomness is achieved, reducing the risk of secret discharge is reduced. And simplifies operations.
Patent Information
- Application Number
- CN202410527662.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-29
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2044-04-29
AI Technical Summary
When the existing online monitoring system for water pollution sources conducts automatic standard sample verification during a fixed time period, there is a risk of secret discharge, because the instrument cannot conduct water sample testing during the verification period, and the operation is complicated, making it difficult to achieve a good random standard sample verification time.
By obtaining the automatic calibration time, we judge whether there is an automatic calibration plan the next day, generate a random next-day standard sample verification time, and issue a standard sample verification command when this time is reached to the automatic water quality analyzer for standard sample verification to ensure the verification time Randomness and validity.
Without affecting the normal operation of the automatic water quality analyzer, the risk of enterprises performing secret discharge during the inspection period is reduced, and the operation is simple, easy to implement, and meets the standard requirements.
Smart Images

Figure CN118501378B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an automatic standard sample verification method and system for online monitoring of water pollution sources. Background Art
[0002] The online monitoring system for water pollution sources refers to a system composed of hardware and software facilities that realize the functions of wastewater flow monitoring, wastewater sample collection, wastewater sample analysis, and analysis data statistics and upload. Automatic standard sample verification refers to the automatic measurement of standard solutions by online monitoring instruments for water pollution sources, and the automatic determination of the accuracy of the measurement results. In order to standardize the technical requirements for the operation of online monitoring systems for water pollution sources, relevant regulations set the specifications for the automatic standard sample verification cycle. In the actual implementation process, it is usually set to a fixed time every day for automatic standard sample verification, and the cycle is generally one hour. During this period, the instrument cannot perform water sample testing, and there is a risk of unauthorized discharge. Summary of the invention
[0003] The main purpose of the embodiments of the present application is to propose an automatic standard sample verification method and system for online monitoring of water pollution sources, aiming to generate standard sample verification time with high effectiveness and good randomness, thereby preventing illegal discharge. The scheme is simple to operate and easy to implement.
[0004] To achieve the above-mentioned purpose, one aspect of an embodiment of the present application provides an automatic standard sample verification method for online monitoring of water pollution sources, the method comprising:
[0005] Obtain the automatic calibration time, determine whether there is an automatic calibration plan for the next day, and obtain a first determination result;
[0006] Generate a random next-day standard sample verification time according to the first judgment result and the last standard sample verification time;
[0007] When the next day's standard sample verification time arrives, determining whether to issue a standard sample verification instruction, and obtaining a second determination result;
[0008] According to the second judgment result, the standard sample verification instruction is sent to the automatic water quality analyzer to perform the standard sample verification.
[0009] In some embodiments, the obtaining of the automatic calibration time, determining whether there is an automatic calibration plan for the next day, and obtaining a first determination result include:
[0010] Get the automatic calibration time configured in the environmental data logger;
[0011] Or obtain the automatic calibration time configured in the water quality automatic analyzer;
[0012] According to the automatic calibration time, it is determined whether there is an automatic calibration plan for the next day to obtain a first determination result.
[0013] In some embodiments, generating a random next-day standard sample verification time according to the first judgment result and the last standard sample verification time includes:
[0014] When there is no automatic calibration scheduled for the next day:
[0015] Randomly select an integer between 0:00 and 24:00 on a natural day to obtain the candidate standard sample verification time;
[0016] Compare the candidate standard sample verification time with the last standard sample verification time to obtain a time difference;
[0017] When the time difference is less than or equal to the preset time threshold, the process returns to the step of randomly selecting an integer between 0:00 and 24:00 on a natural day to obtain a candidate standard verification time, until the time difference is greater than the time threshold, and the candidate standard verification time is used as the standard verification time for the next day.
[0018] In some embodiments, generating a random next-day standard sample verification time according to the first judgment result and the last standard sample verification time includes:
[0019] When there is an automatic calibration plan for the next day, and the calibration start time is not 22:00 or 23:00, the hour after the calibration completion time is determined as the standard sample verification time for the next day;
[0020] When there is an automatic calibration plan for the next day, and the calibration start time is 22:00 or 23:00, a random integer is taken between 0:00 and 21:00 on the natural day to obtain the candidate standard sample verification time;
[0021] Compare the candidate standard sample verification time with the last standard sample verification time to obtain a time difference;
[0022] When the time difference is less than or equal to the preset time threshold, return to the step of randomly selecting an integer between 0:00 and 21:00 on the natural day to obtain the candidate standard sample verification time, until the time difference is greater than the time threshold, and the candidate standard sample verification time is used as the next day standard sample verification time;
[0023] The hour after the calibration is completed is determined as the third day standard sample verification time.
[0024] In some embodiments, the step of randomly selecting an integer to obtain the candidate standard sample verification time includes:
[0025] Generate a first integer sequence by a recursive formula;
[0026] Performing integer division processing on the first integer sequence to obtain a random number sequence;
[0027] The random number sequence is randomly selected by using the rand function to obtain the candidate standard sample verification time;
[0028] The expression of the recursive formula is:
[0029] z [k] =(az [k-1] +c)modη
[0030] Among them, z [k] is the first integer sequence; n, a and c are all preset non-integers; k is an ordinal number.
[0031] In some embodiments, when the next day standard sample verification time is reached, determining whether to issue a standard sample verification instruction to obtain a second determination result includes:
[0032] When the date and time of the last standard sample verification is today, the second judgment result is configured to cancel the current standard sample verification;
[0033] When the last standard sample verification time is the previous day, the second judgment result is configured to issue a standard sample verification instruction.
[0034] In some embodiments, the method further comprises:
[0035] Collect the standard sample verification results and upload the standard sample verification results to the monitoring center platform.
[0036] To achieve the above purpose, another aspect of the embodiment of the present application provides an automatic standard sample verification system for online monitoring of water pollution sources, the system comprising:
[0037] The first module is used to obtain the automatic calibration time, determine whether there is an automatic calibration plan for the next day, and obtain a first determination result;
[0038] The second module is used to generate a random standard sample verification time for the next day according to the first judgment result and the last standard sample verification time;
[0039] The third module is used to determine whether to issue a standard sample verification instruction when the standard sample verification time of the next day arrives, and obtain a second judgment result;
[0040] The fourth module is used to send the standard sample verification instruction to the automatic water quality analyzer according to the second judgment result to execute the standard sample verification.
[0041] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the above-mentioned method when executing the computer program.
[0042] To achieve the above objective, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.
[0043] The embodiments of the present application include at least the following beneficial effects: the present application provides an automatic standard sample verification method and system for online monitoring of water pollution sources. The scheme generates a standard sample verification instruction at a highly random time point to send a standard sample verification instruction to the automatic water quality analyzer for standard sample verification. This is beneficial to effectively reduce the risk of enterprises secretly discharging during the verification period without affecting the normal operation of the automatic water quality analyzer and meeting the standard requirements. The scheme of the embodiments of the present application also has the advantages of simple operation and easy implementation. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The accompanying drawings are used to provide further understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.
[0045] Figure 1 It is a step diagram of an automatic standard sample verification method for online monitoring of water pollution sources provided in an embodiment of the present application;
[0046] Figure 2 is a schematic diagram of the interaction of the automatic verification device provided in the embodiment of the present application;
[0047] Figure 3 It is a detailed flow chart of the standard sample verification method provided in the embodiment of the present application;
[0048] Figure 4 It is a structural schematic diagram of an automatic standard sample verification system for online monitoring of water pollution sources provided in an embodiment of the present application;
[0049] Figure 5 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.
[0051] Although the functional modules are divided in the system schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the system or the order in the flowchart. The terms "first / S100", "second / S200", etc. in the specification, claims and the above drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0052] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".
[0053] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.
[0054] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0056] Before describing the embodiments of the present application in detail, some nouns and terms involved in the embodiments of the present application are first described. The nouns and terms involved in the embodiments of the present application are subject to the following explanations.
[0057] Automatic standard sample verification: refers to the online monitoring instrument for water pollution sources automatically measuring the standard solution and automatically determining the accuracy of the measurement results.
[0058] In the actual implementation of online monitoring of water pollution sources, it is usually necessary to set a fixed time every day for automatic standard sample verification. During this period, the instrument cannot perform water sample testing. If the pollutant discharger knows the time period for automatic standard sample verification, there is a risk of the pollutant discharger secretly discharging.
[0059] In view of this, an embodiment of the present application provides a standard sample verification method and system for online monitoring of water pollution sources. The host computer generates a standard sample verification instruction at a highly random time point to send a standard sample verification instruction to the water quality automatic analyzer for standard sample verification. This is beneficial to effectively reduce the risk of illegal discharge by enterprises during the verification period without affecting the normal operation of the water quality automatic analyzer and meeting the standard requirements. The solution of the embodiment of the present application also has the advantages of simple operation and easy implementation.
[0060] The embodiment of the present application provides an automatic standard sample verification method for online monitoring of water pollution sources, which relates to the field of computer technology and can be applied to the field of online monitoring of pollution sources. The embodiment of the present application provides an automatic standard sample verification method for online monitoring of water pollution sources, which can be applied to a terminal, a server, or a software running in a terminal or a server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and a car terminal, etc., but is not limited to this; the server side can be configured as an independent physical server, or a server cluster or distributed system composed of multiple physical servers, and can also be configured to provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The cloud server of basic cloud computing services, the server can also be a node server in a blockchain network; the software can be an application that realizes an automatic standard sample verification method for online monitoring of water pollution sources, etc., but is not limited to the above form.
[0061] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0062] Figure 1 This is an optional step diagram of an automatic standard sample verification method for online monitoring of water pollution sources provided in an embodiment of the present application. Figure 1 The method may include but is not limited to steps S100 to S400.
[0063] Step S100, obtaining the automatic calibration time, determining whether there is an automatic calibration plan for the next day, and obtaining a first determination result.
[0064] Step S200: Generate a random standard sample verification time for the next day according to the first judgment result and the last standard sample verification time.
[0065] Step S300, when the next day's standard sample verification time arrives, determine whether to issue a standard sample verification instruction to obtain a second determination result.
[0066] Step S400: According to the second judgment result, the standard sample verification instruction is sent to the automatic water quality analyzer to perform the standard sample verification.
[0067] Steps S100 to S400 shown in the embodiment of the present application, by generating a highly random time point to issue a standard sample verification instruction to the automatic water quality analyzer for standard sample verification, are beneficial for effectively reducing the risk of illegal discharge by enterprises during the verification period without affecting the normal operation of the automatic water quality analyzer and meeting the standard requirements. The solution of the embodiment of the present application also has the advantages of simple operation and easy implementation.
[0068] In some embodiments, step S100 may include but is not limited to steps S110 to S130:
[0069] Step S110, obtaining the automatic calibration time configured in the environmental data acquisition instrument;
[0070] Step S120, or obtaining the automatic calibration time configured in the automatic water quality analyzer;
[0071] Step S130, judging whether there is an automatic calibration plan for the next day according to the automatic calibration time, and obtaining a first judgment result.
[0072] In some embodiments, when there is no automatic calibration plan for the next day, step S200 may include but is not limited to steps S210 to S230:
[0073] Step S210, randomly select an integer between 0:00 and 24:00 on a natural day to obtain the candidate standard sample verification time;
[0074] Step S220, comparing the candidate standard sample verification time with the last standard sample verification time to obtain a time difference;
[0075] Step S230, when the time difference is less than or equal to the preset time threshold, return to step S210 and execute until the time difference is greater than the time threshold, and use the candidate standard sample verification time as the next day's standard sample verification time.
[0076] In some embodiments, step S200 may further include the following steps S240 to S280:
[0077] Step S240, when there is an automatic calibration plan for the next day, and the calibration start time is not 22:00 or 23:00, the hour after the calibration completion time is determined as the standard sample verification time for the next day;
[0078] Step S250, when there is an automatic calibration plan for the next day, and the calibration start time is 22:00 or 23:00, a random integer is taken between 0:00 and 21:00 on the natural day to obtain the candidate standard sample verification time;
[0079] Step S260, comparing the candidate standard sample verification time with the last standard sample verification time to obtain a time difference;
[0080] Step S270, when the time difference is less than or equal to the preset time threshold, return to execute the step of randomly selecting an integer between 0:00 and 21:00 on a natural day to obtain a candidate standard sample verification time when the next-day automatic calibration time does not exist, until the time difference is greater than the time threshold, and the candidate standard sample verification time is used as the next-day standard sample verification time;
[0081] Step S280, determining the hour after the calibration completion time as the third day standard sample verification time.
[0082] In the specific steps of step S200 in some embodiments, the step of randomly selecting an integer to obtain the candidate standard sample verification time may include the following 1 to 4:
[0083] 1. Generate the first integer sequence through a recursive formula;
[0084] 2. Perform integer division processing on the first integer sequence to obtain a random number sequence;
[0085] 3. Randomly select the random number sequence through the rand function to obtain the candidate standard sample verification time;
[0086] 4. The expression of the recursive formula is:
[0087] z [k] =(az [k-1] +c)modη
[0088] Among them, z [k]is the first integer sequence; η, a and c are all preset non-integers; k is an ordinal number, k=0, 1, 2,….
[0089] In some embodiments, step S300 may include the following steps S310 to S200:
[0090] Step S310, when the time and date of the last standard sample verification is today, the second judgment result is configured to cancel the current standard sample verification;
[0091] Step S320: When the last standard sample verification time is the previous day, the second judgment result is configured to issue a standard sample verification instruction.
[0092] In addition, in some embodiments, the embodiments of the present application may further include step S500: collecting standard sample verification results, and uploading the standard sample verification results to the monitoring center platform.
[0093] Below, in conjunction with a specific example of an automatic standard sample verification scenario for online monitoring of water pollution sources, the solution of the embodiment of the present application is described in detail and explained:
[0094] In an embodiment of the present application, a method for automatic standard sample verification for online monitoring of water pollution sources is provided. The method can be applied to automatic standard sample verification for online monitoring of water pollution sources to effectively prevent enterprises from secretly discharging during the verification period.
[0095] See also Figure 2 and Figure 3 , Figure 2 The diagram shows the equipment interaction diagram for automatic standard verification. Figure 3 The detailed flow chart of the standard sample verification method of the embodiment of the present application is shown. The embodiment of the present application first obtains the automatic calibration time through the environmental data acquisition instrument, determines whether there is an automatic calibration plan for the next day, obtains the first judgment result, and determines whether there is an automatic calibration plan for the next day. The automatic calibration time includes two parameters: the calibration date and time and the calibration interval, which can be obtained by the environmental data acquisition instrument in different ways according to the actual application scenario:
[0096] ① If the automatic calibration time is configured on the environmental data acquisition instrument, it can be directly obtained;
[0097] ② If the automatic calibration time is configured on the automatic water quality analyzer, it can be obtained by reading the corresponding parameter information in the protocol of the automatic water quality analyzer.
[0098] According to the calibration start time and calibration interval of the next day's automatic calibration time, the calibration end time can be calculated for the subsequent determination of the standard sample verification time. Further, according to the next day's automatic calibration time and the last standard sample verification time, a random next day standard sample verification time is generated. Exemplarily, there are three situations for generating the next day's standard sample verification time (taking the time threshold of 4 hours as an example):
[0099] (1) When there is no automatic calibration plan for the next day, the computer code program on the environmental data acquisition instrument randomly selects an integer between 0-24 o'clock on the natural day to obtain the candidate standard sample verification time, and determines the time difference between the candidate standard sample verification time and the previous standard sample verification time. When the time difference is ≤4h, a random integer is selected again between 0-24 o'clock on the natural day to update the candidate standard sample verification time until the time difference of the standard sample verification is greater than 4h, then the candidate standard sample verification time is used as the standard sample verification time of the next day.
[0100] (2) If there is an automatic calibration plan for the next day, and the calibration start time is not 22:00 or 23:00, when generating the next day's standard sample verification time, the time point after the calibration is completed is fixed as the next day's standard sample verification time.
[0101] (3) When there is an automatic calibration plan for the next day, and the calibration start time is 22:00 or 23:00, the standard sample verification time for the next day is generated as usual (i.e., generated in the first case, but with an integer between 0-21:00), and when generating the standard sample inspection time for the third day, it is fixed to the hour after the calibration completion time (i.e., 0:00 or 1:00 on the third day). At the same time, the computer code program on the environmental data acquisition instrument randomly selects an integer between 0-21:00 on a natural day to obtain a candidate standard sample verification time, and determines the time difference between the candidate standard sample verification time and the last standard sample verification time. When the time difference is ≤4h, a random integer is selected again between 0-21:00 on a natural day to update the candidate standard sample verification time until the time difference of the standard sample verification is greater than 4h, and the candidate standard sample verification time is used as the standard sample verification time for the next day.
[0102] In the above case, the method of randomly picking an integer is:
[0103] Given non-integer η, a, and c, for any integer z [0] , we get an integer z through the recursive formula [k] The sequence is called the first integer sequence. The recursive formula of this embodiment is expressed as:
[0104] z [k] =(az [k-1] +c)modη
[0105] The modulus symbol mod represents z [k] It's az [k-1]+ the remainder after c is divided by η. Then z [k] Dividing by η, we get a sequence of random numbers:
[0106]
[0107] You can choose to use the rand() function in ANSI C and set its parameters to a=1103515245, c=12345, η=2 31 .
[0108] After obtaining the random number sequence, according to the value of the random seed, the value of the corresponding position in the random number sequence is taken as the current output random number. Among them, the value of the random seed must ensure that each execution is different from the previous one. Its value is the timestamp difference between the current execution time and the computer chip production time, in seconds.
[0109] The next day's standard sample verification time is generated by the environmental data acquisition instrument software system between 23:30 and 23:33 of the previous day to ensure the normal standard sample verification work. For example, tomorrow's standard sample verification time is generated between 23:30 and 23:33 tonight.
[0110] When the planned automatic standard sample verification time for the next day arrives, the environmental protection data acquisition instrument determines whether to issue an instruction. The environmental protection data acquisition instrument reads and determines the last standard sample verification time of the automatic water quality analysis: when the last standard sample verification time is the previous day, the standard sample verification instruction is issued to the automatic water quality analyzer, and the automatic water quality analyzer receives the standard sample verification instruction and automatically performs the verification work; when the last standard sample verification time is the same day, the standard sample verification instruction is canceled, and the generation of the standard sample verification time for the next day is not affected.
[0111] After receiving the standard sample verification instruction, the automatic water quality analyzer executes the standard sample verification instruction and performs the standard sample verification work.
[0112] When the automatic water quality analyzer obtains the standard sample verification result, the standard sample verification result is returned to the environmental protection data acquisition instrument, and the environmental protection data acquisition instrument uploads the standard sample verification result to the monitoring center platform.
[0113] In summary, the embodiments of the present application have at least the following beneficial effects:
[0114] 1. By generating a highly random time on the hour by the host computer, a standard sample verification instruction is issued to the automatic water quality analyzer for standard sample verification. This is beneficial to effectively reduce the risk of enterprises secretly discharging during the verification period without affecting the normal operation of the automatic water quality analyzer and meeting the standard requirements. The solution of the embodiment of the present application also has the advantages of simple operation and easy implementation.
[0115] 2. By calculating the interval between the candidate standard sample verification time and the last standard sample verification time and making a judgment, the generated standard sample verification time can meet the standard requirements, avoiding too short time interval between two standard sample verifications and avoiding waste of resources.
[0116] 3. By judging the automatic calibration time, the generated standard sample verification time can be made not to coincide with the automatic calibration time, meeting the relevant standard requirements. Standard sample verification after calibration can not only verify the calibration at the first time, but also avoid performing standard sample verification twice on the same day, which can improve the measurement accuracy of the instrument and reduce the number of standard solution measurements, the amount of reagents used, and the amount of waste liquid discharged.
[0117] 4. The environmental data acquisition instrument determines whether to issue instructions, which can take into account special standard sample verification scenarios. For example, a city stipulates that "the quality control inspection instrument will be started when the data exceeds the standard". In addition to the daily automatic standard sample verification, there is also a quality control verification link required due to exceeding the standard. Therefore, there may be multiple times a day. Under the premise of meeting the standard requirements, the number of unnecessary verifications should be reduced as much as possible. In addition, there may be situations where the verification fails. For example, if the verification fails, calibration and re-verification are required, and the cycle is repeated until the verification passes or the duration reaches 6 hours. If this process is carried out across natural days, the standard sample verification on the second day does not need to be repeated.
[0118] See also Figure 4 The embodiment of the present application further provides an automatic standard sample verification system 100 for online monitoring of water pollution sources, which can implement the above-mentioned automatic standard sample verification method for online monitoring of water pollution sources. The system includes:
[0119] The first module 101 is used to obtain the automatic calibration time, determine whether there is an automatic calibration plan for the next day, and obtain a first determination result;
[0120] The second module 102 is used to generate a random standard sample verification time for the next day according to the first judgment result and the last standard sample verification time;
[0121] The third module 103 is used to determine whether to issue a standard sample verification instruction when the next day standard sample verification time arrives, and obtain a second judgment result;
[0122] The fourth module 104 is used to send the standard sample verification instruction to the automatic water quality analyzer according to the second judgment result to perform the standard sample verification.
[0123] It can be understood that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0124] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned automatic standard sample verification method for online monitoring of water pollution sources when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0125] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0126] See also Figure 5 , Figure 5 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:
[0127] The processor 201 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0128] The memory 202 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 202 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 202, and the processor 201 calls and executes an automatic standard sample verification method for online monitoring of a water pollution source in the embodiment of this application;
[0129] Input / output interface 203, used to implement information input and output;
[0130] The communication interface 204 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);
[0131] Bus 205 , which transmits information between various components of the device (e.g., processor 201 , memory 202 , input / output interface 203 , and communication interface 204 );
[0132] The processor 201 , the memory 202 , the input / output interface 203 and the communication interface 204 are connected to each other in communication within the device via the bus 205 .
[0133] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the above-mentioned automatic standard sample verification method for online monitoring of water pollution sources.
[0134] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0135] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0136] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0137] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0138] The system embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0139] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0140] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0141] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0142] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0143] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0144] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0145] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0146] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. An automatic standard sample verification method for online monitoring of water pollution sources, It is characterized in that include: Obtain the automatic calibration time configured on the instrument, determine whether there is an automatic calibration plan for the next day, and obtain a first determination result; Generate a random next-day standard sample verification time according to the first judgment result and the last standard sample verification time; When the next day's standard sample verification time arrives, determining whether to issue a standard sample verification instruction, and obtaining a second determination result; According to the second judgment result, the standard sample verification instruction is issued to the automatic water quality analyzer to perform the standard sample verification; The step of generating a random next-day standard sample verification time according to the first judgment result and the last standard sample verification time includes: When there is no automatic calibration scheduled for the next day: Randomly select an integer between 0:00 and 24:00 on a natural day to obtain the candidate standard sample verification time; Compare the candidate standard sample verification time with the last standard sample verification time to obtain a time difference; When the time difference is less than or equal to the preset time threshold, the step of randomly selecting an integer between 0:00 and 24:00 on a natural day to obtain a candidate standard sample verification time is returned to execution, until the time difference is greater than the time threshold, the candidate standard sample verification time is used as the standard sample verification time of the next day; When there is an automatic calibration plan for the next day, and the calibration start time is not 22:00 or 23:00, the hour after the calibration completion time is determined as the standard sample verification time for the next day; When there is an automatic calibration plan for the next day, and the calibration start time is 22:00 or 23:00, a random integer is taken between 0:00 and 21:00 on the natural day to obtain the candidate standard sample verification time; Compare the candidate standard sample verification time with the last standard sample verification time to obtain a time difference; When the time difference is less than or equal to the preset time threshold, return to the step of randomly selecting an integer between 0:00 and 21:00 on the natural day to obtain the candidate standard sample verification time, until the time difference is greater than the time threshold, and the candidate standard sample verification time is used as the next day standard sample verification time; The hour after the calibration is completed is determined as the third day standard sample verification time; When the next day's standard sample verification time is reached, determining whether to issue a standard sample verification instruction to obtain a second determination result includes: When the date and time of the last standard sample verification is today, the second judgment result is configured to cancel the current standard sample verification; When the last standard sample verification time is the previous day, the second judgment result is configured to issue a standard sample verification instruction.
2. The method according to claim 1, It is characterized in that The step of obtaining the automatic calibration time configured on the instrument, determining whether there is an automatic calibration plan for the next day, and obtaining a first determination result includes: Get the automatic calibration time configured in the environmental data logger; Or obtain the automatic calibration time configured in the water quality automatic analyzer; According to the automatic calibration time, it is determined whether there is an automatic calibration plan for the next day to obtain a first determination result.
3. The method according to claim 1, It is characterized in that The steps of randomly selecting an integer to obtain the candidate standard sample verification time include: Generate a first integer sequence by a recursive formula; Performing integer division processing on the first integer sequence to obtain a random number sequence; The random number sequence is randomly selected by using the rand function to obtain the candidate standard sample verification time; The expression of the recursive formula is: The random number sequence is: in, is the first integer sequence; All are preset non-integers; is an ordinal number; modulus symbol express yes quilt The remainder after division.
4. The method according to claim 1, It is characterized in that The method further comprises: Collect the standard sample verification results and upload the standard sample verification results to the monitoring center platform.
5. An automatic standard sample verification system for online monitoring of water pollution sources, It is characterized in that include: The first module is used to obtain the automatic calibration time configured on the instrument, determine whether there is an automatic calibration plan for the next day, and obtain a first determination result; The second module is used to generate a random standard sample verification time for the next day according to the first judgment result and the last standard sample verification time; The third module is used to determine whether to issue a standard sample verification instruction when the standard sample verification time of the next day arrives, and obtain a second judgment result; The fourth module is used to send the standard sample verification instruction to the water quality automatic analyzer according to the second judgment result to perform the standard sample verification; The step of generating a random next-day standard sample verification time according to the first judgment result and the last standard sample verification time includes: When there is no automatic calibration scheduled for the next day: Randomly select an integer between 0:00 and 24:00 on a natural day to obtain the candidate standard sample verification time; Compare the candidate standard sample verification time with the last standard sample verification time to obtain a time difference; When the time difference is less than or equal to the preset time threshold, the step of randomly selecting an integer between 0:00 and 24:00 on a natural day to obtain a candidate standard sample verification time is returned to execution, until the time difference is greater than the time threshold, the candidate standard sample verification time is used as the standard sample verification time of the next day; When there is an automatic calibration plan for the next day, and the calibration start time is not 22:00 or 23:00, the hour after the calibration completion time is determined as the standard sample verification time for the next day; When there is an automatic calibration plan for the next day, and the calibration start time is 22:00 or 23:00, a random integer is taken between 0:00 and 21:00 on the natural day to obtain the candidate standard sample verification time; Compare the candidate standard sample verification time with the last standard sample verification time to obtain a time difference; When the time difference is less than or equal to the preset time threshold, return to the step of randomly selecting an integer between 0:00 and 21:00 on the natural day to obtain the candidate standard sample verification time, until the time difference is greater than the time threshold, and the candidate standard sample verification time is used as the next day standard sample verification time; The hour after the calibration is completed is determined as the third day standard sample verification time; When the next day's standard sample verification time is reached, determining whether to issue a standard sample verification instruction to obtain a second determination result includes: When the date and time of the last standard sample verification is today, the second judgment result is configured to cancel the current standard sample verification; When the last standard sample verification time is the previous day, the second judgment result is configured to issue a standard sample verification instruction.
6. An electronic device, It is characterized in that including a processor and a memory; The memory is used to store programs; The processor executes the program to implement the method according to any one of claims 1 to 4.
7. A computer storage medium having a program executable by a processor stored therein, It is characterized in that The program executable by the processor is used to implement the method according to any one of claims 1 to 4 when executed by the processor.
