Nothing Special   »   [go: up one dir, main page]

CN118316967B - Water quality on-line monitoring system for environment monitoring - Google Patents

Water quality on-line monitoring system for environment monitoring Download PDF

Info

Publication number
CN118316967B
CN118316967B CN202410720006.XA CN202410720006A CN118316967B CN 118316967 B CN118316967 B CN 118316967B CN 202410720006 A CN202410720006 A CN 202410720006A CN 118316967 B CN118316967 B CN 118316967B
Authority
CN
China
Prior art keywords
string
original image
mapping
water quality
strings
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202410720006.XA
Other languages
Chinese (zh)
Other versions
CN118316967A (en
Inventor
鲁志刚
张威
邵健龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Yuehan Environmental Protection Technology Co ltd
Original Assignee
Suzhou Yuehan Environmental Protection Technology 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 Suzhou Yuehan Environmental Protection Technology Co ltd filed Critical Suzhou Yuehan Environmental Protection Technology Co ltd
Priority to CN202410720006.XA priority Critical patent/CN118316967B/en
Publication of CN118316967A publication Critical patent/CN118316967A/en
Application granted granted Critical
Publication of CN118316967B publication Critical patent/CN118316967B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N33/00Investigating or analysing materials by specific methods not covered by groups G01N1/00 - G01N31/00
    • G01N33/18Water
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/126Character encoding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16CCOMPUTATIONAL CHEMISTRY; CHEMOINFORMATICS; COMPUTATIONAL MATERIALS SCIENCE
    • G16C20/00Chemoinformatics, i.e. ICT specially adapted for the handling of physicochemical or structural data of chemical particles, elements, compounds or mixtures
    • G16C20/20Identification of molecular entities, parts thereof or of chemical compositions
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16CCOMPUTATIONAL CHEMISTRY; CHEMOINFORMATICS; COMPUTATIONAL MATERIALS SCIENCE
    • G16C20/00Chemoinformatics, i.e. ICT specially adapted for the handling of physicochemical or structural data of chemical particles, elements, compounds or mixtures
    • G16C20/30Prediction of properties of chemical compounds, compositions or mixtures
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16CCOMPUTATIONAL CHEMISTRY; CHEMOINFORMATICS; COMPUTATIONAL MATERIALS SCIENCE
    • G16C20/00Chemoinformatics, i.e. ICT specially adapted for the handling of physicochemical or structural data of chemical particles, elements, compounds or mixtures
    • G16C20/90Programming languages; Computing architectures; Database systems; Data warehousing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L25/00Baseband systems
    • H04L25/38Synchronous or start-stop systems, e.g. for Baudot code
    • H04L25/40Transmitting circuits; Receiving circuits
    • H04L25/49Transmitting circuits; Receiving circuits using code conversion at the transmitter; using predistortion; using insertion of idle bits for obtaining a desired frequency spectrum; using three or more amplitude levels ; Baseband coding techniques specific to data transmission systems
    • H04L25/4906Transmitting circuits; Receiving circuits using code conversion at the transmitter; using predistortion; using insertion of idle bits for obtaining a desired frequency spectrum; using three or more amplitude levels ; Baseband coding techniques specific to data transmission systems using binary codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Chemical & Material Sciences (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • General Engineering & Computer Science (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • Medicinal Chemistry (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Databases & Information Systems (AREA)
  • Food Science & Technology (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Medical Informatics (AREA)
  • Image Processing (AREA)

Abstract

本发明公开了一种环境监测用水质在线监测系统,涉及水质监测技术领域,本发明通过水质数据传输单元将实时接收到的目标区域的水质监测数据转换为实时目标区域的水质转换文档,水质转换文档中包含有原像压缩序列和映射压缩序列,在这一过程中,原像压缩序列由水质监测数据经过特定规则压缩生成,该规则选择性地移除了某些位置的数据,从而使得序列中只保留了部分关键的水质信息,与此同时,映射压缩序列记录被移除数据的位置信息,由于原像压缩序列和映射压缩序列均以二进制形式存在,即便数据在传输过程中被未授权的第三方截获,复杂的编码机制也足以防止任何未经授权的解读尝试,从而显著增强了整体数据传输的安全性。

The present invention discloses an online water quality monitoring system for environmental monitoring, and relates to the technical field of water quality monitoring. The present invention converts the water quality monitoring data of a target area received in real time into a water quality conversion document of the target area in real time through a water quality data transmission unit. The water quality conversion document contains an original image compression sequence and a mapping compression sequence. In this process, the original image compression sequence is generated by compressing the water quality monitoring data according to specific rules. The rule selectively removes data at certain positions, so that only part of the key water quality information is retained in the sequence. At the same time, the mapping compression sequence records the position information of the removed data. Since both the original image compression sequence and the mapping compression sequence exist in binary form, even if the data is intercepted by an unauthorized third party during transmission, the complex encoding mechanism is sufficient to prevent any unauthorized interpretation attempt, thereby significantly enhancing the security of the overall data transmission.

Description

一种环境监测用水质在线监测系统An online water quality monitoring system for environmental monitoring

技术领域Technical Field

本发明涉及水质监测技术领域,具体涉及一种环境监测用水质在线监测系统。The invention relates to the technical field of water quality monitoring, and in particular to an online water quality monitoring system for environmental monitoring.

背景技术Background Art

伴随着科技的发展和水质的重要性的逐渐深入人心,水质检测也逐渐渗透到了日常生活(例如家用净水装置)、农业生产(例如水产养殖)以及工业生产等各个领域,精确的水质检测结果对现代生活及生产具有着重要的指导意义,为了及时有效地获取大量大范围的水质信息,水质检测的关键在于快速检测技术,而快速检测技术的核心是传感器技术的发展;With the development of science and technology and the increasing importance of water quality, water quality testing has gradually penetrated into various fields such as daily life (such as household water purification devices), agricultural production (such as aquaculture) and industrial production. Accurate water quality test results have important guiding significance for modern life and production. In order to obtain a large amount of water quality information in a timely and effective manner, the key to water quality testing lies in rapid testing technology, and the core of rapid testing technology is the development of sensor technology.

当前市场上的一种水质监测技术主要面向企业用户,这些企业在生产过程中排放的废水可能包含特定的化学物质或指标,这些信息有时涉及企业的敏感商业秘密,因此,在实施水质监测时,不仅需要确保环境标准的符合性,同时也要考虑到保护企业的商业机密,目前主要采用密钥对水质监测数据进行加密传输,确保敏感信息的安全,然而这对密钥的维护和管理提出了更高的要求,而想要有效的维护和管理密钥,往往需要投入大量的财务和时间资源,这种做法不利于对水质监测的成本控制,而不投入大量的财务和时间资源,将可能会导致密钥丢失和被窃取,这将会造成企业敏感商业秘密的泄露;A water quality monitoring technology currently on the market is mainly aimed at corporate users. The wastewater discharged by these companies during the production process may contain specific chemicals or indicators. This information sometimes involves sensitive business secrets of the company. Therefore, when implementing water quality monitoring, it is necessary not only to ensure compliance with environmental standards, but also to consider protecting the company's business secrets. At present, keys are mainly used to encrypt and transmit water quality monitoring data to ensure the security of sensitive information. However, this puts higher requirements on the maintenance and management of keys. In order to effectively maintain and manage keys, a lot of financial and time resources are often required. This approach is not conducive to cost control of water quality monitoring. If a lot of financial and time resources are not invested, it may lead to the loss and theft of keys, which will cause the leakage of sensitive business secrets of enterprises.

为了解决上述问题,本发明提出了一种解决方案。In order to solve the above problems, the present invention proposes a solution.

发明内容Summary of the invention

本发明的目的在于提供一种环境监测用水质在线监测系统,为了解决现有技术中对水质监测数据进行加密采用密钥的方式,如果不投入大量的财务和时间资源,将可能会导致密钥丢失和被窃取,这将会造成企业敏感商业秘密的泄露,而投入大量的财力和时间资源不利于对水质监测的成本控制的问题;The purpose of the present invention is to provide an online water quality monitoring system for environmental monitoring, in order to solve the problem that the prior art uses a key to encrypt water quality monitoring data, if a large amount of financial and time resources are not invested, the key may be lost or stolen, which will cause the leakage of sensitive business secrets of the enterprise, and the investment of a large amount of financial and time resources is not conducive to the cost control of water quality monitoring;

本发明的目的可以通过以下技术方案实现:The purpose of the present invention can be achieved through the following technical solutions:

一种环境监测用水质在线监测系统,包括:An online water quality monitoring system for environmental monitoring, comprising:

水质数据传输单元,用于将实时接收到的目标区域的水质监测数据转换为实时目标区域的水质转换文档;A water quality data transmission unit, used for converting the real-time received water quality monitoring data of the target area into a real-time water quality conversion document of the target area;

水质数据传输单元接收到当前时刻目标区域的数值监测数据后首先对其进行二进制转换得到对应的二进制数据;After receiving the numerical monitoring data of the target area at the current moment, the water quality data transmission unit first performs binary conversion on the data to obtain the corresponding binary data;

按照从左到右的顺序对所述二进制数据进行分组,每两个字符编为一组得到若干组字符串;对分组后得到的字符串的数量与254进行大小判定,基于大小判定结果确定生成当前时刻目标区域水质转换文档的生成规则,生成规则包括第一生成规则和第二生成规则。The binary data is grouped in order from left to right, and each two characters are grouped into a group to obtain a plurality of groups of character strings; the number of character strings obtained after grouping and 254 are judged to be larger than or equal to 254, and a generation rule for generating a water quality conversion document for the target area at the current moment is determined based on the size judgment result, and the generation rule includes a first generation rule and a second generation rule.

进一步的,监测数据采集单元,实时对目标区域的若干水质参数进行监测得到实时的水质监测数据,若干水质参数包括温度、pH值、溶解氧、电导率、浊度、化学需氧量、生化需氧量、氨氮、总磷和总氮、重金属含量、微生物指标和色度。Furthermore, the monitoring data acquisition unit monitors several water quality parameters of the target area in real time to obtain real-time water quality monitoring data. The several water quality parameters include temperature, pH value, dissolved oxygen, conductivity, turbidity, chemical oxygen demand, biochemical oxygen demand, ammonia nitrogen, total phosphorus and total nitrogen, heavy metal content, microbial indicators and color.

进一步的,确定生成当前时刻目标区域水质转换文档的生成规则类型的步骤如下:Furthermore, the steps for determining the type of generation rule for generating the water quality conversion document for the target area at the current moment are as follows:

S11:将当前时刻目标区域的水质监测数据进行二进制转换,完成转换后得到对应的二进制数据;S11: performing binary conversion on the water quality monitoring data of the target area at the current moment, and obtaining corresponding binary data after the conversion is completed;

按照从左至右的顺序对所述二进制数据进行分组,每两个字符编为一组,得到若干组字符串,其中若构成二进制数据的字符数量为奇数,则保留该二进制数据最右端的字符,将其作为当前时刻目标区域的空闲字符;The binary data is grouped in order from left to right, with every two characters grouped as one, to obtain a plurality of character strings, wherein if the number of characters constituting the binary data is an odd number, the rightmost character of the binary data is retained and used as an idle character in the target area at the current moment;

S12:按照每个字符串分组前在所述二进制数据中的位置,从左到右将由所述二进制数据分组得到的所有字符串依次标记为A1、A2、...、Aa,a≥1;S12: marking all the character strings obtained by grouping the binary data as A1, A2, ..., Aa, a≥1, from left to right, according to the position of each character string in the binary data before grouping;

S13:将a和254进行大小比较,若a≤254,选定生成规则类型为第一生成规则,按照第一生成规则生成当前时刻目标区域水质转换文档;S13: a and 254 are compared, if a≤254, the generation rule type is selected as the first generation rule, and the water quality conversion document of the target area at the current moment is generated according to the first generation rule;

若a>254,选定生成规则类型为第二生成规则,按照第二生成规则生成当前时刻目标区域水质转换文档。If a>254, the generation rule type is selected as the second generation rule, and the water quality conversion document of the target area at the current moment is generated according to the second generation rule.

本发明的有益效果:Beneficial effects of the present invention:

本发明通过将实时接收到的目标区域的水质监测数据转换为实时目标区域的水质转换文档,避免了使用密钥的方式对水质监测数据进行加密,导致的在对密钥进行维护和管理上造成的过多资源增加;The present invention converts the real-time received water quality monitoring data of the target area into a real-time water quality conversion document of the target area, thereby avoiding the excessive increase of resources in the maintenance and management of the key caused by encrypting the water quality monitoring data using a key;

本发明通过设置监测数据采集单元实时对目标区域的若干水质参数进行监测得到实时的水质监测数据,水质数据传输单元将实时接收到的目标区域的水质监测数据转换为实时目标区域的水质转换文档,水质转换文档中包含有对水质监测数据压缩后得到的原像压缩序列以及用以还原水质压缩序列的映射压缩序列,在这一过程中,原像压缩序列由水质监测数据经过特定规则压缩生成,该规则选择性地移除了某些位置的数据,从而使得序列中只保留了部分关键的水质信息,与此同时,映射压缩序列则记录了被移除数据的位置信息,确保了数据的完整性在解码时得以恢复,这种方式为水质转换文档提供了一种额外的保密措施,由于仅包含关键信息的原像压缩序列和记录了数据位置的映射压缩序列均以二进制形式存在,即便数据在传输过程中被未授权的第三方截获,复杂的编码机制也足以防止任何未经授权的解读尝试,从而显著增强了整体数据传输的安全性。The present invention obtains real-time water quality monitoring data by setting a monitoring data acquisition unit to monitor several water quality parameters of the target area in real time. The water quality data transmission unit converts the real-time received water quality monitoring data of the target area into a real-time water quality conversion document of the target area. The water quality conversion document contains an original image compression sequence obtained after compressing the water quality monitoring data and a mapping compression sequence used to restore the water quality compression sequence. In this process, the original image compression sequence is generated by compressing the water quality monitoring data according to a specific rule. The rule selectively removes data at certain positions, so that only part of the key water quality information is retained in the sequence. At the same time, the mapping compression sequence records the position information of the removed data, ensuring that the integrity of the data is restored during decoding. This method provides an additional confidentiality measure for the water quality conversion document. Since the original image compression sequence containing only key information and the mapping compression sequence recording the data position are both in binary form, even if the data is intercepted by an unauthorized third party during transmission, the complex encoding mechanism is sufficient to prevent any unauthorized interpretation attempt, thereby significantly enhancing the security of the overall data transmission.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

下面结合附图对本发明作进一步的说明。The present invention will be further described below in conjunction with the accompanying drawings.

图1是本发明的系统框图;Fig. 1 is a system block diagram of the present invention;

图2是本发明的方法流程图;Fig. 2 is a flow chart of the method of the present invention;

图3是本发明中生成当前时刻目标区域水质转换文档的第三生成规则的具体步骤。FIG. 3 is a diagram showing the specific steps of the third generation rule for generating a water quality conversion document for the target area at the current moment in the present invention.

具体实施方式DETAILED DESCRIPTION

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

如图1、2、3所示,一种环境监测用水质在线监测系统,包括地方端水质监测模块和云端水质管控平台;As shown in Figures 1, 2, and 3, an online water quality monitoring system for environmental monitoring includes a local water quality monitoring module and a cloud-based water quality control platform;

地方端水质监测模块,用于实时对目标区域的若干水质参数进行监测,所述地方端水质监测模块包括监测数据采集单元和水质数据传输单元;A local water quality monitoring module, used to monitor several water quality parameters of the target area in real time, the local water quality monitoring module includes a monitoring data acquisition unit and a water quality data transmission unit;

当前时刻,监测数据采集单元对目标区域的若干水质参数的监测数值进行采集并依据其生成当前时刻目标区域的水质监测数据;At the current moment, the monitoring data collection unit collects the monitoring values of several water quality parameters of the target area and generates the water quality monitoring data of the target area at the current moment based on the monitoring values;

在本发明的一个实施例中,目标区域指代的是企业排放废水区域;In one embodiment of the present invention, the target area refers to the area where the enterprise discharges wastewater;

在本发明的一个实施例中,目标区域的若干水质参数包括温度、pH值、溶解氧(DO)、电导率、浊度、化学需氧量(COD)、生化需氧量(BOD)、氨氮、总磷和总氮、重金属含量、微生物指标和色度等水质参数;In one embodiment of the present invention, the several water quality parameters of the target area include temperature, pH value, dissolved oxygen (DO), conductivity, turbidity, chemical oxygen demand (COD), biochemical oxygen demand (BOD), ammonia nitrogen, total phosphorus and total nitrogen, heavy metal content, microbial indicators and chromaticity and other water quality parameters;

监测数据采集单元将当前时刻目标区域的水质监测数据传输到水质数据传输单元;The monitoring data collection unit transmits the water quality monitoring data of the target area at the current moment to the water quality data transmission unit;

水质数据传输单元接收到传输的当前时刻目标区域的水质监测数据后按照预设生成规则生成当前时刻目标区域的水质转换文档,预设生成规则如下:After receiving the water quality monitoring data of the target area at the current moment, the water quality data transmission unit generates a water quality conversion document of the target area at the current moment according to the preset generation rules. The preset generation rules are as follows:

S11:将当前时刻目标区域的水质监测数据进行二进制转换,完成转换后得到对应的二进制数据;S11: performing binary conversion on the water quality monitoring data of the target area at the current moment, and obtaining corresponding binary data after the conversion is completed;

按照从左至右的顺序对所述二进制数据进行分组,每两个字符编为一组,得到若干组字符串,其中若构成二进制数据的字符数量为奇数,则保留该二进制数据最右端的字符,将其作为当前时刻目标区域的空闲字符;The binary data is grouped in order from left to right, with every two characters grouped as one, to obtain a plurality of character strings, wherein if the number of characters constituting the binary data is an odd number, the rightmost character of the binary data is retained and used as an idle character in the target area at the current moment;

举例说明,若得到的二进制数据为“101001010”,则按照从左至右的顺序,每两个字符编为一组得到的若干组字符串依次为“10”、“10”、“01”、“01”,最右端剩余一个字符“0”作为空闲字符;For example, if the binary data is "101001010", then from left to right, the strings obtained by grouping two characters are "10", "10", "01", "01", and the character "0" is left at the right end as a free character.

S12:按照每个字符串分组前在所述二进制数据中的位置,从左到右将由所述二进制数据分组得到的所有字符串依次标记为A1、A2、...、Aa,a≥1;S12: marking all the character strings obtained by grouping the binary data as A1, A2, ..., Aa, a≥1, from left to right, according to the position of each character string in the binary data before grouping;

S13:将a和254进行大小比较,针对比较后的结果选定按照预设第一生成规则还是预设第二生成规则生成得到当前时刻目标区域的水质转换文档:S13: a and 254 are compared in size, and according to the comparison result, it is determined whether to generate the water quality conversion document of the target area at the current moment according to the preset first generation rule or the preset second generation rule:

其中,针对S13中的大小比较结果,若a≤254,则按照预设第一生成规则生成当前时刻目标区域的水质转换文档,预设第一计算规则如下:Among them, for the size comparison result in S13, if a≤254, the water quality conversion document of the target area at the current moment is generated according to the preset first generation rule, and the preset first calculation rule is as follows:

S21:按照字符串A1、A2、...、Aa的先后顺序,首先将字符串A1标定为原像字串,重新标记为D1;S21: According to the sequence of character strings A1, A2, ..., Aa, first mark character string A1 as the original image string and re-mark it as D1;

S22:按照字符串A2、...、Aa的先后顺序,找到第一个满足预设映射条件的字符串,将该字符串标定为原像字串D1的补偿字串E1,记录补偿字串E1未被标定前作为字符串时标记的下标,将该下标作为原像字串D1对应的映射字串,其中若查找不到满足映射条件的字符串,则获取原像字串D1重新标定为非原字串,同时将十进制数“255”转换为的8位二进制数“11111111”作为所述非原字串对应的映射字串;S22: Find the first character string that meets the preset mapping condition in the order of the character strings A2, ..., Aa, mark the character string as the compensation character string E1 of the original image character string D1, record the subscript marked when the compensation character string E1 is used as a character string before being marked, and use the subscript as the mapping character string corresponding to the original image character string D1. If no character string that meets the mapping condition is found, obtain the original image character string D1 and re-mark it as a non-original character string, and at the same time convert the decimal number "255" into an 8-bit binary number "11111111" as the mapping character string corresponding to the non-original character string;

预设映射条件如下:原像字串的十进制数+补偿字串的十进制数=3;The preset mapping condition is as follows: the decimal number of the original image string + the decimal number of the compensation string = 3;

S23:找到原像字串D1的补偿字串E1或者对原像字串D1进行重新标定后,继续按照字符串A1、A2、...、Aa的先后顺序,将第一个未标定为原像字串、补偿字串以及未被重新标定为非原字串的字符串标定为原像字串D2;S23: after finding the compensation string E1 of the original image string D1 or re-marking the original image string D1, continue to mark the first string that is not marked as the original image string, the compensation string, and the string that is not re-marked as a non-original string as the original image string D2 in the order of the strings A1, A2, ..., Aa;

S24:然后按照S22到S23相同的步骤,按照字符串A1、A2、...、Aa的先后顺序,将第一个满足预设映射条件且并没有被标定为原像字串、补偿字串以及未被重新标定为非原字串的字符串标定为原像字串D2的补偿字串E2,记录补偿字串E2未被标定前作为字符串时标记的下标,对其进行二进制转换,将二进制转换后的8位二进制数作为原像字串D2的映射字串;S24: Then, following the same steps from S22 to S23, in the order of the character strings A1, A2, ..., Aa, the first character string that meets the preset mapping condition and has not been marked as the original image string, the compensation string, and has not been re-marked as the non-original string is marked as the compensation string E2 of the original image string D2, the subscript marked when the compensation string E2 is used as a character string before being marked is recorded, the compensation string E2 is binary converted, and the 8-bit binary number after the binary conversion is used as the mapping string of the original image string D2;

S25:按照S21到S24,从字符串A1、A2、...、Aa中获取其内所有原像字串以及对应的映射字串、所有非原字串以及对应的映射字串;S25: According to S21 to S24, all original image strings and corresponding mapping strings, all non-original strings and corresponding mapping strings in the strings A1, A2, ..., Aa are obtained;

S26:首先按照每个原像字串被标定的先后顺序,将所有原像字串进行拼接得到当前时刻的原像压缩序列,同样按照每个原像字串被标定的先后顺序,将所有原像字串对应的映射字串进行拼接得到当前时刻的映射压缩序列,其中若存在当前时刻目标区域的空闲字符,则将其拼接到当前时刻原像压缩序列的最右端,并将最终得到的数据更新为当前时刻的原像压缩序列;S26: First, according to the order in which each original image string is marked, all original image strings are spliced to obtain the original image compression sequence at the current moment. Similarly, according to the order in which each original image string is marked, the mapping strings corresponding to all original image strings are spliced to obtain the mapping compression sequence at the current moment. If there is an idle character in the target area at the current moment, it is spliced to the rightmost end of the original image compression sequence at the current moment, and the finally obtained data is updated as the original image compression sequence at the current moment.

水质数据传输单元依据当前时刻的原像压缩序列和映射压缩序列生成当前时刻目标区域的水质转换文档,在当前时刻目标区域的水质转换文档中,当前时刻的原像压缩序列和映射压缩序列中间用“,”分隔开;The water quality data transmission unit generates a water quality conversion document for the target area at the current moment according to the original image compression sequence and the mapping compression sequence at the current moment. In the water quality conversion document for the target area at the current moment, the original image compression sequence and the mapping compression sequence at the current moment are separated by ",";

其中,针对S13中的大小比较结果,若a≥254,则按照预设第二生成规则生成当前时刻目标区域的水质转换文档,预设第二计算规则如下:Among them, for the size comparison result in S13, if a≥254, the water quality conversion document of the target area at the current moment is generated according to the preset second generation rule, and the preset second calculation rule is as follows:

S31:利用公式F1=ceil(a/254)计算获取当前时刻目标区域的分割指标F1,其中ceil()为向上取整函数;S31: Calculate and obtain the segmentation index F1 of the target area at the current moment using the formula F1=ceil(a/254), where ceil() is an upward rounding function;

S32:按照字符串A1、A2、...、Aa的顺序,从左到右对字符串A1、A2、...、Aa进行遍历,每遍历254个字符串,将这254个字符串汇总为一组映射集,直至对字符串A1、A2、...、Aa遍历完全;S32: traverse the strings A1, A2, ..., Aa from left to right in the order of the strings A1, A2, ..., Aa, and aggregate the 254 strings into a set of mapping sets each time traversing the strings until the strings A1, A2, ..., Aa are completely traversed;

按照汇总的先后顺序,将F1组映射集依次标记为G1、G2、...、Gg,g=1、2、...、F1,其中映射集Gg中的字符串的总数量小于等于254;In the order of summary, the mapping sets of group F1 are marked as G1, G2, ..., Gg, g = 1, 2, ..., F1, where the total number of strings in the mapping set Gg is less than or equal to 254;

针对任意一组映射集,其内字符串按照其遍历的先后顺序,从左到右依次排列;For any set of mappings, the strings in them are arranged from left to right in the order in which they are traversed;

S33:首先对映射集G1中的所有字符串,按照从左到右的顺序依次标记为H1、H2、...、Hh,h=1、2、...、254;S33: First, all the strings in the mapping set G1 are marked as H1, H2, ..., Hh in order from left to right, where h=1, 2, ..., 254;

S34:按照字符串H1、H2、...、Hh的先后顺序,首先将字符串H1标定为原像字串,重新标记为I1;S34: According to the sequence of character strings H1, H2, ..., Hh, first mark the character string H1 as the original image string and re-mark it as I1;

S35:按照字符串H2、...、Hh的先后顺序,找到第一个满足预设映射条件的字符串,将该字符串标定为原像字串I1的补偿字串J1,记录补偿字串J1未被标定前作为字符串时标记的下标,将该下标作为原像字串I1对应的映射字串,其中若查找不到满足映射条件的字符串,则获取原像字串I1重新标定为非原字串,同时将十进制数“255”转换为的8位二进制数“11111111”作为所述非原字串对应的映射字串;S35: Find the first character string that meets the preset mapping condition in the order of the character strings H2, ..., Hh, mark the character string as the compensation character string J1 of the original image character string I1, record the subscript marked when the compensation character string J1 is used as a character string before being marked, and use the subscript as the mapping character string corresponding to the original image character string I1. If no character string that meets the mapping condition is found, obtain the original image character string I1 and re-mark it as a non-original character string, and at the same time convert the decimal number "255" into an 8-bit binary number "11111111" as the mapping character string corresponding to the non-original character string;

预设映射条件如下:原像字串的十进制数+补偿字串的十进制数=3;The preset mapping condition is as follows: the decimal number of the original image string + the decimal number of the compensation string = 3;

S36:找到原像字串I1的补偿字串J1或者对原像字串I1进行重新标定后,继续按照字符串H1、H2、...、Hh的先后顺序,将第一个未标定为原像字串、补偿字串以及未被重新标定为非原字串的字符串标定为原像字串I2;S36: after finding the compensation string J1 of the original image string I1 or re-marking the original image string I1, continue to mark the first string that is not marked as the original image string, the compensation string, and the string that is not re-marked as a non-original string as the original image string I2 in the order of the strings H1, H2, ..., Hh;

S37:然后按照S35到S36相同的步骤,按照字符串H1、H2、...、Hh的先后顺序,将第一个满足预设映射条件且并没有被标定为原像字串、补偿字串以及未被重新标定为非原字串的字符串标定为原像字串I2的补偿字串J2,记录补偿字串J2未被标定前作为字符串时标记的下标,对其进行二进制转换,将二进制转换后的8位二进制数作为原像字串I2的映射字串;S37: Then, according to the same steps from S35 to S36, in the order of the character strings H1, H2, ..., Hh, the first character string that meets the preset mapping condition and has not been marked as the original image string, the compensation string, and has not been re-marked as the non-original string is marked as the compensation string J2 of the original image string I2, the subscript marked when the compensation string J2 is used as a character string before being marked is recorded, and the binary conversion is performed, and the 8-bit binary number after the binary conversion is used as the mapping string of the original image string I2;

S38:按照S33到S37,从字符串H1、H2、...、Hh中获取其内所有原像字串以及对应的映射字串、所有非原字串以及对应的映射字串;S38: According to S33 to S37, all original image strings and corresponding mapping strings, all non-original strings and corresponding mapping strings in the strings H1, H2, ..., Hh are obtained;

S39:首先按照每个原像字串被标定的先后顺序,将所有原像字串进行拼接得到映射集G1的原像压缩序列,同样按照每个原像字串被标定的先后顺序,将所有原像字串对应的映射字串进行拼接得到映射集G1的映射压缩序列;S39: first, according to the order in which each original image string is marked, all original image strings are concatenated to obtain the original image compression sequence of the mapping set G1, and similarly, according to the order in which each original image string is marked, the mapping strings corresponding to all original image strings are concatenated to obtain the mapping compression sequence of the mapping set G1;

S310:按照S33到S39,依次得到映射集G1、G2、...、Gg的原像压缩序列和映射压缩序列,其中若存在当前时刻目标区域的空闲字符,则将其拼接到映射集Gg原像压缩序列的最右端,并将最终得到的数据更新为映射集Gg的原像压缩序列;S310: According to S33 to S39, the original image compression sequence and the mapping compression sequence of the mapping sets G1, G2, ..., Gg are obtained in sequence, wherein if there is an idle character in the target area at the current moment, it is spliced to the rightmost end of the original image compression sequence of the mapping set Gg, and the finally obtained data is updated to the original image compression sequence of the mapping set Gg;

依据得到的映射集G1、G2、...、Gg的原像压缩序列和映射压缩序列生成当前时刻目标区域的水质转换文档,在当前时刻目标区域的水质转换文档中,各个原像压缩序列之间、各个映射压缩序列之间,原像压缩序列和映射压缩序列之间用“,”分隔开,且在水质转换文档中从左到右依次排列着映射集G1的原像压缩序列和映射压缩序列、映射集G2的原像压缩序列和映射压缩序列、...、映射集Gg的原像压缩序列和映射压缩序列;Generate a water quality conversion document for the target area at the current moment according to the obtained original image compression sequence and mapping compression sequence of the mapping sets G1, G2, ..., Gg. In the water quality conversion document for the target area at the current moment, each original image compression sequence, each mapping compression sequence, and each original image compression sequence and mapping compression sequence are separated by ",", and the original image compression sequence and mapping compression sequence of the mapping set G1, the original image compression sequence and mapping compression sequence of the mapping set G2, ..., the original image compression sequence and mapping compression sequence of the mapping set Gg are arranged from left to right in sequence in the water quality conversion document;

水质数据传输单元将当前时刻目标区域的水质转换文档传输到云端水质管控平台;The water quality data transmission unit transmits the water quality conversion document of the target area at the current moment to the cloud water quality control platform;

云端水质管控平台,用以在云端对水质监测数据进行管控,云端水质管控平台接收到传输的当前时刻目标区域的水质转换文档后按照预设还原规则对当前时刻目标区域的水质转换文档进行还原,预设还原规则如下:The cloud-based water quality control platform is used to control water quality monitoring data in the cloud. After receiving the transmitted water quality conversion document of the target area at the current moment, the cloud-based water quality control platform restores the water quality conversion document of the target area at the current moment according to the preset restoration rules. The preset restoration rules are as follows:

S41:将逗号“,”作为分隔符,将当前时刻目标区域的水质转换文档从左至右逐一切割,可以得到若干个由逗号分隔的字符串,按照每个字符串得到的先后顺序,依次将所有的字符串标记为K1、K2、...、Kk,k≥1;S41: Using commas "," as separators, the water quality conversion documents of the target area at the current moment are cut one by one from left to right, so that a number of strings separated by commas can be obtained. According to the order in which each string is obtained, all the strings are marked as K1, K2, ..., Kk, where k≥1;

其中若字符串Kk-1的字符总数量为奇数,则从右到左截取出字符串Kk-1中第一个字符作为当前时刻目标区域的空闲字符;If the total number of characters in the string Kk-1 is an odd number, the first character in the string Kk-1 is intercepted from right to left as the free character in the target area at the current moment;

S42:按照K1、K2、...、Kk的先后顺序,分别将K1和K2、K3和K4、...、Kk-1和Kk作为一组还原集中的原像还原序列和映射还原序列,可得k/2-1组还原集,对应标记为L1、L2、...、Ll,l=1、2、...、k/2-1;S42: According to the order of K1, K2, ..., Kk, K1 and K2, K3 and K4, ..., Kk-1 and Kk are respectively used as the original image restoration sequence and the mapping restoration sequence in a restoration set, and k/2-1 restoration sets can be obtained, which are correspondingly marked as L1, L2, ..., Ll, l=1, 2, ..., k/2-1;

S43:按照从左到右的顺序对还原集L1中的原像还原序列进行分组,每两个字符编为一组,得到若干组还原像字符串,按照每个还原像字符串分组前在还原集L1的原像还原序列中的位置,从左到右将分组得到的所有还原像字符串依次标记为M1、M2、...、Mm,m≥1;S43: grouping the original image restoration sequence in the restoration set L1 from left to right, grouping every two characters into a group, obtaining a plurality of groups of restoration image character strings, and marking all the grouped restoration image character strings as M1, M2, ..., Mm, m≥1, from left to right according to the position of each restoration image character string in the original image restoration sequence of the restoration set L1 before grouping;

按照从左到右的顺序对还原集L1中的映射还原序列进行分组,每两个字符编为一组,得到若干组映射像字符串,按照每个映射像字符串分组前在还原集L1的映射还原序列中的位置,从左到右将分组得到的所有映射像字符串依次标记为N1、N2、...、Nm;The mapping reduction sequence in the reduction set L1 is grouped from left to right, with every two characters grouped together to obtain several groups of mapping image strings. All the mapping image strings obtained by grouping are marked as N1, N2, ..., Nm from left to right according to the position of each mapping image string in the mapping reduction sequence of the reduction set L1 before grouping;

S44:获取映射像字符串N1对应的十进制数Q1,若Q1为“255”,则将还原像字符串M1作为还原集L1的第1个还原字符串;S44: Obtain the decimal number Q1 corresponding to the mapped image string N1. If Q1 is "255", use the restored image string M1 as the first restored string of the restored set L1.

若Q1不为“255”,则首先将还原像字符串M1作为还原集L1的第1个还原字符串,然后对还原像字符串M1进行识别,若还原像字符串M1为“00”,则确定还原集L1的第Q1个还原字符串为11,若还原像字符串M1为“01”,则确定还原集L1的第Q1个还原字符串为10,若还原像字符串M1为“10”,则确定还原集L1的第Q1个还原字符串为01,若还原像字符串M1为“11”,则确定还原集L1的第Q1个还原字符串为00;If Q1 is not "255", firstly, the restored image string M1 is taken as the first restored string of the restoration set L1, and then the restored image string M1 is identified. If the restored image string M1 is "00", the Q1th restored string of the restoration set L1 is determined to be 11; if the restored image string M1 is "01", the Q1th restored string of the restoration set L1 is determined to be 10; if the restored image string M1 is "10", the Q1th restored string of the restoration set L1 is determined to be 01; if the restored image string M1 is "11", the Q1th restored string of the restoration set L1 is determined to be 00;

S45:按照S43到44,分别确定基于还原集L1的第1、2、...、2m个还原字符串,并按照1、2、...、2m的先后顺序,将基于还原集L1的第1、2、...、2m个还原字符串进行拼接得到还原集L1的还原序列;S45: According to S43 to S44, respectively determine the 1st, 2nd, ..., 2mth restoration character strings based on the restoration set L1, and concatenate the 1st, 2nd, ..., 2mth restoration character strings based on the restoration set L1 in the order of 1, 2, ..., 2m to obtain a restoration sequence of the restoration set L1;

S46:按照S42到S45依次计算获取还原集L1、L2、...、Ll的还原序列,其中若存在当前时刻目标区域的空闲字符,则将当前时刻目标区域的空闲字符拼接在还原集Ll还原序列的最右端;S46: Calculate and obtain the restoration sequence of the restoration set L1, L2, ..., L1 in sequence according to S42 to S45, wherein if there are idle characters in the target area at the current moment, the idle characters in the target area at the current moment are spliced to the rightmost end of the restoration sequence of the restoration set L1;

按照计算获取的先后顺序,将还原集L1、L2、...、Ll的还原序列进行拼接得到当前时刻目标区域的转换还原序列,并对所述当前时刻目标区域的转换还原序列进行还原得到当前时刻目标区域的水质监测数据;According to the order of calculation, the restoration sequences of the restoration sets L1, L2, ..., L1 are spliced to obtain the conversion restoration sequence of the target area at the current moment, and the conversion restoration sequence of the target area at the current moment is restored to obtain the water quality monitoring data of the target area at the current moment;

云端水质管控平台对其进行存储,供给之后管理人员进行分析。The cloud-based water quality control platform stores the data and provides it to management personnel for analysis.

在说明书的描述中,参考术语“一个实施例”、“示例”、“具体示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of the specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

以上内容仅仅是对本发明所作的举例和说明,所属本技术领域的技术人员对所描述的具体实施例做各种各样的修改或补充或采用类似的方式替代,只要不偏离发明或者超越本权利要求书所定义的范围,均应属于本发明的保护范围。The above contents are merely examples and explanations of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the invention or exceed the scope defined by the claims, they shall all fall within the protection scope of the present invention.

以上对本发明的一个实施例进行了详细说明,但所述内容仅为本发明的较佳实施例,不能被认为用于限定本发明的实施范围。凡依本发明申请范围所作的均等变化与改进等,均应仍归属于本发明的专利涵盖范围之内。The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.

Claims (6)

1.一种环境监测用水质在线监测系统,其特征在于,包括:1. An online water quality monitoring system for environmental monitoring, characterized in that it includes: 水质数据传输单元接收到当前时刻目标区域的数值监测数据后首先对其进行二进制转换得到对应的二进制数据;After receiving the numerical monitoring data of the target area at the current moment, the water quality data transmission unit first performs binary conversion on the data to obtain the corresponding binary data; 按照从左到右的顺序对所述二进制数据进行分组,每两个字符编为一组得到若干组字符串;对分组后得到的字符串的数量与254进行大小判定,基于大小判定结果确定生成当前时刻目标区域水质转换文档的生成规则,生成规则包括第一生成规则和第二生成规则;The binary data is grouped in order from left to right, and each two characters are grouped into a group to obtain a plurality of groups of character strings; the number of character strings obtained after the grouping is compared with 254, and a generation rule for generating a water quality conversion document for the target area at the current moment is determined based on the size determination result, and the generation rule includes a first generation rule and a second generation rule; 确定生成当前时刻目标区域水质转换文档的生成规则类型的步骤如下:The steps to determine the type of generation rule for generating the water quality conversion document for the target area at the current moment are as follows: S11:将当前时刻目标区域的水质监测数据进行二进制转换,完成转换后得到对应的二进制数据;S11: performing binary conversion on the water quality monitoring data of the target area at the current moment, and obtaining corresponding binary data after the conversion is completed; 按照从左至右的顺序对所述二进制数据进行分组,每两个字符编为一组,得到若干组字符串,其中若构成二进制数据的字符数量为奇数,则保留该二进制数据最右端的字符,将其作为当前时刻目标区域的空闲字符;The binary data is grouped in order from left to right, with every two characters grouped as one, to obtain a plurality of character strings, wherein if the number of characters constituting the binary data is an odd number, the rightmost character of the binary data is retained and used as an idle character in the target area at the current moment; S12:按照每个字符串分组前在所述二进制数据中的位置,从左到右将由所述二进制数据分组得到的所有字符串依次标记为A1、A2、...、Aa,a≥1;S12: marking all the character strings obtained by grouping the binary data as A1, A2, ..., Aa, a≥1, from left to right, according to the position of each character string in the binary data before grouping; S13:将a和254进行大小比较,若a≤254,选定生成规则类型为第一生成规则,按照第一生成规则生成当前时刻目标区域水质转换文档;S13: a and 254 are compared, if a≤254, the generation rule type is selected as the first generation rule, and the water quality conversion document of the target area at the current moment is generated according to the first generation rule; 若a>254,选定生成规则类型为第二生成规则,按照第二生成规则生成当前时刻目标区域水质转换文档;If a>254, the generation rule type is selected as the second generation rule, and the water quality conversion document of the target area at the current moment is generated according to the second generation rule; 第一生成规则如下:The first generation rule is as follows: S21:按照字符串A1、A2、...、Aa的先后顺序,首先将字符串A1标定为原像字串,重新标记为D1;S21: According to the sequence of character strings A1, A2, ..., Aa, first mark character string A1 as the original image string and re-mark it as D1; S22:按照字符串A2、...、Aa的先后顺序,找到第一个满足预设的映射条件的字符串,将该字符串标定为原像字串D1的补偿字串E1,记录补偿字串E1未被标定前作为字符串时标记的下标,将该下标作为原像字串D1对应的映射字串,其中若查找不到满足映射条件的字符串,则获取原像字串D1重新标定为非原字串,同时将十进制数“255”转换为的8位二进制数“11111111”作为所述非原字串对应的映射字串;S22: Find the first character string that meets the preset mapping condition in the order of the character strings A2, ..., Aa, mark the character string as the compensation character string E1 of the original image character string D1, record the subscript marked when the compensation character string E1 is used as a character string before being marked, and use the subscript as the mapping character string corresponding to the original image character string D1. If no character string that meets the mapping condition is found, obtain the original image character string D1 and re-mark it as a non-original character string, and at the same time convert the decimal number "255" into an 8-bit binary number "11111111" as the mapping character string corresponding to the non-original character string; 映射条件如下:原像字串的十进制数+补偿字串的十进制数=3;The mapping conditions are as follows: the decimal number of the original image string + the decimal number of the compensation string = 3; S23:找到原像字串D1的补偿字串E1或者对原像字串D1进行重新标定后,继续按照字符串A1、A2、...、Aa的先后顺序,将第一个未标定为原像字串、补偿字串以及未被重新标定为非原字串的字符串标定为原像字串D2;S23: after finding the compensation string E1 of the original image string D1 or re-marking the original image string D1, continue to mark the first string that is not marked as the original image string, the compensation string, and the string that is not re-marked as a non-original string as the original image string D2 in the order of the strings A1, A2, ..., Aa; S24:然后按照S22到S23相同的步骤,按照字符串A1、A2、...、Aa的先后顺序,将第一个满足映射条件且并没有被标定为原像字串、补偿字串以及未被重新标定为非原字串的字符串标定为原像字串D2的补偿字串E2,记录补偿字串E2未被标定前作为字符串时标记的下标,对其进行二进制转换,将二进制转换后的8位二进制数作为原像字串D2的映射字串;S24: Then, following the same steps from S22 to S23, in the order of the character strings A1, A2, ..., Aa, mark the first character string that meets the mapping condition and has not been marked as the original image string, the compensation string, and has not been re-marked as the non-original string as the compensation string E2 of the original image string D2, record the subscript marked when the compensation string E2 was used as a character string before being marked, perform binary conversion on it, and use the 8-bit binary number after the binary conversion as the mapping string of the original image string D2; S25:按照S21到S24,从字符串A1、A2、...、Aa中获取其内所有原像字串以及对应的映射字串、所有非原字串以及对应的映射字串;S25: According to S21 to S24, all original image strings and corresponding mapping strings, all non-original strings and corresponding mapping strings in the strings A1, A2, ..., Aa are obtained; S26:首先按照每个原像字串被标定的先后顺序,将所有原像字串进行拼接得到当前时刻的原像压缩序列,同样按照每个原像字串被标定的先后顺序,将所有原像字串对应的映射字串进行拼接得到当前时刻的映射压缩序列,其中若存在当前时刻目标区域的空闲字符,则将其拼接到当前时刻原像压缩序列的最右端,并将最终得到的数据更新为当前时刻的原像压缩序列;S26: First, according to the order in which each original image string is marked, all original image strings are spliced to obtain the original image compression sequence at the current moment. Similarly, according to the order in which each original image string is marked, the mapping strings corresponding to all original image strings are spliced to obtain the mapping compression sequence at the current moment. If there is an idle character in the target area at the current moment, it is spliced to the rightmost end of the original image compression sequence at the current moment, and the finally obtained data is updated as the original image compression sequence at the current moment. 依据当前时刻的原像压缩序列和映射压缩序列生成当前时刻目标区域的水质转换文档,在当前时刻目标区域的水质转换文档中,当前时刻的原像压缩序列和映射压缩序列中间用“,”分隔开。A water quality conversion document for the target area at the current moment is generated based on the original image compression sequence and the mapping compression sequence at the current moment. In the water quality conversion document for the target area at the current moment, the original image compression sequence and the mapping compression sequence at the current moment are separated by ",". 2.根据权利要求1所述的一种环境监测用水质在线监测系统,其特征在于,目标区域指代的是企业排放废水区域。2. An online water quality monitoring system for environmental monitoring according to claim 1, characterized in that the target area refers to the area where the enterprise discharges wastewater. 3.根据权利要求1所述的一种环境监测用水质在线监测系统,其特征在于,还包括监测数据采集单元,实时对目标区域的水质参数进行监测得到实时的水质监测数据,水质参数包括温度、pH值、溶解氧、电导率、浊度、化学需氧量、生化需氧量、氨氮、总磷和总氮、重金属含量、微生物指标和色度。3. The online water quality monitoring system for environmental monitoring according to claim 1 is characterized in that it also includes a monitoring data acquisition unit to monitor the water quality parameters of the target area in real time to obtain real-time water quality monitoring data, and the water quality parameters include temperature, pH value, dissolved oxygen, conductivity, turbidity, chemical oxygen demand, biochemical oxygen demand, ammonia nitrogen, total phosphorus and total nitrogen, heavy metal content, microbial indicators and chromaticity. 4.根据权利要求1所述的一种环境监测用水质在线监测系统,其特征在于,第二生成规则如下:4. The online monitoring system for water quality for environmental monitoring according to claim 1, wherein the second generation rule is as follows: S31:利用公式F1=ceil(a/254)计算获取当前时刻目标区域的分割指标F1,其中ceil()为向上取整函数;S31: Calculate and obtain the segmentation index F1 of the target area at the current moment using the formula F1=ceil(a/254), where ceil() is an upward rounding function; S32:按照字符串A1、A2、...、Aa的顺序,从左到右对字符串A1、A2、...、Aa进行遍历,每遍历254个字符串,将这254个字符串汇总为一组映射集,直至对字符串A1、A2、...、Aa遍历完全;S32: traverse the strings A1, A2, ..., Aa from left to right in the order of the strings A1, A2, ..., Aa, and aggregate the 254 strings into a set of mapping sets each time traversing the strings until the strings A1, A2, ..., Aa are completely traversed; 按照汇总的先后顺序,将F1组映射集依次标记为G1、G2、...、Gg,g=1、2、...、F1,其中映射集Gg中的字符串的总数量小于等于254;In the order of summary, the mapping sets of group F1 are marked as G1, G2, ..., Gg, g = 1, 2, ..., F1, where the total number of strings in the mapping set Gg is less than or equal to 254; 针对任意一组映射集,其内字符串按照其遍历的先后顺序,从左到右依次排列;For any set of mappings, the strings in them are arranged from left to right in the order in which they are traversed; S33:首先对映射集G1中的所有字符串,按照从左到右的顺序依次标记为H1、H2、...、Hh,h=1、2、...、254;S33: First, all the strings in the mapping set G1 are marked as H1, H2, ..., Hh in order from left to right, where h=1, 2, ..., 254; S34:按照字符串H1、H2、...、Hh的先后顺序,首先将字符串H1标定为原像字串,重新标记为I1;S34: According to the sequence of character strings H1, H2, ..., Hh, first mark the character string H1 as the original image string and re-mark it as I1; S35:按照字符串H2、...、Hh的先后顺序,找到第一个满足预设的映射条件的字符串,将该字符串标定为原像字串I1的补偿字串J1,记录补偿字串J1未被标定前作为字符串时标记的下标,将该下标作为原像字串I1对应的映射字串,其中若查找不到满足映射条件的字符串,则获取原像字串I1重新标定为非原字串,同时将十进制数“255”转换为的8位二进制数“11111111”作为所述非原字串对应的映射字串;S35: Find the first character string that meets the preset mapping condition in the order of the character strings H2, ..., Hh, mark the character string as the compensation character string J1 of the original image character string I1, record the subscript marked when the compensation character string J1 is used as a character string before being marked, and use the subscript as the mapping character string corresponding to the original image character string I1. If no character string that meets the mapping condition is found, obtain the original image character string I1 and re-mark it as a non-original character string, and at the same time convert the decimal number "255" into an 8-bit binary number "11111111" as the mapping character string corresponding to the non-original character string; 映射条件如下:原像字串的十进制数+补偿字串的十进制数=3;The mapping conditions are as follows: the decimal number of the original image string + the decimal number of the compensation string = 3; S36:找到原像字串I1的补偿字串J1或者对原像字串I1进行重新标定后,继续按照字符串H1、H2、...、Hh的先后顺序,将第一个未标定为原像字串、补偿字串以及未被重新标定为非原字串的字符串标定为原像字串I2;S36: after finding the compensation string J1 of the original image string I1 or re-marking the original image string I1, continue to mark the first string that is not marked as the original image string, the compensation string, and the string that is not re-marked as a non-original string as the original image string I2 in the order of the strings H1, H2, ..., Hh; S37:然后按照S35到S36相同的步骤,按照字符串H1、H2、...、Hh的先后顺序,将第一个满足映射条件且并没有被标定为原像字串、补偿字串以及未被重新标定为非原字串的字符串标定为原像字串I2的补偿字串J2,记录补偿字串J2未被标定前作为字符串时标记的下标,对其进行二进制转换,将二进制转换后的8位二进制数作为原像字串I2的映射字串;S37: Then, according to the same steps from S35 to S36, in the order of the character strings H1, H2, ..., Hh, the first character string that meets the mapping condition and has not been marked as the original image string, the compensation string, and has not been re-marked as the non-original string is marked as the compensation string J2 of the original image string I2, the subscript marked when the compensation string J2 was used as a character string before being marked is recorded, and the binary conversion is performed, and the 8-bit binary number after the binary conversion is used as the mapping string of the original image string I2; S38:按照S33到S37,从字符串H1、H2、...、Hh中获取其内所有原像字串以及对应的映射字串、所有非原字串以及对应的映射字串;S38: According to S33 to S37, all original image strings and corresponding mapping strings, all non-original strings and corresponding mapping strings in the strings H1, H2, ..., Hh are obtained; S39:首先按照每个原像字串被标定的先后顺序,将所有原像字串进行拼接得到映射集G1的原像压缩序列,同样按照每个原像字串被标定的先后顺序,将所有原像字串对应的映射字串进行拼接得到映射集G1的映射压缩序列;S39: first, according to the order in which each original image string is marked, all original image strings are concatenated to obtain the original image compression sequence of the mapping set G1, and similarly, according to the order in which each original image string is marked, the mapping strings corresponding to all original image strings are concatenated to obtain the mapping compression sequence of the mapping set G1; S310:按照S33到S39,依次得到映射集G1、G2、...、Gg的原像压缩序列和映射压缩序列,其中若存在当前时刻目标区域的空闲字符,则将其拼接到映射集Gg原像压缩序列的最右端,并将最终得到的数据更新为映射集Gg的原像压缩序列;S310: According to S33 to S39, the original image compression sequence and the mapping compression sequence of the mapping sets G1, G2, ..., Gg are obtained in sequence, wherein if there is an idle character in the target area at the current moment, it is spliced to the rightmost end of the original image compression sequence of the mapping set Gg, and the finally obtained data is updated to the original image compression sequence of the mapping set Gg; 依据得到的映射集G1、G2、...、Gg的原像压缩序列和映射压缩序列生成当前时刻目标区域的水质转换文档。The water quality conversion document of the target area at the current moment is generated according to the original image compression sequence and the mapping compression sequence of the obtained mapping sets G1, G2, ..., Gg. 5.根据权利要求4所述的一种环境监测用水质在线监测系统,其特征在于,步骤S310中在生成的当前时刻目标区域的水质转换文档中,各个原像压缩序列之间、各个映射压缩序列之间,原像压缩序列和映射压缩序列之间用“,”分隔开,且在水质转换文档中从左到右依次排列着映射集G1的原像压缩序列和映射压缩序列、映射集G2的原像压缩序列和映射压缩序列、...、映射集Gg的原像压缩序列和映射压缩序列。5. An online water quality monitoring system for environmental monitoring according to claim 4, characterized in that, in the water quality conversion document of the target area at the current moment generated in step S310, each original image compression sequence, each mapping compression sequence, and the original image compression sequence and the mapping compression sequence are separated by ",", and the original image compression sequence and the mapping compression sequence of the mapping set G1, the original image compression sequence and the mapping compression sequence of the mapping set G2, ..., the original image compression sequence and the mapping compression sequence of the mapping set Gg are arranged in sequence from left to right in the water quality conversion document. 6.根据权利要求1所述的一种环境监测用水质在线监测系统,其特征在于,还包括云端水质管控平台,用以将接收到的实时目标区域的水质转换文档还原成实时的目标区域的水质监测数据,并对还原得到的实时的目标区域的水质监测数据进行存储。6. According to claim 1, an online water quality monitoring system for environmental monitoring is characterized in that it also includes a cloud-based water quality control platform for restoring the received real-time target area water quality conversion document into real-time target area water quality monitoring data, and storing the restored real-time target area water quality monitoring data.
CN202410720006.XA 2024-06-05 2024-06-05 Water quality on-line monitoring system for environment monitoring Active CN118316967B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410720006.XA CN118316967B (en) 2024-06-05 2024-06-05 Water quality on-line monitoring system for environment monitoring

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410720006.XA CN118316967B (en) 2024-06-05 2024-06-05 Water quality on-line monitoring system for environment monitoring

Publications (2)

Publication Number Publication Date
CN118316967A CN118316967A (en) 2024-07-09
CN118316967B true CN118316967B (en) 2024-09-10

Family

ID=91720816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410720006.XA Active CN118316967B (en) 2024-06-05 2024-06-05 Water quality on-line monitoring system for environment monitoring

Country Status (1)

Country Link
CN (1) CN118316967B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118643518B (en) * 2024-08-09 2024-11-08 水发(北京)建设有限公司 Water resource optimization configuration system and method for near-zero sewage discharge in industrial parks

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118054975A (en) * 2024-04-16 2024-05-17 深圳市天地互通科技有限公司 Intelligent management system for river sewage outlet
CN118079765A (en) * 2024-04-25 2024-05-28 湘潭新云科技有限责任公司 Multifunctional vertical mixer intelligent operation control system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100269808B1 (en) * 1997-12-20 2000-10-16 전주범 Data compression system to compensate for compression rate variations
EP1926282B1 (en) * 1999-10-14 2012-11-21 Nokia Corporation Method and system for compressing and decompressing packet headers
CN109951293B (en) * 2019-02-20 2023-12-05 深圳市朗石科学仪器有限公司 Water quality monitoring terminal user verification method and system and water quality monitoring Internet of things terminal system
CN111223438B (en) * 2020-03-11 2022-11-04 Tcl华星光电技术有限公司 Compression method and device of pixel compensation table
CN112615433B (en) * 2020-12-18 2023-03-10 国网河北省电力有限公司电力科学研究院 On-line monitoring system for environmental pollution source of transformer substation
CN113312325B (en) * 2021-05-24 2023-10-20 康键信息技术(深圳)有限公司 Track data transmission method, device, equipment and storage medium
CN114610266A (en) * 2022-03-01 2022-06-10 昆山国显光电有限公司 Compensation data processing method, device, equipment and medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118054975A (en) * 2024-04-16 2024-05-17 深圳市天地互通科技有限公司 Intelligent management system for river sewage outlet
CN118079765A (en) * 2024-04-25 2024-05-28 湘潭新云科技有限责任公司 Multifunctional vertical mixer intelligent operation control system

Also Published As

Publication number Publication date
CN118316967A (en) 2024-07-09

Similar Documents

Publication Publication Date Title
CN118316967B (en) Water quality on-line monitoring system for environment monitoring
CN113177730B (en) A water resource traceability management system
CN108197479B (en) Method and system for judging electronic contract signing time accuracy
CN114971421B (en) A risk management and control system for hydropower station operation based on blockchain technology
CN110852725A (en) Project declaration system based on big data
CN112149174B (en) Model training method, device, equipment and medium
CN112149141A (en) Model training method, device, equipment and medium
CN115860477A (en) A method and system for real-time pollutant emission monitoring based on electric power data
CN118552007B (en) Sanitation work dispatch data information management method, system and storage medium
CN113888330A (en) Data routing platform management system for financial enterprise
CN107704771A (en) A kind of management system based on third party's online training platform
CN118584882A (en) A high-precision integration method and system for distributed control system alarm event signals
CN111611601A (en) Method, device and storage medium for joint training of multi-data user analysis model
CN112149834A (en) Model training method, device, equipment and medium
CN117350879A (en) Enterprise reconciliation business optimization method based on blockchain technology
CN113626860A (en) Electric power data privacy protection method based on block chain
CN115664720A (en) A secure power information transmission method using data representation desensitization
CN116257190A (en) Data supervision system based on block chain
Changqing Analysis of traditional financial audit industry based on improved algorithm of block chain technology.
CN117391309B (en) Service realization method, system, equipment and storage medium based on digital certificate
CN114021171A (en) Data security protection method based on big data
Ye et al. Information Security and Firms’ Market Value: The Preliminary Analysis
CN116305267B (en) Privacy disclosure risk assessment method and system for hybrid cloud model
CN117892701B (en) Cloud manufacturing business cooperation system
CN113449328B (en) Financial internet user data security processing method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant