Configuration data processing system, method and electronic equipment

By introducing two independent storage devices into the configuration data processing system, which are used to edit and run data, the stability and security problems caused by the sharing of data between the editing process and the running process are solved, and the stability and security of the configuration data are improved.

CN114637496BActive Publication Date: 2025-04-25ALIBABA (CHINA) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210307895.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-25
Publication Date
2025-04-25
Estimated Expiration
2042-03-25

AI Technical Summary

Technical Problem

In the prior art, the editing process and the running process correspond to the same configuration data. When an abnormality occurs in a certain process, it directly affects the normal operation of the data of another process, reducing the stability and security of the configuration data.

Method used

By introducing two independent storage devices in the system, one is used to store the first configuration data for user editing, and the other is used to store the second configuration data that is directly run by the operating device and cannot be edited, and the verification process is carried out during the data copying process to ensure the stability and security of the data.

Benefits of technology

It effectively isolates the data of the editing process and the running process, avoids data exceptions directly affecting the normal operation of another process, improves the stability and security of the configuration data, and ensures the normal operation of the business.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114637496B_ABST
    Figure CN114637496B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a configuration data processing system, method and electronic device, the system comprising: a first storage device and a second storage device, the first storage device is used to: receive and store first configuration data, wherein the first configuration data is data used in the business editing process for users to edit or confirm; the second storage device is used to: copy the first configuration data in the first storage device to obtain second configuration data, wherein the second configuration data is data used in the business operation process and is prohibited from editing; store the second configuration data for the operation device to obtain and run the second configuration data. This embodiment improves the stability and security of the configuration data, thereby ensuring the normal operation of the business corresponding to the configuration data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the field of data processing technology, and in particular, to a configuration data processing system, method, and electronic device. Background Art

[0002] With the development of network technology, the application of configuration software is becoming more and more extensive, and related services can be realized through configuration software.

[0003] In the prior art, the process of implementing a service generally includes two sub-processes, one sub-process is an editing process, and the other sub-process is an operating process. The configuration data obtained in the editing process can be directly applied to the operating process.

[0004] However, when the editing process and the running process correspond to the same data, when the data of one process is abnormal, it directly affects the normal operation of the data of another process, reduces the stability and security of the configuration data, and further affects the normal operation of the business. Summary of the invention

[0005] Embodiments of the present application provide a configuration data processing system, method and electronic device to improve the stability and security of configuration data.

[0006] In a first aspect, an embodiment of the present application provides a configuration data processing system, comprising: a first storage device and a second storage device,

[0007] The first storage device is used to: receive and store first configuration data, wherein the first configuration data is data used in a service editing process for a user to edit or confirm;

[0008] The second storage device is used to: copy the first configuration data in the first storage device to obtain second configuration data, wherein the second configuration data is data used in the business operation process and is prohibited from being edited; store the second configuration data for the operation device to obtain and run the second configuration data.

[0009] Optionally, the first configuration data includes a first target version number.

[0010] The second storage device is further used for: when it is determined according to the first target version number that the first configuration data is newly added configuration data, copying the first configuration data in the first storage device to obtain second configuration data, and storing the second configuration data.

[0011] Optionally, the first storage device is further used to: when the first storage device is in an abnormal state, send a first storage device abnormality prompt to the second storage device;

[0012] The second storage device is further configured to: suspend the action of copying the first configuration data when receiving an abnormal prompt of the first storage device.

[0013] Optionally, the system further comprises a verification device,

[0014] The verification device is used to obtain the second configuration data from the second storage device, perform verification processing on the second configuration data, and send the second configuration data to the operation device after the second configuration data passes the verification.

[0015] Optionally, the verification device is further used for:

[0016] Perform at least one of the following processing on the second configuration data:

[0017] Format integrity check, identity check, keyword check and pre-run check;

[0018] Among them, the format integrity check is used to verify the constituent items of the second configuration data, the identity check is used to verify the editing user of the second configuration data, the keyword check is used to verify the words in the second configuration data according to preset words, and the pre-operation check is a process of pre-running and performing a check before the operating device officially runs the second configuration data.

[0019] Optionally, the verification device is further used for:

[0020] Acquire items included in predefined configuration data, wherein the items include at least one of the following: page data, component data, state data, and attribute data, wherein the page data represents basic information of a page to be displayed, the component data represents basic information of a component included in the page to be displayed, the state data represents state information of a component included in the page to be displayed, and the attribute information represents custom description information of a component included in the page to be displayed;

[0021] If the items included in the second configuration data match the items included in the predefined configuration data, it is determined that the second configuration data passes the format integrity check.

[0022] Optionally, the verification device is further used for:

[0023] If the second configuration data fails verification, determining the verification type that fails;

[0024] If the failed check type is a format integrity check, sending a format integrity check failure prompt to the second storage device;

[0025] The second storage device is further used for: after receiving the format integrity check failure prompt, re-copying the first configuration data in the first storage device to obtain new second configuration data, and sending the new second configuration data to the checking device.

[0026] Optionally, the first storage device is further used for:

[0027] Receiving first configuration data sent by a third-party configuration editing application, wherein the first configuration data is formed by the third-party configuration editing application in response to a user's touch operation, wherein the touch operation includes a component dragging operation and an input operation;

[0028] The first configuration data is stored.

[0029] In a second aspect, an embodiment of the present application provides a configuration data processing method, which is applied to a second storage device, comprising:

[0030] Copying the first configuration data in the first storage device to obtain the second configuration data, wherein the first configuration data is data used in the service editing process for the user to edit or confirm, and the second configuration data is data used in the service running process and is prohibited from being edited;

[0031] The second configuration data is stored so that the operating device can acquire and operate the second configuration data.

[0032] In a third aspect, an embodiment of the present application provides a configuration data processing method, which is applied to a first storage device, comprising:

[0033] Receive and store first configuration data so that the second storage device copies the first configuration data in the first storage device to obtain second configuration data, and store the second configuration data for the operating device to obtain and operate the second configuration data, wherein the first configuration data is data used in the business editing process for the user to edit or confirm, and the second configuration data is data used in the business operation process and is prohibited from being edited.

[0034] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;

[0035] The memory stores computer-executable instructions;

[0036] The processor executes the computer-executable instructions stored in the memory to implement the configuration data processing method according to the second aspect or the third aspect of claim 1.

[0037] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the configuration data processing method as described in the second aspect or the third aspect of claim 1 is implemented.

[0038] In a sixth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the configuration data processing method as described in the second aspect or the third aspect of claim 1.

[0039] The embodiments of the present application provide a configuration data processing system, method and electronic device, wherein the system includes a first storage device, a second storage device and an operating device, wherein the first storage device can be used to receive and store configuration data, the second storage device can copy the first configuration data in the first storage device to obtain second configuration data and store the second configuration data, and the operating device can obtain the second configuration data from the second storage device and operate the second configuration data. After adopting the above scheme, the first configuration data for user editing or confirmation can be separated from the second configuration data for direct operation and non-editable, thereby avoiding the situation where the editing process and the operating process correspond to the same data, and when a problem occurs in the data corresponding to any process, the normal operation of the other process will be directly affected, thereby improving the stability and security of the configuration data, and further ensuring the normal operation of the business corresponding to the configuration data. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0041] Figure 1 It is a schematic diagram of application in the prior art;

[0042] Figure 2 An application scenario diagram provided for an embodiment of the present application;

[0043] Figure 3 A schematic diagram of the structure of a configuration data processing system provided in an embodiment of the present application;

[0044] Figure 4 A schematic diagram of the structure of the configuration data components provided in the embodiment of the present application;

[0045] Figure 5 A schematic diagram of the structure of a configuration data processing system provided in another embodiment of the present application;

[0046] Figure 6 A schematic diagram of the structure of a configuration data processing system provided in another embodiment of the present application;

[0047] Figure 7 A schematic diagram of a flow chart of a configuration data processing method provided in an embodiment of the present application;

[0048] Figure 8 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0049] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0050] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can also include other sequential instances in addition to those illustrated or described. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0051] The application scenarios and inventive concepts of this application are explained below.

[0052] With the development of the field of industrial Internet of Things, the business needs related to industry are becoming more and more extensive (for example, inspection business and monitoring business at the workshop level, etc.), and correspondingly, the related development work is also increasing. In order to improve the development efficiency of developers, third-party configuration software can be used for business development. Third-party configuration software can also be called configuration monitoring system software, which can refer to special software for data acquisition and process control, or it can refer to the software platform and development environment at the level of the automatic control system monitoring layer. Third-party configuration software is a software tool that provides users with a flexible configuration method to quickly build industrial automatic control system monitoring functions or other general functions, and can be widely used in many industrial fields such as machinery, automobiles, petroleum, chemicals, papermaking, water treatment, etc.

[0053] Figure 1 It is a schematic diagram of the application in the prior art, such as Figure 1 As shown, in the prior art, in the process of realizing business by configuration software, generally two sub-processes can be included, one sub-process is the editing process, and the other sub-process is the running process. The editing process can specifically refer to the process developed when the business is realized (for example, it can be the process of developing the configuration page), in which the business data can be edited, confirmed, etc. (exemplarily, it can be realized by the editing module). The running process can refer to the process of running the business data after the business development is completed, that is, after the business data is edited or confirmed, (exemplarily, it can be realized by the running device), in which the business data can no longer be edited and is only for business applications. However, the editing process and the running process all correspond to the same configuration data (exemplarily, the configuration data can be stored in the storage module), and when the data of a process is abnormal, it directly affects the normal operation of the data of another process. For example, if the data is maliciously changed during the editing process, the data that is run during the running process is the data after the malicious change, resulting in the inability to normally realize the business, reducing the stability and security of the configuration data, and thus affecting the normal operation of the business.

[0054] Based on the above technical problems, the present application separates the first configuration data for user editing or confirmation from the second configuration data for direct operation and non-editable, so as to avoid the situation where the editing process and the operation process correspond to the same data, and when problems occur in the data corresponding to any process, the normal operation of the other process will be directly affected. This achieves the technical effect of improving the stability and security of the configuration data and ensuring the normal operation of the business corresponding to the configuration data.

[0055] Figure 2 An application scenario diagram provided for an embodiment of the present application, such as Figure 2 As shown, in this embodiment, a first storage device and a second storage device may be included. The first storage device may receive first configuration data and store the first configuration data, wherein the first configuration data is data corresponding to the editing process, and may also be referred to as editing state data, and the first configuration data may be data for the user to edit or confirm.

[0056] Optionally, the first configuration data received by the first storage device may be generated by a configuration editing module, and the developer may edit (for example, change data attributes, add components, etc.) or confirm the configuration data through the configuration editing module, and then the edited or confirmed first configuration data may be sent to the first storage device for storage, or the first storage device may periodically obtain the edited or confirmed first configuration data from the configuration editing module. In addition, the first configuration data already stored in the first storage device may also be re-edited through the configuration editing module. Specifically, when the first configuration data in the configuration editing module needs to be re-edited, the first configuration data to be edited may be first obtained from the first storage device, and then the first configuration data may be further edited through the configuration editing module, and after the editing is completed, the edited new first configuration data may be re-stored in the first storage device. Among them, the configuration editing module may be a third-party configuration editing software, which may be deployed in the same hardware device as the first storage device, or may be deployed in a different hardware device from the first storage device, which is not further limited in detail.

[0057] In addition, after storing the first configuration data in the first storage device, it is also necessary to run the configuration data to realize the related business. Editing and running are two different processes. In order to better isolate the two processes and avoid the operation in any process affecting the realization of the other process, the data of the two processes can be isolated, that is, each process corresponds to different data respectively. When operating the data in different processes, the operations are performed on the corresponding data respectively, and the data of the two processes do not affect each other. Optionally, the data of the two processes can be stored in different storage modules respectively, that is, after storing the first configuration data in the first storage device, the first configuration data can be copied to obtain the second configuration data, and the second configuration data can be stored in the second storage device. Among them, the second configuration data is the data corresponding to the running process, which can also be called running state data. The second configuration data can be for the running device to run, and the second configuration data can no longer be edited. Optionally, the first storage device and the second storage device can be specific hardware storage devices, or they can be storage methods such as databases. Furthermore, the first storage device and the second storage device may be deployed in the same hardware device to save hardware resources, or may be deployed in different hardware devices to improve the security of configuration data storage, which will not be limited in detail herein.

[0058] In addition, after the second configuration data is stored in the second storage device, the second configuration data can be sent to the operating device for operation. Optionally, there can be one or more operating devices, and the device types of the operating devices can also be different. Correspondingly, the operating device can be a device such as a personal computer, a tablet, etc. that can run the second configuration data, and can also be a display device for displaying the second configuration data.

[0059] Exemplarily, the second configuration data may be page data corresponding to different factory workshops, and the page data may include the equipment in the workshop, the location information, status information, etc. of each device. After the operating device obtains the page data corresponding to the factory workshop, it may render and display the page data, so that the relevant operation and maintenance personnel can easily understand the operating status of each device in the factory workshop. In addition, there may be multiple operating devices, which may be respectively set in different factory workshops. When the second configuration data is sent to the operating device, the second configuration data corresponding to different factory workshops may be sent to the corresponding operating device, so that the relevant operation and maintenance personnel can easily understand the operating status of each device in the factory workshop.

[0060] The technical solution of the present application is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0061] Figure 3 A schematic diagram of the structure of the configuration data processing system provided in the embodiment of the present application is shown in FIG. Figure 3 As shown, the configuration data processing system provided in the embodiment of the present application may include: a first storage device and a second storage device.

[0062] The first storage device is used to receive and store first configuration data, wherein the first configuration data is data used in a service editing process for a user to edit or confirm.

[0063] The second storage device is used to: copy the first configuration data in the first storage device to obtain second configuration data, wherein the second configuration data is data used in the business operation process and is prohibited from being edited; store the second configuration data for the operation device to obtain and run the second configuration data.

[0064] In the present embodiment, the configuration data processing system can be used to implement the editing, publishing, storage and operation of configuration data, thereby realizing the business corresponding to the configuration data. Among them, the configuration data can be data generated by third-party configuration software, and the third-party configuration software can provide a configuration data editor, without the need for developers to write code, and only needs to drag the components related to the business to the canvas of the editor in the editor, and then configure the relevant components (for example, configure the display style, data source and interactive actions of the relevant components), that is, the configuration data can be generated in a visual way. Exemplary, if the business is to develop an application, the generated configuration data can be the data corresponding to the development process of a sub-process in the application development process, and after the configuration data is generated, it means that the development of the sub-process corresponding to the configuration data is completed. In summary, the relevant business is realized by means of third-party configuration software, which simplifies the implementation process of the business and thus improves the implementation efficiency of the relevant business.

[0065] Furthermore, the first storage device is also used for:

[0066] Receive first configuration data sent by a third-party configuration editing application, wherein the first configuration data is generated by the third-party configuration editing application in response to a user's touch operation, wherein the touch operation includes a component dragging operation and an input operation.

[0067] The first configuration data is stored.

[0068] Specifically, the touch operation can be a component dragging operation and an input operation. The component dragging operation can be an operation for developers to drag related components in the editor of a third-party editing program according to actual business needs, and the input operation can be an operation for developers to configure specific information of the components after dragging the related components.

[0069] In addition, the configuration data may include different items, and the items included in different configuration data may be the same or different. Figure 4 A schematic diagram of the structure of the configuration data components provided in the embodiment of the present application, such as Figure 4As shown, the configuration data provided by the embodiment of the present application may include at least one of the following items: page data, component data, state data, and attribute data. Among them, the page data represents the basic information of the page to be displayed, the component data represents the basic information of the components contained in the page to be displayed, the state data represents the state information of the components contained in the page to be displayed, and the attribute information represents the custom description information of the components contained in the page to be displayed. In summary, by defining the configuration data in the form of projects, the composition of the configuration data is clearer, and a good data foundation is provided for the subsequent storage, segmentation, release, and verification of the configuration data. Among them, the configuration data here can represent the first configuration data, and can also represent the second configuration data.

[0070] Exemplarily, the configuration data may be all the data describing a factory workshop, and the configuration data may include four items, namely, page data, component data, status data, and attribute data. Correspondingly, the page data may be the basic data of the display page of the workshop, for example, it may be the page name, workshop description information, and the authority information of the workshop manager. The component data may be all the components contained in the display page of the workshop, for example, it may be an ellipse representing the device A in the workshop, a rectangle representing the device B in the workshop, a circle representing the device C in the workshop, etc. The status data may be information representing the status of the equipment in the workshop, as well as the temperature, humidity, etc. in the workshop. Each component in the component data is static data, and each device actually has corresponding status data. Therefore, the corresponding status can be added to each device through the configuration data, for example, the opening time of the device, the service life, etc. The attribute information may be the information of each component in the workshop manually configured by the developer, for example, the specific position, size, color, etc. of each component.

