CN107291729B - Data updating method and system, and semiconductor device - Google Patents

Data updating method and system, and semiconductor device Download PDF

Info

Publication number
CN107291729B
CN107291729B CN201610196296.8A CN201610196296A CN107291729B CN 107291729 B CN107291729 B CN 107291729B CN 201610196296 A CN201610196296 A CN 201610196296A CN 107291729 B CN107291729 B CN 107291729B
Authority
CN
China
Prior art keywords
data
updating
attribute
update
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610196296.8A
Other languages
Chinese (zh)
Other versions
CN107291729A (en
Inventor
潘宇涵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Naura Microelectronics Equipment Co Ltd
Original Assignee
Beijing Naura Microelectronics Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Naura Microelectronics Equipment Co Ltd filed Critical Beijing Naura Microelectronics Equipment Co Ltd
Priority to CN201610196296.8A priority Critical patent/CN107291729B/en
Publication of CN107291729A publication Critical patent/CN107291729A/en
Application granted granted Critical
Publication of CN107291729B publication Critical patent/CN107291729B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a data updating method and system and semiconductor equipment, wherein the method comprises the following steps: presetting a configuration file, wherein updating events corresponding to all data types are defined in the configuration file; reading the configuration file to subscribe to the update event; and triggering the updating event to update the data when any data type needs to be updated. The data updating method and system and the semiconductor device provided by the invention can reduce the system overhead and ensure the system performance.

Description

Data updating method and system, and semiconductor device
Technical Field
The invention belongs to the technical field of semiconductor equipment, and particularly relates to a data updating method and system and semiconductor equipment.
Background
The control system of the semiconductor device not only needs to receive an operation instruction issued by a user, but also needs to feed information such as the state of the device back to the user, and in order to ensure the accuracy of data, real-time data updating is needed, and the updated data is displayed on an interface for the user to observe or is stored in a database for later reference by the user.
In order to realize real-time data update, a data update system adopted in the prior art is as follows: the Data type (namely, Data type) of the lower computer is defined corresponding to each interface form module or class module (which can be called as a subscriber), and an updating event is subscribed, so that when each Data type changes, the updating event of the subscriber is triggered to be notified to the subscriber, and the subscriber calls an updating method (update) of the corresponding interface type to update Data after receiving the updating event.
The data updating system is used for discovering in practical application that: firstly, when the upper computer and the lower computer need to be reconnected after being disconnected, the update event of each subscriber needs to be searched again for subscription, so that the searching amount is large, and the system performance is influenced; second, each subscription to an update event requires the establishment of a related type of delegation, and thus, subscribing to a large number of update events requires the establishment of a large number of delegations, which increases the overhead of the system.
Disclosure of Invention
The invention aims to at least solve one of the technical problems in the prior art, and provides a data updating method, a system and semiconductor equipment, which can reduce the system overhead and ensure the system performance.
In order to solve one of the above problems, the present invention provides a data updating method, comprising the following steps: presetting a configuration file, wherein updating events corresponding to all data types are defined in the configuration file; reading the configuration file to subscribe to the update event; and updating data according to the updating event triggered when any data type needs to be updated.
Preferably, the updating method includes the following steps: caching latest data in real time; and reading the latest cached data according to a preset period for updating.
Preferably, the attribute of each data type is defined in the configuration file as a display attribute or a storage attribute; before the step of caching the updated data, the method further comprises the following steps: identifying the attribute of the current data type, caching the latest data if the attribute is a display attribute, and reading the cached latest data according to a preset period for updating; if the attribute is the storage attribute, the data is directly updated.
Preferentially, the reading and updating of the cached latest data according to the preset period comprises the following steps: and broadcasting the latest data read and cached according to a preset period to all interface window modules, wherein each interface window module corresponds to at least one data type so that the interface window modules can identify whether the data type of the latest data corresponds to the interface window module, and if so, updating and displaying the latest data.
The present invention also provides a data update system, including: the system comprises a presetting module, a data processing module and a data processing module, wherein the presetting module is used for presetting a configuration file, and the configuration file defines update events corresponding to all data types; the updating module is used for updating data; and the subscription module is used for reading the configuration file to subscribe the update event, and calling the update module to update data according to the update event triggered when any data type needs to be updated.
Preferably, the update module comprises: the cache submodule is used for caching the latest data in real time; and the updating submodule is used for reading the cached latest data according to a preset period and updating.
Preferably, the preset module is further configured to define, in the configuration file, an attribute of each data type as a display attribute or a storage attribute; the update module further comprises: the identification submodule is used for identifying the attribute of the current data type; the cache submodule is used for caching the latest data when the attribute of the current data type identified by the identification submodule is a display attribute; the updating submodule is used for reading the cached latest data according to a preset period to update when the attribute of the current data type is identified as the display attribute by the identifying submodule; and when the identification submodule identifies that the attribute of the current data type is a storage attribute, directly updating the data.
Preferably, the update submodule is configured to broadcast the latest data read and cached according to a preset period to all interface window modules, where each interface window module corresponds to at least one data type, so that the interface window module identifies whether a data type to which the latest data belongs corresponds to itself, and if so, updates and displays the latest data.
The invention also provides semiconductor equipment comprising a data updating system, wherein the data updating system adopts the data updating system provided by the invention.
The invention has the following beneficial effects:
according to the data updating method provided by the invention, as all the data types are correspondingly configured with one updating event, only one subscriber needs to read the configuration file to subscribe the updating event, so that the centralized management of multiple data types can be realized, and compared with the prior art, only one updating event needs to be subscribed, namely one delegation is established; and when the upper computer and the lower computer are disconnected and then reconnected, the updating event subscribing each subscriber does not need to be searched, so that the system overhead can be reduced and the system performance can be ensured.
According to the data updating system provided by the invention, as all the data types are preset by the preset module and the configuration file of the updating event is configured correspondingly, only one subscription module (namely, a subscriber) is required to read the configuration file to subscribe the updating event, so that the centralized management of multiple data types can be realized, compared with the prior art, only one updating event needs to be subscribed, namely, one consignment is established; and when the upper computer and the lower computer are disconnected and then reconnected, the updating event subscribing each subscriber does not need to be searched, so that the system overhead can be reduced and the system performance can be ensured.
The semiconductor device provided by the invention adopts the data updating system provided by the invention, so that the system overhead can be reduced and the system performance can be ensured.
Drawings
Fig. 1 is a flowchart of a data updating method according to an embodiment of the present invention;
FIG. 2 is a flowchart of step S3 in FIG. 1;
FIG. 3 is a functional block diagram of a data update system provided by an embodiment of the present invention;
FIG. 4 is a functional block diagram of the update module of FIG. 3; and
FIG. 5 is another functional block diagram of the update module of FIG. 3.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the data updating method and system, and the semiconductor device provided by the present invention are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a data updating method according to an embodiment of the present invention, and referring to fig. 1, the data updating method according to the embodiment includes the following steps:
and S1, presetting a configuration file, wherein the configuration file defines update events corresponding to all data types. The data type is a data type needing data updating.
S2, reading the configuration file to subscribe the update event.
And S3, updating data according to the updating event triggered when any data type needs to be updated.
Specifically, when the data type needs to be updated, the data type may be set to be changed, and the data type may also be set to be changed to some extent. Specifically, performing a data update may invoke an update method to perform the data update, and more specifically, update according to rules corresponding to the update data and the data type.
In the data updating method provided by the embodiment of the invention, as all the data types are correspondingly configured with one updating event, only one subscriber needs to read the configuration file to subscribe the updating event, thus realizing the centralized management of multiple data types; and when the upper computer and the lower computer are disconnected and then reconnected, the updating event subscribing each subscriber does not need to be searched, so that the system overhead can be reduced and the system performance can be ensured.
In the present embodiment, preferably, step S3 includes the following steps:
and S31, caching the latest data in real time.
And S32, reading the latest cached data according to a preset period for updating.
Specifically, the preset period is a preset time, and the inverse of the preset time is the data updating frequency, for example, the preset period may be 500 milliseconds.
By means of the above steps S31-S32, data update at a certain period or frequency can be realized, which can avoid the problem that data changes frequently and some updates are unnecessary compared with the prior art, thereby further reducing the overhead of the system.
In addition, it is preferable that the attribute of each data type is defined in the configuration file as a display attribute or a storage attribute; in this case, as shown in fig. 2, before step S31, the method further includes:
s30, identifying the attribute of the current data type, if the attribute is a display attribute, executing the step S31; if the attribute is a storage attribute, the process proceeds to step S33.
And S33, directly updating the data.
By means of the steps S30 to S33, data updating can be performed according to a certain period or frequency when the attribute of the data type is the display attribute, so that the updating frequency of the data on the interface is within a range recognizable by naked eyes, updating which is meaningless and the updating frequency exceeds the range recognizable by naked eyes can be avoided, overhead can be further reduced, and the problem of callback timeout caused by frequent switching between the updating thread and the UI thread (i.e., the display thread) can be avoided; in addition, the display does not need to be considered when the attribute of the data type is the storage attribute, so that the updating data can be directly updated to ensure the real-time performance and the accuracy of the data stored in the database.
Specifically, step S32 includes:
and broadcasting the latest data read and cached according to a preset period to all interface window modules, wherein each interface window module corresponds to at least one data type so that the interface window modules can identify whether the data type of the latest data corresponds to the interface window modules, and if so, updating and displaying the latest data.
Specifically, the update data is broadcasted in the form of an event, and the interface window module identifies whether the data type of the update data from the event corresponds to the data type of the update data according to the broadcasted event.
Fig. 3 is a schematic block diagram of a data updating system according to an embodiment of the present invention, and referring to fig. 3, the data updating system according to the embodiment of the present invention includes:
the preset module 10 is configured to preset a configuration file, where update events corresponding to all data types are defined in the configuration file.
And the updating module 11 is used for updating data.
And the subscription module 12 is configured to read the configuration file to subscribe to the update event, and invoke the update module 11 to update data according to the update event triggered when any data type needs to be updated.
Specifically, the subscription module 12 may be not only an interface window module or a class module, but also a module that is disposed separately from the interface window module or the class module.
In the data updating system provided in the embodiment of the present invention, since the preset module 10 presets all the data types to configure the configuration file of the update event correspondingly, only one subscription module (i.e., a subscriber) needs to read the configuration file to subscribe the update event, so that the centralized management of multiple data types can be realized, and compared with the prior art, only one update event needs to be subscribed, that is, one delegation is established; and when the upper computer and the lower computer are disconnected and then reconnected, the updating event subscribing each subscriber does not need to be searched, so that the system overhead can be reduced and the system performance can be ensured.
Preferably, as shown in fig. 4, the update module 11 includes:
and the cache submodule 111 is used for caching the latest data in real time.
And the updating submodule 112 is configured to read the cached latest data according to a preset period for updating.
Further preferably, the presetting module 10 is further configured to define, in the configuration file, an attribute of each data type as a display attribute or a storage attribute. In this case, as shown in fig. 5, the update module 11 further includes:
and the identifying submodule 113 is used for identifying the attribute of the current data type.
And the cache submodule 111 is used for caching the latest data when the attribute of the current data type identified by the identification submodule is the display attribute.
The updating submodule 112 is configured to read cached latest data according to a preset period to update when the attribute of the current data type identified by the identifying submodule is the display attribute; and when the identification submodule identifies that the attribute of the current data type is a storage attribute, directly updating the data.
Specifically, the update submodule is configured to broadcast the latest data read and cached according to a preset period to all interface window modules, where each interface window module corresponds to at least one data type, so that the interface window module can identify whether the data type to which the latest data belongs corresponds to itself, and if so, update and display the latest data.
As another technical solution, an embodiment of the present invention further provides a semiconductor device, including a data updating system, where the data updating system provided by the above-mentioned embodiment of the present invention is adopted.
The semiconductor device provided by the embodiment of the present invention may update overhead of the system by using the data updating system provided by the above embodiment of the present invention.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.

Claims (5)

1. A method for updating data, comprising the steps of:
presetting a configuration file, wherein updating events corresponding to all data types are defined in the configuration file;
reading the configuration file to subscribe to the update event;
updating data according to the updating event triggered when any data type needs to be updated;
the updating method further comprises the following steps:
caching latest data in real time;
reading the latest cached data according to a preset period for updating; wherein,
defining the attribute of each data type as a display attribute or a storage attribute in the configuration file;
before the step of caching the updated data, the method further comprises the following steps:
identifying the attribute of the current data type, caching the latest data if the attribute is a display attribute, and reading the cached latest data according to a preset period for updating; if the attribute is the storage attribute, the data is directly updated.
2. The data updating method according to claim 1, wherein the reading the latest data of the cache for updating according to the preset period comprises the following steps:
and broadcasting the latest data read and cached according to a preset period to all interface window modules, wherein each interface window module corresponds to at least one data type so that the interface window modules can identify whether the data type of the latest data corresponds to the interface window module, and if so, updating and displaying the latest data.
3. A data update system, comprising:
the system comprises a presetting module, a data processing module and a data processing module, wherein the presetting module is used for presetting a configuration file, and the configuration file defines update events corresponding to all data types;
the updating module is used for updating data;
the subscription module is used for reading the configuration file to subscribe the update event, and calling the update module to update data according to the update event triggered when any data type needs to be updated;
the update module includes:
the cache submodule is used for caching the latest data in real time;
the updating submodule is used for reading the cached latest data according to a preset period and updating;
the preset module is further configured to define an attribute of each data type in the configuration file as a display attribute or a storage attribute;
the update module further comprises:
the identification submodule is used for identifying the attribute of the current data type;
the cache submodule is used for caching the latest data when the attribute of the current data type identified by the identification submodule is a display attribute;
the updating submodule is used for reading the cached latest data according to a preset period to update when the attribute of the current data type is identified as the display attribute by the identifying submodule; and when the identification submodule identifies that the attribute of the current data type is a storage attribute, directly updating the data.
4. The data updating system of claim 3, wherein the updating sub-module is configured to broadcast the latest data read from the cache according to a preset period to all interface window modules, each interface window module corresponds to at least one data type, so that the interface window module can identify whether the data type to which the latest data belongs corresponds to itself, and if so, update and display the latest data.
5. A semiconductor device comprising a data update system, characterized in that the data update system employs the data update system of any one of claims 3 to 4.
CN201610196296.8A 2016-03-31 2016-03-31 Data updating method and system, and semiconductor device Active CN107291729B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610196296.8A CN107291729B (en) 2016-03-31 2016-03-31 Data updating method and system, and semiconductor device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610196296.8A CN107291729B (en) 2016-03-31 2016-03-31 Data updating method and system, and semiconductor device

Publications (2)

Publication Number Publication Date
CN107291729A CN107291729A (en) 2017-10-24
CN107291729B true CN107291729B (en) 2021-05-07

Family

ID=60087237

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610196296.8A Active CN107291729B (en) 2016-03-31 2016-03-31 Data updating method and system, and semiconductor device

Country Status (1)

Country Link
CN (1) CN107291729B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110059200A (en) * 2019-05-14 2019-07-26 苏州霞客说导览科技有限公司 A kind of data-updating method of guide machine
CN115379013A (en) * 2022-06-29 2022-11-22 广州博冠信息科技有限公司 Data processing method and device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902354A (en) * 2009-05-26 2010-12-01 阿尔卡特朗讯公司 Method and device for managing event information in SIP network
CN105334808A (en) * 2014-06-26 2016-02-17 北京北方微电子基地设备工艺研究中心有限责任公司 Data processing method and system of semiconductor equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7526481B1 (en) * 1999-04-19 2009-04-28 Oracle International Corporation Web servers with queryable dynamic caches
CN101789009B (en) * 2010-01-26 2012-03-07 恒生电子股份有限公司 Method for processing business data, device and system
CN102799609A (en) * 2012-05-31 2012-11-28 新奥特(北京)视频技术有限公司 Data acquisition method based on data monitoring
CN103617131B (en) * 2013-11-26 2017-02-22 曙光信息产业股份有限公司 Data caching achieving method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902354A (en) * 2009-05-26 2010-12-01 阿尔卡特朗讯公司 Method and device for managing event information in SIP network
CN105334808A (en) * 2014-06-26 2016-02-17 北京北方微电子基地设备工艺研究中心有限责任公司 Data processing method and system of semiconductor equipment

Also Published As

Publication number Publication date
CN107291729A (en) 2017-10-24

Similar Documents

Publication Publication Date Title
US20210092195A1 (en) Information push method and device
CN108512695A (en) The method and device of interim card is applied in monitoring
CN104902327B (en) Content update and delivery method, the intelligent television and system of a kind of page
CN105930020A (en) Method and apparatus for function icons of management terminal application program
US9195779B2 (en) Crowd-sourced problem solving
CN108399222A (en) A kind of page furbishing method and device
CN105228119B (en) Call waiting configuration method and device
CN107291729B (en) Data updating method and system, and semiconductor device
CN105629908A (en) Internet of things equipment control method and device
EP3299954A1 (en) Method for communicating between views in android system
CN113515390B (en) Method and device for processing data interaction between pages, electronic equipment and storage medium
CN103986773A (en) Data request response method and device
CN101115180B (en) Electronic program menu system and functional module dynamic load operating method
CN104252354A (en) Method and device for refreshing data list of intelligent terminal
CN111897502A (en) Split screen control system and method
CN105955574A (en) Arrangement display method and device of pictures, and mobile terminal
CN111008032A (en) Page data updating method and device
CN108415767B (en) Server thread control method, device, equipment and readable storage medium
CN106101458A (en) A kind of call processing method and electronic equipment
CN112311818A (en) Method, device, terminal and storage medium for downloading applet data packet
CN111061549A (en) Multitask management method based on android, intelligent terminal and storage medium
CN103607627A (en) Message acquiring method and device and smart television set
CN110007987B (en) Method and system for managing hierarchy of view object
CN106850701B (en) Mobile terminal sharing isolation method and system
CN105159689A (en) Long-time press gesture operation based intelligent terminal third-party software management system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant