Search

CN-121985033-A - CS architecture-based multi-terminal non-inductive real-time data pushing method

CN121985033ACN 121985033 ACN121985033 ACN 121985033ACN-121985033-A

Abstract

The invention provides a CS architecture-based multi-terminal non-inductive real-time data pushing method, which is different from the traditional data stream pushing mode, separates data analysis and data pushing into two independent processing tasks, and stores data information by creating a local buffer zone, so that the two tasks are linked together, when a server receives data to be updated, the data is not independently and immediately sent to a client, but is stored in a structure body of a local buffer memory, and update information of additional data field record data is updated. The server periodically transmits the data to be updated in all the local cache structures to all the registered clients, and the operation is transparent to the data analysis process, so that the data update of the noninductive multi-terminal can be realized.

Inventors

  • CAO XUEJUN
  • WANG QI
  • WANG CHONG
  • MA SAI
  • WANG SHENHANG
  • SUN YUNQIAN
  • QI LIHUA

Assignees

  • 北京航天自动控制研究所

Dates

Publication Date
20260505
Application Date
20251229

Claims (10)

  1. 1. A CS architecture-based multi-terminal non-inductive real-time data pushing method is characterized by comprising the following steps: creating a data cache structure body to store data information to be updated, wherein the data cache structure body is used as a transition between a data analysis task and a data pushing task to realize data sharing and transmission between the two tasks; Creating a data analysis task, namely when the server receives and analyzes the data to be updated, directly sending the data to the client for updating and displaying, and updating field information in a data cache structure body; And creating a data pushing task, namely performing intelligent updating processing on the data by the server according to the field information in the data cache structure body, and periodically sending an intelligent updating processing result to the client.
  2. 2. The CS architecture-based multi-terminal non-inductive real-time data pushing method of claim 1, wherein said data caching structure comprises at least the following fields: The view ID field is of a data type of uint32 and is an interface control ID to be updated; color field, data type is uint32, data color value; an sdata field, the data type is string, and the data content; The n_current field is a ui 32 data type, which is a count value, and 1 is added to the value when the data is updated each time, and is used for judging whether the data is updated or not when the data is periodically refreshed; An n_last field, the data type is uint32, which is a count value, and each data refresh period assigns the value to n_current; n_ nodata field, data type is uint32, which indicates the number of times the data is not updated, and the value is added with 1 during each periodic refresh; The n_ptr field, the data type of uint32, indicates the maximum number of times data is allowed to be not updated, does not determine whether the data is updated when the value is 0, and indicates that the data is not updated for a long time when the number of times data is not updated n_ nodata reaches the value when the value is not 0, for special processing when the data is not updated.
  3. 3. The CS architecture-based multi-terminal non-inductive real-time data pushing method of claim 2, wherein different types of data correspond to different types of controls, and a data cache structure is designed for each control to realize personalized display requirements of different controls.
  4. 4. The method for pushing multi-terminal non-inductive real-time data based on CS architecture of claim 2, wherein when the control is a form control, the data cache structure of the form control further comprises a col field and a row field, the data types are uint32, the col field represents a column corresponding to the data in the form, and the row field represents a row corresponding to the data in the form.
  5. 5. The CS architecture-based multi-terminal non-inductive real-time data pushing method of claim 2, wherein when the control is an LED lamp control, the method further comprises a field for indicating the on-off state of the LED lamp, and when n_ nodata is greater than or equal to n_prt, the on-off state of the LED lamp is set to be off.
  6. 6. The CS architecture-based multi-terminal non-inductive real-time data pushing method of claim 2, wherein when the control is an LCD nixie tube control, the method further comprises an LCD nixie tube control display content field, and when n_ nodata is greater than or equal to n_prt, the display content of the LCD nixie tube control is set to be a "-" item which indicates a default value when no data is updated for a long time.
  7. 7. The CS architecture-based multi-terminal non-inductive real-time data pushing method of claim 2, wherein when updating field information, the necessary options include: sdata: the content of the data value to be updated; n_current, which is to automatically add 1 each time the field value updates data; The selectable items include: color, the display color of the data content in the updating is set according to the requirement.
  8. 8. The CS architecture-based multi-terminal non-inductive real-time data pushing method of claim 2, wherein the intelligent updating process of the data is as follows: (1) Judging whether the n_prt value is 0, if not, turning to the step (2), otherwise turning to the step (4) (2) Judging whether the n_last value is equal to the n_current value, if not, updating the n_last value to be n_current, and marking the n_ nodata value to be 0, indicating that the data value is updated, then entering the step (3), if so, indicating that the data value is not updated, adding 1 to the n_ nodata value, and then entering the step (3); (3) Judging whether n_ nodata is greater than or equal to n_prt, namely, judging whether the number of times of data non-updating reaches the upper limit, if so, indicating that the data is not updated for a long time, performing personalized display design on the data, and entering a step (4), otherwise, directly entering the step (4); (4) And updating the content of the client control according to the field in the data cache structure body.
  9. 9. The CS architecture-based multi-terminal non-inductive real-time data pushing method of claim 8, wherein the data is personalized, and specifically, the color field is set to be a designated color to represent a long-time non-data value.
  10. 10. A computer program product, characterized in that the computer program product comprises a computer program which, when executed by a processor, implements the steps of the method according to any one of claims 1-9.

