Detection equipment, method and device and storage medium

By using capillaries, light sources, photodetectors and controllers in the detection equipment, combined with ultraviolet light and absorbance information, the problem of low detection accuracy and sensitivity of calcium and magnesium ion concentration in the prior art is solved, and more accurate and sensitive detection results are achieved.

CN119715431AActive Publication Date: 2025-03-28BEIJING XIAOMI MOBILE SOFTWARE CO LTD +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202311285490.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-28
Publication Date
2025-03-28
Estimated Expiration
2043-09-28

AI Technical Summary

Technical Problem

When detecting calcium and magnesium ion concentrations in the prior art, the detection accuracy and detection sensitivity are low, resulting in the inability to obtain the detection results or the error of the detection results is too large.

Method used

A detection device is adopted, including a capillary tube, a light source, a photodetector and a controller, which propagates in the capillary tube through ultraviolet light. The photodetector receives and generates absorbance information. The controller determines the calcium and magnesium ion concentration based on the absorbance information and preset configuration information.

Benefits of technology

By defining the first preset wavelength in the range of 200 nm to 254 nm, absorbance information is accurately obtained by using the absorption characteristics of calcium and magnesium ions in the wavelength range, thereby improving the accuracy and sensitivity of calcium and magnesium ions concentration detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119715431A_ABST
    Figure CN119715431A_ABST
Patent Text Reader

Abstract

The invention relates to detection equipment, method and device and a storage medium. The detection equipment comprises a capillary tube, a light source, a photoelectric detector and a controller, and the capillary tube is used for containing a to-be-detected solution; the light source is used for emitting ultraviolet light to the capillary; the photoelectric detector is used for receiving the ultraviolet light passing through the capillary tube and generating corresponding absorbance information; the controller is used for acquiring the first absorbance information and determining the calcium and magnesium ion concentration corresponding to the first absorbance information according to the first absorbance information and the first preset configuration information. The calcium and magnesium ion concentration is detected through the detection equipment, the first preset wavelength is limited to be larger than or equal to 200 nm and smaller than or equal to 254 nm, the calcium and magnesium ion concentration corresponding to the first absorbance information can be accurately obtained by means of the characteristic that the calcium and magnesium ions absorb ultraviolet light within the wavelength range, the accuracy of the calcium and magnesium ion concentration test result is guaranteed, and the accuracy of the calcium and magnesium ion concentration test result is improved. And the detection precision and the detection sensitivity are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of water quality detection, and in particular to a detection device, method, apparatus and storage medium. Background Art

[0002] In recent years, with the rapid development of detection technology, water quality testing and hardness testing have been widely used in geological exploration, sewage treatment and other fields. Since calcium and magnesium ions are nutrients required by the human body and important factors in scaling, and the concentration of calcium and magnesium ions is a measure of water hardness, it is particularly critical to detect the concentration of calcium and magnesium ions in the solution to be tested.

[0003] However, the detection accuracy and sensitivity of calcium and magnesium ion concentrations detected by detection equipment using related technologies are low, which will lead to problems such as being unable to obtain test results or having large errors in the test results. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides a detection device, method, apparatus and storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, a detection device is provided for detecting the concentration of calcium and magnesium ions in a solution to be detected, comprising:

[0006] A capillary tube, used for containing the solution to be detected, the capillary tube comprising a first end and a second end arranged opposite to each other;

[0007] A light source is disposed at the first end of the capillary tube, and the light source is used to emit ultraviolet light to the capillary tube;

[0008] A photodetector, disposed at the second end of the capillary, the photodetector being used to receive the ultraviolet light passing through the capillary and generate corresponding absorbance information;

[0009] A controller is communicatively connected to the photodetector, and the controller is used to obtain first absorbance information of calcium and magnesium ions in the solution to be detected under ultraviolet light of a first preset wavelength, wherein the first preset wavelength is greater than or equal to 200 nm and less than or equal to 254 nm; the controller is also used to determine the calcium and magnesium ion concentration corresponding to the first absorbance information according to the first absorbance information and first preset configuration information, and the first preset configuration information is used to characterize the correspondence between the absorbance information and the calcium and magnesium ion concentration.

[0010] In some embodiments of the present disclosure, the detection device further includes a focusing portion, and the focusing portion is used to focus the ultraviolet light.

[0011] In some embodiments of the present disclosure, the detection device further includes:

[0012] A first lens is disposed between the light source and the capillary, and the first lens is used to converge the ultraviolet light;

[0013] A wavelength adjustment unit, disposed between the first lens and the capillary, for changing the wavelength of the ultraviolet light passing through the capillary;

[0014] A second lens is disposed between the light source and the photodetector, and is used for converging the ultraviolet light.

[0015] In some embodiments of the present disclosure, the wavelength adjustment unit includes a linear gradient filter, and the linear gradient filter is movable between the first lens and the capillary.

[0016] In some embodiments of the present disclosure, the controller includes a processor and a memory for storing instructions executable by the processor.

[0017] According to a second aspect of an embodiment of the present disclosure, a detection method is provided for detecting the concentration of calcium and magnesium ions in a solution to be detected, the detection method comprising:

[0018] Obtaining first absorbance information of calcium and magnesium ions in the solution to be detected under ultraviolet light of a first preset wavelength, wherein the first preset wavelength is greater than or equal to 200 nm and less than or equal to 254 nm;

[0019] The calcium and magnesium ion concentrations corresponding to the first absorbance information are determined according to the first absorbance information and the first preset configuration information, wherein the first preset configuration information is used to characterize the corresponding relationship between the absorbance information and the calcium and magnesium ion concentrations.

[0020] In some embodiments of the present disclosure, the first preset configuration information includes an absorption spectrum curve of calcium and magnesium ions, or the first preset configuration information includes different calcium and magnesium ion concentration values ​​corresponding to different absorbance value ranges of calcium and magnesium ions under ultraviolet light of a first preset wavelength.

[0021] In some embodiments of the present disclosure, the step of obtaining first absorbance information of calcium and magnesium ions in the solution to be detected under ultraviolet light of a first preset wavelength includes:

[0022] Acquire second absorbance information of the interfering solute in the solution to be detected under ultraviolet light of a second preset wavelength, wherein the interfering solute can absorb ultraviolet light under the ultraviolet light of the second preset wavelength, and the absorbance value of the calcium and magnesium ions is less than or equal to the absorbance threshold value;

[0023] Determining third absorbance information of the interfering solute under ultraviolet light of the first preset wavelength based on the first preset wavelength, the second preset wavelength and the second absorbance information;

[0024] Acquiring fourth absorbance information of the solution to be detected under ultraviolet light of the first preset wavelength;

[0025] The first absorbance information is determined according to the third absorbance information and the fourth absorbance information.

[0026] In some embodiments of the present disclosure, determining the first absorbance information according to the third absorbance information and the fourth absorbance information includes: subtracting the absorbance value corresponding to the third absorbance information from the absorbance value corresponding to the fourth absorbance information.

[0027] In some embodiments of the present disclosure, determining the third absorbance information of the interfering solute under ultraviolet light of the first preset wavelength based on the first preset wavelength, the second preset wavelength and the second absorbance information includes:

[0028] Determining second preset configuration information, where the second preset configuration information is used to characterize a conversion relationship between absorbance information of the interfering solute under ultraviolet light of different wavelengths;

[0029] The third absorbance information is determined based on the first preset wavelength, the second preset wavelength, the second absorbance information, and the second preset configuration information.

[0030] In some embodiments of the present disclosure, the second preset configuration information includes a conversion coefficient between different absorbance values ​​of the interfering solute under ultraviolet light of different wavelengths.

[0031] In some embodiments of the present disclosure, determining the third absorbance information based on the first preset wavelength, the second preset wavelength, the second absorbance information, and the second preset configuration information includes:

[0032] The conversion coefficient of the different absorbance values ​​of the interfering solute at the first preset wavelength and the second preset wavelength is multiplied by the absorbance value corresponding to the second absorbance information, and the product is determined as the absorbance value corresponding to the third absorbance information.

[0033] In some embodiments of the present disclosure, the step of obtaining second absorbance information of an interfering solute in the solution to be detected under ultraviolet light of a second preset wavelength includes:

[0034] Acquiring fifth absorbance information of the solution to be detected under ultraviolet light of the second preset wavelength;

[0035] Acquiring sixth absorbance information of pure water under ultraviolet light of the second preset wavelength;

[0036] The second absorbance information is determined according to the fifth absorbance information and the sixth absorbance information.

[0037] In some embodiments of the present disclosure, determining the second absorbance information according to the fifth absorbance information and the sixth absorbance information includes:

[0038] The absorbance value corresponding to the fifth absorbance information is subtracted from the absorbance value corresponding to the sixth absorbance information. In some embodiments of the present disclosure, the first absorbance information is determined based on the third absorbance information and the fourth absorbance information, including:

[0039] Acquiring seventh absorbance information of pure water under ultraviolet light of the first preset wavelength;

[0040] The first absorbance information is determined according to the fourth absorbance information, the seventh absorbance information, and the third absorbance information.

[0041] In some embodiments of the present disclosure, determining the first absorbance information according to the fourth absorbance information, the seventh absorbance information and the third absorbance information includes:

[0042] The absorbance value corresponding to the fourth absorbance information is subtracted from the absorbance value corresponding to the seventh absorbance information and the absorbance value corresponding to the third absorbance information.

[0043] In some embodiments of the present disclosure, the first preset wavelength is greater than or equal to 208 nm and less than or equal to 245 nm.

[0044] According to a third aspect of an embodiment of the present disclosure, a detection device is provided for detecting the concentration of calcium and magnesium ions in a solution to be detected, the detection device comprising:

[0045] An acquisition module, the acquisition module is used to obtain first absorbance information of calcium and magnesium ions in the solution to be detected under ultraviolet light of a first preset wavelength, wherein the first preset wavelength is greater than or equal to 200 nm and less than or equal to 254 nm;

[0046] A determination module, wherein the determination module is used to determine the calcium and magnesium ion concentrations corresponding to the first absorbance information according to the first absorbance information and first preset configuration information, wherein the first preset configuration information is used to characterize the correspondence between the absorbance information and the calcium and magnesium ion concentrations.

[0047] In some embodiments of the present disclosure, the acquisition module is further used to:

[0048] Acquire second absorbance information of the interfering solute in the solution to be detected under ultraviolet light of a second preset wavelength, wherein the interfering solute can absorb ultraviolet light under the ultraviolet light of the second preset wavelength, and the absorbance value of the calcium and magnesium ions is less than or equal to the absorbance threshold value;

[0049] Determining third absorbance information of the interfering solute under ultraviolet light of the first preset wavelength based on the first preset wavelength, the second preset wavelength and the second absorbance information;

[0050] Acquiring fourth absorbance information of the solution to be detected under ultraviolet light of the first preset wavelength;

[0051] The first absorbance information is determined according to the third absorbance information and the fourth absorbance information.

[0052] In some embodiments of the present disclosure, the acquisition module is further used to:

[0053] Determining second preset configuration information, where the second preset configuration information is used to characterize a conversion relationship between absorbance information of the interfering solute under ultraviolet light of different wavelengths;

[0054] The third absorbance information is determined based on the first preset wavelength, the second preset wavelength, the second absorbance information, and the second preset configuration information.

[0055] In some embodiments of the present disclosure, the acquisition module is further used to:

[0056] Acquiring fifth absorbance information of the solution to be detected under ultraviolet light of the second preset wavelength;

[0057] Acquiring sixth absorbance information of pure water under ultraviolet light of the second preset wavelength;

[0058] The second absorbance information is determined according to the fifth absorbance information and the sixth absorbance information.

[0059] In some embodiments of the present disclosure, the acquisition module is further used to: acquire seventh absorbance information of pure water under ultraviolet light of the first preset wavelength;

[0060] The first absorbance information is determined according to the fourth absorbance information, the seventh absorbance information, and the third absorbance information.

[0061] According to a fourth aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of a detection device, the detection device is enabled to perform a detection method, the detection method comprising:

[0062] Obtaining first absorbance information of calcium and magnesium ions in the solution to be detected under ultraviolet light of a first preset wavelength, wherein the first preset wavelength is greater than or equal to 200 nm and less than or equal to 254 nm;

[0063] The calcium and magnesium ion concentrations corresponding to the first absorbance information are determined according to the first absorbance information and the first preset configuration information, wherein the first preset configuration information is used to characterize the corresponding relationship between the absorbance information and the calcium and magnesium ion concentrations.

[0064] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: the first absorbance information of calcium and magnesium ions in the solution to be detected under ultraviolet light of the first preset wavelength can be obtained through the capillary, light source, photodetector and controller, and the calcium and magnesium ion concentration corresponding to the first absorbance information is determined by the controller according to the first absorbance information and the first preset configuration information, thereby realizing the detection of the calcium and magnesium ion concentration. The first preset wavelength is limited to be greater than or equal to 200nm and less than or equal to 254nm, and the calcium and magnesium ion concentration corresponding to the first absorbance information can be accurately obtained by virtue of the characteristic of calcium and magnesium ions absorbing ultraviolet light within this wavelength range, thereby ensuring the accuracy of the calcium and magnesium ion concentration test results and improving the detection accuracy and detection sensitivity.

[0065] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0067] Figure 1 is a flow chart of a detection method according to an exemplary embodiment.

[0068] Figure 2 is a standard curve of absorption spectra of calcium and magnesium ions at different concentrations according to an exemplary embodiment.

[0069] Figure 3 yes Figure 2 A partial enlarged view of .

[0070] Figure 4 The present invention is a flow chart showing a method for obtaining first absorbance information of calcium and magnesium ions in a solution to be detected under ultraviolet light of a first preset wavelength according to an exemplary embodiment.

[0071] Figure 5 The present invention is a flowchart showing a method of determining third absorbance information of an interfering solute under ultraviolet light of a first preset wavelength based on the first preset wavelength, the second preset wavelength and the second absorbance information according to an exemplary embodiment.

[0072] Figure 6 The present invention is a flow chart showing a method for obtaining second absorbance information of an interfering solute in a solution to be detected under ultraviolet light of a second preset wavelength according to an exemplary embodiment.

[0073] Figure 7 is a flow chart showing how to determine first absorbance information according to third absorbance information and fourth absorbance information according to an exemplary embodiment.

[0074] Figure 8 is a flow chart of a detection method according to another exemplary embodiment.

[0075] Fig. 9 is a block diagram of a detection device according to an exemplary embodiment.

[0076] Fig.10 is a schematic diagram of a detection device according to an exemplary embodiment.

[0077] Fig.11 is a block diagram of a detection device according to an exemplary embodiment.

[0078] In the figure:

[0079] 10-acquisition module; 20-determination module; 30-capillary; 31-first end; 32-second end; 40-light source; 50-photodetector; 60-first lens; 70-wavelength adjustment unit; 71-linear gradient filter; 80-second lens; 90-controller; 101-processing component; 102-memory; 103-power component; 104-multimedia component; 105-audio component; 106-input / output interface; 107-sensor component; 108-communication component; 109-processor. DETAILED DESCRIPTION

[0080] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0081] In recent years, with the rapid development of material composition and material content detection technology, water quality detection and hardness detection have been widely used in geological exploration, sewage treatment and other fields. Calcium ions and magnesium ions are nutrients required by the human body on the one hand, and on the other hand, they are the main causes of scale generation, which causes blockage or damage to equipment pipes. At the same time, the concentration of calcium ions and magnesium ions is also used as a measure of water hardness. Therefore, it is particularly critical to detect the concentration of calcium and magnesium ions in the solution to be tested.

[0082] In the related art, each ion has a specific series of absorption spectra. The transition spectrum of each ion in the lowest energy level state is called the first recommended spectrum of the ion. The wavelength corresponding to the first recommended spectrum of calcium ions is 317.933nm, and the wavelength corresponding to the first recommended spectrum of magnesium ions is 285.213nm. Based on the characteristics of calcium ions and magnesium ions at this wavelength, the wavelength corresponding to the first recommended spectrum of calcium ions and magnesium ions is usually used as the detection wavelength, and the absorption spectrum of the solution to be detected under ultraviolet light at the detection wavelength is analyzed to achieve concentration detection of calcium ions and magnesium ions.

[0083] However, when the concentration of calcium and magnesium ions is detected by relevant technologies, the absorption spectra of solutions with different calcium and magnesium ion concentrations under ultraviolet light of the detection wavelength are slightly different. When the concentration of calcium and magnesium ions is low, it is difficult to accurately identify the concentration of calcium and magnesium ions. The detection accuracy and sensitivity are low, which will lead to problems such as the inability to obtain test results or excessive errors in the test results.

[0084] Based on this, the exemplary embodiment of the present disclosure provides a detection device, which can obtain the first absorbance information of calcium and magnesium ions in the solution to be detected under ultraviolet light of the first preset wavelength through a capillary, a light source, a photodetector and a controller, and determine the calcium and magnesium ion concentration corresponding to the first absorbance information according to the first absorbance information and the first preset configuration information through the controller, thereby realizing the detection of the calcium and magnesium ion concentration. The first preset wavelength is limited to greater than or equal to 200nm and less than or equal to 254nm, and the calcium and magnesium ion concentration corresponding to the first absorbance information can be accurately obtained by relying on the characteristics of calcium and magnesium ions absorbing ultraviolet light within this wavelength range, thereby ensuring the accuracy of the calcium and magnesium ion concentration test results and improving the detection accuracy and detection sensitivity.

[0085] In an exemplary embodiment, a detection method is provided for detecting the concentration of calcium and magnesium ions in a solution to be detected, referring to Figure 1 As shown, the detection method includes:

[0086] S100, obtaining first absorbance information of calcium and magnesium ions in a solution to be detected under ultraviolet light of a first preset wavelength, where the first preset wavelength is greater than or equal to 200 nm and less than or equal to 254 nm.

[0087] In step S100, the components of the solution to be detected may include, for example, pure water, calcium and magnesium ions and other interfering solutes, and the concentration of calcium and magnesium ions is the overall concentration of calcium ions and magnesium ions. The first absorbance information may include, for example, the absorbance value of calcium and magnesium ions under ultraviolet light of a first preset wavelength, and the absorbance value is the absorptivity of the substance to light radiation. It should be noted that the absorbance value can be obtained, for example, by detecting the output light power of the solution to be detected under the light source with a spectrophotometer, and converting the output light power into a corresponding absorbance value.

[0088] S200. Determine the calcium and magnesium ion concentrations corresponding to the first absorbance information according to the first absorbance information and the first preset configuration information, wherein the first preset configuration information is used to characterize the corresponding relationship between the absorbance information and the calcium and magnesium ion concentrations.

[0089] In step S200, the first preset configuration information can be represented by, for example, an absorption spectrum curve of calcium and magnesium ions. For example, the absorption spectrum standard curves of calcium and magnesium ions with different concentrations are as follows: Figure 2 and Figure 3 As shown, the horizontal axis in the figure represents the wavelength of the light source, and the vertical axis represents the absorbance value. Different concentrations of calcium and magnesium ions have different absorbance values ​​under the same wavelength light source. Therefore, the corresponding calcium and magnesium ion concentration can be determined according to the absorbance value of calcium and magnesium ions under ultraviolet light of the first preset wavelength. For example, when the first absorbance information includes that the absorbance value of calcium and magnesium ions under ultraviolet light with a wavelength of 204nm is 1.79%, it can be determined according to the first preset configuration information that the calcium and magnesium ion concentration corresponding to the absorbance information is 1mg / L, and the calcium and magnesium ion concentration can be determined as 1mg / L.

[0090] Depend on Figure 2 and Figure 3 It can be seen that the difference between the absorbance values ​​of different concentrations of calcium and magnesium ions in the wavelength range of 200nm to 254nm is more obvious than in other wavelength ranges, and the wavelength is not too small to make the absorbance value difficult to obtain. The first preset wavelength is set to be greater than or equal to 200nm and less than or equal to 254nm, which can distinguish different calcium and magnesium ion concentrations corresponding to different absorbance values ​​under ultraviolet light of the same wavelength, and then accurately determine the corresponding calcium and magnesium ion concentration based on the first absorbance information of calcium and magnesium ions under ultraviolet light of the first preset wavelength.

[0091] The first preset configuration information, for example, can also be a data set composed of multiple data, each data being a different calcium and magnesium ion concentration value corresponding to a different absorbance value range of calcium and magnesium ions under ultraviolet light of a first preset wavelength. The first absorbance information of calcium and magnesium ions under ultraviolet light of a first preset wavelength can be determined based on the calcium and magnesium ion concentration value corresponding to the absorbance value in the data set to determine the corresponding calcium and magnesium ion concentration.

[0092] In this embodiment, by obtaining the first absorbance information of calcium and magnesium ions in the solution to be detected under ultraviolet light of the first preset wavelength, the calcium and magnesium ion concentration corresponding to the first absorbance information can be determined according to the first absorbance information and the first preset configuration information used to characterize the correspondence between the absorbance information and the calcium and magnesium ion concentration, thereby achieving the acquisition of the calcium and magnesium ion concentration in the solution to be detected. By limiting the first preset wavelength to be greater than or equal to 200nm and less than or equal to 254nm, the calcium and magnesium ion concentration corresponding to the first absorbance information can be accurately obtained by relying on the significant difference in different absorbance values ​​corresponding to different concentrations of calcium and magnesium ions within the wavelength range, thereby ensuring the accuracy of the calcium and magnesium ion concentration test results and improving the detection accuracy and detection sensitivity.

[0093] In some embodiments, reference Figure 4 As shown, obtaining first absorbance information of calcium and magnesium ions in a solution to be detected under ultraviolet light of a first preset wavelength includes:

[0094] S110, obtaining second absorbance information of the interfering solute in the solution to be detected under ultraviolet light of a second preset wavelength, wherein the interfering solute can absorb ultraviolet light under the ultraviolet light of the second preset wavelength, and the absorbance value of calcium and magnesium ions is less than or equal to the absorbance threshold.

[0095] In step S110, the interfering solute in the solution to be detected may include, for example, the total organic carbon (TOC) in water. Under the ultraviolet light of the second preset wavelength, the interfering solute can absorb ultraviolet light, that is, the interfering solute has an absorbance value, and the absorbance value of calcium and magnesium ions is less than or equal to the absorbance threshold value, and the absorbance threshold value may be, for example, 0. When the absorbance value of calcium and magnesium ions is less than the absorbance threshold value, the absorbance value of calcium and magnesium ions can be ignored for the absorbance value of the solution to be detected. At this time, the solution to be detected is detected, and the second absorbance information of the interfering solute in the solution to be detected under the ultraviolet light of the second preset wavelength can be obtained. The second absorbance information may include, for example, the absorbance value of the interfering solute under the ultraviolet light of the second preset wavelength.

[0096] S120, determining third absorbance information of the interfering solute under ultraviolet light of the first preset wavelength based on the first preset wavelength, the second preset wavelength and the second absorbance information.

[0097] In step S120, the same interfering solute has different absorbance information under ultraviolet light of different preset wavelengths, and the third absorbance information of the interfering solute under ultraviolet light of the first preset wavelength can be determined based on the first preset wavelength, the second preset wavelength and the second absorbance information corresponding to the second preset wavelength.

[0098] S130, obtaining fourth absorbance information of the solution to be detected under ultraviolet light of a first preset wavelength.

[0099] In step S130, directly testing the solution to be detected can obtain the fourth absorbance information of the solution to be detected under ultraviolet light of the first preset wavelength. At this time, the absorbance value corresponding to the fourth absorbance information includes the absorbance value of calcium and magnesium ions and the absorbance value of interfering solutes. It is necessary to remove the absorbance value of the interfering solute according to the absorbance value corresponding to the fourth absorbance information to obtain the absorbance value of calcium and magnesium ions.

[0100] S140: Determine first absorbance information according to the third absorbance information and the fourth absorbance information.

[0101] In step S140, the absorbance value corresponding to the fourth absorbance information can be divided by the absorbance value of the interfering solute corresponding to the third absorbance information to remove the influence of the interfering solute on the absorbance value of calcium and magnesium ions, and the absorbance value of calcium and magnesium ions under ultraviolet light of the first preset wavelength can be obtained to achieve the acquisition of the first absorbance information.

[0102] In this embodiment, the third absorbance information can be determined by acquiring the second absorbance information, that is, the absorbance value corresponding to the interfering solute under ultraviolet light of the first preset wavelength is determined by the absorbance value of the interfering solute under ultraviolet light of the second preset wavelength, and after obtaining the fourth absorbance information, that is, directly detecting the absorbance value of the solution to be detected, the first absorbance information is determined according to the third absorbance information and the fourth absorbance information, thereby realizing the acquisition of the first absorbance information, eliminating the influence of the interfering solute on the absorbance value of calcium and magnesium ions, and thereby improving the accuracy of subsequent calcium and magnesium ion concentration detection results.

[0103] In some embodiments, reference Figure 5 As shown, based on the first preset wavelength, the second preset wavelength and the second absorbance information, determining the third absorbance information of the interfering solute under the ultraviolet light of the first preset wavelength includes:

[0104] S121. Determine second preset configuration information, where the second preset configuration information is used to characterize a conversion relationship between absorbance information of interfering solutes under ultraviolet light of different wavelengths.

[0105] In step S121, the same interfering solute has different absorbance information under ultraviolet light of different preset wavelengths, and there is a specific conversion relationship between the different absorbance information, and the second preset configuration information is used to characterize the conversion relationship. Exemplarily, the different absorbance information of the same interfering solute under ultraviolet light of different wavelengths includes different absorbance values, and the second preset configuration information may include a conversion coefficient between different absorbance values ​​of the interfering solute under ultraviolet light of different wavelengths, for example, the absorbance value of organic matter under ultraviolet light of 254nm wavelength is 1.52 times the absorbance value under ultraviolet light of 320nm wavelength.

[0106] S122. Determine third absorbance information based on the first preset wavelength, the second preset wavelength, the second absorbance information, and the second preset configuration information.

[0107] In step S122, after the second preset configuration information is determined, the third absorbance information can be determined based on the first preset wavelength, the second preset wavelength, the second absorbance information and the second preset configuration information, that is, the absorbance value of the interfering solute under ultraviolet light of the first preset wavelength can be determined based on the absorbance value of the interfering solute under ultraviolet light of the second preset wavelength, the first preset wavelength, the second preset wavelength and the conversion coefficient between different absorbance values ​​of the interfering solute under ultraviolet light of different wavelengths.

[0108] For example, the conversion coefficient of the different absorbance values ​​of the interfering solute at the first preset wavelength and the second preset wavelength can be multiplied by the absorbance value corresponding to the second absorbance information, and the product can be determined as the absorbance value corresponding to the third absorbance information. For example, after determining that the conversion coefficient is 1.52, the absorbance value of the organic matter under ultraviolet light with a wavelength of 320nm can be multiplied by 1.52, and the calculation result can be determined as the absorbance value of the organic matter under ultraviolet light with a wavelength of 254nm, so as to achieve the determination of the third absorbance information.

[0109] In this embodiment, by determining the second preset configuration information, that is, the conversion coefficient between different absorbance values ​​of the interfering solute under ultraviolet light of different wavelengths, the absorbance value of the interfering solute under ultraviolet light of the first preset wavelength can be determined according to the absorbance value of the interfering solute under ultraviolet light of the second preset wavelength, the first preset wavelength, the second preset wavelength, and the conversion coefficient between different absorbance values ​​of the interfering solute under ultraviolet light of different wavelengths, thereby realizing the acquisition of the third absorbance information, and being able to subsequently eliminate the influence of the interfering solute on the absorbance value of calcium and magnesium ions, thereby improving the accuracy of the calcium and magnesium ion concentration detection results.

[0110] In some embodiments, reference Figure 6 As shown, obtaining second absorbance information of the interfering solute in the solution to be detected under ultraviolet light of a second preset wavelength includes:

[0111] S111, obtaining fifth absorbance information of the solution to be detected under ultraviolet light of a second preset wavelength.

[0112] In step S111, the fifth absorbance information of the solution to be detected under ultraviolet light of a second preset wavelength can be obtained by directly detecting the solution to be detected. At this time, the absorbance value corresponding to the fifth absorbance information includes the absorbance value of pure water and the absorbance value of the interfering solute. The absorbance value of pure water needs to be removed according to the absorbance value corresponding to the fifth absorbance information to obtain the absorbance value of the interfering solute.

[0113] S112, obtaining sixth absorbance information of pure water under ultraviolet light of a second preset wavelength;

[0114] S113. Determine second absorbance information according to the fifth absorbance information and the sixth absorbance information.

[0115] In step S112 to step S113, the sixth absorbance information of the pure water under ultraviolet light of the second preset wavelength can be obtained by directly detecting the pure water, that is, the absorbance value of the pure water under ultraviolet light of the second preset wavelength. The absorbance values ​​of the pure water and the interfering solute corresponding to the fifth absorbance information can be divided by the absorbance value of the pure water corresponding to the sixth absorbance information, and the absorbance difference can be used as the absorbance value corresponding to the second absorbance information to remove the influence of pure water on the absorbance value of the interfering solute, and obtain the absorbance value of the interfering solute under ultraviolet light of the second preset wavelength to achieve the acquisition of the second absorbance information.

[0116] In this embodiment, by obtaining the fifth absorbance information of the solution to be detected under ultraviolet light of the second preset wavelength and the sixth absorbance information of pure water under ultraviolet light of the second preset wavelength, that is, the overall absorbance value of pure water and interfering solutes and the absorbance value of the interfering solute alone under ultraviolet light of the second preset wavelength, the absorbance value of pure water and interfering solute corresponding to the fifth absorbance information can be removed by subtracting the absorbance value of pure water corresponding to the sixth absorbance information, so as to achieve the acquisition of the second absorbance information, eliminate the influence of pure water on the absorbance value of interfering solutes, and thereby improve the accuracy of subsequent calcium and magnesium ion concentration detection results.

[0117] In some embodiments, reference Figure 7 As shown, determining the first absorbance information according to the third absorbance information and the fourth absorbance information includes:

[0118] S141, obtaining seventh absorbance information of pure water under ultraviolet light of a first preset wavelength;

[0119] S142. Determine first absorbance information according to the fourth absorbance information, the seventh absorbance information, and the third absorbance information.

[0120] In step S141 to step S142, the absorbance value corresponding to the fourth absorbance information includes the absorbance value of pure water in addition to the absorbance value of calcium and magnesium ions and the absorbance value of interfering solutes. Directly detecting pure water can obtain the seventh absorbance information of pure water under ultraviolet light of the first preset wavelength, that is, the absorbance value of pure water under ultraviolet light of the first preset wavelength. The overall absorbance value of calcium and magnesium ions, pure water and interfering solutes corresponding to the fourth absorbance information can be removed by removing the absorbance value of the interfering solute corresponding to the third absorbance information and the absorbance value of pure water corresponding to the seventh absorbance information, so as to remove the influence of interfering solutes and pure water on the absorbance value of calcium and magnesium ions, and obtain the absorbance value of calcium and magnesium ions under ultraviolet light of the first preset wavelength to achieve the acquisition of the first absorbance information.

[0121] In this embodiment, by obtaining the seventh absorbance information of pure water under ultraviolet light of the first preset wavelength, that is, the absorbance value of pure water under ultraviolet light of the first preset wavelength, the overall absorbance value of calcium and magnesium ions, pure water and interfering solutes corresponding to the fourth absorbance information can be removed by removing the absorbance value of the interfering solute corresponding to the third absorbance information and the absorbance value of pure water corresponding to the seventh absorbance information, thereby eliminating the influence of interfering solutes and pure water on the absorbance value of calcium and magnesium ions, ensuring the accuracy of the first absorbance information, and thereby improving the accuracy of the calcium and magnesium ion concentration detection results.

[0122] In some embodiments, the first predetermined wavelength is greater than or equal to 208 nm and less than or equal to 245 nm.

[0123] As mentioned above, the difference between the absorbance values ​​of different concentrations of calcium and magnesium ions in the wavelength range of 200nm to 254nm is more obvious than in other wavelength ranges. However, after actual detection, it was found that when the first preset wavelength is greater than 245nm, only calcium and magnesium ions with a concentration greater than 100mg / L can be identified, and when the first preset wavelength is less than 208nm, the insufficient radiation energy of the ultraviolet light will also make it difficult to obtain the first absorbance information of calcium and magnesium ions. Therefore, the range of the first preset wavelength is further limited to 208nm to 245nm.

[0124] In this embodiment, the range of the first preset wavelength is further limited to 208nm to 245nm, which can not only realize the detection and identification of calcium and magnesium ions with a concentration less than 100mg / L, but also ensure that the radiation energy of ultraviolet light is sufficient to smoothly obtain the first absorbance information of calcium and magnesium ions, thereby further improving the detection accuracy and sensitivity.

[0125] In an exemplary embodiment, a detection method is provided for detecting the concentration of calcium and magnesium ions in a solution to be detected, referring to Figure 8 As shown, the detection method includes:

[0126] S10, obtaining fifth absorbance information of the solution to be detected under ultraviolet light of a second preset wavelength, where the interfering solute can absorb ultraviolet light under the ultraviolet light of the second preset wavelength, and the absorbance value of calcium and magnesium ions is less than or equal to the absorbance threshold value;

[0127] S20, obtaining sixth absorbance information of pure water under ultraviolet light of a second preset wavelength;

[0128] S30, determining second absorbance information according to the fifth absorbance information and the sixth absorbance information;

[0129] S40, determining second preset configuration information, where the second preset configuration information is used to characterize a conversion relationship of absorbance information of an interfering solute under ultraviolet light of different wavelengths;

[0130] S50, determining third absorbance information based on the first preset wavelength, the second preset wavelength, the second absorbance information and the second preset configuration information, wherein the first preset wavelength is greater than or equal to 200 nm and less than or equal to 254 nm;

[0131] S60, obtaining fourth absorbance information of the solution to be detected under ultraviolet light of a first preset wavelength;

[0132] S70, obtaining seventh absorbance information of pure water under ultraviolet light of a first preset wavelength;

[0133] S80, determining first absorbance information according to the fourth absorbance information, the seventh absorbance information and the third absorbance information;

[0134] S90. Determine the calcium and magnesium ion concentrations corresponding to the first absorbance information according to the first absorbance information and the first preset configuration information, wherein the first preset configuration information is used to characterize the corresponding relationship between the absorbance information and the calcium and magnesium ion concentrations.

[0135] In this embodiment, by obtaining the first absorbance information of calcium and magnesium ions in the solution to be detected under ultraviolet light of the first preset wavelength, the concentration of calcium and magnesium ions corresponding to the first absorbance information can be determined according to the first absorbance information and the first preset configuration information used to characterize the correspondence between the absorbance information and the concentration of calcium and magnesium ions, thereby achieving the acquisition of the concentration of calcium and magnesium ions in the solution to be detected. In the process of determining the first absorbance information, the interference of pure water and interfering solutes on calcium and magnesium ions in the solution to be detected is eliminated, thereby ensuring the accuracy of the first absorbance information. By limiting the first preset wavelength to greater than or equal to 200nm and less than or equal to 254nm, the concentration of calcium and magnesium ions corresponding to the first absorbance information can be accurately obtained by relying on the characteristic of calcium and magnesium ions absorbing ultraviolet light within this wavelength range, thereby ensuring the accuracy of the calcium and magnesium ion concentration test results and improving the detection accuracy and detection sensitivity.

[0136] In an exemplary embodiment, reference Fig. 9 As shown, a detection device is provided for detecting the concentration of calcium and magnesium ions in a solution to be detected. The detection device includes an acquisition module 10 and a determination module 20. The acquisition module 10 is used to obtain first absorbance information of calcium and magnesium ions in the solution to be detected under ultraviolet light of a first preset wavelength, and the first preset wavelength is greater than or equal to 200nm and less than or equal to 254nm; the determination module 20 is used to determine the calcium and magnesium ion concentration corresponding to the first absorbance information according to the first absorbance information and first preset configuration information, and the first preset configuration information is used to characterize the correspondence between the absorbance information and the calcium and magnesium ion concentration.

[0137] In this embodiment, the first absorbance information of calcium and magnesium ions in the solution to be detected under ultraviolet light of the first preset wavelength is obtained by the acquisition module 10, and the calcium and magnesium ion concentration corresponding to the first absorbance information can be determined by the determination module 20 according to the first absorbance information and the first preset configuration information used to characterize the correspondence between the absorbance information and the calcium and magnesium ion concentration, thereby realizing the acquisition of the calcium and magnesium ion concentration in the solution to be detected. By limiting the first preset wavelength to be greater than or equal to 200nm and less than or equal to 254nm, the calcium and magnesium ion concentration corresponding to the first absorbance information can be accurately obtained by virtue of the characteristic of calcium and magnesium ions absorbing ultraviolet light within this wavelength range, thereby ensuring the accuracy of the calcium and magnesium ion concentration test results and improving the detection accuracy and detection sensitivity.

[0138] In one embodiment, the acquisition module 10 is also used to: obtain the second absorbance information of the interfering solute in the solution to be detected under ultraviolet light of a second preset wavelength, under the ultraviolet light of the second preset wavelength, the interfering solute can absorb ultraviolet light, and the absorbance value of calcium and magnesium ions is less than or equal to the absorbance threshold; based on the first preset wavelength, the second preset wavelength and the second absorbance information, determine the third absorbance information of the interfering solute under ultraviolet light of the first preset wavelength; obtain the fourth absorbance information of the solution to be detected under ultraviolet light of the first preset wavelength; determine the first absorbance information based on the third absorbance information and the fourth absorbance information.

[0139] In one embodiment, the acquisition module 10 is also used to: determine second preset configuration information, the second preset configuration information is used to characterize the conversion relationship of the absorbance information of the interfering solute under ultraviolet light of different wavelengths; based on the first preset wavelength, the second preset wavelength, the second absorbance information and the second preset configuration information, determine the third absorbance information.

[0140] In one embodiment, the acquisition module 10 is also used to: obtain the fifth absorbance information of the solution to be detected under ultraviolet light of the second preset wavelength; obtain the sixth absorbance information of pure water under ultraviolet light of the second preset wavelength; and determine the second absorbance information based on the fifth absorbance information and the sixth absorbance information.

[0141] In one embodiment, the acquisition module 10 is further used to: acquire seventh absorbance information of pure water under ultraviolet light of a first preset wavelength; and determine first absorbance information according to the fourth absorbance information, the seventh absorbance information and the third absorbance information.

[0142] In an exemplary embodiment, a detection device is provided, referring to Fig.10 As shown, the detection device includes a capillary 30, a light source 40, a photodetector 50 and a controller 90. The capillary 30 is used to accommodate the solution to be detected, and the capillary 30 includes a first end 31 and a second end 32 arranged opposite to each other. The light source 40 is arranged at the first end 31 of the capillary 30, and the light source 40 is used to emit ultraviolet light to the capillary 30. The photodetector 50 is arranged at the second end 32 of the capillary 30, and the photodetector 50 is used to receive the ultraviolet light passing through the capillary 30 and generate corresponding absorbance information. The controller 90 is connected in communication with the photodetector 50, and the controller 90 is used to obtain the first absorbance information of calcium and magnesium ions in the solution to be detected under ultraviolet light of a first preset wavelength, and the first preset wavelength is greater than or equal to 200nm and less than or equal to 254nm. The controller 90 is also used to determine the calcium and magnesium ion concentration corresponding to the first absorbance information according to the first absorbance information and the first preset configuration information, and the first preset configuration information is used to characterize the corresponding relationship between the absorbance information and the calcium and magnesium ion concentration.

