Method and apparatus for checking security of material proportioning data
Patent Information
- Application Number
- CN202610900450.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-22
- Publication Date
- 2026-10-20
AI Technical Summary
[0003]本申请实施例的目的是提供一种用于校验材料配比数据的安全性的方法、装置及可读存储介质,用以解决现有技术中材料配比数据安全性的校验不全面的问题
[0012]本申请第三方面提供一种建材搅拌站,包括上述的用于校验材料配比数据的安全性的装置。
Smart Images

Figure FT_1
Abstract
Description
Technical Field
[0001] This application relates to the field of industrial control data verification technology, specifically to a method and apparatus for verifying the security of material proportioning data. Background Technology
[0002] With the development of the internet, the management and use of material proportioning data have evolved into a distributed, cross-platform collaborative model. Users cannot control the actions of the management (e.g., whether the management modifies, deletes, or makes errors). Therefore, the security verification of material proportioning data is crucial. However, existing technologies typically address consistency issues during concurrent processing by matching version numbers to the material proportioning data. That is, during concurrent processing, because the material proportioning data is matched with version numbers, if one party modifies and updates the version number, the other party cannot modify the original, outdated version number. However, version numbers cannot verify data content (e.g., incorrect dosage) or data integrity (e.g., missing details). Therefore, existing technologies suffer from incomplete verification of material proportioning data. Summary of the Invention
[0003] The purpose of this application is to provide a method, apparatus, and readable storage medium for verifying the security of material proportioning data, so as to solve the problem of incomplete verification of the security of material proportioning data in the prior art.
[0004] To achieve the above objectives, the first aspect of this application provides a method for verifying the security of material proportioning data, wherein the material proportioning data includes equipment compartment number, material usage, and material category, and the method includes: Obtain multiple device warehouse numbers to be verified, the amount of materials to be verified corresponding to the multiple device warehouse numbers to be verified, and the categories of materials to be verified corresponding to the multiple amounts of materials to be verified. The standard check code is determined based on multiple preset equipment compartment numbers and the preset material usage corresponding to the multiple preset equipment compartment numbers; The actual verification code is determined based on multiple warehouse numbers of equipment to be verified and the corresponding quantities of materials to be verified for each warehouse number of equipment to be verified. When the standard check code and the actual check code are consistent, the total material usage and the material usage ratio between different material categories are determined based on the usage of multiple materials to be verified and the corresponding material categories of the multiple materials to be verified. The safety of the material proportioning data is determined based on the difference between the determined total material usage and the material usage ratio and their respective preset values.
[0005] In this embodiment of the application, the actual verification code is determined based on multiple device warehouse numbers to be verified and the corresponding quantities of materials to be verified, including: determining whether there are negative numbers among the multiple quantities of materials to be verified, and determining whether there are duplicates among the multiple device warehouse numbers to be verified; if there are no negative numbers among the multiple quantities of materials to be verified, and no duplicates among the multiple device warehouse numbers to be verified, the actual verification code is determined based on the multiple device warehouse numbers to be verified and the corresponding quantities of materials to be verified.
[0006] In this embodiment of the application, when there are no negative numbers among the multiple quantities of materials to be verified and the multiple device warehouse numbers to be verified are not duplicated, the actual check code is determined based on the multiple device warehouse numbers to be verified and the quantities of materials to be verified corresponding to the multiple device warehouse numbers to be verified, including: determining the actual hash source based on the device warehouse number to be verified and the quantities of materials to be verified corresponding to the multiple device warehouse numbers to be verified; determining the actual hash value of the actual hash source, so as to determine the actual hash value as the actual check code.
[0007] In this embodiment of the application, determining the standard check code based on multiple preset equipment warehouse numbers and the preset material usage corresponding to the multiple preset equipment warehouse numbers includes: determining the standard hash source based on the preset equipment warehouse numbers and the preset material usage corresponding to the multiple preset equipment warehouse numbers; determining the standard hash value of the standard hash source, so as to determine the standard hash value as the standard check code.
[0008] In this embodiment of the application, after determining that the material ratio data is safe based on the difference between the determined total material usage and the material usage ratio and their respective corresponding preset values, the method further includes: determining whether the determined material usage ratio meets the corresponding preset basic usage ratio, and determining whether the material usage to be verified and the determined total material usage meet the corresponding preset basic usage; determining whether the determined material usage ratio meets the corresponding preset specific usage ratio, and determining whether the material usage to be verified and the determined total material usage meet the corresponding preset specific usage; and performing equipment compatibility verification when the material usage to be verified and the determined total material usage meet the corresponding preset basic usage and the material usage to be verified and the determined total material usage meet the corresponding preset specific usage.
[0009] In this embodiment of the application, the equipment compatibility verification includes: obtaining multiple first correspondences, wherein the first correspondences are the correspondences between the field equipment compartment number and the field material category; determining whether the multiple first correspondences are consistent with the corresponding second correspondences; and determining that the material ratio data is safe if the multiple first correspondences are consistent with the corresponding second correspondences, wherein the second correspondences are the correspondences between the equipment compartment number to be verified and the multiple material categories to be verified.
[0010] In this embodiment of the application, the safety of the material ratio data is determined based on the difference between the determined total material usage and the material usage ratio and their respective preset values, including: determining that the material ratio data is safe when the difference is less than or equal to a preset difference threshold.
[0011] A second aspect of this application provides an apparatus for verifying the security of material proportioning data, comprising: The memory is configured to store instructions; and the processor is configured to retrieve instructions from the memory and, when executing the instructions, to implement the aforementioned method for verifying the security of material proportioning data.
[0012] A third aspect of this application provides a building material mixing plant, including the aforementioned device for verifying the safety of material proportioning data.
[0013] A fourth aspect of this application provides a machine-readable storage medium storing instructions that cause a machine to perform the aforementioned method for verifying the security of material proportioning data.
[0014] The above technical solution, by introducing a dual verification mechanism of standard check codes and actual check codes, first verifies the legality of the equipment warehouse number and material usage, ensuring that the data has not been tampered with or contains logical errors during transmission. Based on the consistency of the two codes, it further compares the material category, usage ratio, and total usage from multiple dimensions, calculating the difference between these values and preset values, thereby comprehensively judging the security of the material proportioning data. This method effectively prevents security risks such as data tampering and erroneous transmission in the transmission link, significantly improving the trust and reliability of the material proportioning data in the industrial control system, ensuring the accuracy and production safety of the batching process in the industrial field, and achieving the technical effect of comprehensively verifying the material proportioning data.
[0015] Other features and advantages of the embodiments of this application will be described in detail in the following detailed description section. Attached Figure Description
[0016] The accompanying drawings are provided to further illustrate the embodiments of this application and form part of the specification. They are used together with the following detailed description to explain the embodiments of this application, but do not constitute a limitation on the embodiments of this application. In the drawings: Figure 1 The illustration shows a flowchart of a method for verifying the security of material proportioning data according to an embodiment of this application. Detailed Implementation
[0017] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only for illustration and explanation of the embodiments of this application and are not intended to limit the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0018] It should be noted that the acquisition, transmission, storage, use, and processing of data in the technical solution of this application all comply with relevant laws and regulations. In the embodiments of this application, certain existing industry solutions such as software, components, and models may be mentioned. These should be considered exemplary, intended only to illustrate the feasibility of implementing the technical solution of this application, and do not imply that the applicant has already used or necessarily used such solutions.
[0019] It should be noted that if the embodiments of this application involve directional indicators (such as up, down, left, right, front, back, etc.), the directional indicators are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indicators will also change accordingly.
[0020] Furthermore, if the embodiments of this application involve descriptions such as "first" or "second," these descriptions are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, features defined with "first" or "second" may explicitly or implicitly include at least one of those features. Additionally, the technical solutions of various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. If the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed in this application.
[0021] Figure 1 This illustration schematically depicts a flowchart of a method for verifying the security of material proportioning data according to an embodiment of this application. Figure 1 As shown in the embodiment of this application, a method for verifying the security of material proportioning data is provided, which may include the following steps.
[0022] Step 101: Obtain multiple device warehouse numbers to be verified, the amount of materials to be verified corresponding to the multiple device warehouse numbers to be verified, and the categories of materials to be verified corresponding to the multiple amounts of materials to be verified; Step 102: Determine the standard verification code based on multiple preset equipment compartment numbers and the preset material usage corresponding to the multiple preset equipment compartment numbers; It is understood that the preset equipment compartment number is the equipment compartment number that is pre-set and directly transmitted to the industrial control system. The preset material quantity is the material quantity that is pre-set and directly transmitted to the industrial control system. The standard checksum is a verification code used for comparison with the actual verification code generated subsequently.
[0023] In this embodiment, by adding an access verification code for the material proportioning data, control over the data source is achieved. Only data with a verification code is accepted by the industrial control system. The industrial control system is a computer system specifically designed to control industrial field equipment (such as batching scales, valves, mixers, etc.) and is responsible for automatically executing the production process according to the formula / instructions. Before verifying the security of the material proportioning data, the preset equipment compartment number and preset material usage are transmitted to the industrial control system. The verification code generation interface in the industrial control system generates a standard verification code. For example, the industrial control system provides the verification code generation interface in the form of a DLL or network service. When the access party (the party that calls the industrial control system interface and sends the material proportions to the industrial control system) sends the material proportion data to the industrial control system, it organizes it according to rules (the interface input parameter is a JSON array string of key-value pairs between the two, in the format example [{"6":250.5},{"2":39.7},{"3":119}]). The input parameter calls the interface to obtain the verification code and fills it into the specified main table field to facilitate comparison with the subsequently generated verification code. Among them, the verification code pays priority to the equipment warehouse number and the usage value.
[0024] Step 103: Determine the actual verification code based on the multiple warehouse numbers of the devices to be verified and the corresponding quantities of materials to be verified for the multiple warehouse numbers of the devices to be verified; It can be understood that the device warehouse number to be verified is the device warehouse number to be verified after a complex transmission process. The material quantity to be verified is the material quantity to be verified after a complex transmission process. The actual checksum is the checksum to be compared, used to verify whether the device warehouse number and the material quantity to be verified are correct.
[0025] In this embodiment, the industrial control system generates a check code for material proportioning data that is not directly transmitted to the industrial control system via a complex transmission network. Similarly, the check code generation interface in the industrial control system generates an actual verification code to detect whether the material proportioning data has been modified or deleted during transmission.
[0026] Step 104: If the standard check code and the actual check code are consistent, determine the total material usage and the material usage ratio between different material categories based on the usage of multiple materials to be verified and the corresponding material categories. It can be understood that the total material usage is the sum of the usage of all materials. The material usage ratio is the ratio of the material usage.
[0027] In this embodiment, if the standard checksum and the actual checksum are inconsistent, the material proportioning data is deemed insecure. If the standard checksum and the actual checksum are consistent, it is necessary to determine the total material usage and the material usage ratio between different material categories based on the amount and type of material to be verified. This is to determine whether a mismatch in material categories has occurred, assuming the equipment compartment number and material usage are correct. For example, the theoretical water-to-binder ratio must be ≤ 0.45, but the actual water-to-binder ratio is 2.3. The ratio of the total material usage to the material usage ratio between different material categories not only verifies the accuracy of the usage values but also verifies whether a mismatch in material categories has occurred.
[0028] Step 105: Determine the safety of the material proportioning data based on the difference between the determined total material usage and the material usage ratio and their respective preset values.
[0029] In this embodiment of the application, the difference between the determined total material usage and the material usage ratio and their respective preset theoretical values can be used to determine whether the material category has been misaligned, thereby ensuring the safety of the material ratio data.
[0030] The above technical solution, by introducing a dual verification mechanism of standard check codes and actual check codes, first verifies the legality of the equipment warehouse number and material usage, ensuring that the data has not been tampered with or contains logical errors during transmission. Based on the consistency of the two codes, it further compares the material category, usage ratio, and total usage from multiple dimensions, calculating the difference between these values and preset values, thereby comprehensively judging the security of the material proportioning data. This method effectively prevents security risks such as data tampering and erroneous transmission in the transmission link, significantly improving the trust and reliability of the material proportioning data in the industrial control system, ensuring the accuracy and production safety of the batching process in the industrial field, and achieving the technical effect of comprehensively verifying the material proportioning data.
[0031] In one embodiment, determining the actual check code based on multiple device warehouse numbers to be verified and the corresponding quantities of materials to be verified includes: determining whether there are negative numbers among the multiple quantities of materials to be verified, and determining whether there are duplicates among the multiple device warehouse numbers to be verified; if there are no negative numbers among the multiple quantities of materials to be verified, and no duplicates among the multiple device warehouse numbers to be verified, determining the actual check code based on the multiple device warehouse numbers to be verified and the corresponding quantities of materials to be verified.
[0032] Specifically, if negative values exist in multiple material usages to be verified, or if duplicate equipment warehouse numbers exist in multiple equipment warehouse numbers to be verified, no actual verification code will be generated. Therefore, this application simultaneously checks for negative material usages and duplicate equipment warehouse numbers. This pre-verification mechanism can identify and intercept two common types of material ratio data errors in advance. Compared to directly calculating verification codes for all data, this application avoids the problem of generating invalid verification codes and subsequent comparison processes when obvious errors exist through pre-filtering, thus improving the overall efficiency of data verification. An example algorithm in an industrial control system is as follows: First, using insertion sort as the basic idea, the outer layer traverses the parameter group. If a negative usage value is found, the algorithm stops and returns an empty value. The inner layer traverses the ordered result set and compares the equipment numbers to the correct insertion position (i.e., sorting the material ratio data by equipment warehouse number). If a duplicate equipment number is found during the comparison process, the algorithm immediately stops and returns an empty value. In another embodiment, it is also possible to first determine if negative values exist in multiple material usages to be verified, and then determine if duplicate equipment warehouse numbers exist in multiple equipment warehouse numbers to be verified; this will not be elaborated here.
[0033] In one embodiment, when there are no negative numbers among the multiple quantities of materials to be verified and the multiple device warehouse numbers to be verified are not duplicated, the actual checksum is determined based on the multiple device warehouse numbers to be verified and the quantities of materials to be verified corresponding to the multiple device warehouse numbers to be verified, including: determining the actual hash source based on the device warehouse numbers to be verified and the quantities of materials to be verified corresponding to the multiple device warehouse numbers to be verified; and determining the actual hash value of the actual hash source so as to determine the actual hash value as the actual checksum.
[0034] Understandably, the actual hash source is a data source used to generate hash values, consisting of the warehouse number of the device to be verified and the quantity of materials to be verified. The actual hash value is generated from the warehouse number of the device to be verified and the quantity of materials to be verified.
[0035] Specifically, this application uses the equipment warehouse number and material quantity to be verified as hash sources and calculates their hash values as the actual check codes. By utilizing hash algorithms, any slight differences in the proportioning data or tampering, insertion, or deletion during transmission will cause significant changes in the actual check codes, thus enabling accurate identification when compared with standard check codes. At the same time, hash calculation is fast, meeting industrial real-time requirements, and the irreversible nature of hash functions can also protect the confidentiality of proportioning data to a certain extent. More importantly, only the equipment warehouse number and material quantity are used to generate hash values, resulting in a small amount of data, which can significantly improve the efficiency of determining the security of material proportioning data.
[0036] In one embodiment, determining a standard check code based on multiple preset equipment warehouse numbers and preset material usage corresponding to the multiple preset equipment warehouse numbers includes: determining a standard hash source based on the preset equipment warehouse numbers and preset material usage corresponding to the multiple preset equipment warehouse numbers; and determining a standard hash value of the standard hash source to determine the standard hash value as the standard check code.
[0037] Understandably, a standard hash source is a data source used to generate hash values, consisting of a preset equipment warehouse number and a preset material usage. A standard hash value is a hash value generated from a preset equipment warehouse number and a preset material usage.
[0038] Specifically, this application uses a hash algorithm to ensure that any discrepancies or tampering in the proportions can be accurately identified by using a preset equipment warehouse number and material usage as the hash source and calculating the hash value as the standard check code, while providing a reliable benchmark for data comparison.
[0039] In one embodiment, after determining that the material proportioning data is safe based on the difference between the determined total material usage and the material usage ratio and their respective corresponding preset values, the method further includes: determining whether the determined material usage ratio meets the corresponding preset basic usage ratio, and determining whether the material usage to be verified and the determined total material usage meet the corresponding preset basic usage; determining whether the determined material usage ratio meets the corresponding preset specific usage ratio, and determining whether the material usage to be verified and the determined total material usage meet the corresponding preset specific usage; and performing equipment compatibility verification if the material usage to be verified and the determined total material usage meet the corresponding preset basic usage and the material usage to be verified and the determined total material usage meet the corresponding preset specific usage.
[0040] It is understandable that the preset basic usage ratio is a pre-set basic usage ratio between various material categories, used for basic verification. For example, water usage must be greater than 50 kg / m³, cement usage must be greater than 100 kg / m³, and the sand-gravel ratio must be between 0.5 and 0.9. The preset basic usage is the pre-set basic usage of the sum of all material categories, used for basic verification. For example, the bulk density must be between 2350 kg / m³ and 2450 kg / m³. The preset special usage ratio is a pre-set special usage ratio between various material categories, used for more stringent special verification. Specialized verification is dynamically activated based on mix proportion type, which is defined according to business scenarios, such as ordinary concrete, high-strength concrete, self-compacting concrete, wet-mixed mortar, and dry-mixed mortar. The industrial control system has a pre-set specialized indicator library. For example, for high-strength concrete, the cement content is set to be no less than 450 kg / m3 and the water-cement ratio to be no more than 0.35; for wet-mixed mortar, the water content is set to be no more than 300 kg / m3 and the water retention rate to be no less than 88%. Equipment compatibility is the verification of the compatibility between the correspondence between equipment compartment number and material category under actual working conditions and the verified correspondence between equipment compartment number and material category.
[0041] Specifically, the purpose of this application in verifying the rationality of material proportioning data design by setting basic indicators and specific indicators is to avoid design errors, such as water usage being 0, cement usage being insufficient, and density deviating from the reasonable range, which are invalid proportioning verifications at the business level.
[0042] In one embodiment, performing equipment compatibility verification includes: obtaining multiple first correspondences, wherein the first correspondences are correspondences between field equipment compartment numbers and field material categories; determining whether the multiple first correspondences are consistent with the corresponding second correspondences; and determining that the material ratio data is safe if the multiple first correspondences are consistent with the corresponding second correspondences, wherein the second correspondences are correspondences between the equipment compartment numbers to be verified and multiple material categories to be verified.
[0043] It is understandable that the on-site equipment compartment number is the equipment compartment number under actual working conditions. The on-site material category is the material category under actual working conditions.
[0044] Specifically, the process involves determining whether the first correspondence between multiple field equipment compartment numbers and field material categories matches the second correspondence between the corresponding equipment compartment number to be verified and multiple material categories to be verified. If they match, the material proportioning data is deemed safe; otherwise, it is deemed unsafe. Before equipment compatibility verification, the proportions can be considered complete and valid, theoretically capable of producing qualified products. However, a problem remains unaddressed: information gaps exist between the proportion generator and the industrial control system. The actual material configuration at the industrial control site may change due to business reasons such as compartment changes, resulting in a situation where the issued proportions, while complete and business-valid, do not match the materials actually loaded on the field equipment. Material configuration is a core configuration for field production, directly determining the correctness of material feeding, and must be personally confirmed by field operators. This application provides supplementary verification at the physical level, forming a business closed loop and effectively avoiding production accidents caused by information gaps.
[0045] The example steps are as follows: The industrial control system maintains the currently valid material binding configuration, including three pieces of information: material name, material type, and material number. From a management perspective, it requires on-site operators to update the binding relationship in the industrial control system before performing material or bin changes. When using the mixing ratio, each item is checked one by one to verify whether the material specified in the equipment bin is completely consistent with the material bound to that equipment. If any item is mismatched, the mixing ratio is deemed invalid and unusable. For example, equipment bin A should originally contain 1kg of water, and equipment bin B should contain 500g of sand, but it has been misplaced to contain 1kg of sand in equipment bin A and 500g of water in equipment bin B.
[0046] In this embodiment of the application, the safety of the material ratio data is determined based on the difference between the determined total material usage and the material usage ratio and their respective preset values, including: determining that the material ratio data is safe when the difference is less than or equal to a preset difference threshold.
[0047] Understandably, the preset difference threshold is a pre-set threshold used to verify whether the difference meets the requirements.
[0048] Specifically, for example, when maintaining four indicators (bulk density, water-cement ratio, sand-aggregate ratio, and admixture dosage), the specific verification rules are as follows: Extract the dosage values of each type of material from the details, and calculate the actual bulk density (the sum of all material dosages), actual water-cement ratio (water dosage divided by the total amount of cementitious materials), actual sand-aggregate ratio (sand dosage divided by aggregate dosage), and actual admixture dosage (admixture dosage divided by the total amount of cementitious materials). Then, compare the calculation results with the theoretical bulk density, theoretical water-cement ratio, theoretical sand-aggregate ratio, and theoretical admixture dosage declared in the main table one by one.
[0049] If the deviation between the actual value and the theoretical value is within the preset threshold range (e.g., the density deviation is no more than ±0.1, the water-cement ratio deviation is no more than ±0.02, the sand-gravel ratio deviation is no more than ±0.05, and the admixture dosage deviation is no more than ±0.001), it is considered valid; if any one of them exceeds the threshold, it is considered abnormal and should not be used.
[0050] Therefore, this application has the following beneficial effects: 1. Comprehensive Coverage: The four-level progressive verification system supplements and improves upon each level, comprehensively covering all issues. The reason this application has the advantage of comprehensive coverage is because it adopts a four-level progressive verification system, covering all risk points in the entire process of data matching from basic format, transmission security, business logic to on-site execution.
[0051] 2. Clear Responsibilities: Each level of verification corresponds to a different responsible party, facilitating problem tracing. Clear responsibilities stem from the fact that each level of verification involves a different process and responsible party, allowing for quick identification of the source of the problem when verification fails.
[0052] 3. Lightweight computation: The checksum algorithm only targets the device ID and usage value, not all fields. This lightweight computation stems from the fact that the checksum algorithm uses only the device ID and usage value as the hash source, avoiding full field calculations and reducing access costs and system overhead.
[0053] 4. Excellent scalability: The rule base for specialized verification can be dynamically configured according to business needs. Excellent scalability is reflected in the fact that the rule base for specialized verification can be dynamically configured according to different business needs without modifying the core verification logic.
[0054] 5. On-site closed-loop: The confirmation actions of on-site operators are incorporated into the process, effectively solving the information gap problem. On-site closed-loop effectively bridges the information gap between the system status and the actual situation on site by incorporating the operator's confirmation actions into the process, ensuring that the mixing ratio data is ultimately executed accurately.
[0055] A second aspect of this application provides an apparatus for verifying the security of material proportioning data, comprising: The memory is configured to store instructions; and the processor is configured to retrieve instructions from the memory and, when executing the instructions, to implement the aforementioned method for verifying the security of material proportioning data.
[0056] A third aspect of this application provides a building material mixing plant, including the aforementioned device for verifying the safety of material proportioning data.
[0057] A fourth aspect of this application provides a machine-readable storage medium storing instructions that cause a machine to perform the aforementioned method for verifying the security of material proportioning data.
[0058] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0059] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A method for verifying the security of material proportioning data, characterized in that, The material proportioning data includes equipment compartment number, material usage, and material category; the method includes: Obtain multiple device warehouse numbers to be verified, the amount of materials to be verified corresponding to the multiple device warehouse numbers to be verified, and the categories of materials to be verified corresponding to the multiple amounts of materials to be verified. The standard check code is determined based on multiple preset equipment compartment numbers and the preset material usage corresponding to the multiple preset equipment compartment numbers; The actual verification code is determined based on multiple warehouse numbers of equipment to be verified and the corresponding quantities of materials to be verified for each warehouse number of equipment to be verified. When the standard check code and the actual check code are consistent, the total material usage and the material usage ratio between different material categories are determined based on the multiple quantities of materials to be verified and the corresponding material categories of the multiple quantities of materials to be verified. The security of the material proportioning data is determined based on the difference between the determined total material usage and the material usage ratio and their respective preset values.
2. The method according to claim 1, characterized in that, The step of determining the actual verification code based on multiple warehouse numbers of equipment to be verified and the corresponding quantities of materials to be verified includes: Determine whether there are negative numbers among the multiple quantities of materials to be verified, and determine whether there are duplicates among the multiple warehouse numbers of the equipment to be verified; If there are no negative values among the multiple quantities of materials to be verified, and there are no duplicates among the multiple device warehouse numbers to be verified, the actual verification code is determined based on the multiple device warehouse numbers to be verified and the quantities of materials to be verified corresponding to the multiple device warehouse numbers to be verified.
3. The method according to claim 2, characterized in that, When there are no negative numbers among the plurality of materials to be verified and the plurality of equipment compartment numbers to be verified are not duplicated, the actual verification code is determined based on the plurality of equipment compartment numbers to be verified and the corresponding quantities of materials to be verified, including: The actual hash source is determined based on the warehouse number of the device to be verified and the amount of material to be verified corresponding to the warehouse numbers of multiple devices to be verified. The actual hash value of the actual hash source is determined so that the actual hash value is used as the actual checksum.
4. The method according to claim 1, characterized in that, The step of determining the standard check code based on multiple preset equipment compartment numbers and the preset material usage corresponding to the multiple preset equipment compartment numbers includes: The standard hash source is determined based on the preset equipment compartment number and the preset material usage corresponding to multiple preset equipment compartment numbers; Determine the standard hash value of the standard hash source to use the standard hash value as the standard checksum.
5. The method according to claim 1, characterized in that, After determining that the material proportioning data is safe based on the difference between the determined total material usage and the material usage ratio and their respective preset values, the process further includes: Determine whether the determined material usage ratio meets the corresponding preset basic usage ratio, and determine whether the material usage to be verified and the determined total material usage meet the corresponding preset basic usage. Determine whether the determined material usage ratio meets the corresponding preset specific usage ratio, and determine whether the material usage to be verified and the determined total material usage meet the corresponding preset specific usage. Equipment compatibility verification is performed when the amount of material to be verified and the total amount of material determined meet the corresponding preset basic amount, and the amount of material to be verified and the total amount of material determined meet the corresponding preset specific amount.
6. The method according to claim 5, characterized in that, The device compatibility verification includes: Obtain multiple first correspondences, wherein the first correspondence is the correspondence between the field equipment compartment number and the field material category; Determine whether multiple first correspondences are consistent with their corresponding second correspondences. If multiple first correspondences are consistent with their corresponding second correspondences, determine that the material ratio data is safe. The second correspondence is the correspondence between the warehouse number of the equipment to be verified and multiple material categories to be verified.
7. The method according to claim 1, characterized in that, The step of determining the security of the material proportioning data based on the difference between the determined total material usage and the material usage ratio and their respective preset values includes: If the difference is less than or equal to a preset difference threshold, the material ratio data is determined to be safe.
8. A device for verifying the safety of material proportioning data, characterized in that, include: The memory is configured to store instructions; as well as A processor is configured to retrieve the instructions from the memory and, when executing the instructions, to implement the method for verifying the security of material proportioning data according to any one of claims 1 to 7.
9. A building material mixing plant, characterized in that, Includes the apparatus for verifying the security of material proportioning data as described in claim 8.
10. A machine-readable storage medium, characterized in that, The machine-readable storage medium stores instructions for causing the machine to perform a method for verifying the security of material proportioning data according to any one of claims 1 to 7.