Configuration method, device, computer equipment and storage medium for priority reading of control-related data based on master-slave responsive protocol

By calculating the control influence rate and scene usage rate of control operation instructions, determining priorities and configuring associated points, the problem of incomplete point coverage and inflexible configuration in the field of automation control is solved, and the data response efficiency and configuration flexibility are improved. Adapt to different on-site needs.

CN114116001BActive Publication Date: 2024-09-20NANJING TIANSU AUTOMATION CONTROL SYST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111409475.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-25
Publication Date
2024-09-20
Estimated Expiration
2041-11-25

AI Technical Summary

Technical Problem

Existing Technology In the field of automation control, equipment based on the master-slave response protocol has problems with incomplete point coverage and inflexible configuration in large-data volume centralized control systems, especially in terms of the response speed of PLC docking and control operations. , resulting in a huge amount of changes when the requirements of the customized project change.

Method used

By calculating the control influence rate and scene usage rate of the points associated with the control operation instructions, determine their priorities, and configure the associated points according to the priorities. The program software collects and obtains associated data to meet the refresh frequency requirements after control and reduce on-site customization. Strong coupling between requirements and associated configurations to adapt to different on-site needs.

Benefits of technology

Improved the response efficiency of associated point data after control of the reactive protocol under large data volumes, improved configuration flexibility, reduced operation and maintenance workload, improved user experience, and appropriately adjusted the number and order of associated points to improve data acquisition efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114116001B
    Figure CN114116001B
Patent Text Reader

Abstract

The present invention discloses a configuration method for priority reading of control-related data based on a master-slave responsive protocol, and relates to the technical field of equipment data control system. The present invention obtains the priority of the control-related data through the control impact rate and scene usage rate of the control-related data, provides a basis for the control-related configuration, and then performs the association configuration according to the priority of the control-related data. The program software collects and acquires the configured association points according to the control-related configuration to achieve and meet the refresh frequency requirements of the controlled association data. The present invention can flexibly configure the association points as information, including the order and number of association points, according to the different requirements of different sites, to achieve an effect of reducing the strong coupling between the site customization requirements and the association configuration, and can adapt to different site customization requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of equipment data control system, and more specifically to a configuration method, device, computer equipment and storage medium for preferentially reading control-related data based on a master-slave responsive protocol. Background Art

[0002] At present, master-slave response devices based on MODBUS (RTU or TCP) communication protocol (hereinafter referred to as M protocol), IEC60870-103, CJ-188, etc. are widely used in the market, especially in the field of automation control, and PLC applications are more prominent. For PLC docking between manufacturers, the docking of control operations is particularly important, which is especially reflected in the response speed of the point data associated with the control.

[0003] In a centralized control system with large amounts of data, the importance of control operations on the data refresh frequency on the business side is self-evident. However, due to its own protocol characteristics, the system using the M protocol requires a polling mechanism for equipment points so that the associated point data can be responded to. Therefore, the existing technical solutions are roughly divided into two types:

[0004] (1) Based on project experience, only some points associated with the control points are configured (this is under the system software with associated configuration), but the priority of these points cannot be guaranteed and the number of readings cannot be configured;

[0005] (2) If the system software does not support the configuration of associated points, it is necessary to customize the software. For different control points, during the development process, only all the points that need to be associated with the control points can be customized in the software.

[0006] At present, the existing technical solutions have more or less problems such as incomplete point coverage and inflexible point configuration. Especially for some customized projects, if the related points are configured in the software development stage, once the requirements change, it will affect the entire system and the amount of changes will be huge. Summary of the invention

[0007] In order to overcome the defects and shortcomings existing in the above-mentioned prior art, the present invention provides a configuration method for priority reading of control-related data based on a master-slave responsive protocol. The purpose of the present invention is to solve the problems of incomplete point coverage and inflexible point configuration existing in the above-mentioned prior art. In the configuration method for priority reading of control-related data based on a master-slave responsive protocol of the present invention, the priority of the control-related data is obtained by the control influence rate and scene usage rate of the control-related data, providing a basis for the control-related configuration, and then the association configuration is performed according to the priority of the control-related data. The program software collects and obtains the configured association points according to the control-related configuration to achieve and meet the refresh frequency requirements of the controlled association data. The present invention can flexibly configure the association points as information, including the order of the association points and the number of points, according to the different requirements of different sites, to achieve an effect of reducing the strong coupling between the site customization requirements and the association configuration, and can adapt to different site customization requirements.

[0008] In order to solve the above problems existing in the prior art, the present invention is implemented through the following technical solutions.

[0009] On one hand, the present invention provides a configuration method for preferentially reading control-related data based on a master-slave responsive protocol, the method comprising the following steps:

[0010] S1. Calculate the overall polling time according to the system's docking communication protocol and the total number of data points; and the query time of the points associated with each control operation instruction;

[0011] S2. Calculate the dispersion of the points associated with each control operation instruction; the dispersion refers to the interval rate of the communication protocol data address;

[0012] S3, according to the overall polling time and the query time of the points associated with each control operation instruction calculated in step S1, and the dispersion of the points associated with each control operation instruction calculated in step S2, the control influence rate of the points associated with each control operation instruction is calculated;

[0013] S4, calculating the scene usage rate of the points associated with each control operation instruction;

[0014] S5. Calculate the priority of each point associated with each control operation instruction according to the control influence rate of each point associated with each control operation instruction calculated in step S3 and the scene usage rate of each point associated with each control operation instruction calculated in step S4;

[0015] S6. According to the priorities of the points associated with the control operation instructions calculated in step S5, the order of the points associated with the control operation instructions is configured in descending order according to their priorities.

[0016] Furthermore, in step S2, the dispersion of the points associated with each control operation instruction is determined according to the number of points associated with the control operation instruction and the number of discontinuous intervals between the data addresses of the associated points; the calculation formula is as follows:

[0017] Wherein, e represents the dispersion of the points associated with the control operation instruction, n represents the number of points associated with the control operation instruction, and m represents the number of discontinuous intervals between the data addresses of the points associated with the control operation instruction.

[0018] Furthermore, the calculation formula of the control influence rate is as follows:

[0019] Where, e represents the dispersion of the points associated with the control operation instruction, t0 represents the overall polling time, t1 represents the query time of the points associated with the control operation instruction, and η represents the control influence rate of the points associated with the control operation instruction. The smaller the value of the control influence rate, the smaller the influence of the control operation instruction on the entire point polling.

[0020] Furthermore, in step S4, the scenario usage rate refers to the ratio of the number of times the point associated with the control operation instruction is used to the number of system business scenarios. The larger the scenario usage rate value, the higher the usage rate, and the higher the importance of the point associated with the control operation instruction. The calculation formula of the scenario usage rate is as follows:

[0021] In the formula, μ represents the scenario utilization rate of the point associated with the control operation instruction, p represents the number of times the point associated with the control operation instruction is used, and q represents the number of system business scenarios.

[0022] Furthermore, in step S5, the calculation formula of the priority of the point associated with the control operation instruction is as follows:

[0023] Wherein, μ represents the scene usage rate of the point associated with the control operation instruction, η represents the control influence rate of the point associated with the control operation instruction, and f represents the priority of the point associated with the control operation instruction.

[0024] In the step S6, the order of the points associated with each control operation instruction is configured according to its priority from large to small. Specifically, according to the value of the priority, the IDs of the points associated with the control operation instruction in the associated register table are arranged from large to small according to the value of the priority, and stored in the IDRELE field in the control association table; the system queries and obtains the data of the points associated with the control operation instruction according to the order of the IDRELE field in the control association table.

[0025] A second aspect of the present invention provides a configuration device for preferentially reading control-related data based on a master-slave responsive protocol, the device comprising:

[0026] The first module is used to calculate the overall polling time according to the system's docking communication protocol and the total number of data points; as well as the query time of the points associated with each control operation instruction;

[0027] The second module is used to calculate the dispersion of the points associated with each control operation instruction; the dispersion refers to the interval rate of the communication protocol data address;

[0028] The third module is used to calculate the control influence rate of the points associated with each control operation instruction according to the overall polling time and the query time of the points associated with each control operation instruction calculated by the first module, and the dispersion of the points associated with each control operation instruction calculated by the second module;

[0029] The fourth module is used to calculate the scene usage rate of the points associated with each control operation instruction;

[0030] A fifth module is used to calculate the priority of the points associated with each control operation instruction according to the control influence rate of the points associated with each control operation instruction calculated by the third module and the scene usage rate of the points associated with each control operation instruction calculated by the fourth module;

[0031] The sixth module is used to configure the order of the points associated with each control operation instruction from high to low according to the priority of the points associated with each control operation instruction calculated by the fifth module.

[0032] Furthermore, in the second module, the dispersion of the points associated with each control operation instruction is determined according to the number of points associated with the control operation instruction and the number of discontinuous intervals between the data addresses of the associated points; the calculation formula is as follows:

