Graphical interface data subscription method
Through the graphical interface data subscription method, data points are configured and asynchronous batch subscription and abnormal monitoring are adopted, the lag and delay problems in graphical interface data processing in automated docks are solved, realizing immediate effectiveness and health status monitoring. Improves data processing performance and user experience.
Patent Information
- Application Number
- CN202410916983.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-11-01
AI Technical Summary
When the graphical interface in the automated dock processes a large amount of real-time data, there are problems such as stuttering static page switching, poor animation page movement, and delayed display of list page data.
Adopt the graphical interface data subscription method, including configuring data points, asynchronous batch subscription and exception monitoring and continuous subscription. By creating data groups, data subscription devices, clients and subscription objects, monitoring point status using timing tasks, asynchronously Process data changes and re-establish the subscription connection when an exception is detected.
It realizes instant user-effective subscription point modification, point health status monitoring and data processing performance improvement, solves interface lag and data delay problems, and improves user experience and system maintainability.
Smart Images

Figure CN118885684A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to automated terminal technology, and more specifically, to a graphical interface data subscription method. Background Art
[0002] Data subscription is a method of information transmission for obtaining and subscribing to data updates of interest in real time. It allows users to receive updates from data providers through subscription services without frequent active queries or polling. The principle of data subscription is that the data provider pushes data updates to users who have subscribed to the data to achieve real-time data transmission and updates.
[0003] As the amount of real-time data in automated terminals grows and the frequency of updates increases, the traditional method of obtaining all data points at once and subscribing to data periodically has caused problems such as static page switching jams, unsmooth animation page actions, and delayed display of list page data during the display of the graphical interface. Summary of the invention
[0004] In view of the defects existing in the prior art, the purpose of the present invention is to provide a graphical interface data subscription method to solve the problems of static page switching jams, unsmooth animation page action execution, and delayed display of list page data during the display of the automated terminal graphical interface.
[0005] To achieve the above object, the present invention adopts the following technical solution:
[0006] A graphical interface data subscription method comprises the following steps:
[0007] S1, configuration data point;
[0008] S2, asynchronous batch subscription;
[0009] S3, abnormal monitoring interrupts continuous ordering.
[0010] Preferably, the step S1 specifically includes the following steps:
[0011] S11, create a data group;
[0012] S12, creating data points under the data group created in step S11.
[0013] Preferably, the data group includes a group name, a description, and whether it is enabled.
[0014] Preferably, the data point includes device type, point name, point address, data source, point description and whether the point is enabled.
[0015] Preferably, the step S2 specifically includes the following steps:
[0016] S21, creating a data subscription device;
[0017] S22, create a configuration item;
[0018] S23, create a client;
[0019] S24, create a subscription object;
[0020] S25, create a subscription point.
[0021] Preferably, the data subscription device in step S21 includes a processing unit and a storage unit, and a cache pool is created in the storage unit.
[0022] Preferably, the step S22 specifically includes:
[0023] The points of the subscribed data are divided into two groups according to different business logics, and the interval time for independent point collection is configured.
[0024] Preferably, the step S23 specifically includes:
[0025] Create a client connection to the data source that subscribes to the data point.
[0026] Preferably, the step S24 specifically includes:
[0027] Treat each secondary group as an independent subscription object and create an independent subscription for each object.
[0028] Preferably, the step S25 specifically includes:
[0029] Create a point connection that needs to be subscribed according to the configuration information, and monitor the subscribed point status through a scheduled task. When the point status is normal, process the changed value according to different business logics through asynchronous monitoring. When an abnormality occurs at the point, go to step S3.
[0030] Preferably, the step S3 specifically includes:
[0031] When a point subscription anomaly is detected, a prompt will be issued to check whether the data source and network are normal, and try to re-establish the subscription connection. When the subscription connection is successfully re-established, the alarm prompt will be automatically deleted.
[0032] The present invention provides a graphical interface data subscription method, which enables users to conveniently subscribe and manage the real-time data of a device by providing a graphical interface. In the traditional method, each time a subscription point needs to be modified or added, the code must be modified and a new version must be released, which is not only time-consuming and labor-intensive, but also prone to errors. The present invention displays all subscribable points on the interface, allowing users to intuitively view and select the data points to be subscribed, greatly simplifying the operation process. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is a flow chart of the graphical interface data subscription method of the present invention. DETAILED DESCRIPTION
[0034] In order to better understand the above technical solution of the present invention, the technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0035] Combination Figure 1 As shown, the present invention provides a graphical interface data subscription method, which uses a graphical method to configure data points, and can intuitively display the monitoring status of the points and the current value of the points. It supports point search, addition, deletion, modification, batch import and export, supports real-time modification of the enabled and disabled status of points, and can realize fast switching of points between different projects. Specifically, it includes the following steps:
[0036] S1, configure data points, specifically including the following steps:
[0037] S11, create a data group, including group name, description, and whether it is enabled, such as quay crane group, horizontal transportation equipment group, and yard crane group.
[0038] S12, under the data group created in step S11, create data points, including device type, point name, point address, data source, point description and whether the point is enabled. Points can be added, deleted, modified, exported and imported.
[0039] S2, asynchronous batch subscription, includes the following steps:
[0040] S21, creating a data subscription device, including a processing unit and a storage unit, and creating a cache pool in the storage unit.
[0041] S22, create configuration items, group the subscribed points into secondary groups according to different business logics, and configure the interval time for independent point collection.
[0042] S23, creating a client, and creating a client connection according to a data source of a subscribed data point, such as OPC UA.
[0043] S24, create a subscription object, treat each secondary grouping as an independent subscription object, and create an independent subscription for each object. To avoid repeated creation of objects, cache pooling is performed on configuration items and clients.
[0044] S25, create subscription points, and create the point connection to be subscribed according to the configuration information. Monitor the status of the subscribed points through the scheduled task. When the point status is normal, through asynchronous monitoring, the changed value is processed according to different business logics. When the point is abnormal, enter the abnormal monitoring and continuous subscription process.
[0045] S3, abnormal monitoring of disconnected and continuous subscriptions, sets the monitoring method triggered when the subscription transmission fails. When the point subscription abnormality is detected, it will prompt to check whether the data source and network are normal, and try to re-establish the subscription connection. When the subscription connection is successfully re-established, the alarm prompt will be automatically deleted.
[0046] Example
[0047] An automated terminal is a highly automated port that requires real-time monitoring and management of a large number of equipment and points. In order to improve operational efficiency and system maintainability, it is decided to optimize the existing Web GUI so that users can modify subscription points through a graphical interface and the changes will take effect immediately. In addition, this embodiment also introduces point monitoring, caching, and batch point acquisition mechanisms to improve data processing and display performance.
[0048] The graphical interface data subscription method of this embodiment is specifically as follows:
[0049] 1) Modify the subscription point in the graphical interface
[0050] Requirement: Users need to modify subscription points through a graphical interface, and these modifications can take effect immediately without recompiling and publishing the code.
[0051] accomplish:
[0052] Add a subscription point management module in the Web GUI, through which users can add, delete or modify subscription points.
[0053] Use WebSocket or other real-time communication technologies to push user changes to the backend service instantly.
[0054] After receiving the modification request, the background service dynamically updates the subscription point configuration and it takes effect immediately.
[0055] 2) Point monitoring solution
[0056] Requirements: Users need to be able to intuitively understand the health status of each point and promptly identify and handle potential problems.
[0057] accomplish:
[0058] Add a point health status monitoring panel in the Web GUI to display the real-time status of each point.
[0059] Use WebSocket or long polling technology to regularly obtain the health status data of the point from the background service and update it on the interface.
[0060] Provides a visual display of health status, such as color identification, charts, etc., to help users quickly identify abnormal points.
[0061] 3) Cache and batch point retrieval mechanism
[0062] Requirement: Solve the problem of untimely data push due to large data volume.
[0063] accomplish:
[0064] Introduce a caching mechanism in the background service to cache frequently accessed data and reduce the access pressure on the database or other data sources.
[0065] Implement batch point acquisition function to obtain data of multiple points at one time and reduce the number of network requests.
[0066] In the Web GUI, use the results of batch requests to display data to reduce interface freezes and delays.
[0067] 4) Optimize GUI static page switching and animation fluency
[0068] Requirement: Solve the problem of freezing when switching static pages and unsmooth execution of animation page actions.
[0069] accomplish:
[0070] Preload static pages to reduce loading time when switching pages.
[0071] Optimize animation effects, use CSS3 hardware acceleration and asynchronous loading technology to ensure smooth animation execution.
[0072] Perform paging and virtual scrolling on lists with large amounts of data to reduce the amount of data loaded at one time and improve page response speed.
[0073] Implementation Effect
[0074] Immediately effective subscription point modification: After users modify subscription points through the graphical interface, they can take effect immediately without recompiling and publishing code, greatly improving work efficiency and system maintainability.
[0075] Point health status monitoring: Users can intuitively understand the health status of each point, discover and deal with potential problems in a timely manner, and ensure the stable operation of the system.
[0076] Improved data processing performance: By introducing a cache and batch point acquisition mechanism, the problem of delayed data push caused by large data volumes is solved, and the performance of data processing and display is improved.
[0077] User experience optimization: Optimized static page switching and animation smoothness, solved the problems of lag and animation jerking, and improved user experience.
[0078] Those skilled in the art should recognize that the above embodiments are only used to illustrate the present invention, and are not intended to limit the present invention. As long as they are within the spirit of the present invention, any changes or modifications to the above embodiments will fall within the scope of the claims of the present invention.
Claims
1. A graphical interface data subscription method, It is characterized in that The following steps are involved: S1, configuration data point; S2, asynchronous batch subscription; S3, abnormal monitoring interrupts continuous ordering.
2. The graphical interface data subscription method according to claim 1, It is characterized in that The step S1 specifically includes the following steps: S11, create a data group; S12, creating data points under the data group created in step S11.
3. The graphical interface data subscription method according to claim 2, Features: The data group includes a group name, a description, and whether it is enabled.
4. The graphical interface data subscription method according to claim 2, Features: The data point includes device type, point name, point address, data source, point description and whether the point is enabled.
5. The graphical interface data subscription method according to claim 1, It is characterized in that The step S2 specifically includes the following steps: S21, creating a data subscription device; S22, create a configuration item; S23, create a client; S24, create a subscription object; S25, create a subscription point.
6. The graphical interface data subscription method according to claim 5, Features: The data subscription device in step S21 includes a processing unit and a storage unit, and a cache pool is created in the storage unit.
7. The graphical interface data subscription method according to claim 5, It is characterized in that The step S22 specifically includes: The points of the subscribed data are divided into two groups according to different business logics, and the interval time for independent point collection is configured.
8. The graphical interface data subscription method according to claim 7, It is characterized in that The step S23 specifically includes: Create a client connection to the data source that subscribes to the data point.
9. The graphical interface data subscription method according to claim 8, It is characterized in that The step S24 specifically includes: Treat each secondary group as an independent subscription object and create an independent subscription for each object.
10. The graphical interface data subscription method according to claim 9, It is characterized in that The step S25 specifically includes: Create a point connection that needs to be subscribed according to the configuration information, and monitor the subscribed point status through a scheduled task. When the point status is normal, process the changed value according to different business logics through asynchronous monitoring. When an abnormality occurs at the point, go to step S3.
11. The graphical interface data subscription method according to claim 9, It is characterized in that The step S3 specifically includes: When a point subscription anomaly is detected, a prompt will be issued to check whether the data source and network are normal, and try to re-establish the subscription connection. When the subscription connection is successfully re-established, the alarm prompt will be automatically deleted.
Citation Information
Patent Citations
Software system task monitoring and early warning processing method based on subscription mode
CN110750421A
Equipment state point code subscription method based on redis
CN114896118A
Method and tool for dynamically configuring EMQ message and visually displaying EMQ message
CN116866174A
System and method for enabling a user to subscribe to updates from information sources
US7120628B1
