Process data access method and system for virtual SVDU
By adopting differential storage method in virtual SVDUs, the logical information data is stored using two storage cycles, the problem of excessive hardware resource demand caused by the large amount of data in the virtual SVDU process is solved, and the application of supporting virtual SVDU on micro low-power hosts is realized, and the response speed and fidelity of the simulation function are improved.
Patent Information
- Application Number
- CN202311866950.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2043-12-28
AI Technical Summary
The process data volume of virtual SVDU has led to a sharp increase in the demand for hard disk memory capacity, and the increase in CPU load and frequent access operations of hard disks, limiting the application of micro low-power hosts on virtual SVDUs.
The logical information data in the virtual SVDU is stored using two storage cycles. The first storage cycle T1 is used to store differential data and the second storage cycle T2 is used to store the entire data. This differential storage method significantly reduces the amount of access to the process data.
The virtual SVDU demand for computer hardware resources is reduced, so that the micro low-power host can support the simulation and training functions of the virtual SVDU, improve task response speed and ensure the realistic level of the simulation functions.
Smart Images

Figure CN118092790B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a process data access method and system for a virtual SVDU. Background Art
[0002] The safety video display unit (SVDU) is a human-computer interaction device that is compatible with the safety-level distributed control system (DCS). Usually, in the field of nuclear power, nuclear power plants are equipped with simulators to simulate the safety-level DCS for personnel training and operation assessment. The virtual SVDU simulates the behavior, data, logic, and human-computer interaction experience of the SVDU.
[0003] The industry generally uses conventional commercial personal computers to simulate the logical behavior of SVDU. This method has the following shortcomings:
[0004] 1) Conventional commercial personal computers are not exactly the same as SVDUs in appearance and human-computer experience;
[0005] 2) The installation method of conventional commercial personal computers is different from that of SVDUs;
[0006] 3) Conventional commercial personal computers are bulky, have low integration, and low CPU and hard disk utilization.
[0007] The core constraint of the above shortcomings is that the amount of process data supporting the simulation and training functions of the virtual SVDU is very large, which leads to a sharp increase in the demand for hard disk storage capacity. The resulting CPU load, frequent hard disk access operations, heat dissipation and other factors also make it necessary to use a larger commercial personal computer to meet the actual needs of the virtual SVDU.
[0008] With favorable conditions such as the improvement of solid-state storage particle integration, the reduction of CPU power consumption, and the miniaturization of power supplies, some micro low-power hosts have emerged, which can solve the problems of bulky size and low integration of conventional commercial personal computers. However, the process data volume of virtual SVDU is large and cannot be applied to miniaturized low-power hosts, which seriously restricts the application of micro low-power hosts in virtual SVDU. Summary of the invention
[0009] The purpose of the present invention is to reduce the amount of process storage data in the operation of the virtual SVDU, reduce the demand for hard disk storage, and solve the problem that the amount of process data supporting the virtual SVDU simulation and training functions in the prior art is very large, making it impossible to apply a miniaturized low-power host.
[0010] The present invention is achieved through the following technical solutions:
[0011] On the one hand, the present invention provides a process data access method for a virtual SVDU, which uses two storage cycles to store logical information data in the virtual SVDU, and the two storage cycles are respectively a first storage cycle T1 and a second storage cycle T2, and each second storage cycle T2 includes multiple first storage cycles T1; in each second storage cycle T2, only one first storage cycle T1 is selected to store the logical information data once as basic data, and only logical information differential data is stored in the remaining first storage cycles T1; the logical information differential data is the change data obtained by comparing the logical information data at the current moment with the latest stored basic data, and the logical information differential data can also be the change data obtained by comparing the logical information data at the current moment with the logical information data of the previous first storage cycle T1.
[0012] Considering that in the process data volume of the virtual SVDU, the logical information data is the full amount of data for restoring the operating status of the entire virtual SVDU, which has strong real-time performance and requires that it can be restored at each backtracking interval, but its data volume is the largest and occupies a large space. If it is collected and stored in units of the minimum backtracking time, it will occupy too many resources. In this scheme, according to the characteristics of the logical information data and the comprehensive consideration of the backtracking requirements, the collection of the logical information data is still collected in the minimum backtracking time period, but the storage method is changed to a differential storage method, that is, a data block storage period T2 is set, and the full amount of logical information data is only stored once in T2. In each T1 period in the middle, only the real-time variable data is compared with the basic data, and only the changed data is recorded. This storage method can greatly reduce the process data access volume of the virtual SVDU, thereby reducing the virtual SVDU's demand for computer hardware resources, making it possible to use a micro low-power host for the virtual SVDU.
[0013] In some embodiments, as a further improvement of the present solution, the process data access method for a virtual SVDU specifically includes the following steps:
[0014] Data classification step: classifying the process data in the virtual SVDU into at least human-machine input data, screen data, and logic information data, each type of process data has a corresponding storage period, and the logic information data has two storage periods, namely a first storage period T1 and a second storage period T2;
[0015] Data storage step: in each second storage cycle T2, only one first storage cycle T1 is selected to perform full data storage on the logic information data as basic data, and only logic information differential data is stored in the remaining first storage cycles T1;
[0016] According to the corresponding storage cycle, human-machine input data and screen data are collected and stored.
[0017] In some embodiments, as another improvement of this solution, the human-machine input data in the above process data access method for the virtual SVDU includes the touch screen input value and the physical button input value; the screen data includes the page ID, the control ID, the function ID, and the function parameters; the logical information data is used to reflect the associated logical information, and the associated logical information includes the associated logical information between the controls of the virtual SVDU, between the pages, and the background cycle count.
[0018] In this solution, the process data in the virtual SVDU is further divided into three categories: human-machine input data, screen data, and logical information data, and different collection and storage cycles are set for different types of data, so that on the basis of the above differential storage of the process data, the storage of the screen data is also optimized, and the storage amount of the process data is further reduced.
[0019] In some embodiments, as another improvement of this solution, in the data storage step, at the beginning of each second storage cycle T2, a full data storage of the logical information data is performed as the basic data, and only the logical information differential data is stored in each subsequent first storage cycle T1 until the next second storage cycle T2 starts. In this way, at the end of each second storage cycle T2, immediately enter the next second storage cycle T2, and at this time, immediately perform a full data storage of the logical information data as the basic data, and only the logical information differential data needs to be calculated and stored according to the first storage cycle T1 subsequently.
[0020] Preferably, T2 is an integer multiple of T1, T1 = Tmin, and Tmin is the minimum backtracking time required by the virtual SVDU. In this way, within a second storage cycle T2, the first first storage cycle T1 stores the full data of the logical information data as the basic data, and the remaining T2 / T1 - 1 first storage cycles T1 only calculate and store the logical information differential data.
[0021] Preferably, the storage cycle of the human-machine input data is T3, the storage cycle of the screen data is T4, T3 < T4 < T2, and T3 = T0, where T0 is the fixed cycle of the virtual SVDU operation; T4 = Tmin, and Tmin is the minimum backtracking time.
[0022] In some embodiments, as yet another improvement of this solution, after the virtual SVDU simulation starts running, the virtual SVDU kernel starts to run periodically with a fixed cycle T0; the data storage step includes:
[0023] Step 1: Starting from the fixed cycle T0, the virtual SVDU executes the processing process;
[0024] Step 2: After the fixed period T0 ends, determine whether the current simulation mode is the replay mode and the scene operation. If it is the replay mode or the scene operation, jump to step 1, otherwise perform data collection and storage, and the data collection and storage includes the following steps:
[0025] Step S21, read the human-machine input data and the current page number and store them; determine whether the simulation time is an integer multiple of Tmin, if yes, jump to step S22, otherwise jump to step 1, Tmin is the minimum backtracking time, T1 = Tmin;
[0026] Step S22, reading the picture data and logic information data and sending them to the data storage module;
[0027] Step S23, the data storage module stores the screen data, and determines whether the simulation time is an integer multiple of T2, if not, jumps to step S24; if it is an integer multiple, saves the full data of the logic information data as the basic data and jumps to step 1, otherwise jumps to step S24, enters the next second storage cycle T2, and the full data is stored in the data block of the next second storage cycle T2 as the basic data of the data block, so that the first T1 of each second storage cycle T2 is the full data of the logic information data, which is convenient for recording and storing differential data in each subsequent T1;
[0028] Step S24, calculate the logic information differential data and save it, jump to step 1; the logic information differential data calculation method is to calculate the logic information data at the current moment and the basic data change data or calculate the logic information data at the current moment and the change data of the logic information data of the previous first storage cycle T1, and the calculated change data is the logic information differential data.
[0029] Furthermore, step one also includes: at the beginning of the fixed cycle T0, determine whether the current simulation mode needs to load the working condition or scene operation. If so, send the working condition data or scene data to be loaded to the SVDU kernel, initialize the kernel data of the current cycle, and then run the kernel execution processing process; if not, the kernel runs the processing process directly.
[0030] In some embodiments, as another improvement of the present solution, the process data access method for the virtual SVDU further includes a reverse deduction and replay operation step, which includes the following steps S1-S4:
[0031] S1, obtain the target simulation time;
[0032] S2, reading a corresponding data block from a storage device according to the target simulation time, wherein the data block includes basic data in the second storage period T2 of the target simulation time, logic information differential data corresponding to each first storage period T1, and human-machine input data and screen data collected in the second storage period T2 of the target simulation time;
[0033] S3, calculating the full data of the logic information data corresponding to each first storage period T1 within the second storage period T2 corresponding to the target simulation time according to the basic data in step S2 and the logic information differential data corresponding to each first storage period T1;
[0034] S4. Replay the historical operation data based on the full data of the logic information data corresponding to each first storage cycle T1 calculated in step S3 and the human-machine input data and screen data read in step S2.
[0035] Another object of the present invention is to provide a process data access system for a virtual SVDU, comprising:
[0036] A data acquisition module, used for reading process data of the virtual SVDU and sending it to the data storage module, wherein the process data includes logic information data;
[0037] A data storage module, used for storing process data of the virtual SVDU;
[0038] The data storage module uses two storage cycles to store logical information data, the two storage cycles are respectively a first storage cycle T1 and a second storage cycle T2, each second storage cycle T2 includes a plurality of first storage cycles T1;
[0039] The data acquisition module acquires logic information data in each first storage period T1 and sends it to the data storage module;
[0040] The data storage module selects only one first storage cycle T1 to perform full data storage on the logic information data as basic data in each second storage cycle T2, and calculates and stores logic information differential data in the remaining first storage cycles T1;
[0041] The logic information differential data is the change data obtained by comparing the logic information data at the current moment with the latest stored basic data, and the logic information differential data can also be the change data obtained by comparing the logic information data at the current moment with the logic information data of the previous first storage cycle T1.
[0042] Furthermore, the process data in the virtual SVDU includes human-machine input data, screen data, and logic information data;
[0043] The human-machine input data includes the touch screen input value and the physical key input value, and its storage period is T3;
[0044] The screen data includes page ID, control ID, function ID, function parameter, and its storage period is T4;
[0045] The logic information data is used to reflect the associated logic information, and the associated logic information includes the associated logic information between controls and controls, between pages and pages, and background cycle counts of the virtual SVDU, which has two storage cycles, namely a first storage cycle T1 and a second storage cycle T2;
[0046] The data acquisition module collects human-machine input data every T3 time and sends it to the data storage module, collects screen data every T4 time and sends it to the data storage module; collects associated logic information every T1 time and sends it to the data storage module;
[0047] The data storage module stores logic information data once every T2 time, calculates and stores logic information differential data once every T1 time; stores human-machine input data once every T3 time; and stores screen data once every T4 time.
[0048] Another object of the present invention is to provide a computer device and a computer-readable storage medium.
[0049] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the process data access method for a virtual SVDU in any of the above schemes is implemented.
[0050] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the process data access method for a virtual SVDU in any of the above solutions is implemented.
[0051] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0052] 1. The present invention greatly reduces the amount of process storage data in the operation of the virtual SVDU, reduces the demand of the virtual SVDU for computer hardware resources, so that the demand can be met on a general micro low-power host without the need for a dedicated server, and supports the application of micro low-power hosts on virtual SVDU;
[0053] 2. The present invention improves the task response speed of the virtual SVDU. Through the method of differential storage and reverse deduction, the virtual SVDU can quickly implement data access, ensuring that the virtual SVDU and the real SVDU have the same fixed task cycle execution characteristics, ensuring the fidelity of the virtual SVDU simulation function to the real SVDU function. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work. In addition, ordinary technicians in this field should understand that the illustrations provided here are for illustrative purposes and are not necessarily drawn to scale. In the drawings:
[0055] Figure 1 This is a schematic diagram of partition storage of three types of process data in a data block in Example 3;
[0056] Figure 2 This is a process data access flow chart of the virtual SVDU in Example 3;
[0057] Figure 3 This is the process for resynthesizing the differential data in Example 4. DETAILED DESCRIPTION
[0058] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments and drawings. The exemplary embodiments of the present invention and their description are only used to explain the present invention and are not intended to limit the present invention.
[0059] In the following description, a large number of specific details are set forth in order to provide a thorough understanding of the present invention. However, it is apparent to one of ordinary skill in the art that these specific details do not have to be employed to implement the present invention. In other embodiments, in order to avoid obscuring the present invention, well-known structures, circuits, materials, or methods are not specifically described.
[0060] Throughout the specification, references to "one embodiment," "an embodiment," "an example," or "an example" mean that a particular feature, structure, or characteristic described in conjunction with the embodiment or example is included in at least one embodiment of the present invention. Therefore, the phrases "one embodiment," "an embodiment," "an example," or "an example" appearing in various places throughout the specification do not necessarily all refer to the same embodiment or example. In addition, particular features, structures, or characteristics may be combined in one or more embodiments or examples in any suitable combination and / or subcombination. As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items.
[0061] The terms "first" and "second" used in the present invention are only used to distinguish the corresponding components for the sake of clarity of description, and are not intended to limit any order or emphasize importance, etc. In addition, the term "connected" used in this article can be directly connected or indirectly connected via other components without special explanation.
[0062] The present invention is applicable to the field of nuclear power. Nuclear power plants generally use conventional commercial personal computers to implement the logic behavior simulation of SVDU, which is called virtual SVDU. The process data of virtual SVDU is important data to support its simulation and training functions, but the amount of process data is large, which requires a large hard disk storage capacity, and also has high requirements for CPU load, frequent hard disk access operations, heat dissipation, etc. The inventor of the present application found that the conventional commercial personal computers used in the prior art to implement the logic behavior simulation of SVDU have the following shortcomings:
[0063] 1) Conventional commercial personal computers are not exactly the same as SVDUs in appearance and human-computer experience;
[0064] 2) The installation method of conventional commercial personal computers is different from that of SVDUs;
[0065] 3) Conventional commercial personal computers are bulky, have low integration, and low CPU and hard disk utilization.
[0066] With the favorable conditions such as the improvement of the integration of solid-state storage particles, the reduction of CPU power consumption, and the miniaturization of power supplies, some miniature low-power hosts have come into being. If the virtual SVDU process data can be stored in a simplified manner and the demand for hard disk storage can be reduced, these miniaturized low-power hosts can be combined with existing SVDU structural parts, external devices, and displays to form a virtual SVDU, so that the virtual SVDU and the SVDU have exactly the same appearance, installation method, and human-computer interaction experience. Therefore, the inventor of the present application proposes a process data access method used in the virtualization process of SVDU equipment, which is a data differential storage method for a virtualized nuclear power safety display unit.
[0067] To better illustrate the content of the present invention, the definitions of the terms in the present invention are as follows:
[0068] 1) SVDU: Security Level Display Unit;
[0069] 2) Virtual SVDU: A security-level display unit simulation device based on general computer technology;
[0070] 3) Backtracking list: a memory space that automatically stores the virtual SVDU operation process data at a fixed period;
[0071] 4) Process data: a collection of data information generated during the operation of the virtual SVDU;
[0072] 5) Panoramic data: process data sampling value, through which the state of the virtual SVDU at a certain time can be fully restored;
[0073] 6) Scenario file: backup of some or all valid data in the backtracking list in hard disk space;
[0074] 7) Replay operation: A mode of operation of the virtual SVDU, which can start from the panoramic data of a specified time in the backtracking list or scene file, and completely reproduce the human-computer interaction behavior and data transmission behavior executed in the past;
[0075] 8) Human-machine input: Human-machine input devices common to SVDU and virtual SVDU, including touch screen input and physical key input;
[0076] 9) Screen data: data representing the current screen information displayed by the SVDU or virtual SVDU, including page ID, control ID, function ID, function parameters, etc.
[0077] 10) Local variable: the carrier of information transmission within SVDU or virtual SVDU.
[0078] [Example 1]
[0079] The process data access method for a virtual SVDU includes a data classification step and a data storage step.
[0080] Data classification step: Classify the process data in the virtual SVDU, and at least classify it into human-machine input data, screen data, and logical information data. The human-machine input data includes the input values of the touch screen and the input values of the physical buttons, and its storage period is T3; the screen data includes page ID, control ID, Fun ID, and Fun parameters, and its storage period is T4; the logical information data is used to reflect the associated logical information, and the associated logical information includes the associated logical information between the controls of the virtual SVDU, between pages, and the background cycle count. It has two storage periods, namely the first storage period T1 and the second storage period T2. T2 is greater than T1, and T2 is an integer multiple of T1; T3 < T4 < T2, and T3 is equal to the fixed period T0 of the virtual SVDU; T1 is an integer multiple of T0; T1 = T4 = Tmin, and Tmin is the minimum backtracking time required for the virtual SVDU simulation;
[0081] Data storage step: In each second storage period T2, only select to perform a full data storage of the logical information data once in a first storage period T1 as the basic data, and only store the logical information differential data in the remaining first storage periods T1; specifically, at the beginning of the second storage period T2, perform a full data storage of the logical information data; start timing during the full data storage, and only store the logical information differential data at the end of each subsequent first storage period T1 until the start of the next second storage period T2; collect and store the human-machine input data according to the storage period T3; collect and store the screen data according to the storage period T4.
[0082] In this embodiment, the above full data refers to all logical information data at the corresponding moment, and the above logical information differential data is the change data obtained by comparing the logical information data at the current moment with the latest stored basic data (that is, the basic data stored at the start of the current T2). In other embodiments, the logical information differential data may also be the change data obtained by comparing the logical information data at the current moment with the logical information data of the previous first storage period T1. No matter which calculation method is used for the logical information differential data, as long as differential storage is achieved, there is no need to store the full data.
[0083] After the virtual SVDU simulation starts and runs, the virtual SVDU kernel starts to run in a cycle with a fixed period T0; the above data storage step includes:
[0084] Step 1: At the start of the fixed period T0, determine whether the current simulation mode needs to load the working condition or run the scenario. If so, send the working condition data or scenario data that needs to be loaded to the SVDU kernel, initialize the kernel data of the current cycle, and then run the kernel to execute the processing process; if not, directly run the processing process by the kernel, and the virtual SVDU executes the processing process;
[0085] Step 2: After the fixed period T0 ends, determine whether the current simulation mode is replay mode and scene operation. If it is replay mode or scene operation, there is no need to record kernel data, and jump directly to step 1. Otherwise, data collection and storage are performed. The data collection and storage includes the following steps:
[0086] Step S21, read the human-machine input data and the current page number and store them; determine whether the simulation time is an integer multiple of Tmin, if yes, jump to step S22, otherwise jump to step 1;
[0087] Step S22, reading the picture data and logic information data and sending them to the data storage module;
[0088] Step S23, the data storage module stores the screen data, and determines whether the simulation time is an integer multiple of T2, if not, jumps to step S24; if it is an integer multiple, saves the full data of the logic information data and jumps to step 1, otherwise jumps to step S24, enters the next second storage cycle T2, and the full data is stored in the data block of the next second storage cycle T2 as the basic data of the data block, so that the first T1 of each second storage cycle T2 is the full data of the logic information data, which is convenient for recording and storing differential data in each subsequent T1;
[0089] Step S24, calculate the logic information differential data and save it, and jump to step 1. In this step, the logic information differential data calculation method is to calculate the logic information data at the current moment and the basic data change data or to calculate the logic information data at the current moment and the change data of the logic information data of the previous first storage cycle T1. In one embodiment, the calculation method of the logic information differential data should be unified, for example, the calculation of the logic information data at the current moment and the basic data change data is adopted. In another embodiment, the change data of the logic information data at the current moment and the logic information data of the previous first storage cycle T1 is adopted.
[0090] The Fun in the Fun ID and Fun parameters above represents a function. In this embodiment, C language is used, so the function is generally called Fun. If other programming languages are used, they can be adaptively adjusted to function functions corresponding to other languages.
[0091] The present embodiment provides a process data differential storage method for a virtual SVDU. The method changes the original storage method of collecting and storing all data in a fixed period T0, and instead classifies the process data, increases the storage interval of the screen data and the logic information data, and differentially stores the logic information data. The specific method of differential storage is that in each second storage period T2, only one first storage period T1 is selected to store the logic information data in full as basic data, and only the logic information differential data is stored in the remaining first storage periods T1. This method greatly reduces the amount of process storage data during the operation of the virtual SVDU and improves the dynamic response time.
[0092] In this embodiment, the logic information differential data is obtained by calculating the change data between the logic information data at the current moment and the logic information data of the previous first storage cycle T1, and specifically adopting the differential method. In this embodiment, the first-order difference is adopted. In the first-order difference, it is assumed that the variable y depends on the independent variable t. When t changes to t+1, the change amount D of the dependent variable y=y(t) y(t) =y(t+1)-y(t) is the (first order) difference of function y(t) at point t with a step size of 1. In this embodiment, the full data of the logic information is regarded as the dependent variable, and its step size is T0, and the difference calculated in this way is the logic information differential data.
[0093] This embodiment uses first-order differences to make the calculation of restored data simpler while ensuring space saving. In other embodiments, higher-order differences may also be used, which will save more space, but at the same time make the calculation of restored data more difficult.
[0094] In other embodiments, the logic information differential data may be obtained by calculating the logic information data at the current moment and the change data of the basic data. In this implementation, it is only necessary to compare the logic information data at the current moment with the basic data.
[0095] [Example 2]
[0096] On the basis of Embodiment 1, the process data access method for virtual SVDU in this embodiment further includes a reverse deduction and replay operation step, which is specifically:
[0097] S1, obtain the target simulation time;
[0098] S2, reading a corresponding data block from a storage device according to the target simulation time, wherein the data block includes basic data in the second storage period T2 of the target simulation time, logic information differential data corresponding to each first storage period T1, and human-machine input data and screen data collected in the second storage period T2 of the target simulation time;
[0099] S3, calculating the full data of the logic information data corresponding to each first storage period T1 within the second storage period T2 corresponding to the target simulation time according to the basic data in step S2 and the logic information differential data corresponding to each first storage period T1;
[0100] S4. Replay the historical operation data based on the full data of the logic information data corresponding to each first storage cycle T1 calculated in step S3 and the human-machine input data and screen data read in step S2.
[0101] In this embodiment, by reverse deduction and replay operation steps, the differentially stored data is restored to the available original data, and the replay operation is truly performed. This method will greatly reduce the amount of process storage data in the operation of the virtual SVDU and improve the dynamic response time, so that ordinary micro low-power hosts can also support simulation and training needs, ensuring that the SVDU and the virtual SVDU have exactly the same appearance, installation method, and human-computer interaction experience.
[0102] [Example 3]
[0103] In this embodiment, according to the characteristics of the SVDU product, a process data access method of the virtual SVDU is designed specifically, so that an ordinary micro low-power host can also support simulation and training needs, ensuring that the SVDU and the virtual SVDU have exactly the same appearance, installation method, and human-computer interaction experience.
[0104] A process data differential storage method for a virtual SVDU in this embodiment includes a process data classification step, a storage interval determination step, and a data storage step.
[0105] The data classification step classifies the various process data in the SVDU according to periodic update frequency, function, and data capacity, and correspondingly, in a data block, partitions and stores them in the human-machine input global variable area, the screen data global variable area, and the global variable area for logical information transmission.
[0106] The storage interval determination step is to determine the storage time intervals of different process data according to the categories classified by the process data classification method and in combination with the actual functional requirements of the virtual SVDU.
[0107] The data storage step realizes differential storage of different process data.
[0108] The following is a detailed description of each of the above steps:
[0109] 1. Data Classification
[0110] As a human-computer interaction device for simulation, the virtual SVDU provides functions based on a certain screen. On different screens, the same human-computer input may have different functions. The virtual SVDU receives the user's human-computer input and implements human-computer interaction functions such as screen switching and screen display. The virtual SVDU adopts a fixed cycle operation, and its cycle time is T0.
[0111] Based on the above analysis, the virtual SVDU process data can be divided into three categories: human-machine input data (hereinafter referred to as "data I"), screen data (hereinafter referred to as "data P"), and logical information data (hereinafter referred to as "data L"). The virtual SVDU process data is stored in a certain period. The data of the certain period constitutes a data block, which contains the above three types of data. The three types of data are stored in the data block in partitions, as follows:
[0112] 1) Human-machine input global variable area
[0113] The human-machine input variable area is used to store asynchronous input values of touch screen and physical key input. Among them, the touch screen data includes 10 x coordinate data and 10 y coordinate data, each x or y coordinate occupies 2Byte storage space, a total of 20Byte; the physical key input consists of 16 mechanical keys, each mechanical key occupies 1bit data, a total of 2Byte.
[0114] 2) Screen data global variable area
[0115] When the virtual SVDU is running, human-computer interaction is always realized based on a certain picture. The picture data global variable area is used to store picture data, and the stored picture data includes multiple picture data. Single picture data consists of page ID, control ID, FunID, Fun parameters and other information, occupying 80KB of storage space.
[0116] 3) Global variable area for logical information transmission
[0117] The global variable area for logic information transmission stores the associated logic information between virtual SVDU controls, pages, background cycle counts, etc., namely, logic information data. The maximum storage space it occupies is 4MB.
[0118] (II) Determination of storage interval
[0119] In this embodiment, it includes determining the storage intervals of the three types of data (i.e., the storage periods T1-T4 of the three types of data) and / or determining the differential rate factors of different process data. This step mainly determines the storage time intervals of different process data according to the classification of the data classification step of the process data and in combination with the actual functional requirements of the virtual SVDU.
[0120] When accessing process data for virtual SVDU, it is necessary to determine the differential rate factor and storage interval according to data classification to ensure that data storage does not affect data recovery and can effectively reduce the storage space occupied by data. Virtual SVDU has typical fixed cycle characteristics during execution, and its basic fixed cycle time is set to T0. Determine the differential rate factor and storage interval of the human-machine input global variable area, the screen data global variable area, and the global variable area for logical information transmission according to the following method:
[0121] 1) Human-machine input global variable area
[0122] Human-machine input has typical asynchronous characteristics and is the most important source of input information for virtual SVDU. It directly determines the specific content of human-machine interaction. Its differential factor is determined to be 1, that is, differential storage is not adopted. The human-machine input global variable area will be stored at a time interval of T0. The storage time interval of the human-machine input global variable area is T0, which can ensure the complete recording of human-machine input data during the operation of virtual SVDU. Therefore, the storage period of human-machine input data is T3 = T0.
[0123] 2) Screen-related global variables
[0124] The picture data is the most critical starting data in the virtual SVDU replay process, and constitutes the most intuitive content for users. The granularity of picture data storage is related to the backtracking time interval of periodic storage. In order to ensure that the picture data can still be reversed under the minimum backtracking time Tmin (in this embodiment, Tmin is 1 minute), the picture-related global variable data of the virtual SVDU will be stored at a time interval of 1 minute, that is, the differential rate factor is Tmin / T0, and in this embodiment, the differential rate factor is 1 minute / T0. Therefore, the storage period of the picture data T4=Tmin.
[0125] 3) Global variable area for logical information transmission
[0126] The global variable area for logical information transfer, as the full data for restoring the entire virtual SVDU operating state, has strong real-time requirements, and it is required that it can be restored at each backtracking interval. However, the entire global variable area occupies a large amount of space. If it is collected in units of the minimum backtracking time Tmin, it will consume too much resources. According to the characteristics of the global variable area for logical information transfer, considering the requirements of up to 100 scenario files of the virtual SVDU, each with a duration of 50 hours, the second storage period T2 is determined. In this embodiment, the second storage period T2 is determined to be 15 minutes; its differential rate factor is 15 minutes / T0, and the basic data is refreshed once every 15 minutes. In the middle, the real-time variable data is compared with the basic variable data every minute, and only the changed data is recorded. Thus, the first storage period T1 = the minimum backtracking time Tmin (1 minute in this embodiment), and in this embodiment, T1 is an integer multiple of T0; T2 is an integer multiple of T0.
[0127] In this embodiment, the time determination criterion for the second storage period T2 is as follows:
[0128] Assume that storing a full amount of data occupies A MB of disk, and storing a differential data occupies B MB of disk. The total disk capacity designed for the virtual SVDU is C MB, and there is a design requirement that the disk occupancy of its scenario files cannot exceed 60% of the total capacity. Tmin is an integer multiple of 1 minute. Then, according to the maximum design capacity: The virtual SVDU supports storing up to 100 scenario files, and the maximum storage duration of each scenario file is 50 hours. The total duration can be calculated: 100 scenario files * 50 hours * 60 = D minutes;
[0129] According to the storage space constraint: (X + 1)*A + (Y - X)*B < C * 60%; in the above formula, X is the floor value of D / T2, and Y is the floor value of D / T1. Taking the C language floor() function as an example, it can be expressed as, (floor(D / T2) + 1)*A + (floor(D / T1) - floor(D / T2))*B < C * 60%; the floor() function is a floor function;
[0130] According to the time constraint: When restoring data, the time consumed for restoring data cannot affect the execution of periodic tasks, generally defined as the time consumption being less than 1% of the period, that is, less than 1% of T0;
[0131] Assume that the time consumed for a differential restoration is N milliseconds, then N*(T2 / T1) < T0 * 1%;
[0132] Combining the above time and space constraints can calculate the value of T2.
[0133] In summary, T2 should satisfy (floor(D / T2)+1)*A+(floor(D / T1)-floor(D / T2))*B<C*60% and N*(T2 / T1)<T0*1%.
[0134] For example, in this embodiment, when A = 12, B = 0.2, C = 500G (1G is calculated as 1000M), N is about 60 - 80 microseconds, and T0 is 120 milliseconds, T1 is 1 minute, T2 can be taken as 15 min.
[0135] In other embodiments, it is also possible not to determine the differential rate factor, and directly set the storage period T3 of the human - machine input data = T0; the storage period T4 of the screen data = Tmin; the first storage period T1 = the minimum back - tracking time Tmin; the second storage period T2 can also be set to a time comprehensively determined according to the stored data volume and back - tracking requirements, such as 15 minutes in this embodiment.
[0136] (3) Data storage
[0137] In the premise of having no data server, the SVDU simulator itself needs to store 5000 hours of process and historical data. To reduce the data volume, on the premise of meeting the functional requirements, this embodiment designs a data differential storage method. This method takes 15 minutes as a data block for panoramic data. Each block contains the acquisition timestamp, the basic data of the global variable area for logical information transmission, the data changed per minute, the global variable area of the screen data with a 1 - minute cycle, and the data of the human - machine input global variable area captured every T0 within 15 minutes. The structure is as Figure 1 shown, Figure 1 where "timestamp" represents the start time of a data block and also represents the start of the second storage period T2; "human - machine operation" is the human - machine input data, which is collected and stored every T3 within T2; the screen data is collected and stored every T4 within T2; "basic internal variable data" refers to the full data of the logical information data, which is only collected and stored once at the initial stage of T2; "differential internal variable data" is the logical information differential data. When the logical information differential data uses the change data between the logical information data at the current moment and the basic data, the logical information differential data represents the change data between the logical information data and the full data at the initial stage of T2; when the logical information differential data uses the change data between the logical information data at the current moment and the logical information data of the previous first storage period T1, the logical information differential data represents the change data of the logical information data per minute.
[0138] The specific storage process of the above - mentioned data is as Figure 2 shown:
[0139] After the simulation starts running, the virtual SVDU core starts to run periodically, and the running period is a fixed period T0.
[0140] At the beginning of each cycle T0, determine whether the current simulation mode needs to load working conditions or scene operations. If necessary, send the working condition data or scene data to be loaded to the SVDU kernel, initialize the kernel data of the current cycle, and then run the kernel execution process; if not, the kernel runs the process directly.
[0141] After each cycle T0 ends, it is determined whether the current simulation mode is replay mode or scene operation. If it is replay mode or scene operation, there is no need to record kernel data. Otherwise, kernel data needs to be recorded. The kernel data includes process data, i.e., human-machine input data, screen data, and logic information data. The recording process is as follows:
[0142] 1) Read and store periodic data, which includes human-machine input data and current page number;
[0143] 2) Determine whether the simulation time is an integer multiple of Tmin (1 minute in this application). If it is an integer multiple, read the local variables, network output variables, network input variables and minute simulation data of the kernel; the minute simulation data refers to the screen data. The local variables, network output variables and network input variables are the internal variables of the kernel. These internal variables constitute the logic information data, and the change data of the internal variables is the logic information differential data;
[0144] 3) sending the screen data, logic information differential data and current simulation time obtained in step 2) to the data storage module;
[0145] 4) The data storage module determines whether the simulation time is an integer multiple of T2 (15 minutes in this embodiment). If it is an integer multiple, the full data of the local variables, network output variables and network input variables is saved. Figure 1 The internal variable basic data in the and enter the next second storage cycle T2, the full data is stored in the data block of the next second storage cycle T2 as the basic data of the data block, so that the first T1 of each second storage cycle T2 is the full data of the logic information data, which is convenient for recording and storing the differential data in each subsequent T1; if it is not an integer multiple, the differential data of the local variables, network output variables and network input variables relative to the most recent full data is calculated and saved; in this step, the comparison and acquisition of differential data are prior arts, which will not be repeated in this embodiment;
[0146] 5) The simulation time steps forward by one period T0.
[0147] The storage method in this embodiment reduces the demand of the virtual SVDU on computer hardware resources. The maximum hard disk storage requirement is less than 200 GB, and the CPU frequency is less than 2 GHz. A general micro low-power host can meet the requirements without the need for a dedicated server.
[0148] The data storage method in this embodiment also improves the task response speed of the virtual SVDU. Through the differential storage method of the data storage step and the reverse deduction method of the reverse deduction and replay operation steps, the virtual SVDU can quickly implement data access, ensuring that the virtual SVDU and the real SVDU have the same fixed task cycle execution characteristics, ensuring the realism of the virtual SVDU simulation function to the real SVDU function.
[0149] [Example 4]
[0150] This embodiment further improves the process data access method for virtual SVDU based on embodiment 3. The method also includes reverse deduction and replay operation steps of process data to restore the differentially stored data to usable original data and truly perform replay operation.
[0151] like Figure 3 As shown, in the reverse deduction and replay operation steps, the differential data resynthesis process is as follows:
[0152] 1) Obtain the target simulation time, and take out the corresponding simulation data block LA from the data storage module according to the target simulation time; the data block LA includes the basic data in the second storage period T2 where the target simulation time is located, the logic information differential data corresponding to each first storage period T1, and the human-machine input data and screen data collected in the second storage period T2 to be simulated;
[0153] 2) Taking the start time of the second storage period T2 as the starting point of calculation (in this embodiment, taking a certain 15-minute time as the starting point of calculation), the basic data of the data L at a specific 1-minute time is deduced through the basic data of the data L at that time and the change data every minute;
[0154] 3) Based on the data L at a certain 1-minute moment calculated in the previous step, the basic data, data P, and the data I recorded periodically, the configuration kernel is driven to replay the historical operation process.
[0155] [Example 5]
[0156] This embodiment provides a process data access system for a virtual SVDU, including:
[0157] A data acquisition module, used for reading the process data of the virtual SVDU and sending it to the data storage module, wherein the process data includes human-machine input data, screen data, and logic information data;
[0158] The data storage module is used to store the process data of the virtual SVDU.
[0159] The process data in the virtual SVDU includes human-machine input data, screen data, and logic information data;
[0160] The human-machine input data includes the touch screen input value and the physical key input value, and its storage period is T3. In this embodiment, T3 is equal to the fixed period T0 of the virtual SVDU;
[0161] The screen data includes page ID, control ID, function ID, function parameter, and its storage period is T4;
[0162] The logic information data is used to reflect the associated logic information, which includes the associated logic information between controls and controls, between pages and pages, and the background cycle count of the virtual SVDU, which has two storage cycles, namely the first storage cycle T1 and the second storage cycle T2. T2 is greater than T1 and is an integer multiple of T1.
[0163] In this embodiment, T3 <T4<T2。
[0164] The data storage module uses two storage cycles to store logical information data, the two storage cycles are respectively a first storage cycle T1 and a second storage cycle T2, each second storage cycle T2 includes a plurality of first storage cycles T1;
[0165] The data acquisition module acquires logic information data in each first storage period T1 and sends it to the data storage module;
[0166] The data storage module selects only one first storage cycle T1 to perform full data storage on the logic information data as basic data in each second storage cycle T2, and calculates and stores logic information differential data in the remaining first storage cycles T1;
[0167] The logic information differential data is the change data obtained by comparing the logic information data at the current moment with the latest stored basic data.
[0168] That is, the data acquisition module collects human-machine input data once every T3 time and sends it to the data storage module, collects screen data once every T4 time and sends it to the data storage module; collects related logic information once every T1 time and sends it to the data storage module;
[0169] The data storage module stores logic information data once every T2 time, calculates and stores logic information differential data once every T1 time; stores human-machine input data once every T3 time; and stores screen data once every T4 time.
[0170] As one of the implementation schemes, the data storage module performs full data storage of the logic information data as basic data at the beginning of each second storage cycle T2, and only stores the logic information differential data at the end of each subsequent first storage cycle T1 until the next second storage cycle T2 begins. For example, the values of T0 and T3 are 120ms, T1 is 1 minute, T2 is 15 minutes, and T4 is 1 minute; when the virtual SVDU system simulation is running, the data storage module determines that a new second storage cycle T2 is started every 15 minutes, at which time the logic information data is fully stored as basic data, and then the human-machine input data is stored every 120ms, the screen data is stored once every minute, and the logic information data is compared with the basic data to obtain the logic information differential data, and the differential data is stored until the next 15 minutes are reached, and a new second storage cycle T2 is started again. The data stored for each 15 minutes is regarded as a data block.
[0171] In other embodiments, the values of T0, T1, T2, T3, and T4 are not limited to the values of this embodiment and can be adjusted as needed.
[0172] [Example 6]
[0173] This embodiment provides a process data access system for a virtual SVDU, which differs from Embodiment 5 only in the calculation of logic information differential data. In this embodiment, the logic information differential data uses the change data obtained by comparing the logic information data at the current moment with the logic information data of the previous first storage cycle T1.
[0174] The data storage module performs full data storage of the logic information data as basic data at the beginning of each second storage cycle T2, and only stores the logic information differential data at the end of each subsequent first storage cycle T1 until the next second storage cycle T2 begins. For example, when the values of T0 and T3 are 120ms, T1 is 1 minute, T2 is 15 minutes, and T4 is 1 minute; when the virtual SVDU system simulation is running, the data storage module determines that a new second storage cycle T2 is started every 15 minutes, at which time the logic information data is fully stored as basic data, and then the human-machine input data is stored every 120ms, the screen data is stored every minute, and the logic information data is compared with the logic information data of the previous minute to obtain the logic information differential data, and the differential data is stored until the next 15 minutes are reached, and a new second storage cycle T2 is started again. The data stored for each 15 minutes is regarded as a data block.
[0175] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A process data access method for a virtual SVDU, wherein the process data in the virtual SVDU includes human-machine input data, screen data, and logic information data; characterized in that: The method comprises a data storage step, in which two storage cycles are used to store the logical information data in the virtual SVDU, the two storage cycles are respectively a first storage cycle T1 and a second storage cycle T2, each second storage cycle T2 includes a plurality of first storage cycles T1; In each second storage cycle T2, only one first storage cycle T1 is selected to store the logic information data once as the basic data, and only the logic information differential data is stored in the remaining first storage cycles T1; The logic information differential data is the change data obtained by comparing the logic information data at the current moment with the latest stored basic data or the logic information data of the previous first storage cycle T1; After the virtual SVDU simulation starts running, the virtual SVDU kernel starts to run periodically with a fixed period T0 as a period; the data storage step includes: Step 1: Starting from the fixed period T0, the virtual SVDU executes the processing; Step 2: After the fixed period T0 ends, determine whether the current simulation mode is the replay mode and the scene operation. If it is the replay mode or the scene operation, jump to step 1, otherwise perform data collection and storage, and the data collection and storage includes the following steps: Step S21, read the human-machine input data and the current page number and store them; determine whether the simulation time is an integer multiple of Tmin, if yes, jump to step S22, otherwise jump to step 1, Tmin is the minimum backtracking time of the virtual SVDU, T1=Tmin; Step S22, reading the picture data and logic information data and sending them to the data storage module; Step S23, the data storage module stores the screen data and determines whether the simulation time is an integer multiple of T2. If not, jump to step S24; if it is an integer multiple, save the full data of the logic information data as the basic data and jump to step 1 to enter the next second storage cycle T2; Step S24, calculate the logic information differential data and save it, jump to step 1; the logic information differential data calculation method is to calculate the logic information data at the current moment and the basic data change data or calculate the logic information data at the current moment and the logic information data of the previous first storage cycle T1.
2. The process data access method for a virtual SVDU according to claim 1, characterized in that: Also includes: Data classification step: classify the process data in the virtual SVDU into at least human-machine input data, screen data, and logic information data. Each type of process data has a corresponding storage period, and the logic information data has two storage periods, namely the first storage period T1 and the second storage period T2.
3. The process data access method for a virtual SVDU according to claim 2, characterized in that: The human-machine input data includes touch screen input values and physical key input values; The screen data includes page ID, control ID, function ID, and function parameters; The logical information data is used to reflect associated logical information, and the associated logical information includes the associated logical information between controls of the virtual SVDU, between pages, and the background cycle count.
4. The process data access method for a virtual SVDU according to claim 1, characterized in that: Step 1 further includes: at the start of the fixed period T0, determining whether the current simulation mode requires loading of operating conditions or scenario operation. If so, sending the operating condition data or scenario data to be loaded to the SVDU kernel, initializing the kernel data for the current period, and then running the kernel execution process; if not, directly running the kernel execution process.
5. The process data access method for a virtual SVDU according to any one of claims 1 to 4, characterized in that: The storage period of the human-machine input data is T3, and the storage period of the screen data is T4, where T3 < T4 < T2, and T3 = T0, T0 being the fixed period of the virtual SVDU operation; T2 is an integer multiple of T1; T4 = T1 = Tmin; Tmin being the minimum backtracking time of the virtual SVDU.
6. The process data access method for a virtual SVDU according to any one of claims 1 to 4, characterized in that: It further includes a reverse deduction and replay operation step: S1. Obtain the target simulation time; S2. Read the corresponding data block from the storage device according to the target simulation time. The data block contains the basic data within the second storage period T2 in which the target simulation time is located, the logical information differential data corresponding to each first storage period T1, the human-machine input data and screen data collected within the second storage period T2 in which the target simulation time is located; S3. Deduce the full data of the logical information data corresponding to each first storage period T1 within the second storage period T2 corresponding to the target simulation time based on the basic data in step S2 and the logical information differential data corresponding to each first storage period T1; S4. Replay the historical operation data based on the full data of the logical information data corresponding to each first storage period T1 deduced in step S3 and the human-machine input data and screen data read in step S2.
7. A process data access system for a virtual SVDU, wherein the process data in the virtual SVDU includes human-machine input data, screen data, and logic information data; characterized in that: It includes: A data acquisition module for reading the process data of the virtual SVDU and sending it to the data storage module, where the process data includes logical information data; A data storage module for storing the process data of the virtual SVDU; The data storage module stores the logical information data using two storage periods, which are the first storage period T1 and the second storage period T2 respectively. Each second storage period T2 contains multiple first storage periods T1; The data acquisition module acquires the logical information data in each first storage period T1 and sends it to the data storage module; The data storage module, within each second storage period T2, only selects one first storage period T1 to store the full data of the logical information data once as the basic data, and calculates and stores the logical information differential data in the remaining first storage periods T1; The logical information differential data is the change data obtained by comparing the logical information data at the current moment with the latest stored basic data or the logical information data of the previous first storage period T1; After the virtual SVDU simulation starts running, the virtual SVDU kernel starts to perform periodic operations with a fixed period T0; Step 1: At the start of the fixed period T0, the virtual SVDU executes the processing process; Step 2: After the fixed period T0 ends, determine whether the current simulation mode is the replay mode and the scene operation. If it is the replay mode or the scene operation, jump to step 1, otherwise perform data collection and storage, and the data collection and storage includes the following steps: Step S21, read the human-machine input data and the current page number and store them; determine whether the simulation time is an integer multiple of Tmin, if yes, jump to step S22, otherwise jump to step 1, Tmin is the minimum backtracking time of the virtual SVDU, T1=Tmin; Step S22, reading the picture data and logic information data and sending them to the data storage module; Step S23, the data storage module stores the screen data and determines whether the simulation time is an integer multiple of T2. If not, jump to step S24; if it is an integer multiple, save the full data of the logic information data as the basic data and jump to step 1 to enter the next second storage cycle T2; Step S24, calculate the logic information differential data and save it, jump to step 1; the logic information differential data calculation method is to calculate the logic information data at the current moment and the basic data change data or calculate the logic information data at the current moment and the logic information data of the previous first storage cycle T1.
8. The process data access system for virtual SVDU according to claim 7, characterized in that: The human-machine input data includes the touch screen input value and the physical key input value, and its storage period is T3; The screen data includes page ID, control ID, function ID, function parameter, and its storage period is T4; The logic information data is used to reflect the associated logic information, and the associated logic information includes the associated logic information between controls and controls, between pages and pages, and background cycle counts of the virtual SVDU, which has two storage cycles, namely a first storage cycle T1 and a second storage cycle T2; The data acquisition module collects human-machine input data every T3 time and sends it to the data storage module, collects screen data every T4 time and sends it to the data storage module; collects associated logic information every T1 time and sends it to the data storage module; The data storage module stores logic information data once every T2 time, calculates and stores logic information differential data once every T1 time; stores human-machine input data once every T3 time; and stores screen data once every T4 time.
Citation Information
Patent Citations
Electric energy curve data storage method, electric energy meter and computer readable storage medium
CN112328556A