[0033] Wherein, e represents the dispersion of the points associated with the control operation instruction, n represents the number of points associated with the control operation instruction, and m represents the number of discontinuous intervals between the data addresses of the points associated with the control operation instruction.

[0034] Furthermore, in the third module, the calculation formula of the control influence rate is as follows:

[0035] Where, e represents the dispersion of the points associated with the control operation instruction, t0 represents the overall polling time, t1 represents the query time of the points associated with the control operation instruction, and η represents the control influence rate of the points associated with the control operation instruction. The smaller the value of the control influence rate, the smaller the influence of the control operation instruction on the entire point polling.

[0036] Furthermore, in the fourth module, the scenario usage rate refers to the ratio of the number of times the point associated with the control operation instruction is used to the number of system business scenarios. The larger the scenario usage rate value, the higher the usage rate, and the higher the importance of the point associated with the control operation instruction. The calculation formula of the scenario usage rate is as follows:

[0037] In the formula, μ represents the scenario utilization rate of the point associated with the control operation instruction, p represents the number of times the point associated with the control operation instruction is used, and q represents the number of system business scenarios.

[0038] Furthermore, in the fifth module, the calculation formula for the priority of the points associated with the control operation instructions is as follows:

[0039] Wherein, μ represents the scene usage rate of the point associated with the control operation instruction, η represents the control influence rate of the point associated with the control operation instruction, and f represents the priority of the point associated with the control operation instruction.

[0040] In the sixth module, the order of the points associated with each control operation instruction is configured according to its priority from large to small. Specifically, according to the value of the priority, the IDs of the points associated with the control operation instructions in the associated register table are arranged from large to small according to the value of the priority, and stored in the IDRELE field in the control association table; the system queries and obtains the data of the points associated with the control operation instructions according to the order of the IDRELE field in the control association table.

[0041] The third aspect of the present invention provides a computer device, comprising a processor, an input device, an output device and a memory, wherein the processor, the input device, the output device and the memory are interconnected, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute some or all of the steps described in the first aspect of the present invention.

[0042] The fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute some or all of the steps described in the first aspect of the present invention.

[0043] Compared with the prior art, the beneficial technical effects brought by the present invention are as follows:

[0044] 1. In the configuration method for priority reading of control-related data based on the master-slave responsive protocol of the present invention, the priority of the control-related data is obtained by the control impact rate and scene usage rate of the control-related data, providing a basis for the control-related configuration, and then the association configuration is performed according to the priority of the control-related data. The program software collects and acquires the configured association points according to the control-related configuration to achieve and meet the refresh frequency requirements of the controlled association data. The present invention can flexibly configure the association points as information, including the order and number of association points, according to the different requirements of different sites, to achieve an effect of reducing the strong coupling between the site customization requirements and the association configuration, and can adapt to different site customization requirements.

[0045] 2. The calculation of priority in the configuration method of the present invention is determined by the control influence rate and scene usage rate of the points associated with the control operation instructions, providing a basis for priority reading of the configuration of the points associated with the control operation instructions. The system program software collects and acquires data based on the points associated with the configured control operation instructions to achieve and meet the refresh frequency requirements of the associated data after control.

[0046] 3. The configuration method of the present invention improves the response efficiency of the associated point data after the control of the responsive protocol under large data volume when the system is connected, improves the configuration flexibility, greatly reduces the workload of subsequent operation and maintenance delivery personnel, and improves the user experience.

[0047] 4. The configuration method of the present invention roughly estimates the overall polling time according to the communication characteristics of the communication protocol and the number of data points, such as the MODBUS-RTU communication protocol, and obtains the number of points associated with a certain control operation according to the usage of the business scenario and estimates the query time of the points associated with the control operation instruction. The ratio of the two can be used to know the ratio of the control operation to the entire data reading. The higher the ratio, the more it affects the acquisition of other data. By comparing the ratios of multiple control operation instructions, the number of associated points of a certain control operation can be appropriately adjusted to achieve the effect of improving the efficiency of acquiring the entire point data.

[0048] 5. The present invention calculates the dispersion of the points associated with a certain control operation based on the distribution of register addresses. Since the total number of registers is fixed, the more intervals there are between the associated points, the higher the dispersion. In other words, more data frames need to be acquired after the control. Therefore, the higher the dispersion, the more it affects the acquisition of other data. Therefore, by comparing the dispersion, the associated point data of a certain control operation can be appropriately adjusted to achieve the effect of improving the acquisition efficiency of the entire point data.

[0049] 6. The present invention also combines the on-site business needs and the system's business classification to configure associated points and business scenarios. The more associated points a business scenario uses, the greater the calculated scenario usage value, which means that the data acquisition efficiency is higher. Therefore, its priority is higher, and the reading priority after the control operation is higher, and the faster it can respond to feedback requests on the page.

[0050] 7. The present invention imports the register addresses corresponding to the points associated with all control operations into the TB_REG_RELE table (associated register table) through the configuration tool of the associated points. Through the calculation of the present invention, the above priority order of the ID number corresponding to each register address in the TB_REG_RELE table (associated register table) is imported into the IDRELE field (a collection string of the ID field of the TB_REG_RELE table) of the corresponding control point register in the TB_CTRL_RELE table (control association table). When the business side performs a control operation, the underlying docking service will obtain the order of the associated points through the IDRELE field and obtain the data of the associated points, without having to wait for the polling acquisition of the protocol layer, thereby improving the response efficiency of the control associated points. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 A flow chart of the configuration for controlling the priority reading of associated data according to the present invention;

[0052] Figure 2 This is a configuration flow chart for preferentially reading control-related data according to embodiment 2 of the present invention. DETAILED DESCRIPTION

[0053] The technical solution of the present invention is further described in detail below in conjunction with specific embodiments. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0054] Example 1

[0055] As a preferred embodiment of the present invention, refer to the attached specification Figure 1 This embodiment discloses a configuration method for preferentially reading control-related data based on a master-slave responsive protocol, the method comprising the following steps:

[0056] S1. Calculate the overall polling time according to the system's docking communication protocol and the total number of data points; and the query time of the points associated with each control operation instruction;

[0057] S2. Calculate the dispersion of the points associated with each control operation instruction; the dispersion refers to the interval rate of the communication protocol data address;

[0058] S3, according to the overall polling time and the query time of the points associated with each control operation instruction calculated in step S1, and the dispersion of the points associated with each control operation instruction calculated in step S2, the control influence rate of the points associated with each control operation instruction is calculated;

[0059] S4, calculating the scene usage rate of the points associated with each control operation instruction;

[0060] S5. Calculate the priority of each point associated with each control operation instruction according to the control influence rate of each point associated with each control operation instruction calculated in step S3 and the scene usage rate of each point associated with each control operation instruction calculated in step S4;

[0061] S6. According to the priorities of the points associated with the control operation instructions calculated in step S5, the order of the points associated with the control operation instructions is configured in descending order according to their priorities.

[0062] Example 2

[0063] As another preferred embodiment of the present invention, refer to the attached specification Figure 2 This embodiment discloses a configuration method for preferentially reading control-related data based on a master-slave responsive protocol, the method comprising the following steps:

[0064] S1. Calculate the overall polling time and the query time of the points associated with each control operation instruction according to the system's docking communication protocol and the total number of data points. The overall polling time refers to the time consumed to query the number of all points at one time, and the query time of the points associated with each operation instruction refers to the time consumed to query the number of points after one control is completed.

[0065] S2. Calculate the dispersion of the points associated with each control operation instruction; the dispersion refers to the interval rate of the communication protocol data address; specifically, it refers to the interval rate of the data points in the response protocol, that is, the number of data point intervals / total number of points in the point table information provided by the system manufacturer when the system is connected.

[0066] The higher the interval rate, the higher the control influence rate. For example, 40001, 40002, 40003, 40004, and 40005 represent continuous data addresses, and their dispersion can be understood as no dispersion. At this time, the dispersion is not included in the formula for calculation, but when there are partially continuous and partially discontinuous data addresses such as 40001, 40003, 40007, 40010, 40109, 40110, and 40111, the number of intervals is expressed as the number of discontinuities, that is, one discontinuity is counted between 40001 and 40003, and one discontinuity is counted between 40003 and 40007. By analogy, there are a total of 4 discontinuities from 40001 to 40111, and the total number of data addresses is 7, then the corresponding number of intervals is 4, and the total number of points is 7. Therefore, the smaller the dispersion, the smaller the control influence rate.

[0067] S3. Calculate the control influence rate of the points associated with each control operation instruction according to the overall polling time and the query time of the points associated with each control operation instruction calculated in step S1, and the dispersion of the points associated with each control operation instruction calculated in step S2.

[0068] Furthermore, in this embodiment, the number of associated points of a certain control operation can be appropriately adjusted in combination with the control influence rate calculated above. At the same time, the number of associated points of the control operation is also pre-determined based on experience and adjusted. If adjustment is made, the associated points of each adjusted control operation instruction are recalculated according to the above S1 to S3. If no adjustment is required, the process proceeds to step S4.