[0143] The solution to be detected is contained in a capillary 30, which is a thin tubular object capable of producing a capillary phenomenon. The inner diameter of the capillary 30 may be, for example, less than or equal to 2 mm. The capillary 30 includes a first end 31 and a second end 32 arranged opposite to each other. Using the capillary 30 as a sample pool is not only easy to detect the flowing sample, but also can improve the detection sensitivity. The light source 40 is arranged at the first end 31 of the capillary 30, and the light source 40 can emit ultraviolet light parallel to the axial direction of the capillary 30. The photodetector 50 can receive the detection light beam passing through the solution to be detected and generate corresponding absorbance information.

[0144] The controller 90 is in communication connection with the photodetector 50, and can obtain the absorbance information generated by the photodetector 50. The controller 90 may include, for example, a processor as described below and a memory for storing instructions executable by the processor. The controller 90 is used to obtain the first absorbance information of the calcium and magnesium ions in the solution to be detected under ultraviolet light of a first preset wavelength and determine the calcium and magnesium ion concentration corresponding to the first absorbance information according to the first absorbance information and the first preset configuration information, that is, the detection method as described above is executed by the controller.

[0145] In this embodiment, the first absorbance information of calcium and magnesium ions in the solution to be detected under ultraviolet light of the first preset wavelength can be obtained through the capillary, the light source, the photodetector and the controller, and the calcium and magnesium ion concentration corresponding to the first absorbance information is determined by the controller according to the first absorbance information and the first preset configuration information, thereby realizing the detection of the calcium and magnesium ion concentration. The first preset wavelength is limited to be greater than or equal to 200nm and less than or equal to 254nm, and the calcium and magnesium ion concentration corresponding to the first absorbance information can be accurately obtained by virtue of the characteristic of calcium and magnesium ions absorbing ultraviolet light within this wavelength range, thereby ensuring the accuracy of the calcium and magnesium ion concentration test results and improving the detection accuracy and detection sensitivity.

[0146] In some embodiments, the detection device further includes a focusing portion, which is arranged on the optical path from the light source 40 to the photodetector 50. The focusing portion may be, for example, a lens or a focusing plate or other device capable of focusing light, and the focusing portion may be provided in multiple portions, for focusing ultraviolet light at different positions, so as to ensure the accuracy of the test results of calcium and magnesium ion concentrations.

[0147] In some embodiments, reference Fig.10 As shown, the detection device also includes a first lens 60, a wavelength adjustment unit 70 and a second lens 80. The first lens 60 is arranged between the light source 40 and the capillary 30, and the first lens 60 is used to converge the ultraviolet light; the wavelength adjustment unit 70 is arranged between the first lens 60 and the capillary 30, and is used to change the wavelength of the ultraviolet light passing through the capillary 30; the second lens 80 is arranged between the light source 40 and the photodetector 50, and the second lens 80 is used to converge the ultraviolet light.

[0148] The first lens 60 and the second lens 80 can converge the detection light beam emitted by the light source 40, and the wavelength adjustment unit 70 is used to adjust the wavelength of the detection light beam to control the first preset wavelength within the range of 200nm to 254nm. In this embodiment, by setting the first lens 60 and the second lens 80, the ultraviolet light can be converged, so that the ultraviolet light can fully illuminate the solution to be detected in the capillary 30, and the photodetector 50 can fully receive the detection light beam passing through the solution to be detected, thereby ensuring the accuracy of the calcium and magnesium ion concentration test results and improving the detection accuracy and detection sensitivity. By setting the wavelength adjustment unit 70, the wavelength of the ultraviolet light can be adjusted, which is convenient for obtaining absorbance information under different ultraviolet lights. In some embodiments, reference Fig.10 As shown, the wavelength adjustment unit 70 includes a linear gradient filter 71 , and the linear gradient filter 71 is movable between the first lens 60 and the capillary 30 .

[0149] The wavelength adjustment unit 70 includes a linear variable filter 71 (LVF), which can move between the first lens 60 and the capillary 30. By changing the position of the linear variable filter 71, the detection light beam passing through the linear variable filter 71 can have a different wavelength.

[0150] In this embodiment, a movable linear gradient filter 71 is provided between the first lens 60 and the capillary 30, and the position of the linear gradient filter 71 is changed so that the detection light beam passing through the linear gradient filter 71 has a different wavelength, thereby realizing the function of the wavelength adjustment unit 70 to change the wavelength of ultraviolet light. Selecting the linear gradient filter 71 as the wavelength adjustment unit 70 has the advantages of wavelength gradient, channel selectability, stable performance, etc., which improves the detection accuracy and detection sensitivity.

[0151] In some embodiments, reference Fig.11 As shown, the detection device may include one or more of the following components: a processing component 101, a memory 102, a power component 103, a multimedia component 104, an audio component 105, an input / output (I / O) interface 106, a sensor component 107, and a communication component 108.

[0152] The processing component 101 generally controls the overall operation of the detection device, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 101 may include one or more processors 109 to execute instructions to complete all or part of the steps of the above-mentioned method, and the processor 109 and the memory 102 constitute the controller 90 as described above. In addition, the processing component 101 may include one or more modules to facilitate the interaction between the processing component 101 and other components. For example, the processing component 101 may include a multimedia module to facilitate the interaction between the multimedia component 104 and the processing component 101.

[0153] The memory 102 is configured to store various types of data to support the operation of the detection device. Examples of such data include instructions for any application or method operating on the detection device, contact data, phone book data, messages, pictures, videos, etc. The memory 102 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0154] The power component 103 provides power to various components of the detection device. The power component 103 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the detection device.

[0155] The multimedia component 104 includes a screen providing an output interface between the detection device and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 104 includes a front camera and / or a rear camera. When the detection device is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0156] The audio component 105 is configured to output and / or input audio signals. For example, the audio component 105 includes a microphone (MIC), and when the detection device is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 102 or sent via the communication component 108. In some embodiments, the audio component 105 also includes a speaker for outputting audio signals.

[0157] I / O interface 106 provides an interface between processing component 101 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0158] The sensor assembly 107 includes one or more sensors for providing various aspects of state assessment for the detection device. For example, the sensor assembly 107 can detect the open / closed state of the detection device, the relative positioning of the components, such as the display and keypad of the detection device, and the sensor assembly 107 can also detect the position change of the detection device or a component of the detection device, the presence or absence of contact between the user and the detection device, the orientation of the detection device or the acceleration / deceleration and the temperature change of the detection device. The sensor assembly 107 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 107 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 107 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

[0159] The communication component 108 is configured to facilitate wired or wireless communication between the detection device and other devices. The device can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 108 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 108 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0160] In an exemplary embodiment, the detection device can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned detection method applied to the detection device.

[0161] In an exemplary embodiment, a non-temporary computer-readable storage medium including instructions is also provided, such as a memory 102 including instructions, and the above instructions can be executed by a processor 109 of a detection device to complete the above detection method applied to the detection device. For example, the non-temporary computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a tape, a floppy disk, and an optical data storage device. When the instructions in the storage medium are executed by the processor of the detection device, the detection device is enabled to perform the detection method shown in the above embodiment.

[0162] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0163] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A detection device for detecting the concentration of calcium and magnesium ions in a solution to be detected, characterized in that: include: A capillary tube, used for containing the solution to be detected, the capillary tube comprising a first end and a second end arranged opposite to each other; A light source is disposed at the first end of the capillary tube, and the light source is used to emit ultraviolet light to the capillary tube; A photodetector, disposed at the second end of the capillary, the photodetector being used to receive the ultraviolet light passing through the capillary and generate corresponding absorbance information; A controller is communicatively connected to the photodetector, and the controller is used to obtain first absorbance information of calcium and magnesium ions in the solution to be detected under ultraviolet light of a first preset wavelength, wherein the first preset wavelength is greater than or equal to 200 nm and less than or equal to 254 nm; the controller is also used to determine the calcium and magnesium ion concentration corresponding to the first absorbance information according to the first absorbance information and first preset configuration information, and the first preset configuration information is used to characterize the correspondence between the absorbance information and the calcium and magnesium ion concentration.

2. The detection device according to claim 1, characterized in that: The detection device also includes: A first lens is disposed between the light source and the capillary, and the first lens is used to converge the ultraviolet light; A wavelength adjustment unit, disposed between the first lens and the capillary, for changing the wavelength of the ultraviolet light passing through the capillary; A second lens is disposed between the light source and the photodetector, and is used for converging the ultraviolet light.

3. The detection device according to claim 2, characterized in that: The wavelength adjustment section includes a linear gradient filter that is movable between the first lens and the capillary.

4. A detection method for detecting the concentration of calcium and magnesium ions in a solution to be detected, characterized in that: The detection method comprises: Obtaining first absorbance information of calcium and magnesium ions in the solution to be detected under ultraviolet light of a first preset wavelength, wherein the first preset wavelength is greater than or equal to 200 nm and less than or equal to 254 nm; The calcium and magnesium ion concentrations corresponding to the first absorbance information are determined according to the first absorbance information and the first preset configuration information, wherein the first preset configuration information is used to characterize the corresponding relationship between the absorbance information and the calcium and magnesium ion concentrations.

5. The detection method according to claim 4, characterized in that: The step of obtaining first absorbance information of calcium and magnesium ions in the solution to be detected under ultraviolet light of a first preset wavelength includes: Acquire second absorbance information of the interfering solute in the solution to be detected under ultraviolet light of a second preset wavelength, wherein the interfering solute can absorb ultraviolet light under the ultraviolet light of the second preset wavelength, and the absorbance value of the calcium and magnesium ions is less than or equal to the absorbance threshold value; Determining third absorbance information of the interfering solute under ultraviolet light of the first preset wavelength based on the first preset wavelength, the second preset wavelength and the second absorbance information; Acquiring fourth absorbance information of the solution to be detected under ultraviolet light of the first preset wavelength; The first absorbance information is determined according to the third absorbance information and the fourth absorbance information.

6. The detection method according to claim 5, characterized in that: The determining, based on the first preset wavelength, the second preset wavelength and the second absorbance information, third absorbance information of the interfering solute under ultraviolet light of the first preset wavelength comprises: Determining second preset configuration information, where the second preset configuration information is used to characterize a conversion relationship between absorbance information of the interfering solute under ultraviolet light of different wavelengths; The third absorbance information is determined based on the first preset wavelength, the second preset wavelength, the second absorbance information, and the second preset configuration information.

7. The detection method according to claim 5, characterized in that: The step of obtaining second absorbance information of an interfering solute in the solution to be detected under ultraviolet light of a second preset wavelength includes: Acquiring fifth absorbance information of the solution to be detected under ultraviolet light of the second preset wavelength; Acquiring sixth absorbance information of pure water under ultraviolet light of the second preset wavelength; The second absorbance information is determined according to the fifth absorbance information and the sixth absorbance information.

8. The detection method according to claim 5, characterized in that: The determining the first absorbance information according to the third absorbance information and the fourth absorbance information includes: Acquiring seventh absorbance information of pure water under ultraviolet light of the first preset wavelength; The first absorbance information is determined according to the fourth absorbance information, the seventh absorbance information, and the third absorbance information.

9. The detection method according to any one of claims 4 to 8, characterized in that: The first preset wavelength is greater than or equal to 208 nm and less than or equal to 245 nm.

10. A detection device for detecting the concentration of calcium and magnesium ions in a solution to be detected, characterized in that: The detection device comprises: An acquisition module, the acquisition module is used to obtain first absorbance information of calcium and magnesium ions in the solution to be detected under ultraviolet light of a first preset wavelength, wherein the first preset wavelength is greater than or equal to 200 nm and less than or equal to 254 nm; A determination module, wherein the determination module is used to determine the calcium and magnesium ion concentrations corresponding to the first absorbance information according to the first absorbance information and first preset configuration information, wherein the first preset configuration information is used to characterize the correspondence between the absorbance information and the calcium and magnesium ion concentrations.

11. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of a detection device, the detection device is enabled to perform a detection method, the detection method comprising: Obtaining first absorbance information of calcium and magnesium ions in the solution to be detected under ultraviolet light of a first preset wavelength, wherein the first preset wavelength is greater than or equal to 200 nm and less than or equal to 254 nm; The calcium and magnesium ion concentrations corresponding to the first absorbance information are determined according to the first absorbance information and the first preset configuration information, wherein the first preset configuration information is used to characterize the corresponding relationship between the absorbance information and the calcium and magnesium ion concentrations.

Citation Information

Patent Citations

  • Method for testing content of calcium ions in calcium-magnesium water body

    CN106885777A

  • Composite nano-fluid oil-displacing agent resistant to high calcium and magnesium ions and batch preparation method of composite nano-fluid oil-displacing agent

    CN116285926A

  • Measuring method of nutrient element and humus contained in soil, and measuring device using the method

    JP2011064562A

  • Attenuated total reflection optical probe and apparatus therewith for spectroscopic measurement of aqueous solution

    US20090073436A1

  • Adding ion sensitivity to an integrated computational element (ICE)

    US20180328843A1