Analog quantity type proportional valve adjusting method and system for formation and capacity grading
By calibrating and encrypting command control of the proportional valves of the chemical component capacity equipment, the problem of inaccurate and insufficient safety of negative pressure adjustment during the chemical component capacity process of the simulated quantitative proportional valve is solved, and a more efficient, stable and safe proportional valve adjustment is achieved.
Patent Information
- Application Number
- CN202411701468.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-04-08
AI Technical Summary
In the prior art, there is a deviation in the adjustment of the negative pressure value during the ingredient capacity process, which leads to the negative pressure setting being easily overshooted, fluctuated greatly, adjusted for a long time, and lacks security measures, which are easily controlled by hackers, affecting the safety of the lithium battery ingredient capacity.
By calibrating the analog value and negative pressure value of the proportional valve of the negative pressure module of the chemical component capacitance device, a linear function of negative pressure adjustment is obtained. The server obtains the analog value setting value based on the target negative pressure value and this function, encrypts it, and generates a proportional valve adjustment instruction. It is sent to the PLC through the SRTP protocol. After the PLC is checked and decrypted, the opening of the proportional valve is controlled to adjust the negative pressure value.
The safety, efficiency and stability of analog quantity proportional valve adjustment is achieved, and the overshoot and fluctuation of negative pressure setting is avoided, which greatly improves the safety and reliability of the chemical component capacity process.
Smart Images

Figure CN119781366A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of chemical volume fractionation, and in particular to an analog proportional valve adjustment method and system for chemical volume fractionation. Background Art
[0002] Lithium batteries need to be oxidized and capacitated during the production process, which will produce chemical gases. If these chemical gases are not discharged in time, it will cause bulging. Therefore, a negative pressure module is needed to connect the injection port of the lithium battery to suck out the chemical gases. Since the volume of chemical gases produced at different stages of oxidization and capacitation is different, it is necessary to adjust the negative pressure output by the negative pressure module through an analog proportional valve to ensure that all chemical gases are extracted while the electrolyte is not sucked out due to excessive negative pressure.
[0003] The analog proportional valve adopts PID control method, and the purpose of controlling the proportional valve is achieved by adjusting the analog output through PID. Since there will be a deviation between the set value of the analog quantity and the negative pressure value actually output by the proportional valve, repeated adjustments are required, which leads to problems such as easy overshoot of the negative pressure setting, large fluctuations in the negative pressure adjustment, and long negative pressure adjustment time. In addition, traditionally, no corresponding safety measures are taken for the control of the proportional valve. If the negative pressure value output by the proportional valve is arbitrarily adjusted by hackers, it will directly affect the safety of the lithium battery capacity.
[0004] Therefore, how to provide an analog proportional valve adjustment method and system for chemical composition to improve the safety, efficiency and stability of analog proportional valve adjustment has become a technical problem that needs to be solved urgently. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide an analog proportional valve adjustment method and system for chemical composition, so as to improve the safety, efficiency and stability of the analog proportional valve adjustment.
[0006] In a first aspect, the present invention provides a method for adjusting an analog proportional valve for volumetric conversion, comprising the following steps:
[0007] Step S1, calibrating the analog value and negative pressure value of the proportional valve of the negative pressure module of the chemical fractionation equipment to obtain a negative pressure adjustment linear function;
[0008] Step S2: the server obtains a target negative pressure value, and obtains an analog value setting value based on the target negative pressure value and a negative pressure adjustment linear function;
[0009] Step S3, the server encrypts the analog quantity setting value to obtain an analog quantity encrypted value, generates a proportional valve adjustment instruction based on the analog quantity encrypted value, and sends the proportional valve adjustment instruction to the PLC through the SRTP protocol;
[0010] Step S4, the PLC receives the proportional valve adjustment instruction in real time, verifies the proportional valve adjustment instruction, and decrypts the analog quantity encryption value carried by the proportional valve adjustment instruction to obtain the analog quantity setting value;
[0011] Step S5, the PLC controls the opening of the proportional valve based on the analog setting value to adjust the negative pressure value output by the proportional valve to the target negative pressure value.
[0012] Furthermore, the step S1 is specifically as follows:
[0013] Divide the first negative pressure value interval output by the proportional valve of the negative pressure module of the chemical fractionation device into a plurality of first negative pressure value sub-intervals, use the boundary value of each of the first negative pressure value sub-intervals as the first preset negative pressure value, and set the first preset analog value of each of the first preset negative pressure values;
[0014] adjusting the opening of the proportional valve based on each of the first preset analog values, recording the first actual negative pressure value corresponding to each of the first preset analog values, and adjusting the first preset analog value based on the deviation relationship between the first actual negative pressure value and the first preset negative pressure value to obtain a second preset analog value;
[0015] The opening of the proportional valve is adjusted based on each of the second preset analog values, the second actual negative pressure values corresponding to each of the second preset analog values are recorded, the second negative pressure value sub-interval is determined based on each of the second actual negative pressure values, the second negative pressure value interval is divided into a number of second negative pressure value sub-intervals, the boundary value of each of the second negative pressure value sub-interval is used as the second preset negative pressure value, and a negative pressure adjustment linear function is generated based on the correspondence between each of the second preset negative pressure values and the second preset analog value, thereby completing the calibration of the proportional valve.
[0016] Furthermore, the step S3 is specifically as follows:
[0017] The server encrypts the analog quantity setting value by using the AES algorithm to obtain first-level encrypted data, maps each character of the first-level encrypted data by using a preset mapping rule to obtain second-level encrypted data, replaces the number 0 and the letter O in the second-level encrypted data to obtain third-level encrypted data, and encrypts the third-level encrypted data into an analog quantity encrypted value by using the RSA algorithm;
[0018] The server obtains the current timestamp and the device serial number of the content-composition device, performs hash calculation on the analog encrypted value, timestamp and device serial number to obtain a hash value, generates a proportional valve adjustment instruction based on the analog encrypted value, timestamp, device serial number and hash value, and sends the proportional valve adjustment instruction to the PLC in real time through the SRTP protocol.
[0019] Furthermore, the step S4 is specifically as follows:
[0020] The PLC receives the proportional valve adjustment instruction in real time, parses the proportional valve adjustment instruction to obtain an analog encrypted value, a timestamp, a device serial number and a hash value, performs integrity check on the analog encrypted value, the timestamp and the device serial number based on the hash value, then compares the preset device management table based on the device serial number to perform a legality check, and then performs a timeliness check based on the timestamp to complete the verification of the proportional valve adjustment instruction;
[0021] Then, the analog encrypted value is decrypted into third-level encrypted data through the RSA algorithm, the number 0 and the letter O in the third-level encrypted data are replaced with each other to obtain second-level encrypted data, each character of the second-level encrypted data is mapped according to a preset mapping rule to obtain first-level encrypted data, and the first-level encrypted data is decrypted into an analog set value through the AES algorithm.
[0022] Furthermore, the step S5 further includes:
[0023] The PLC records the working log of the proportional valve in real time, stores the working log locally, and backs it up to the server.
[0024] In a second aspect, the present invention provides an analog proportional valve adjustment system for volumetric conversion, comprising the following modules:
[0025] A proportional valve calibration module is used to calibrate the analog value and negative pressure value of the proportional valve of the negative pressure module of the chemical fractionation equipment to obtain a negative pressure adjustment linear function;
[0026] An analog quantity set value calculation module is used for the server to obtain a target negative pressure value, and obtain an analog quantity set value based on the target negative pressure value and a negative pressure adjustment linear function;
[0027] A proportional valve adjustment instruction sending module is used for the server to encrypt the analog quantity setting value to obtain an analog quantity encrypted value, generate a proportional valve adjustment instruction based on the analog quantity encrypted value, and send the proportional valve adjustment instruction to the PLC through the SRTP protocol;
[0028] A proportional valve adjustment instruction verification and decryption module is used for the PLC to receive the proportional valve adjustment instruction in real time, verify the proportional valve adjustment instruction, and then decrypt the analog quantity encryption value carried by the proportional valve adjustment instruction to obtain the analog quantity setting value;
[0029] The proportional valve adjustment module is used for the PLC to control the opening of the proportional valve based on the analog setting value to adjust the negative pressure value output by the proportional valve to the target negative pressure value.
[0030] Furthermore, the proportional valve calibration module is specifically used for:
[0031] Divide the first negative pressure value interval output by the proportional valve of the negative pressure module of the chemical fractionation device into a plurality of first negative pressure value sub-intervals, use the boundary value of each of the first negative pressure value sub-intervals as the first preset negative pressure value, and set the first preset analog value of each of the first preset negative pressure values;
[0032] adjusting the opening of the proportional valve based on each of the first preset analog values, recording the first actual negative pressure value corresponding to each of the first preset analog values, and adjusting the first preset analog value based on the deviation relationship between the first actual negative pressure value and the first preset negative pressure value to obtain a second preset analog value;
[0033] The opening of the proportional valve is adjusted based on each of the second preset analog values, the second actual negative pressure values corresponding to each of the second preset analog values are recorded, the second negative pressure value sub-interval is determined based on each of the second actual negative pressure values, the second negative pressure value interval is divided into a number of second negative pressure value sub-intervals, the boundary value of each of the second negative pressure value sub-interval is used as the second preset negative pressure value, and a negative pressure adjustment linear function is generated based on the correspondence between each of the second preset negative pressure values and the second preset analog value, thereby completing the calibration of the proportional valve.
[0034] Furthermore, the proportional valve adjustment instruction sending module is specifically used for:
[0035] The server encrypts the analog quantity setting value by using the AES algorithm to obtain first-level encrypted data, maps each character of the first-level encrypted data by using a preset mapping rule to obtain second-level encrypted data, replaces the number 0 and the letter O in the second-level encrypted data to obtain third-level encrypted data, and encrypts the third-level encrypted data into an analog quantity encrypted value by using the RSA algorithm;
[0036] The server obtains the current timestamp and the device serial number of the content-composition device, performs hash calculation on the analog encrypted value, timestamp and device serial number to obtain a hash value, generates a proportional valve adjustment instruction based on the analog encrypted value, timestamp, device serial number and hash value, and sends the proportional valve adjustment instruction to the PLC in real time through the SRTP protocol.
[0037] Furthermore, the proportional valve adjustment instruction verification and decryption module is specifically used for:
[0038] The PLC receives the proportional valve adjustment instruction in real time, parses the proportional valve adjustment instruction to obtain an analog encrypted value, a timestamp, a device serial number and a hash value, performs integrity check on the analog encrypted value, the timestamp and the device serial number based on the hash value, then compares the preset device management table based on the device serial number to perform a legality check, and then performs a timeliness check based on the timestamp to complete the verification of the proportional valve adjustment instruction;
[0039] Then, the analog encrypted value is decrypted into third-level encrypted data through the RSA algorithm, the number 0 and the letter O in the third-level encrypted data are replaced with each other to obtain second-level encrypted data, each character of the second-level encrypted data is mapped according to a preset mapping rule to obtain first-level encrypted data, and the first-level encrypted data is decrypted into an analog set value through the AES algorithm.
[0040] Furthermore, the proportional valve adjustment module is also used for:
[0041] The PLC records the working log of the proportional valve in real time, stores the working log locally, and backs it up to the server.
[0042] The advantages of the present invention are:
[0043] 1. The negative pressure adjustment linear function is obtained by calibrating the analog value and negative pressure value of the proportional valve of the negative pressure module of the chemical volume fractionation equipment. Then, the server obtains the analog set value based on the obtained target negative pressure value and the negative pressure adjustment linear function, encrypts the analog set value to obtain the analog encrypted value, generates a proportional valve adjustment instruction based on the analog encrypted value and sends it to the PLC; then, after the PLC verifies the proportional valve adjustment instruction, it decrypts the analog encrypted value carried by the proportional valve adjustment instruction to obtain the analog set value, and controls the opening of the proportional valve based on the analog set value to adjust the negative pressure value output by the proportional valve to the target negative pressure value; that is, the analog value and negative pressure value of the proportional valve are calibrated first, and the operation of the proportional valve is controlled based on the negative pressure adjustment linear function obtained by the calibration to ensure the accuracy of the negative pressure value output by the proportional valve, without repeated adjustment, and avoiding overshoot of the negative pressure setting. The analog set value carried by the proportional valve adjustment instruction is encrypted to avoid being stolen and tampered with in plain text, thereby greatly improving the security, efficiency and stability of analog proportional valve adjustment.
[0044] 2. The server encrypts the analog set value through the AES algorithm to obtain the first-level encrypted data, maps each character of the first-level encrypted data through the preset mapping rule to obtain the second-level encrypted data, replaces the number 0 and the letter O in the second-level encrypted data to obtain the third-level encrypted data, encrypts the third-level encrypted data into the analog encrypted value through the RSA algorithm, performs hash calculation on the analog encrypted value, timestamp and device serial number to obtain the hash value, generates the proportional valve adjustment instruction based on the analog encrypted value, timestamp, device serial number and hash value, and sends the proportional valve adjustment instruction in real time through the SRTP protocol. Sent to PLC; that is, the analog set value is encrypted multiple times. If you don’t know the corresponding encryption algorithm or data transformation rule, you will not be able to crack the analog encrypted value. It also combines the integrity check of the hash value, the legitimacy check of the device serial number, and the timeliness check of the timestamp. The SRTP protocol is a secure real-time transmission protocol. It has taken at least 8 security measures (AES algorithm, mapping rules, character swapping, RSA algorithm, timestamp, device serial number, hash calculation, SRTP protocol), which greatly improves the security of analog set value transmission, and thus greatly improves the security of analog proportional valve adjustment.
[0045] 3. By recording the working log of the proportional valve in real time, storing the working log locally and backing it up to the server, it is convenient for later traceability, which greatly improves the convenience of operation and maintenance of the chemical fractionation equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.
[0047] Figure 1 The present invention is a flow chart of an analog proportional valve adjustment method for volume fractionation.
[0048] Figure 2 The present invention is a structural schematic diagram of an analog proportional valve adjustment system for volume fractionation. DETAILED DESCRIPTION
[0049] The technical solution in the embodiments of the present application has the following overall idea: first, the analog value and negative pressure value of the proportional valve are calibrated, and the operation of the proportional valve is controlled based on the negative pressure adjustment linear function obtained by the calibration, so as to ensure the accuracy of the negative pressure value output by the proportional valve, without the need for repeated adjustments, and to avoid overshoot of the negative pressure setting. The analog setting value carried by the proportional valve adjustment instruction is encrypted to avoid being stolen and tampered with in plain text, so as to improve the security, efficiency and stability of the analog proportional valve adjustment.
[0050] Please refer to Figure 1 to Figure 2 As shown, a preferred embodiment of the present invention is a method for adjusting an analog proportional valve for volume fractionation, comprising the following steps:
[0051] Step S1, calibrating the analog value and negative pressure value of the proportional valve of the negative pressure module of the chemical fractionation equipment to obtain a negative pressure adjustment linear function; the opening of the proportional valve can be finely adjusted by the negative pressure adjustment linear function, and then the negative pressure value output by the proportional valve can be finely controlled;
[0052] Step S2: the server obtains a target negative pressure value, and obtains an analog value setting value based on the target negative pressure value and a negative pressure adjustment linear function;
[0053] Step S3, the server encrypts the analog quantity setting value to obtain an analog quantity encrypted value, generates a proportional valve adjustment instruction based on the analog quantity encrypted value, and sends the proportional valve adjustment instruction to the PLC through the SRTP protocol;
[0054] Step S4, the PLC receives the proportional valve adjustment instruction in real time, verifies the proportional valve adjustment instruction, and decrypts the analog quantity encryption value carried by the proportional valve adjustment instruction to obtain the analog quantity setting value;
[0055] Step S5, the PLC controls the opening of the proportional valve based on the analog setting value to adjust the negative pressure value output by the proportional valve to the target negative pressure value.
[0056] The step S1 is specifically as follows:
[0057] Divide the first negative pressure value interval output by the proportional valve of the negative pressure module of the chemical fractionation device into a plurality of first negative pressure value sub-intervals, use the boundary value of each of the first negative pressure value sub-intervals as the first preset negative pressure value, and set the first preset analog value of each of the first preset negative pressure values;
[0058] adjusting the opening of the proportional valve based on each of the first preset analog values, recording the first actual negative pressure value corresponding to each of the first preset analog values, and adjusting the first preset analog value based on the deviation relationship between the first actual negative pressure value and the first preset negative pressure value to obtain a second preset analog value;
[0059] The opening of the proportional valve is adjusted based on each of the second preset analog values, the second actual negative pressure values corresponding to each of the second preset analog values are recorded, the second negative pressure value sub-interval is determined based on each of the second actual negative pressure values, the second negative pressure value interval is divided into a number of second negative pressure value sub-intervals, the boundary value of each of the second negative pressure value sub-interval is used as the second preset negative pressure value, and a negative pressure adjustment linear function is generated based on the correspondence between each of the second preset negative pressure values and the second preset analog value, thereby completing the calibration of the proportional valve.
[0060] The step S3 is specifically as follows:
[0061] The server encrypts the analog quantity setting value by using the AES algorithm to obtain first-level encrypted data, maps each character of the first-level encrypted data by using a preset mapping rule to obtain second-level encrypted data, replaces the number 0 and the letter O in the second-level encrypted data to obtain third-level encrypted data, and encrypts the third-level encrypted data into an analog quantity encrypted value by using the RSA algorithm;
[0062] The server obtains the current timestamp and the device serial number of the content-composition device, performs hash calculation on the analog encrypted value, timestamp and device serial number to obtain a hash value, generates a proportional valve adjustment instruction based on the analog encrypted value, timestamp, device serial number and hash value, and sends the proportional valve adjustment instruction to the PLC in real time through the SRTP protocol.
[0063] The server encrypts the analog set value through the AES algorithm to obtain the first-level encrypted data, maps each character of the first-level encrypted data through the preset mapping rule to obtain the second-level encrypted data, replaces the number 0 and the letter O in the second-level encrypted data to obtain the third-level encrypted data, encrypts the third-level encrypted data into the analog encrypted value through the RSA algorithm, performs hash calculation on the analog encrypted value, the timestamp and the device serial number to obtain the hash value, generates the proportional valve adjustment instruction based on the analog encrypted value, the timestamp, the device serial number and the hash value, and sends the proportional valve adjustment instruction to the PLC in real time through the SRTP protocol; that is, the analog set value is encrypted multiple times, and if the corresponding encryption algorithm or data transformation rule is not known, the analog encrypted value cannot be cracked, and the integrity check of the hash value, the legitimacy check of the device serial number, and the timeliness check of the timestamp are also combined. The SRTP protocol is a secure real-time transmission protocol, and at least 8 security measures (AES algorithm, mapping rule, character swap, RSA algorithm, timestamp, device serial number, hash calculation, SRTP protocol) are taken before and after, which greatly improves the security of the analog set value transmission, and thus greatly improves the security of the analog proportional valve adjustment.
[0064] The step S4 is specifically as follows:
[0065] The PLC receives the proportional valve adjustment instruction in real time, parses the proportional valve adjustment instruction to obtain an analog encrypted value, a timestamp, a device serial number and a hash value, performs integrity check on the analog encrypted value, the timestamp and the device serial number based on the hash value, then compares the preset device management table based on the device serial number to perform a legality check, and then performs a timeliness check based on the timestamp to complete the verification of the proportional valve adjustment instruction;
[0066] Then, the analog encrypted value is decrypted into third-level encrypted data through the RSA algorithm, the number 0 and the letter O in the third-level encrypted data are replaced with each other to obtain second-level encrypted data, each character of the second-level encrypted data is mapped according to a preset mapping rule to obtain first-level encrypted data, and the first-level encrypted data is decrypted into an analog set value through the AES algorithm.
[0067] The step S5 further comprises:
[0068] The PLC records the working log of the proportional valve in real time, stores the working log locally, and backs it up to the server. In specific implementation, the working log can be encrypted into an encrypted log for storage and backup to improve storage security.
[0069] By recording the working log of the proportional valve in real time, storing the working log locally and backing it up to the server, it is easy to trace the source later, which greatly improves the convenience of operation and maintenance of the chemical fractionation equipment.
[0070] A preferred embodiment of an analog proportional valve adjustment system for chemical volume fractionation of the present invention comprises the following modules:
[0071] A proportional valve calibration module is used to calibrate the analog value and negative pressure value of the proportional valve of the negative pressure module of the chemical fractionation equipment to obtain a negative pressure adjustment linear function; the negative pressure adjustment linear function can be used to finely adjust the opening of the proportional valve, thereby finely controlling the negative pressure value output by the proportional valve;
[0072] An analog quantity set value calculation module is used for the server to obtain a target negative pressure value, and obtain an analog quantity set value based on the target negative pressure value and a negative pressure adjustment linear function;
[0073] A proportional valve adjustment instruction sending module is used for the server to encrypt the analog quantity setting value to obtain an analog quantity encrypted value, generate a proportional valve adjustment instruction based on the analog quantity encrypted value, and send the proportional valve adjustment instruction to the PLC through the SRTP protocol;
[0074] A proportional valve adjustment instruction verification and decryption module is used for the PLC to receive the proportional valve adjustment instruction in real time, verify the proportional valve adjustment instruction, and then decrypt the analog quantity encryption value carried by the proportional valve adjustment instruction to obtain the analog quantity setting value;
[0075] The proportional valve adjustment module is used for the PLC to control the opening of the proportional valve based on the analog setting value to adjust the negative pressure value output by the proportional valve to the target negative pressure value.
[0076] The proportional valve calibration module is specifically used for:
[0077] Divide the first negative pressure value interval output by the proportional valve of the negative pressure module of the chemical fractionation device into a plurality of first negative pressure value sub-intervals, use the boundary value of each of the first negative pressure value sub-intervals as the first preset negative pressure value, and set the first preset analog value of each of the first preset negative pressure values;
[0078] adjusting the opening of the proportional valve based on each of the first preset analog values, recording the first actual negative pressure value corresponding to each of the first preset analog values, and adjusting the first preset analog value based on the deviation relationship between the first actual negative pressure value and the first preset negative pressure value to obtain a second preset analog value;
[0079] The opening of the proportional valve is adjusted based on each of the second preset analog values, the second actual negative pressure values corresponding to each of the second preset analog values are recorded, the second negative pressure value sub-interval is determined based on each of the second actual negative pressure values, the second negative pressure value interval is divided into a number of second negative pressure value sub-intervals, the boundary value of each of the second negative pressure value sub-interval is used as the second preset negative pressure value, and a negative pressure adjustment linear function is generated based on the correspondence between each of the second preset negative pressure values and the second preset analog value, thereby completing the calibration of the proportional valve.
[0080] The proportional valve adjustment instruction sending module is specifically used for:
[0081] The server encrypts the analog quantity setting value by using the AES algorithm to obtain first-level encrypted data, maps each character of the first-level encrypted data by using a preset mapping rule to obtain second-level encrypted data, replaces the number 0 and the letter O in the second-level encrypted data to obtain third-level encrypted data, and encrypts the third-level encrypted data into an analog quantity encrypted value by using the RSA algorithm;
[0082] The server obtains the current timestamp and the device serial number of the content-composition device, performs hash calculation on the analog encrypted value, timestamp and device serial number to obtain a hash value, generates a proportional valve adjustment instruction based on the analog encrypted value, timestamp, device serial number and hash value, and sends the proportional valve adjustment instruction to the PLC in real time through the SRTP protocol.
[0083] The server encrypts the analog set value through the AES algorithm to obtain the first-level encrypted data, maps each character of the first-level encrypted data through the preset mapping rule to obtain the second-level encrypted data, replaces the number 0 and the letter O in the second-level encrypted data to obtain the third-level encrypted data, encrypts the third-level encrypted data into the analog encrypted value through the RSA algorithm, performs hash calculation on the analog encrypted value, the timestamp and the device serial number to obtain the hash value, generates the proportional valve adjustment instruction based on the analog encrypted value, the timestamp, the device serial number and the hash value, and sends the proportional valve adjustment instruction to the PLC in real time through the SRTP protocol; that is, the analog set value is encrypted multiple times, and if the corresponding encryption algorithm or data transformation rule is not known, the analog encrypted value cannot be cracked, and the integrity check of the hash value, the legitimacy check of the device serial number, and the timeliness check of the timestamp are also combined. The SRTP protocol is a secure real-time transmission protocol, and at least 8 security measures (AES algorithm, mapping rule, character swap, RSA algorithm, timestamp, device serial number, hash calculation, SRTP protocol) are taken before and after, which greatly improves the security of the analog set value transmission, and thus greatly improves the security of the analog proportional valve adjustment.
[0084] The proportional valve adjustment instruction verification and decryption module is specifically used for:
[0085] The PLC receives the proportional valve adjustment instruction in real time, parses the proportional valve adjustment instruction to obtain an analog encrypted value, a timestamp, a device serial number and a hash value, performs integrity check on the analog encrypted value, the timestamp and the device serial number based on the hash value, then compares the preset device management table based on the device serial number to perform a legality check, and then performs a timeliness check based on the timestamp to complete the verification of the proportional valve adjustment instruction;
[0086] Then, the analog encrypted value is decrypted into third-level encrypted data through the RSA algorithm, the number 0 and the letter O in the third-level encrypted data are replaced with each other to obtain second-level encrypted data, each character of the second-level encrypted data is mapped according to a preset mapping rule to obtain first-level encrypted data, and the first-level encrypted data is decrypted into an analog set value through the AES algorithm.
[0087] The proportional valve adjustment module is also used for:
[0088] The PLC records the working log of the proportional valve in real time, stores the working log locally, and backs it up to the server. In specific implementation, the working log can be encrypted into an encrypted log for storage and backup to improve storage security.
[0089] By recording the working log of the proportional valve in real time, storing the working log locally and backing it up to the server, it is easy to trace the source later, which greatly improves the convenience of operation and maintenance of the chemical fractionation equipment.
[0090] In summary, the advantages of the present invention are:
[0091] 1. The negative pressure adjustment linear function is obtained by calibrating the analog value and negative pressure value of the proportional valve of the negative pressure module of the chemical volume fractionation equipment. Then, the server obtains the analog set value based on the obtained target negative pressure value and the negative pressure adjustment linear function, encrypts the analog set value to obtain the analog encrypted value, generates a proportional valve adjustment instruction based on the analog encrypted value and sends it to the PLC; then, after the PLC verifies the proportional valve adjustment instruction, it decrypts the analog encrypted value carried by the proportional valve adjustment instruction to obtain the analog set value, and controls the opening of the proportional valve based on the analog set value to adjust the negative pressure value output by the proportional valve to the target negative pressure value; that is, the analog value and negative pressure value of the proportional valve are calibrated first, and the operation of the proportional valve is controlled based on the negative pressure adjustment linear function obtained by the calibration to ensure the accuracy of the negative pressure value output by the proportional valve, without repeated adjustment, and avoiding overshoot of the negative pressure setting. The analog set value carried by the proportional valve adjustment instruction is encrypted to avoid being stolen and tampered with in plain text, thereby greatly improving the security, efficiency and stability of analog proportional valve adjustment.
[0092] 2. The server encrypts the analog set value through the AES algorithm to obtain the first-level encrypted data, maps each character of the first-level encrypted data through the preset mapping rule to obtain the second-level encrypted data, replaces the number 0 and the letter O in the second-level encrypted data to obtain the third-level encrypted data, encrypts the third-level encrypted data into the analog encrypted value through the RSA algorithm, performs hash calculation on the analog encrypted value, timestamp and device serial number to obtain the hash value, generates the proportional valve adjustment instruction based on the analog encrypted value, timestamp, device serial number and hash value, and sends the proportional valve adjustment instruction in real time through the SRTP protocol. Sent to PLC; that is, the analog set value is encrypted multiple times. If you don’t know the corresponding encryption algorithm or data transformation rule, you will not be able to crack the analog encrypted value. It also combines the integrity check of the hash value, the legitimacy check of the device serial number, and the timeliness check of the timestamp. The SRTP protocol is a secure real-time transmission protocol. It has taken at least 8 security measures (AES algorithm, mapping rules, character swapping, RSA algorithm, timestamp, device serial number, hash calculation, SRTP protocol), which greatly improves the security of analog set value transmission, and thus greatly improves the security of analog proportional valve adjustment.
[0093] 3. By recording the working log of the proportional valve in real time, storing the working log locally and backing it up to the server, it is convenient for later traceability, which greatly improves the convenience of operation and maintenance of the chemical fractionation equipment.
[0094] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.
Claims
1. A method for adjusting an analog proportional valve for volume fractionation, characterized in that: The steps include: Step S1, calibrating the analog value and negative pressure value of the proportional valve of the negative pressure module of the chemical fractionation equipment to obtain a negative pressure adjustment linear function; Step S2: the server obtains a target negative pressure value, and obtains an analog value setting value based on the target negative pressure value and a negative pressure adjustment linear function; Step S3, the server encrypts the analog quantity setting value to obtain an analog quantity encrypted value, generates a proportional valve adjustment instruction based on the analog quantity encrypted value, and sends the proportional valve adjustment instruction to the PLC through the SRTP protocol; Step S4, the PLC receives the proportional valve adjustment instruction in real time, verifies the proportional valve adjustment instruction, and decrypts the analog quantity encryption value carried by the proportional valve adjustment instruction to obtain the analog quantity setting value; Step S5, the PLC controls the opening of the proportional valve based on the analog setting value to adjust the negative pressure value output by the proportional valve to the target negative pressure value.
2. The method for adjusting an analog proportional valve for volume fractionation according to claim 1, characterized in that: The step S1 is specifically as follows: Divide the first negative pressure value interval output by the proportional valve of the negative pressure module of the chemical fractionation device into a plurality of first negative pressure value sub-intervals, use the boundary value of each of the first negative pressure value sub-intervals as the first preset negative pressure value, and set the first preset analog value of each of the first preset negative pressure values; adjusting the opening of the proportional valve based on each of the first preset analog values, recording the first actual negative pressure value corresponding to each of the first preset analog values, and adjusting the first preset analog value based on the deviation relationship between the first actual negative pressure value and the first preset negative pressure value to obtain a second preset analog value; The opening of the proportional valve is adjusted based on each of the second preset analog values, the second actual negative pressure values corresponding to each of the second preset analog values are recorded, the second negative pressure value sub-interval is determined based on each of the second actual negative pressure values, the second negative pressure value interval is divided into a number of second negative pressure value sub-intervals, the boundary value of each of the second negative pressure value sub-interval is used as the second preset negative pressure value, and a negative pressure adjustment linear function is generated based on the correspondence between each of the second preset negative pressure values and the second preset analog value, thereby completing the calibration of the proportional valve.
3. The method for adjusting an analog proportional valve for chemical composition as claimed in claim 1, characterized in that: The step S3 is specifically as follows: The server encrypts the analog quantity setting value by using the AES algorithm to obtain first-level encrypted data, maps each character of the first-level encrypted data by using a preset mapping rule to obtain second-level encrypted data, replaces the number 0 and the letter O in the second-level encrypted data to obtain third-level encrypted data, and encrypts the third-level encrypted data into an analog quantity encrypted value by using the RSA algorithm; The server obtains the current timestamp and the device serial number of the content-composition device, performs hash calculation on the analog encrypted value, timestamp and device serial number to obtain a hash value, generates a proportional valve adjustment instruction based on the analog encrypted value, timestamp, device serial number and hash value, and sends the proportional valve adjustment instruction to the PLC in real time through the SRTP protocol.
4. The method for adjusting an analog proportional valve for volume fractionation according to claim 1, characterized in that: The step S4 is specifically as follows: The PLC receives the proportional valve adjustment instruction in real time, parses the proportional valve adjustment instruction to obtain an analog encrypted value, a timestamp, a device serial number and a hash value, performs integrity check on the analog encrypted value, the timestamp and the device serial number based on the hash value, then compares the preset device management table based on the device serial number to perform a legality check, and then performs a timeliness check based on the timestamp to complete the verification of the proportional valve adjustment instruction; Then, the analog encrypted value is decrypted into third-level encrypted data through the RSA algorithm, the number 0 and the letter O in the third-level encrypted data are replaced with each other to obtain second-level encrypted data, each character of the second-level encrypted data is mapped according to a preset mapping rule to obtain first-level encrypted data, and the first-level encrypted data is decrypted into an analog set value through the AES algorithm.
5. The method for adjusting an analog proportional valve for volume fractionation according to claim 1, characterized in that: The step S5 further comprises: The PLC records the working log of the proportional valve in real time, stores the working log locally, and backs it up to the server.
6. An analog proportional valve adjustment system for volume fractionation, characterized in that: Includes the following modules: A proportional valve calibration module is used to calibrate the analog value and negative pressure value of the proportional valve of the negative pressure module of the chemical fractionation equipment to obtain a negative pressure adjustment linear function; An analog quantity set value calculation module is used for the server to obtain a target negative pressure value, and obtain an analog quantity set value based on the target negative pressure value and a negative pressure adjustment linear function; A proportional valve adjustment instruction sending module is used for the server to encrypt the analog quantity setting value to obtain an analog quantity encrypted value, generate a proportional valve adjustment instruction based on the analog quantity encrypted value, and send the proportional valve adjustment instruction to the PLC through the SRTP protocol; A proportional valve adjustment instruction verification and decryption module is used for the PLC to receive the proportional valve adjustment instruction in real time, verify the proportional valve adjustment instruction, and then decrypt the analog quantity encryption value carried by the proportional valve adjustment instruction to obtain the analog quantity setting value; The proportional valve adjustment module is used for the PLC to control the opening of the proportional valve based on the analog setting value to adjust the negative pressure value output by the proportional valve to the target negative pressure value.
7. The analog proportional valve adjustment system for chemical composition as claimed in claim 6, characterized in that: The proportional valve calibration module is specifically used for: Divide the first negative pressure value interval output by the proportional valve of the negative pressure module of the chemical fractionation device into a plurality of first negative pressure value sub-intervals, use the boundary value of each of the first negative pressure value sub-intervals as the first preset negative pressure value, and set the first preset analog value of each of the first preset negative pressure values; adjusting the opening of the proportional valve based on each of the first preset analog values, recording the first actual negative pressure value corresponding to each of the first preset analog values, and adjusting the first preset analog value based on the deviation relationship between the first actual negative pressure value and the first preset negative pressure value to obtain a second preset analog value; The opening of the proportional valve is adjusted based on each of the second preset analog values, the second actual negative pressure values corresponding to each of the second preset analog values are recorded, the second negative pressure value sub-interval is determined based on each of the second actual negative pressure values, the second negative pressure value interval is divided into a number of second negative pressure value sub-intervals, the boundary value of each of the second negative pressure value sub-interval is used as the second preset negative pressure value, and a negative pressure adjustment linear function is generated based on the correspondence between each of the second preset negative pressure values and the second preset analog value, thereby completing the calibration of the proportional valve.
8. The analog proportional valve adjustment system for chemical composition as claimed in claim 6, characterized in that: The proportional valve adjustment instruction sending module is specifically used for: The server encrypts the analog quantity setting value by using the AES algorithm to obtain first-level encrypted data, maps each character of the first-level encrypted data by using a preset mapping rule to obtain second-level encrypted data, replaces the number 0 and the letter O in the second-level encrypted data to obtain third-level encrypted data, and encrypts the third-level encrypted data into an analog quantity encrypted value by using the RSA algorithm; The server obtains the current timestamp and the device serial number of the content-composition device, performs hash calculation on the analog encrypted value, timestamp and device serial number to obtain a hash value, generates a proportional valve adjustment instruction based on the analog encrypted value, timestamp, device serial number and hash value, and sends the proportional valve adjustment instruction to the PLC in real time through the SRTP protocol.
9. The analog proportional valve adjustment system for chemical composition as claimed in claim 6, characterized in that: The proportional valve adjustment instruction verification and decryption module is specifically used for: The PLC receives the proportional valve adjustment instruction in real time, parses the proportional valve adjustment instruction to obtain an analog encrypted value, a timestamp, a device serial number and a hash value, performs integrity check on the analog encrypted value, the timestamp and the device serial number based on the hash value, then compares the preset device management table based on the device serial number to perform a legality check, and then performs a timeliness check based on the timestamp to complete the verification of the proportional valve adjustment instruction; Then, the analog encrypted value is decrypted into third-level encrypted data through the RSA algorithm, the number 0 and the letter O in the third-level encrypted data are replaced with each other to obtain second-level encrypted data, each character of the second-level encrypted data is mapped according to a preset mapping rule to obtain first-level encrypted data, and the first-level encrypted data is decrypted into an analog set value through the AES algorithm.
10. The analog proportional valve adjustment system for chemical composition as claimed in claim 6, characterized in that: The proportional valve adjustment module is also used for: The PLC records the working log of the proportional valve in real time, stores the working log locally, and backs it up to the server.
Citation Information
Patent Citations
Data file auditing and checking system and method
CN105488423A
Protection method, device and equipment for electronic seal and medium
CN109697603A
Proportional valve self-adaptive control method and device
CN110578823A
Dynamic confusion encryption and decryption method and device
CN112202729A
Method and system for reading and writing log of formation and capacity grading equipment
CN115878582A