[0069] S4. Calculate the scene usage rate of the points associated with each control operation instruction; the scene usage rate refers to the ratio of the number of times the points associated with the control operation instruction are used to the number of scenes. The larger the value, the higher the usage rate.

[0070] Furthermore, in this embodiment, the number of times a point associated with a certain control operation instruction is used can be adjusted in combination with the scene usage rate calculated above, or based on the operator's experience with the system. If an adjustment is made, the points associated with the adjusted control operation instructions are recalculated according to S1 to S4 above. If no adjustment is made, step S5 is entered.

[0071] S5. Calculate the priority of each point associated with each control operation instruction according to the control influence rate of each point associated with each control operation instruction calculated in step S3 and the scene usage rate of each point associated with each control operation instruction calculated in step S4;

[0072] S6. According to the priority of the points associated with each control operation instruction calculated in step S5, the order of the points associated with each control operation instruction is configured from high to low according to their priority. That is, through the configuration tool of the associated points, the register addresses corresponding to the points associated with all control operations are imported into the TB_REG_RELE table, that is, the associated register table. Through the calculation of the above steps, the ID number corresponding to each register address in the TB_REG_RELE table is imported into the IDRELE field of the corresponding control point register in the TB_CTRL_RELE table according to the above priority order. When the business side performs a control operation, the underlying docking service will obtain the order of the associated points through the IDRELE field and obtain the data of the associated points, without having to wait for the polling acquisition of the protocol layer, thereby improving the response efficiency of the control associated points.

[0073] Example 3

[0074] As another preferred embodiment of the present invention, refer to the attached specification Figure 1 This embodiment discloses a configuration method for preferentially reading control-related data based on a master-slave responsive protocol, the method comprising the following steps:

[0075] S1. Calculate the overall polling time according to the system's docking communication protocol and the total number of data points; and the query time of the points associated with each control operation instruction;

[0076] S2. Calculate the dispersion of the points associated with each control operation instruction; the dispersion refers to the interval rate of the communication protocol data address;

[0077] The dispersion of the points associated with each control operation instruction is determined according to the number of points associated with the control operation instruction and the number of discontinuous intervals between the data addresses of the associated points; the calculation formula is as follows:

[0078] Wherein, e represents the dispersion of the points associated with the control operation instruction, n represents the number of points associated with the control operation instruction, and m represents the number of discontinuous intervals between the data addresses of the points associated with the control operation instruction.

[0079] S3. According to the overall polling time and the query time of the points associated with each control operation instruction calculated in step S1, and the dispersion of the points associated with each control operation instruction calculated in step S2, the control influence rate of the points associated with each control operation instruction is calculated; the calculation formula of the control influence rate is as follows:

[0080] Where, e represents the dispersion of the points associated with the control operation instruction, t0 represents the overall polling time, t1 represents the query time of the points associated with the control operation instruction, and η represents the control influence rate of the points associated with the control operation instruction. The smaller the value of the control influence rate, the smaller the influence of the control operation instruction on the entire point polling.

[0081] S4. Calculate the scene usage rate of the points associated with each control operation instruction; the scene usage rate refers to the ratio of the number of times the points associated with the control operation instruction are used to the number of system business scenarios. The larger the scene usage rate value, the higher the usage rate, and the higher the importance of the point associated with the control operation instruction. The calculation formula of the scene usage rate is as follows:

[0082] In the formula, μ represents the scenario utilization rate of the point associated with the control operation instruction, p represents the number of times the point associated with the control operation instruction is used, and q represents the number of system business scenarios.

[0083] S5. Calculate the priority of each point associated with each control operation instruction according to the control influence rate of each point associated with each control operation instruction calculated in step S3 and the scene usage rate of each point associated with each control operation instruction calculated in step S4; the calculation formula of the priority of the point associated with the control operation instruction is as follows:

[0084] Wherein, μ represents the scene usage rate of the point associated with the control operation instruction, η represents the control influence rate of the point associated with the control operation instruction, and f represents the priority of the point associated with the control operation instruction.

[0085] S6. According to the priority of each point associated with each control operation instruction calculated in step S5, the order of the points associated with each control operation instruction is configured in descending order according to its priority. The order of the points associated with each control operation instruction is configured in descending order according to its priority. Specifically, according to the value of the priority, the IDs of the points associated with the control operation instruction in the association register table are arranged in descending order according to the value of the priority, and stored in the IDRELE field in the control association table; the system performs data query and acquisition of the points associated with the control operation instruction according to the order of the IDRELE field in the control association table.

[0086] Example 4

[0087] As another preferred embodiment of the present invention, refer to the attached specification Figure 1 , this embodiment provides a business scenario usage example of the above configuration method.

[0088] The project site provides a MODBUS-RTU system docking protocol, in which the number of points is 50,000 (in the case of large data volume). One telemetry data occupies one register address (that is, 2 bytes). Ideally, each register address is continuous. According to the frame format requirements of the MODBUS-RTU protocol, one frame does not exceed 255 bytes. It also needs to be divided into nearly 200 frames to refresh all the data. If the register address is not continuous, the number of frames will exceed 200 frames.

[0089] According to the communication characteristics of the MODBUS-RTU communication protocol, the time t0 is roughly estimated, and then the number of points associated with a certain control operation is obtained according to the usage of the business scenario, and the query time t1 is estimated. The ratio of the two can be used to know the ratio of the entire data reading occupied by this control operation. The higher the ratio, the more it affects the acquisition of other data. By comparing the ratios of multiple control operations, the number of associated points of a certain control operation can be appropriately adjusted to achieve the acquisition efficiency of the entire point data.

[0090] According to the distribution of register addresses, the dispersion of points associated with a certain control operation is calculated. Because the total number of registers is fixed, the more intervals there are between the associated points, the higher the dispersion. In other words, more data frames need to be acquired after control. Therefore, the higher the dispersion, the more it affects the acquisition of other data. Therefore, through the comparison of dispersion, the number of associated points of a certain control operation can be appropriately adjusted to achieve the acquisition efficiency of the entire point data.

[0091] In combination with the on-site business needs and the system's business classification, the associated points and business scenarios can be configured. At this time, the more associated points a business scenario uses, the larger the scenario usage rate μ value calculated will be, indicating that the data acquisition efficiency will be higher. Therefore, its priority will be higher, and the reading priority after the control operation will be higher, and the feedback demands of the page can be responded to more quickly;

[0092] With the data of time proportion and dispersion, we can calculate the control impact rate and combine it with the scene usage rate, so we can get the required related point information and the optimized point order;

[0093] Through the configuration tool of the associated points, the register addresses corresponding to the points associated with all control operations are imported into the TB_REG_RELE table, that is, the associated register table. Through the calculation in the above steps, the ID number corresponding to each register address in the TB_REG_RELE table is imported into the IDRELE field of the corresponding control point register in the TB_CTRL_RELE table according to the above priority order. When the business side performs control operations, the underlying docking service will obtain the order of the associated points through the IDRELE field and obtain the data of the associated points without waiting for the polling acquisition of the protocol layer, thereby improving the response efficiency of the control associated points.

[0094] The above business scenarios can be applied in smart meter management systems.

[0095] Example 5

[0096] As another preferred embodiment of the present invention, this embodiment discloses: a configuration device for preferentially reading control-related data based on a master-slave responsive protocol, the device comprising:

[0097] The first module is used to calculate the overall polling time according to the system's docking communication protocol and the total number of data points; as well as the query time of the points associated with each control operation instruction;

[0098] The second module is used to calculate the dispersion of the points associated with each control operation instruction; the dispersion refers to the interval rate of the communication protocol data address;

[0099] The third module is used to calculate the control influence rate of the points associated with each control operation instruction according to the overall polling time and the query time of the points associated with each control operation instruction calculated by the first module, and the dispersion of the points associated with each control operation instruction calculated by the second module;

[0100] The fourth module is used to calculate the scene usage rate of the points associated with each control operation instruction;

[0101] A fifth module is used to calculate the priority of the points associated with each control operation instruction according to the control influence rate of the points associated with each control operation instruction calculated by the third module and the scene usage rate of the points associated with each control operation instruction calculated by the fourth module;

[0102] The sixth module is used to configure the order of the points associated with each control operation instruction from high to low according to the priority of the points associated with each control operation instruction calculated by the fifth module.

[0103] Example 6

[0104] As another preferred embodiment of the present invention, this embodiment discloses a configuration device for preferentially reading control-related data based on a master-slave responsive protocol, the device comprising:

[0105] The first module is used to calculate the overall polling time according to the system's docking communication protocol and the total number of data points; as well as the query time of the points associated with each control operation instruction;

[0106] The second module is used to calculate the dispersion of the points associated with each control operation instruction; the dispersion refers to the interval rate of the communication protocol data address; in the second module, the dispersion of the points associated with each control operation instruction is determined according to the number of points associated with the control operation instruction and the number of discontinuous intervals between the data addresses of the associated points; the calculation formula is as follows:

[0107] Wherein, e represents the dispersion of the points associated with the control operation instruction, n represents the number of points associated with the control operation instruction, and m represents the number of discontinuous intervals between the data addresses of the points associated with the control operation instruction.

[0108] The third module is used to calculate the control influence rate of the points associated with each control operation instruction according to the overall polling time and the query time of the points associated with each control operation instruction calculated by the first module, and the dispersion of the points associated with each control operation instruction calculated by the second module; in the third module, the calculation formula of the control influence rate is as follows:

[0109] Where, e represents the dispersion of the points associated with the control operation instruction, t0 represents the overall polling time, t1 represents the query time of the points associated with the control operation instruction, and η represents the control influence rate of the points associated with the control operation instruction. The smaller the value of the control influence rate, the smaller the influence of the control operation instruction on the entire point polling.

[0110] The fourth module is used to calculate the scene usage rate of the points associated with each control operation instruction; in the fourth module, the scene usage rate refers to the ratio of the number of times the points associated with the control operation instruction are used to the number of system business scenarios. The larger the scene usage rate value, the higher the usage rate, and the higher the importance of the point associated with the control operation instruction; the calculation formula of the scene usage rate is as follows:

[0111] In the formula, μ represents the scenario utilization rate of the point associated with the control operation instruction, p represents the number of times the point associated with the control operation instruction is used, and q represents the number of system business scenarios.

[0112] The fifth module is used to calculate the priority of each point associated with each control operation instruction according to the control influence rate of each point associated with each control operation instruction calculated by the third module and the scene usage rate of each point associated with each control operation instruction calculated by the fourth module; in the fifth module, the calculation formula of the priority of the point associated with the control operation instruction is as follows:

[0113] Wherein, μ represents the scene usage rate of the point associated with the control operation instruction, η represents the control influence rate of the point associated with the control operation instruction, and f represents the priority of the point associated with the control operation instruction.

[0114] The sixth module is used to configure the order of the points associated with each control operation instruction according to the priority of the points associated with each control operation instruction calculated by the fifth module from high to low. The sixth module is a configuration tool for the associated points, that is, to import the register addresses corresponding to the points associated with all control operations into the TB_REG_RELE table, that is, the associated register table. Through the calculation of the above steps, the ID number corresponding to each register address in the TB_REG_RELE table is imported into the IDRELE field of the corresponding control point register in the TB_CTRL_RELE table according to the above priority order. When the business side performs a control operation, the underlying docking service will obtain the order of the associated points through the IDRELE field and obtain the data of the associated points without waiting for the polling acquisition of the protocol layer, thereby improving the response efficiency of the control associated points.

[0115] Example 7

[0116] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a computer device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the configuration method for preferentially reading control-related data based on the master-slave responsive protocol are implemented.

[0117] In this embodiment, the processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.

[0118] The memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer executable programs and units, such as the corresponding program units in the above method embodiments of the present invention. The processor executes various functional applications of the processor and works data processing by running the non-transitory software programs, instructions and modules stored in the memory, that is, implementing the method in the above method embodiments.

[0119] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0120] The one or more units are stored in the memory, and when executed by the processor, the method in the above-mentioned embodiment 1, embodiment 2, embodiment 3 or embodiment 4 is executed.

[0121] Example 5

[0122] As another preferred embodiment of the present invention, this embodiment discloses a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps in the above-mentioned embodiment 1, embodiment 2, embodiment 3 or embodiment 4 are implemented.

Claims