[0071] In addition, the first storage device can actively obtain the first configuration data from the configuration editing module at preset time intervals, or actively send the first configuration data to the first storage device after the configuration editing module generates new first configuration data, which is not limited in detail here. After the first storage device receives the first configuration data, since the first configuration data is the configuration data corresponding to the editing process and is editable or confirmable data, the first configuration data can be first saved in the first storage device used to store the data of the editing process. Then the first configuration data can be copied to obtain the second configuration data used for operation and cannot be changed, and then the second configuration data can be saved in the second storage device used to store the data of the operation process. Among them, when copying and saving the second configuration data, the second storage device can actively confirm whether there is data to be copied at preset time intervals, or the first storage device can actively send a new data prompt to the second storage device after saving the new first configuration data.

[0072] Optionally, the first storage device, the second storage device and the operating device may be located in the same hardware device, or in different hardware devices, or may be partially located in the same hardware device, which is not limited in detail herein.

[0073] In summary, after adopting the above scheme, the first configuration data for user editing or confirmation can be separated from the second configuration data for direct operation and non-editable, so as to avoid the situation that when the editing process and the operation process correspond to the same data, when there is a problem with the data corresponding to either process, it will directly affect the normal operation of the other process, thereby improving the stability and security of the configuration data, and thus ensuring the normal operation of the business corresponding to the configuration data. In addition, it also ensures the one-way flow of configuration data from the editing process to the operation process, reduces the error probability in the production and operation process of the configuration processing system, and thus improves the availability of the configuration processing system.

[0074] based on Figure 3 The present specification also provides some specific implementation schemes of the system, which are described below.

[0075] In another embodiment, the first configuration data includes a first target version number.

[0076] The second storage device is further used for: when it is determined according to the first target version number that the first configuration data is newly added configuration data, copying the first configuration data in the first storage device to obtain second configuration data, and storing the second configuration data.

[0077] In this embodiment, when the new first configuration data is generated, a new first target version number can be assigned to the first configuration data. When the new first configuration data is subsequently stored in the first storage device, the second storage device can copy the first configuration data to generate the second configuration data applied to the running process. Further, since there are multiple data in the second storage device, it is impossible to determine whether the newly obtained first configuration data is data that has been stored before. Therefore, when the second storage device copies data from the first storage device, it can be determined whether it is new data by the first target version number in the newly obtained first configuration data. Optionally, the second target version number contained in the second configuration data in the second storage device can be compared with the first target version number contained in the newly obtained first configuration data. If they are not the same, it indicates that the data has not been stored in the second storage device, and the first configuration data can be copied to generate the second configuration data applied to the running process, and the second configuration data can be saved. Among them, the second target version number in the copied second configuration data is the same as the first target version number in the first configuration data before copying.

[0078] In summary, by determining whether the configuration data needs to be copied according to the version number included in the configuration data, the situation of repeated copying of the configuration data is avoided, and the processing efficiency of the configuration data is improved.

[0079] Furthermore, in another embodiment, the first storage device is further configured to: when the first storage device is in an abnormal state, send a first storage device abnormality prompt to the second storage device.

[0080] The second storage device is further configured to: suspend the action of copying the first configuration data when receiving an abnormal prompt of the first storage device.

[0081] In this embodiment, due to network failure or device failure, the first storage device may be in an abnormal state, that is, an unavailable state. When the first storage device is in an unavailable state, the first configuration data in the first storage device is also in an unavailable state, that is, operations such as editing and copying cannot be performed. Therefore, when the first storage device is in an abnormal state, a first storage device abnormality prompt can be sent to the second storage device. When the second storage device receives the first storage device abnormality prompt sent by the first storage device, it can suspend the action of copying the first configuration data and can run the second configuration data previously saved in the second storage device.

[0082] In addition, there may be a situation where the first storage device is in an abnormal state and an abnormal prompt of the first storage device cannot be sent to the second storage device. In this case, only the state of the first storage device can be set to an abnormal state. When the second storage device obtains data from the first storage device, it can be determined that the first storage device is in an abnormal state, and then the action of copying the first configuration data can be suspended, and the second configuration data previously saved in the second storage device can be run.

[0083] In summary, by setting the configuration data of the editing process separately from the configuration data of the running process, when the configuration data of the editing process is abnormal, the configuration data of the running process can not obtain the latest configuration data, but it can still ensure the normal operation of the business corresponding to the configuration data, avoiding the situation that the data abnormality of any process will affect the editing process and the running process when the configuration data is set at a single point, thereby improving the stability and security of the configuration data. In addition, by sending a storage module abnormality prompt, developers can understand the device status in a timely manner, ensuring the stable operation of the configuration processing system.

[0084] Figure 5 A structural diagram of a configuration data processing system provided in another embodiment of the present application is shown in FIG. Figure 5 As shown, in the system, in addition to the first storage device and the second storage device, the system may also include a verification device.

[0085] The verification device is used to obtain the second configuration data from the second storage device, perform verification processing on the second configuration data, and send the second configuration data to the operation device after the second configuration data passes the verification.

