Water outlet control method and system for peristaltic pump
The calculated rotation number of rotations calculated by the server calibration and encryption generates water effluent control instructions, which solves the problems of low injection accuracy and safety hazards in the traditional peristaltic pump water effluent control method, and achieves higher injection accuracy and safety.
Patent Information
- Application Number
- CN202411701440.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2044-11-26
AI Technical Summary
The traditional peristaltic pump water outlet control method has problems with low injection accuracy and safety risks, especially the errors caused by the inability of liquid to fill the pipeline and the safety of data transmission.
The peristaltic pump is calibrated through the server to obtain the water effluent volume parameters, calculate the number of rotations based on the injection target value, and encrypt it into ciphertext data to generate a water effluent control instruction, which is sent to the controller through the TLS protocol. After the controller decrypts the memory, the peristaltic pump is controlled to perform the water effluent operation.
The injection accuracy of peristaltic pump outlet control is improved, errors and hysteresis caused by the inability of liquid to fill the pipeline are avoided, and the security of the system is significantly improved through multiple encryption and secure transmission protocols.
Smart Images

Figure CN119801892A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of peristaltic pump management, and in particular to a peristaltic pump water outlet control method and system. Background Art
[0002] Peristaltic pumps pump fluids by alternately squeezing and releasing the elastic delivery hose, just like pinching the hose with two fingers. As the fingers move, negative pressure is formed in the hose, and the liquid flows. Using peristaltic pumps to drive liquid flow output is a common application in industry. It is widely used in the fields of liquid pipeline transportation and pipeline cleaning. In order to ensure the working effect of the peristaltic pump, the peristaltic pump is required to accurately discharge water and inject liquid.
[0003] In order to ensure the accuracy of water discharge and injection of peristaltic pumps, flow sensors are traditionally used to detect the volume of liquid flowing in the pipeline, and whether the peristaltic pump continues to work is determined based on the liquid volume. However, the following problems exist: 1. When the liquid flows through the pipeline, it is often affected by factors such as the rotation speed of the peristaltic pump, the liquid flow rate, and the flow volume, which makes it impossible for the liquid to fill the entire pipeline, causing a certain error in the detection feedback of the flow sensor, and there is a certain lag in controlling the operation of the peristaltic pump through the detection data of the flow sensor, which in turn affects the injection accuracy of the peristaltic pump; 2. No security measures are taken for the transmission of relevant data. When the data of the flow sensor is tampered with, it will directly affect the operation of the peristaltic pump, which may cause siltation and blockage in the pipeline, posing a huge safety hazard.
[0004] Therefore, how to provide a peristaltic pump water outlet control method and system to improve the injection accuracy and safety of the peristaltic pump water outlet control 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 a peristaltic pump water outlet control method and system to improve the injection accuracy and safety of the peristaltic pump water outlet control.
[0006] In a first aspect, the present invention provides a peristaltic pump water outlet control method, comprising the following steps:
[0007] Step S1, the server calibrates the peristaltic pump through a metering device to obtain a water output volume parameter of the peristaltic pump;
[0008] Step S2: the server obtains a liquid injection target value, and calculates the number of rotations of the peristaltic pump based on the liquid injection target value and the water output volume parameter;
[0009] Step S3: the server encrypts the number of rotations into ciphertext data, generates a water outlet control instruction based on the ciphertext data, and sends the water outlet control instruction to the controller;
[0010] Step S4: the controller receives the water outlet control instruction, verifies the water outlet control instruction, and decrypts the ciphertext data carried by the water outlet control instruction to obtain the number of rotations;
[0011] Step S5: The controller controls the peristaltic pump to perform a water outlet operation based on the number of rotations.
[0012] Furthermore, the step S1 is specifically as follows:
[0013] The server automatically calibrates the peristaltic pump through the metering device, obtains the water output volume parameter of the peristaltic pump, and stores the water output volume parameter after binding it to the device model and device serial number of the metering device.
[0014] Furthermore, the step S3 is specifically as follows:
[0015] The server converts the number of rotations into a first character string by using an El Gama l algorithm, divides the first character string based on a preset division ratio and swaps the order of the first and second characters to obtain a second character string, encrypts the second character string by using an AES algorithm to obtain a third character string, maps the third character string by using a preset mapping rule to obtain a fourth character string, and encrypts the fourth character string by using an RC2 algorithm to obtain ciphertext data;
[0016] Perform hash calculation on the ciphertext data to obtain a hash value, obtain the current timestamp and device serial number, generate a water outlet control instruction based on the ciphertext data, hash value, timestamp and device serial number, and send the water outlet control instruction to the controller via the TLS protocol.
[0017] Furthermore, the step S4 is specifically as follows:
[0018] The controller receives the water outlet control instruction in real time through the wireless communication module, parses the water outlet control instruction to obtain ciphertext data, hash value, timestamp and device serial number, verifies the legitimacy of the device serial number through the preset device management table, verifies the timeliness through the timestamp, and then verifies the integrity of the ciphertext data through the hash value;
[0019] The controller decrypts the ciphertext data through the RC2 algorithm to obtain a fourth character string, maps the fourth character string through a preset mapping rule to obtain a third character string, decrypts the third character string through the AES algorithm to obtain a second character string, divides the second character string based on the inverse of a preset division ratio and swaps the order to obtain a first character string, and decrypts the first character string through the El Gama l algorithm to obtain the number of rotations.
[0020] Furthermore, the step S5 further includes:
[0021] During the operation of the peristaltic pump, the controller records in real time a work log including at least the operating time, the number of starts and stops, the actual number of rotations, the installation location, and the length of time in use. After encrypting the work log into an encrypted log, the encrypted log is uploaded to the server for archiving via the TLS protocol.
[0022] In a second aspect, the present invention provides a peristaltic pump water outlet control system, comprising the following modules:
[0023] The peristaltic pump calibration module is used for the server to calibrate the peristaltic pump through the metering equipment to obtain the water output volume parameters of the peristaltic pump;
[0024] A rotation number calculation module is used for the server to obtain a liquid injection target value, and calculate the number of rotations of the peristaltic pump based on the liquid injection target value and the water output volume parameter;
[0025] A water outlet control instruction sending module, used for the server to encrypt the number of rotations into ciphertext data, generate a water outlet control instruction based on the ciphertext data, and send the water outlet control instruction to the controller;
[0026] A water outlet control instruction parsing module is used for the controller to receive the water outlet control instruction, verify the water outlet control instruction, and then decrypt the ciphertext data carried by the water outlet control instruction to obtain the number of rotations;
[0027] The water outlet control module is used for the controller to control the peristaltic pump to perform water outlet operation based on the number of rotations.
[0028] Furthermore, the peristaltic pump calibration module is specifically used for:
[0029] The server automatically calibrates the peristaltic pump through the metering device, obtains the water output volume parameter of the peristaltic pump, and stores the water output volume parameter after binding it to the device model and device serial number of the metering device.
[0030] Furthermore, the water outlet control instruction sending module is specifically used for:
[0031] The server converts the number of rotations into a first character string by using an El Gama l algorithm, divides the first character string based on a preset division ratio and swaps the order of the first and second characters to obtain a second character string, encrypts the second character string by using an AES algorithm to obtain a third character string, maps the third character string by using a preset mapping rule to obtain a fourth character string, and encrypts the fourth character string by using an RC2 algorithm to obtain ciphertext data;
[0032] Perform hash calculation on the ciphertext data to obtain a hash value, obtain the current timestamp and device serial number, generate a water outlet control instruction based on the ciphertext data, hash value, timestamp and device serial number, and send the water outlet control instruction to the controller via the TLS protocol.
[0033] Furthermore, the water outlet control instruction parsing module is specifically used for:
[0034] The controller receives the water outlet control instruction in real time through the wireless communication module, parses the water outlet control instruction to obtain ciphertext data, hash value, timestamp and device serial number, verifies the legitimacy of the device serial number through the preset device management table, verifies the timeliness through the timestamp, and then verifies the integrity of the ciphertext data through the hash value;
[0035] The controller decrypts the ciphertext data through the RC2 algorithm to obtain a fourth character string, maps the fourth character string through a preset mapping rule to obtain a third character string, decrypts the third character string through the AES algorithm to obtain a second character string, divides the second character string based on the inverse of a preset division ratio and swaps the order to obtain a first character string, and decrypts the first character string through the El Gama l algorithm to obtain the number of rotations.
[0036] Furthermore, the water outlet control module is also used for:
[0037] During the operation of the peristaltic pump, the controller records in real time a work log including at least the operating time, the number of starts and stops, the actual number of rotations, the installation location, and the length of time in use. After encrypting the work log into an encrypted log, the encrypted log is uploaded to the server for archiving via the TLS protocol.
[0038] The advantages of the present invention are:
[0039] 1. The peristaltic pump is calibrated through the server to obtain the water outlet volume parameter, and then the injection target value is obtained. The number of rotations of the peristaltic pump is calculated based on the injection target value and the water outlet volume parameter, and the number of rotations is encrypted into ciphertext data. Based on the ciphertext data, a water outlet control instruction is generated and sent to the controller; after the controller verifies the water outlet control instruction, it decrypts the ciphertext data carried by the water outlet control instruction to obtain the number of rotations, and controls the peristaltic pump to perform the water outlet operation based on the number of rotations; that is, the number of rotations is calculated based on the calibrated water outlet volume parameter and the injection target value, and the operation of the peristaltic pump is controlled based on the number of rotations to replace the traditional flow sensor, so as to avoid errors caused by the inability of the liquid to fill the entire pipeline, and also avoid hysteresis. In addition, the number of rotations is encrypted multiple times during the transmission process to avoid being stolen and tampered with in plain text, thereby greatly improving the injection accuracy and security of the peristaltic pump water outlet control.
[0040] 2. The number of rotations is converted into a first string through the El Gama l algorithm, the first string is segmented based on a preset segmentation ratio and the order is swapped to obtain a second string, the second string is encrypted through the AES algorithm to obtain a third string, the third string is mapped through a preset mapping rule to obtain a fourth string, and the fourth string is encrypted through the RC2 algorithm to obtain ciphertext data; the ciphertext data is hashed to obtain a hash value, the current timestamp and device serial number are obtained, a water outlet control instruction is generated based on the ciphertext data, the hash value, the timestamp and the device serial number, and the water outlet control instruction is sent to the controller through the TLS protocol; subsequently, the device serial number can be used for legitimacy verification, the timestamp can be used for timeliness verification, and the hash value can be used for integrity verification. The number of rotations is encrypted at multiple levels. If the corresponding encryption algorithm or data transformation rule is not known, the ciphertext data cannot be cracked, and the TLS protocol is a secure transmission protocol, and at least 9 security measures are taken before and after (El Gama l algorithm, segmentation ratio, AES algorithm, mapping rule, RC2 algorithm, hash calculation, timestamp, device serial number, TLS protocol), which greatly improves the security of the transmission of the number of rotations, and thus greatly improves the security of the peristaltic pump water output control.
[0041] 3. During the operation of the peristaltic pump, a work log is recorded in real time, including at least the operating time, start and stop times, actual number of rotations, installation location and length of time in use. The work log is encrypting the work log into an encrypted log and then uploaded to the server for archiving, which is convenient for later tracing. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.
[0043] Figure 1 The present invention is a flow chart of a peristaltic pump water outlet control method.
[0044] Figure 2 It is a structural schematic diagram of a peristaltic pump water outlet control system of the present invention. DETAILED DESCRIPTION
[0045] The technical solution in the embodiments of the present application has the following overall idea: the number of rotations is calculated based on the calibrated water outlet volume parameters and the injection target value, and the operation of the peristaltic pump is controlled based on the number of rotations to replace the traditional flow sensor, thereby avoiding errors caused by the inability of the liquid to fill the entire pipeline and avoiding lags. The number of rotations is encrypted multiple times during transmission to avoid being stolen and tampered with in plain text, thereby improving the injection accuracy and safety of the peristaltic pump water outlet control.
[0046] Please refer to Figure 1 to Figure 2As shown, a preferred embodiment of a peristaltic pump water outlet control method of the present invention comprises the following steps:
[0047] Step S1, the server calibrates the peristaltic pump through a metering device to obtain a water output volume parameter of the peristaltic pump;
[0048] Step S2: the server obtains a liquid injection target value, and calculates the number of rotations of the peristaltic pump based on the liquid injection target value and the water output volume parameter;
[0049] Step S3: the server encrypts the number of rotations into ciphertext data, generates a water outlet control instruction based on the ciphertext data, and sends the water outlet control instruction to the controller;
[0050] Step S4: the controller receives the water outlet control instruction, verifies the water outlet control instruction, and decrypts the ciphertext data carried by the water outlet control instruction to obtain the number of rotations;
[0051] Step S5: The controller controls the peristaltic pump to perform a water outlet operation based on the number of rotations.
[0052] The step S1 is specifically as follows:
[0053] The server automatically calibrates the peristaltic pump through the metering device, obtains the water output volume parameter of the peristaltic pump, and stores the water output volume parameter after binding it to the device model and device serial number of the metering device.
[0054] The step S3 is specifically as follows:
[0055] The server converts the number of rotations into a first character string by using an El Gama l algorithm, divides the first character string based on a preset division ratio and swaps the order of the first and second characters to obtain a second character string, encrypts the second character string by using an AES algorithm to obtain a third character string, maps the third character string by using a preset mapping rule to obtain a fourth character string, and encrypts the fourth character string by using an RC2 algorithm to obtain ciphertext data;
[0056] Perform hash calculation on the ciphertext data to obtain a hash value, obtain the current timestamp and device serial number, generate a water outlet control instruction based on the ciphertext data, hash value, timestamp and device serial number, and send the water outlet control instruction to the controller via the TLS protocol.
[0057] The number of rotations is converted into a first string through the El Gama l algorithm, the first string is segmented based on a preset segmentation ratio and the order is swapped to obtain a second string, the second string is encrypted through the AES algorithm to obtain a third string, the third string is mapped through a preset mapping rule to obtain a fourth string, and the fourth string is encrypted through the RC2 algorithm to obtain ciphertext data; the ciphertext data is hashed to obtain a hash value, the current timestamp and device serial number are obtained, a water outlet control instruction is generated based on the ciphertext data, the hash value, the timestamp and the device serial number, and the water outlet control instruction is sent to the controller through the TLS protocol; subsequently, the device serial number can be used for legitimacy verification, the timestamp can be used for timeliness verification, and the hash value can be used for integrity verification. The number of rotations is encrypted at multiple levels. If the corresponding encryption algorithm or data transformation rule is not known, the ciphertext data cannot be cracked, and the TLS protocol is a secure transmission protocol, and at least 9 security measures are taken before and after (El Gama l algorithm, segmentation ratio, AES algorithm, mapping rule, RC2 algorithm, hash calculation, timestamp, device serial number, TLS protocol), which greatly improves the security of the transmission of the number of rotations, and thus greatly improves the security of the peristaltic pump water output control.
[0058] The step S4 is specifically as follows:
[0059] The controller receives the water outlet control instruction in real time through the wireless communication module, parses the water outlet control instruction to obtain ciphertext data, hash value, timestamp and device serial number, verifies the legitimacy of the device serial number through the preset device management table, verifies the timeliness through the timestamp, and then verifies the integrity of the ciphertext data through the hash value;
[0060] The controller decrypts the ciphertext data through the RC2 algorithm to obtain a fourth character string, maps the fourth character string through a preset mapping rule to obtain a third character string, decrypts the third character string through the AES algorithm to obtain a second character string, divides the second character string based on the inverse of a preset division ratio and swaps the order to obtain a first character string, and decrypts the first character string through the El Gama l algorithm to obtain the number of rotations.
[0061] The step S5 further comprises:
[0062] During the operation of the peristaltic pump, the controller records in real time a work log including at least the operating time, the number of starts and stops, the actual number of rotations, the installation location, and the length of time in use. After encrypting the work log into an encrypted log, the encrypted log is uploaded to the server for archiving via the TLS protocol.
[0063] During the operation of the peristaltic pump, a work log is recorded in real time, including at least the operating time, start and stop times, actual number of rotations, installation location and length of time in use. The work log is encrypting the work log into an encrypted log and uploading it to the server for archiving, which is convenient for later tracing.
[0064] The step of encrypting the work log into an encrypted log is specifically as follows:
[0065] The controller creates a pair of public and private keys based on the RSA algorithm, encrypts the public key through the EDA algorithm to obtain a key, performs MAC calculation on the work log to obtain a MAC value, encrypts the work log and the MAC value through the private key to obtain encrypted data, maps the encrypted data through a preset mapping rule to obtain mapping data, and encrypts the mapping data and the key through the ECC algorithm to obtain an encrypted log. By encrypting the work log, the security of work log transmission and storage is greatly improved.
[0066] A preferred embodiment of a peristaltic pump water outlet control system of the present invention includes the following modules:
[0067] The peristaltic pump calibration module is used for the server to calibrate the peristaltic pump through the metering equipment to obtain the water output volume parameters of the peristaltic pump;
[0068] A rotation number calculation module is used for the server to obtain a liquid injection target value, and calculate the number of rotations of the peristaltic pump based on the liquid injection target value and the water output volume parameter;
[0069] A water outlet control instruction sending module, used for the server to encrypt the number of rotations into ciphertext data, generate a water outlet control instruction based on the ciphertext data, and send the water outlet control instruction to the controller;
[0070] A water outlet control instruction parsing module is used for the controller to receive the water outlet control instruction, verify the water outlet control instruction, and then decrypt the ciphertext data carried by the water outlet control instruction to obtain the number of rotations;
[0071] The water outlet control module is used for the controller to control the peristaltic pump to perform water outlet operation based on the number of rotations.
[0072] The peristaltic pump calibration module is specifically used for:
[0073] The server automatically calibrates the peristaltic pump through the metering device, obtains the water output volume parameter of the peristaltic pump, and stores the water output volume parameter after binding it to the device model and device serial number of the metering device.
[0074] The water outlet control instruction sending module is specifically used for:
[0075] The server converts the number of rotations into a first character string by using an El Gama l algorithm, divides the first character string based on a preset division ratio and swaps the order of the first and second characters to obtain a second character string, encrypts the second character string by using an AES algorithm to obtain a third character string, maps the third character string by using a preset mapping rule to obtain a fourth character string, and encrypts the fourth character string by using an RC2 algorithm to obtain ciphertext data;
[0076] Perform hash calculation on the ciphertext data to obtain a hash value, obtain the current timestamp and device serial number, generate a water outlet control instruction based on the ciphertext data, hash value, timestamp and device serial number, and send the water outlet control instruction to the controller via the TLS protocol.
[0077] The number of rotations is converted into a first string through the El Gama l algorithm, the first string is segmented based on a preset segmentation ratio and the order is swapped to obtain a second string, the second string is encrypted through the AES algorithm to obtain a third string, the third string is mapped through a preset mapping rule to obtain a fourth string, and the fourth string is encrypted through the RC2 algorithm to obtain ciphertext data; the ciphertext data is hashed to obtain a hash value, the current timestamp and device serial number are obtained, a water outlet control instruction is generated based on the ciphertext data, the hash value, the timestamp and the device serial number, and the water outlet control instruction is sent to the controller through the TLS protocol; subsequently, the device serial number can be used for legitimacy verification, the timestamp can be used for timeliness verification, and the hash value can be used for integrity verification. The number of rotations is encrypted at multiple levels. If the corresponding encryption algorithm or data transformation rule is not known, the ciphertext data cannot be cracked, and the TLS protocol is a secure transmission protocol, and at least 9 security measures are taken before and after (El Gama l algorithm, segmentation ratio, AES algorithm, mapping rule, RC2 algorithm, hash calculation, timestamp, device serial number, TLS protocol), which greatly improves the security of the transmission of the number of rotations, and thus greatly improves the security of the peristaltic pump water output control.
[0078] The water outlet control instruction parsing module is specifically used for:
[0079] The controller receives the water outlet control instruction in real time through the wireless communication module, parses the water outlet control instruction to obtain ciphertext data, hash value, timestamp and device serial number, verifies the legitimacy of the device serial number through the preset device management table, verifies the timeliness through the timestamp, and then verifies the integrity of the ciphertext data through the hash value;
[0080] The controller decrypts the ciphertext data through the RC2 algorithm to obtain a fourth character string, maps the fourth character string through a preset mapping rule to obtain a third character string, decrypts the third character string through the AES algorithm to obtain a second character string, divides the second character string based on the inverse of a preset division ratio and swaps the order to obtain a first character string, and decrypts the first character string through the El Gama l algorithm to obtain the number of rotations.
[0081] The water outlet control module is also used for:
[0082] During the operation of the peristaltic pump, the controller records in real time a work log including at least the operating time, the number of starts and stops, the actual number of rotations, the installation location, and the length of time in use. After encrypting the work log into an encrypted log, the encrypted log is uploaded to the server for archiving via the TLS protocol.
[0083] During the operation of the peristaltic pump, a work log is recorded in real time, including at least the operating time, start and stop times, actual number of rotations, installation location and length of time in use. The work log is encrypting the work log into an encrypted log and uploading it to the server for archiving, which is convenient for later tracing.
[0084] The step of encrypting the work log into an encrypted log is specifically as follows:
[0085] The controller creates a pair of public and private keys based on the RSA algorithm, encrypts the public key through the EDA algorithm to obtain a key, performs MAC calculation on the work log to obtain a MAC value, encrypts the work log and the MAC value through the private key to obtain encrypted data, maps the encrypted data through a preset mapping rule to obtain mapping data, and encrypts the mapping data and the key through the ECC algorithm to obtain an encrypted log. By encrypting the work log, the security of work log transmission and storage is greatly improved.
[0086] In summary, the advantages of the present invention are:
[0087] 1. The peristaltic pump is calibrated through the server to obtain the water outlet volume parameter, and then the injection target value is obtained. The number of rotations of the peristaltic pump is calculated based on the injection target value and the water outlet volume parameter, and the number of rotations is encrypted into ciphertext data. Based on the ciphertext data, a water outlet control instruction is generated and sent to the controller; after the controller verifies the water outlet control instruction, it decrypts the ciphertext data carried by the water outlet control instruction to obtain the number of rotations, and controls the peristaltic pump to perform the water outlet operation based on the number of rotations; that is, the number of rotations is calculated based on the calibrated water outlet volume parameter and the injection target value, and the operation of the peristaltic pump is controlled based on the number of rotations to replace the traditional flow sensor, so as to avoid errors caused by the inability of the liquid to fill the entire pipeline, and also avoid hysteresis. In addition, the number of rotations is encrypted multiple times during the transmission process to avoid being stolen and tampered with in plain text, thereby greatly improving the injection accuracy and security of the peristaltic pump water outlet control.
[0088] 2. The number of rotations is converted into a first string through the El Gama l algorithm, the first string is segmented based on a preset segmentation ratio and the order is swapped to obtain a second string, the second string is encrypted through the AES algorithm to obtain a third string, the third string is mapped through a preset mapping rule to obtain a fourth string, and the fourth string is encrypted through the RC2 algorithm to obtain ciphertext data; the ciphertext data is hashed to obtain a hash value, the current timestamp and device serial number are obtained, a water outlet control instruction is generated based on the ciphertext data, the hash value, the timestamp and the device serial number, and the water outlet control instruction is sent to the controller through the TLS protocol; subsequently, the device serial number can be used for legitimacy verification, the timestamp can be used for timeliness verification, and the hash value can be used for integrity verification. The number of rotations is encrypted at multiple levels. If the corresponding encryption algorithm or data transformation rule is not known, the ciphertext data cannot be cracked, and the TLS protocol is a secure transmission protocol, and at least 9 security measures are taken before and after (El Gama l algorithm, segmentation ratio, AES algorithm, mapping rule, RC2 algorithm, hash calculation, timestamp, device serial number, TLS protocol), which greatly improves the security of the transmission of the number of rotations, and thus greatly improves the security of the peristaltic pump water output control.
[0089] 3. During the operation of the peristaltic pump, a work log is recorded in real time, including at least the operating time, start and stop times, actual number of rotations, installation location and length of time in use. The work log is encrypting the work log into an encrypted log and then uploaded to the server for archiving, which is convenient for later tracing.
[0090] 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 peristaltic pump water outlet control method, characterized in that: The steps include: Step S1, the server calibrates the peristaltic pump through a metering device to obtain a water output volume parameter of the peristaltic pump; Step S2: the server obtains a liquid injection target value, and calculates the number of rotations of the peristaltic pump based on the liquid injection target value and the water output volume parameter; Step S3: the server encrypts the number of rotations into ciphertext data, generates a water outlet control instruction based on the ciphertext data, and sends the water outlet control instruction to the controller; Step S4: the controller receives the water outlet control instruction, verifies the water outlet control instruction, and decrypts the ciphertext data carried by the water outlet control instruction to obtain the number of rotations; Step S5: The controller controls the peristaltic pump to perform a water outlet operation based on the number of rotations.
2. A peristaltic pump water outlet control method as claimed in claim 1, characterized in that: The step S1 is specifically as follows: The server automatically calibrates the peristaltic pump through the metering device, obtains the water output volume parameter of the peristaltic pump, and stores the water output volume parameter after binding it to the device model and device serial number of the metering device.
3. A peristaltic pump water outlet control method as claimed in claim 1, characterized in that: The step S3 is specifically as follows: The server converts the number of rotations into a first character string by using an ElGamal algorithm, divides the first character string based on a preset division ratio and swaps the order of the first and second characters to obtain a second character string, encrypts the second character string by using an AES algorithm to obtain a third character string, maps the third character string by using a preset mapping rule to obtain a fourth character string, and encrypts the fourth character string by using an RC2 algorithm to obtain ciphertext data; Perform hash calculation on the ciphertext data to obtain a hash value, obtain the current timestamp and device serial number, generate a water outlet control instruction based on the ciphertext data, hash value, timestamp and device serial number, and send the water outlet control instruction to the controller via the TLS protocol.
4. A peristaltic pump water outlet control method as claimed in claim 1, characterized in that: The step S4 is specifically as follows: The controller receives the water outlet control instruction in real time through the wireless communication module, parses the water outlet control instruction to obtain ciphertext data, hash value, timestamp and device serial number, verifies the legitimacy of the device serial number through the preset device management table, verifies the timeliness through the timestamp, and then verifies the integrity of the ciphertext data through the hash value; The controller decrypts the ciphertext data through the RC2 algorithm to obtain a fourth character string, maps the fourth character string through a preset mapping rule to obtain a third character string, decrypts the third character string through the AES algorithm to obtain a second character string, divides the second character string based on the inverse of a preset division ratio and swaps the order to obtain a first character string, and decrypts the first character string through the ElGamal algorithm to obtain the number of rotations.
5. A peristaltic pump water outlet control method as claimed in claim 1, characterized in that: The step S5 further comprises: During the operation of the peristaltic pump, the controller records in real time a work log including at least the operating time, the number of starts and stops, the actual number of rotations, the installation location, and the length of time in use. After encrypting the work log into an encrypted log, the encrypted log is uploaded to the server for archiving via the TLS protocol.
6. A peristaltic pump water outlet control system, characterized in that: Includes the following modules: The peristaltic pump calibration module is used for the server to calibrate the peristaltic pump through the metering equipment to obtain the water output volume parameters of the peristaltic pump; A rotation number calculation module is used for the server to obtain a liquid injection target value, and calculate the number of rotations of the peristaltic pump based on the liquid injection target value and the water output volume parameter; A water outlet control instruction sending module, used for the server to encrypt the number of rotations into ciphertext data, generate a water outlet control instruction based on the ciphertext data, and send the water outlet control instruction to the controller; A water outlet control instruction parsing module is used for the controller to receive the water outlet control instruction, verify the water outlet control instruction, and then decrypt the ciphertext data carried by the water outlet control instruction to obtain the number of rotations; The water outlet control module is used for the controller to control the peristaltic pump to perform water outlet operation based on the number of rotations.
7. A peristaltic pump water outlet control system as claimed in claim 6, characterized in that: The peristaltic pump calibration module is specifically used for: The server automatically calibrates the peristaltic pump through the metering device, obtains the water output volume parameter of the peristaltic pump, and stores the water output volume parameter after binding it to the device model and device serial number of the metering device.
8. A peristaltic pump water outlet control system as claimed in claim 6, characterized in that: The water outlet control instruction sending module is specifically used for: The server converts the number of rotations into a first character string by using an ElGamal algorithm, divides the first character string based on a preset division ratio and swaps the order of the first and second characters to obtain a second character string, encrypts the second character string by using an AES algorithm to obtain a third character string, maps the third character string by using a preset mapping rule to obtain a fourth character string, and encrypts the fourth character string by using an RC2 algorithm to obtain ciphertext data; Perform hash calculation on the ciphertext data to obtain a hash value, obtain the current timestamp and device serial number, generate a water outlet control instruction based on the ciphertext data, hash value, timestamp and device serial number, and send the water outlet control instruction to the controller via the TLS protocol.
9. A peristaltic pump water outlet control system as claimed in claim 6, characterized in that: The water outlet control instruction parsing module is specifically used for: The controller receives the water outlet control instruction in real time through the wireless communication module, parses the water outlet control instruction to obtain ciphertext data, hash value, timestamp and device serial number, verifies the legitimacy of the device serial number through the preset device management table, verifies the timeliness through the timestamp, and then verifies the integrity of the ciphertext data through the hash value; The controller decrypts the ciphertext data through the RC2 algorithm to obtain a fourth character string, maps the fourth character string through a preset mapping rule to obtain a third character string, decrypts the third character string through the AES algorithm to obtain a second character string, divides the second character string based on the inverse of a preset division ratio and swaps the order to obtain a first character string, and decrypts the first character string through the ElGamal algorithm to obtain the number of rotations.
10. A peristaltic pump water outlet control system as claimed in claim 6, characterized in that: The water outlet control module is also used for: During the operation of the peristaltic pump, the controller records in real time a work log including at least the operating time, the number of starts and stops, the actual number of rotations, the installation location, and the length of time in use. After encrypting the work log into an encrypted log, the encrypted log is uploaded to the server for archiving via the TLS protocol.
Citation Information
Patent Citations
Method for controlling flow of peristaltic pump accurately by means of gear motor
CN103821706A
Intelligent flow correction method and system for peristaltic pump
CN106168209A
Flow adjusting method of injection device, injection device and storage medium
CN116549769A
Data processing method, device and equipment
CN118797578A
Method of similarity string matching from ciphertext, Recording medium and System using by the same
KR1020090031079A