1. A configuration method for preferentially reading control-related data based on a master-slave responsive protocol, characterized in that: The method comprises the following steps: S1. Calculate the overall polling time according to the system's docking communication protocol and the total number of data points; as well as the query time of the points associated with each control operation instruction; the overall polling time refers to the time consumed by querying the number of all points at one time; S2. Calculate the dispersion of the points associated with each control operation instruction; the dispersion refers to the interval rate of the communication protocol data address, and the interval rate refers to the number of data point intervals / total number of points in the point table information provided by the system manufacturer when the system is connected; S3. According to the overall polling time and the query time of the points associated with each control operation instruction calculated in step S1, and the dispersion of the points associated with each control operation instruction calculated in step S2, the control influence rate of the points associated with each control operation instruction is calculated. The calculation formula of the control influence rate is as follows: In the formula, e represents the dispersion of the points associated with the control operation instruction, t0 represents the overall polling time, t1 represents the query time of the points associated with the control operation instruction, and η represents the control influence rate of the points associated with the control operation instruction; the smaller the value of the control influence rate, the smaller the influence of the control operation instruction on the entire point polling; S4. Calculate the scene usage rate of the points associated with each control operation instruction, where the scene usage rate refers to the ratio of the number of times the points associated with the control operation instruction are used to the number of system business scenarios; S5. Calculate the priority of each point associated with each control operation instruction according to the control influence rate of each point associated with each control operation instruction calculated in step S3 and the scene usage rate of each point associated with each control operation instruction calculated in step S4; S6. According to the priority of the points associated with each control operation instruction calculated in step S5, the order of the points associated with each control operation instruction is configured in descending order according to the priority. Specifically, according to the value of the priority, the IDs of the points associated with the control operation instruction in the associated register table are arranged in descending order according to the value of the priority, and stored in the IDRELE field in the control association table; the system queries and obtains the data of the points associated with the control operation instruction according to the order of the IDRELE field in the control association table.

2. The configuration method for preferentially reading control-related data based on the master-slave responsive protocol according to claim 1, characterized in that: In step S2, the dispersion of the points associated with each control operation instruction is determined according to the number of points associated with the control operation instruction and the number of discontinuous intervals between the data addresses of the associated points; the calculation formula is as follows: Wherein, e represents the dispersion of the points associated with the control operation instruction, n represents the number of points associated with the control operation instruction, and m represents the number of discontinuous intervals between the data addresses of the points associated with the control operation instruction.

3. The configuration method for preferentially reading control-related data based on the master-slave responsive protocol according to claim 1 or 2, characterized in that: In step S4, the larger the scene usage rate value is, the higher the usage rate is, and the higher the importance of the point associated with the control operation instruction is; the calculation formula of the scene usage rate is as follows: In the formula, μ represents the scenario utilization rate of the point associated with the control operation instruction, p represents the number of times the point associated with the control operation instruction is used, and q represents the number of system business scenarios.

4. The configuration method for preferentially reading control-related data based on the master-slave responsive protocol according to claim 1 or 2, characterized in that: In step S5, the calculation formula for the priority of the points associated with the control operation instruction is as follows: Wherein, μ represents the scene usage rate of the point associated with the control operation instruction, η represents the control influence rate of the point associated with the control operation instruction, and f represents the priority of the point associated with the control operation instruction.

5. A configuration device for preferentially reading control-related data based on a master-slave responsive protocol, characterized in that: The device includes The first module is used to calculate the overall polling time according to the system's docking communication protocol and the total number of data points; And the query time of the points associated with each control operation instruction; The overall polling time refers to the time consumed to query the number of all points at one time; The second module is used to calculate the dispersion of the points associated with each control operation instruction; the dispersion refers to the interval rate of the communication protocol data address, and the interval rate refers to the number of data point intervals / total number of points in the point table information provided by the system manufacturer when the system is connected; The third module is used to calculate the control influence rate of the points associated with each control operation instruction according to the overall polling time and the query time of the points associated with each control operation instruction calculated by the first module, and the dispersion of the points associated with each control operation instruction calculated by the second module. The calculation formula of the control influence rate is as follows: In the formula, e represents the dispersion of the points associated with the control operation instruction, t0 represents the overall polling time, t1 represents the query time of the points associated with the control operation instruction, and η represents the control influence rate of the points associated with the control operation instruction; the smaller the value of the control influence rate, the smaller the influence of the control operation instruction on the entire point polling; The fourth module is used to calculate the scene usage rate of the points associated with each control operation instruction, where the scene usage rate refers to the ratio of the number of times the points associated with the control operation instruction are used to the number of system business scenarios; A fifth module is used to calculate the priority of the points associated with each control operation instruction according to the control influence rate of the points associated with each control operation instruction calculated by the third module and the scene usage rate of the points associated with each control operation instruction calculated by the fourth module; The sixth module is used to configure the order of the points associated with each control operation instruction according to the priority of the points associated with each control operation instruction calculated by the fifth module from large to small according to its priority. Specifically, according to the value of the priority, the IDs of the points associated with the control operation instructions in the associated register table are arranged from large to small according to the value of the priority, and stored in the IDRELE field in the control association table; the system queries and obtains the data of the points associated with the control operation instructions according to the order of the IDRELE field in the control association table.

6. A computer device, characterized in that: The method comprises a processor, an input device, an output device and a memory, wherein the processor, the input device, the output device and the memory are interconnected, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the method according to any one of claims 1 to 4.