[0086] In this embodiment, the second storage device can directly send the second configuration data to the corresponding operation device, so that the operation device directly runs the received second configuration data. However, in the process of copying the second configuration data from the first storage device to the second storage device and sending it from the second storage device to the operation device, a failure may occur due to network lines and other reasons, affecting the normal operation of the second configuration data. Therefore, before the second storage device sends the second configuration data to the operation device, the second configuration data can be sent to the verification device for verification. After the verification is passed, the second configuration data is sent to the operation device for operation, which not only improves the security of the configuration data, but also ensures the normal implementation of the business corresponding to the configuration data.

[0087] Furthermore, the verification device is also used for:

[0088] Perform at least one of the following processing on the second configuration data:

[0089] Format integrity check, identity check, keyword check and pre-run check.

[0090] Among them, the format integrity check is used to verify the constituent items of the second configuration data, the identity check is used to verify the editing user of the second configuration data, the keyword check is used to verify the words in the second configuration data according to preset words, and the pre-operation check is a process of pre-running and performing a check before the operating device officially runs the second configuration data.

[0091] Specifically, when verifying the second configuration data, the verification can be performed in different ways. Correspondingly, for the format integrity verification method, the format integrity verification is used to verify the component items of the second configuration data. The second configuration data may include different component items. Through the format integrity verification, it can be determined whether the format in the second configuration data is correct and whether all the data required for the operation of the operating device are included.

[0092] As for the identity verification method, the identity verification is used to verify the editing user of the second configuration data. After each configuration data is generated, it can only be edited or confirmed by the user corresponding to the configuration editing module, and other users have no authority to edit or confirm the configuration data. Therefore, after the configuration data is generated, a set of fingerprint data corresponding to the configuration editing module can be assigned to the configuration data, and the configuration data can be locked to prevent external personnel (such as hackers, etc.) from tampering with the data, and reduce the situation where part of the data in the configuration data is lost due to external personnel tampering with the data, thereby ensuring the consistency and security of the configuration data, and thus ensuring the normal operation of the configuration data.

[0093] For the keyword verification method, the keyword verification is used to verify the words in the second configuration data according to the preset words, wherein the preset words can be pre-set words that do not comply with relevant regulations or violate laws and regulations. Through keyword verification, the security of the configuration data is guaranteed.

[0094] For the pre-run verification method, the pre-run verification is a process of pre-running and verifying before the running device officially runs the second configuration data. By running in advance, it can be detected whether the second configuration data can be successfully run. For example, the second configuration data is the data corresponding to the workshop page. Through the pre-run verification, it can be determined whether the second configuration data can successfully render the workshop page. Among them, the pre-run verification can be implemented through existing JS detection, embedded point detection, automated scripts, etc., which improves the availability of configuration data.

[0095] In summary, when the second configuration data is verified by adopting different verification methods, the second configuration data is verified from different dimensions, thereby improving the security of the second configuration data and further ensuring the operation effect of the second configuration data.

[0096] Furthermore, regarding format integrity verification, the verification device is also used to:

[0097] Acquire items included in predefined configuration data, wherein the items include at least one of the following: page data, component data, state data, and attribute data, wherein the page data represents basic information of a page to be displayed, the component data represents basic information of a component included in the page to be displayed, the state data represents state information of a component included in the page to be displayed, and the attribute information represents custom description information of a component included in the page to be displayed;

[0098] If the items included in the second configuration data match the items included in the predefined configuration data, it is determined that the second configuration data passes the format integrity check.

[0099] Specifically, when performing format integrity check on the second configuration data, since the items included in different second configuration data may be different, the items included in the predefined configuration data may be obtained first, and then the items included in the second configuration data to be calibrated are matched with the items included in the predefined configuration data. If the match is successful, it is determined that the second configuration data passes the format integrity check. Among them, successful matching can be understood as the items included in the second configuration data to be calibrated are exactly the same as the items included in the predefined configuration data, or the items included in the second configuration data to be calibrated are included in the items included in the predefined configuration data. The specific rules can be customized according to the actual application scenario and are not limited in detail here.

[0100] In addition, the verification device is also used for:

[0101] If the second configuration data fails to be verified, it is determined that the verification type fails.

[0102] If the failed check type is a format integrity check, a format integrity check failure prompt is sent to the second storage device.

[0103] The second storage device is further used for: after receiving the format integrity check failure prompt, re-copying the first configuration data in the first storage device to obtain new second configuration data, and sending the new second configuration data to the checking device.

[0104] Specifically, when the second configuration data is verified, there may be a situation where the verification fails. When the second configuration data fails to be verified, the verification type of the failure can be determined first, and then the failure is processed accordingly.

[0105] Optionally, if the verification type that fails is the format integrity check, it indicates that data loss may have occurred in the transmission process of the second configuration data. Therefore, a format integrity check failure prompt can be sent to the second storage device. After receiving the format integrity check failure prompt, the second storage device re-copies the first configuration data in the first storage device to obtain new second configuration data, and sends the new second configuration data to the verification device for re-verification.

[0106] In addition, for other types that fail the verification, the verification can also be re-performed by re-copying the first configuration data, which will not be discussed in detail here.

[0107] In summary, by isolating the first configuration data from the second configuration data, when the verification fails, the first configuration data can be re-copied to obtain new second configuration data for verification, thereby improving the availability and reliability of the configuration data. In addition, by means of secondary verification, the loss of valid data is reduced and the integrity of the data is improved.