Description

CS architecture-based multi-terminal non-inductive real-time data pushing method Technical Field The invention relates to a CS architecture-based multi-terminal non-inductive real-time data pushing method, and belongs to the technical field of measurement, transmission and control data processing. Background Along with the increase of test data volume and the diversification of data types, the conventional flow type data processing and displaying process cannot meet the display requirement of test, emission and control display and control software at the present stage. The requirements of the control style variety, the large homogeneous data rule quantity, the high data display real-time performance and the like provide new requirements for the display control software architecture. The traditional pipeline processing mode of data receiving, data analysis and data display updating cannot meet the real-time display requirement of massive multi-source data. Disclosure of Invention The invention solves the technical problems of overcoming the defects of the prior art, and provides a CS architecture-based multi-terminal noninductive real-time data pushing method, which realizes decoupling of analysis processing and display pushing of data under the conditions of multiple display terminals and multiple data sources and realizes noninductive real-time pushing and intelligent updating display of the data. The technical scheme of the invention is as follows: A CS architecture-based multi-terminal non-inductive real-time data pushing method comprises the following steps: step 1, creating a data cache structure body to store data information to be updated, wherein the data cache structure body is used as a transition between a data analysis task and a data pushing task to realize data sharing and transmission between the two tasks; step 2, creating a data analysis task, namely when the server receives and analyzes the data to be updated, directly sending the data to the client for updating and displaying, and updating field information in a data cache structure body; And step 3, creating a data pushing task, namely performing intelligent updating processing on the data by the server according to the field information in the data caching structure body, and periodically sending an intelligent updating processing result to the client. Further, the data cache structure includes at least the following fields: The view ID field is of a data type of uint32 and is an interface control ID to be updated; color field, data type is uint32, data color value; an sdata field, the data type is string, and the data content; The n_current field is a ui 32 data type, which is a count value, and 1 is added to the value when the data is updated each time, and is used for judging whether the data is updated or not when the data is periodically refreshed; An n_last field, the data type is uint32, which is a count value, and each data refresh period assigns the value to n_current; n_ nodata field, data type is uint32, which indicates the number of times the data is not updated, and the value is added with 1 during each periodic refresh; The n_ptr field, the data type of uint32, indicates the maximum number of times data is allowed to be not updated, does not determine whether the data is updated when the value is 0, and indicates that the data is not updated for a long time when the number of times data is not updated n_ nodata reaches the value when the value is not 0, for special processing when the data is not updated. Further, different types of data correspond to different types of controls, and a data cache structure body is designed for each control so as to realize personalized display requirements of different controls. Further, when the control is a form control, the data cache structure of the form control further includes a col field and a row field, the data types are all uint32, the col field represents a column corresponding to the data in the form, and the row field represents a row corresponding to the data in the form. Further, when the control is an LED lamp control, the control further includes a flag field indicating the on-off state of the LED lamp, and when n_ nodata is greater than or equal to n_prt, the on-off state of the LED lamp is set to be off. Further, when the control is an LCD nixie tube control, the display content field of the LCD nixie tube control is further included, and when n_ nodata is greater than or equal to n_prt, the display content of the LCD nixie tube control is set to a default value when the "-" item indicates no data update for a long time. Further, when updating field information, the necessary options include: sdata: the content of the data value to be updated; n_current, which is to automatically add 1 each time the field value updates data; The selectable items include: color, the display color of the data content in the updating is set according to the requirement. Further, the proces