[0108] Figure 6 A structural diagram of a configuration data processing system provided for another embodiment of the present application. In this embodiment, it can be applied to the field of industrial production control (for example, it can be applied to the field of workshop-level production control in the manufacturing industry). In the process of industrial production control, it can be mainly divided into two parts. The first part is the production data collection process, and the second part is the visual display of the production process and equipment status, as well as the equipment control process. This embodiment can be mainly applied to the second part, and the configuration data can be the data corresponding to the workshop-level page. In addition, in the process of industrial production control, there are three main important indicators, namely safety, reliability and availability. In order to meet the above requirements, the present application provides a configuration data processing system, such as Figure 6 As shown, the processing system may include a configuration editing module, a first storage device, a second storage device, a verification device, and an operation device. The configuration editing module may be a third-party configuration editing application deployed in a hardware device. Developers may complete the development of the workshop-level page through the third-party configuration editing application, obtain the first configuration data corresponding to the workshop-level page, and then generate a data publishing instruction containing the first configuration data, and send it to the first storage device corresponding to the editing process through a transmission channel, wherein the editing process may be a sub-process in the business of displaying the workshop-level page. After receiving the publishing instruction, the first storage device may store the first configuration data contained in the publishing instruction, and assign a first target version number to the first configuration data, and then send a data copy prompt to the second storage device corresponding to the operation process. After receiving the copy prompt, the second storage device may copy the first configuration data, obtain the second configuration data, and store the second configuration data. Wherein, the operation process is a sub-process in the business of displaying the workshop-level page. In addition, the second storage device may also send the second configuration data to the verification device for verification, and after the verification device determines that the second configuration data meets the verification rule, send the second configuration data to the communication device, and the communication device may distribute the second configuration data to the corresponding operation device. After the running device obtains the new second configuration data, it can perform version comparison according to the second target version number contained in the second configuration data, and complete the update of the workshop-level page after determining the difference data. Among them, the first storage device and the second storage device can be collectively referred to as a splitting device. The first storage device and the second storage device can be media such as databases and files that can persist data.

[0109] In addition, when the communication device distributes the second configuration data to the operating device, it can be actively pushed through the long connection channel, or it can be actively requested by the operating device to the communication device.

[0110] In summary, this embodiment improves the reliability of configuration data by dividing the configuration data into first configuration data and second configuration data, and combines the data verification mechanism, thereby ensuring the high availability of the configuration business application process. In addition, this application converts the configuration data from stateless data to state-isolated data, and distinguishes the data in the running process from the data in the editing process in terms of definition, providing underlying support for the high availability of business operation.

[0111] Figure 7 Schematic diagram of the flow of the configuration data processing method provided in the embodiment of the present application, which can be applied to the second storage device, such as Figure 7 As shown, the method may include:

[0112] S701: Copy the first configuration data in the first storage device to obtain the second configuration data, wherein the first configuration data is used in the service editing process for the user to edit or confirm, and the second configuration data is used in the service operation process and is prohibited from being edited.

[0113] S702: Store the second configuration data so that the operating device can acquire and operate the second configuration data.

[0114] In this embodiment, the second storage device may determine new first configuration data from the first storage device at preset time intervals, and copy the new first configuration data to obtain the second configuration data. It may also determine new first configuration data from the first storage device upon receiving a new data prompt sent by the first storage device, and copy the new first configuration data to obtain the second configuration data.

[0115] In addition, there may be multiple operating devices. When the operating device obtains and runs the second configuration data, the second configuration data can be sent to the corresponding operating device according to the actual needs of the operating device, rather than all the operating devices, thereby improving the efficiency of publishing configuration data.

[0116] After adopting the above scheme, the first configuration data for user editing or confirmation can be separated from the second configuration data for direct operation and non-editable. This avoids the situation where the editing process and the operation process correspond to the same data. When problems occur in the data corresponding to either process, the normal operation of the other process will be directly affected. This improves the stability and security of the configuration data, and further ensures the normal operation of the business corresponding to the configuration data.

[0117] In addition, the first configuration data includes a first target version number, and the method may include: when determining that the first configuration data is newly added configuration data according to the first target version number, copying the first configuration data in the first storage device to obtain second configuration data, and storing the second configuration data.

[0118] In addition, the method may further include: upon receiving an abnormal prompt of the first storage device, suspending the action of copying the first configuration data.

[0119] In addition, the method may further include: after receiving the format integrity check failure prompt, re-copying the first configuration data to obtain new second configuration data, and sending the new second configuration data to the verification device. Wherein, the format integrity check failure prompt is sent when the second configuration data fails to pass the verification and it is determined that the failed verification type is the format integrity check.

[0120] In another embodiment, the present application provides another configuration data processing method, which can be applied to a first storage device, and the method may include:

[0121] Receive and store first configuration data so that the second storage device copies the first configuration data in the first storage device to obtain second configuration data, and store the second configuration data for the operating device to obtain and operate the second configuration data, wherein the first configuration data is data used in the business editing process for the user to edit or confirm, and the second configuration data is data used in the business operation process and is prohibited from being edited.

[0122] After adopting the above scheme, the first configuration data for user editing or confirmation can be separated from the second configuration data for direct operation and non-editable. This avoids the situation where the editing process and the operation process correspond to the same data. When problems occur in the data corresponding to either process, the normal operation of the other process will be directly affected. This improves the stability and security of the configuration data, and further ensures the normal operation of the business corresponding to the configuration data.

[0123] In addition, the method may further include:

[0124] Receive first configuration data sent by a third-party configuration editing application, wherein the first configuration data is generated by the third-party configuration editing application in response to a user's touch operation, wherein the touch operation includes a component dragging operation and an input operation.

[0125] The first configuration data is stored.

[0126] In another embodiment, the present application provides another configuration data processing method, which can be applied to a verification device, and the method may include:

[0127] The second configuration data is acquired from the second storage device, and verification processing is performed on the second configuration data. After the second configuration data passes the verification, the second configuration data is sent to the operation device.

[0128] In addition, the method may further include:

[0129] Perform at least one of the following processing on the second configuration data:

[0130] Format integrity check, identity check, keyword check and pre-run check.

[0131] Among them, the format integrity check is used to verify the constituent items of the second configuration data, the identity check is used to verify the editing user of the second configuration data, the keyword check is used to verify the words in the second configuration data according to preset words, and the pre-operation check is a process of pre-running and performing a check before the operating device officially runs the second configuration data.

[0132] In addition, the method may further include:

[0133] Obtain items included in predefined configuration data, wherein the items include at least one of the following: page data, component data, status data, and attribute data, wherein the page data represents basic information of a page to be displayed, the component data represents basic information of components included in the page to be displayed, the status data represents status information of components included in the page to be displayed, and the attribute information represents custom description information of components included in the page to be displayed.

[0134] If the items included in the second configuration data match the items included in the predefined configuration data, it is determined that the second configuration data passes the format integrity check.

[0135] In addition, the method may further include:

[0136] If the second configuration data fails verification, determining the verification type that fails;

[0137] If the type of verification that failed is a format integrity check, a format integrity check failure prompt is sent to the second storage device, so that after receiving the format integrity check failure prompt, the second storage device re-copies the first configuration data in the first storage device to obtain new second configuration data, and sends the new second configuration data to the verification device.

[0138] After adopting the above scheme, the first configuration data for user editing or confirmation can be separated from the second configuration data for direct operation and non-editable. This avoids the situation where the editing process and the operation process correspond to the same data. When problems occur in the data corresponding to either process, the normal operation of the other process will be directly affected. This improves the stability and security of the configuration data, and further ensures the normal operation of the business corresponding to the configuration data.

[0139] Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method.

[0140] An embodiment of the present application provides a configuration data processing device, which can be applied to a second storage device. The device may include:

[0141] The first processing module is used to copy the first configuration data in the first storage device to obtain the second configuration data, wherein the first configuration data is used in the business editing process for the user to edit or confirm the data, and the second configuration data is used in the business operation process and the editing is prohibited.

[0142] The storage module is used to store the second configuration data so that the operating device can acquire and operate the second configuration data.

[0143] In addition, the first configuration data includes a first target version number, and the first processing module is further used to: when it is determined according to the first target version number that the first configuration data is newly added configuration data, copy the first configuration data in the first storage device to obtain second configuration data, and store the second configuration data.

[0144] In addition, the first processing module is further configured to: suspend the action of copying the first configuration data when receiving an abnormal prompt of the first storage device.

[0145] In addition, the first processing module is also used to: after receiving the format integrity check failure prompt, re-copy the first configuration data to obtain new second configuration data, and send the new second configuration data to the verification device. The format integrity check failure prompt is sent when the second configuration data fails to pass the verification and it is determined that the failed verification type is the format integrity check.

[0146] In another embodiment, the present application provides another configuration data processing device, which can be applied to a first storage device, and the device may include:

[0147] A receiving module is used to receive and store first configuration data so that the second storage device copies the first configuration data in the first storage device to obtain second configuration data, and stores the second configuration data for the running device to obtain and run the second configuration data, wherein the first configuration data is data used in the business editing process for the user to edit or confirm, and the second configuration data is data used in the business running process and is prohibited from being edited.

[0148] After adopting the above scheme, the first configuration data for user editing or confirmation can be separated from the second configuration data for direct operation and non-editable. This avoids the situation where the editing process and the operation process correspond to the same data. When problems occur in the data corresponding to either process, the normal operation of the other process will be directly affected. This improves the stability and security of the configuration data, and further ensures the normal operation of the business corresponding to the configuration data.

[0149] In addition, the receiving module can also be used for:

[0150] Receive first configuration data sent by a third-party configuration editing application, wherein the first configuration data is generated by the third-party configuration editing application in response to a user's touch operation, wherein the touch operation includes a component dragging operation and an input operation.

[0151] The first configuration data is stored.

[0152] In another embodiment, the present application provides another configuration data processing device, which can be applied to a verification device, and the device may include:

[0153] The second processing module is used to obtain the second configuration data from the second storage device, perform verification processing on the second configuration data, and send the second configuration data to the operating device after the second configuration data passes the verification.

[0154] In addition, the second processing module is further used for:

[0155] Perform at least one of the following processing on the second configuration data:

[0156] Format integrity check, identity check, keyword check and pre-run check.

[0157] Among them, the format integrity check is used to verify the constituent items of the second configuration data, the identity check is used to verify the editing user of the second configuration data, the keyword check is used to verify the words in the second configuration data according to preset words, and the pre-operation check is a process of pre-running and performing a check before the operating device officially runs the second configuration data.

[0158] In addition, the second processing module is further used for:

[0159] Obtain items included in predefined configuration data, wherein the items include at least one of the following: page data, component data, status data, and attribute data, wherein the page data represents basic information of a page to be displayed, the component data represents basic information of components included in the page to be displayed, the status data represents status information of components included in the page to be displayed, and the attribute information represents custom description information of components included in the page to be displayed.

[0160] If the items included in the second configuration data match the items included in the predefined configuration data, it is determined that the second configuration data passes the format integrity check.

[0161] In addition, the second processing module is further used for:

[0162] If the second configuration data fails to be verified, it is determined that the verification type fails.

[0163] If the type of verification that failed is a format integrity check, a format integrity check failure prompt is sent to the second storage device, so that after receiving the format integrity check failure prompt, the second storage device re-copies the first configuration data in the first storage device to obtain new second configuration data, and sends the new second configuration data to the verification device.

[0164] The device provided in the embodiment of the present application can implement the method of the above embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0165] Figure 8 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the device 800 provided in this embodiment includes: a processor 801 and a memory connected to the processor in communication. The processor 801 and the memory 802 are connected via a bus 803 .

[0166] In a specific implementation process, the processor 801 executes the computer execution instructions stored in the memory 802, so that the processor 801 executes the method in the above method embodiment.

[0167] The specific implementation process of the processor 801 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0168] In the above Figure 8In the illustrated embodiment, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0169] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk storage.

[0170] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0171] The embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the configuration data processing method of the above method embodiment is implemented.

[0172] An embodiment of the present application further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the configuration data processing method as described above is implemented.

[0173] The computer-readable storage medium mentioned above can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0174] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0175] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0176] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A configuration data processing system, characterized in that: include: a first storage device and a second storage device, The first storage device is used to: receive and store first configuration data, wherein the first configuration data is data used in a service editing process for a user to edit or confirm; The second storage device is used to: copy the first configuration data in the first storage device to obtain second configuration data, wherein the second configuration data is data used in the service operation process and is prohibited from being edited; store the second configuration data so that the operation device can obtain and operate the second configuration data; The system further comprises a verification device, The verification device is used to: obtain the second configuration data from the second storage device, perform verification processing on the second configuration data, and send the second configuration data to the operation device after the second configuration data passes the verification; Among them, the configuration data includes items, and the items include at least one of the following: page data, component data, status data and attribute data, wherein the page data represents basic information of the page to be displayed, the component data represents basic information of the components contained in the page to be displayed, the status data represents status information of the components contained in the page to be displayed, and the attribute data represents custom description information of the components contained in the page to be displayed.

2. The system according to claim 1, characterized in that The first configuration data includes a first target version number, The second storage device is further used for: when it is determined according to the first target version number that the first configuration data is newly added configuration data, copying the first configuration data in the first storage device to obtain second configuration data, and storing the second configuration data.

3. The system according to claim 1, characterized in that The first storage device is further configured to: when the first storage device is in an abnormal state, send a first storage device abnormality prompt to the second storage device; The second storage device is further configured to: suspend the action of copying the first configuration data when receiving an abnormal prompt of the first storage device.

4. The system according to any one of claims 1 to 3, characterized in that: The verification device is also used for: Perform at least one of the following processing on the second configuration data: Format integrity check, identity check, keyword check and pre-run check; Among them, the format integrity check is used to verify the constituent items of the second configuration data, the identity check is used to verify the editing user of the second configuration data, the keyword check is used to verify the words in the second configuration data according to preset words, and the pre-operation check is a process of pre-running and performing a check before the operating device officially runs the second configuration data.

5. The system according to claim 4, characterized in that The verification device is also used for: Get the items contained in the predefined configuration data; If the items included in the second configuration data match the items included in the predefined configuration data, it is determined that the second configuration data passes the format integrity check.

6. The system according to claim 4, characterized in that The verification device is also used for: If the second configuration data fails verification, determining the verification type that fails; If the failed check type is a format integrity check, sending a format integrity check failure prompt to the second storage device; The second storage device is further used for: after receiving the format integrity check failure prompt, re-copying the first configuration data in the first storage device to obtain new second configuration data, and sending the new second configuration data to the checking device.

7. The system according to any one of claims 1 to 3, characterized in that: The first storage device is also used for: Receiving first configuration data sent by a third-party configuration editing application, wherein the first configuration data is formed by the third-party configuration editing application in response to a user's touch operation, wherein the touch operation includes a component dragging operation and an input operation; The first configuration data is stored.

8. A configuration data processing method, characterized in that: Applied to a second storage device, comprising: Copying the first configuration data in the first storage device to obtain the second configuration data, wherein the first configuration data is data used in the service editing process for the user to edit or confirm, and the second configuration data is data used in the service running process and is prohibited from being edited; The second configuration data is stored so that the operating device can obtain and operate the second configuration data; wherein, before the operating device operates the second configuration data, the second configuration data is verified by the verification device, and after passing the verification, the second configuration data is sent to the operating device; Among them, the configuration data includes items, and the items include at least one of the following: page data, component data, status data and attribute data, wherein the page data represents basic information of the page to be displayed, the component data represents basic information of the components contained in the page to be displayed, the status data represents status information of the components contained in the page to be displayed, and the attribute data represents custom description information of the components contained in the page to be displayed.

9. A configuration data processing method, characterized in that: Applied to a first storage device, comprising: Receive and store first configuration data, so that a second storage device copies the first configuration data in the first storage device to obtain second configuration data, and store the second configuration data for the operation device to obtain and operate the second configuration data, wherein the first configuration data is data used in the service editing process for the user to edit or confirm, and the second configuration data is data used in the service operation process and is prohibited from being edited; wherein before the operation device operates the second configuration data, the second configuration data is verified by a verification device, and after passing the verification, it is sent to the operation device; Among them, the configuration data includes items, and the items include at least one of the following: page data, component data, status data and attribute data, wherein the page data represents basic information of the page to be displayed, the component data represents basic information of the components contained in the page to be displayed, the status data represents status information of the components contained in the page to be displayed, and the attribute data represents custom description information of the components contained in the page to be displayed.

10. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the configuration data processing method according to claim 8 or 9.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executable instructions, the configuration data processing method according to claim 8 or 9 is implemented.

12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the configuration data processing method according to claim 8 or 9 is implemented.

Citation Information

Patent Citations

  • Process monitoring method for database system and comprehensive monitoring system for rail transit

    CN108710544A

  • Integrated monitoring man-machine interface configuration implementation method for integrated data generation and verification

    CN109491735A