Method and system for monitoring wired transmission progress of node instrument
By generating interactive menus and displaying charts of node instrument data, the problem of complex and changeable node data is solved, and intuitive data monitoring and efficient progress management are realized.
Patent Information
- Application Number
- CN202311722981.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-14
- Publication Date
- 2025-06-17
AI Technical Summary
The node data is complex and changeable, and it is difficult to observe the changes in data when displayed in the form of a table, which leads to workers being prone to misreading situations during the construction process and delaying the progress of the project.
By obtaining the node number transmission cabinet data, an interactive menu is generated, and when a click operation is detected, the data of the corresponding node meter is obtained, and the template chart example is filled, and the acquisition data transmission progress of the node meter is displayed in the form of a picture proportion.
The node instrument data is visually displayed in the form of a graph, and users can intuitively monitor the node data recycling situation, greatly improving the accuracy of node data monitoring and the work efficiency of workers.
Smart Images

Figure CN120166046A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of software development, and in particular, to a method and system for monitoring the progress of wired transmission of a node instrument. Background Art
[0002] Intelligent wireless node seismographs (referred to as node instruments for short) can carry out wireless or hybrid acquisition operations. The intelligent wireless node seismograph system provides a complete solution for intelligent seismic sensors from deployment to acquisition, and then to data recovery and processing. The intelligent wireless node seismograph, with its advantages of light weight, small volume, and integrated modular design, greatly improves productivity and reduces maintenance costs, and is suitable for seismic exploration operations in complex surface areas (such as high mountains and valleys, swamps and lakes, shallow sea transition zones, plateau areas, etc.), and is applicable to fields such as reflection, refraction, surface wave, microseismic, and microtremor. However, the node data is complex and variable, and it is not easy to observe, which is still a problem.
[0003] In the industrial big data cloud platform, there are a large number of report-based data display pages, and a large amount of operation on data tables is required. However, the data displayed by the components in the prior art is too single, and for complex and variable data, the display effect is not ideal, and the change of data cannot be intuitively displayed.
[0004] Currently, node data is displayed in the form of a table. Workers judge the construction situation by observing the text in the table during the construction process. However, the change of the text in the table is not easy to observe, and it is easy to misread, thus delaying the project progress. Summary of the Invention
[0005] To solve the technical problem that node data is complex and variable and it is not easy to observe data changes when displayed in the form of a table, the present invention proposes a method and system for monitoring the progress of wired transmission of a node instrument.
[0006] In a first aspect, an embodiment of the present invention provides a method for monitoring the progress of wired transmission of a node instrument, including:
[0007] Obtain node data transfer cabinet data;
[0008] Perform loop traversal processing on the node data transfer cabinet data, fill the node data transfer cabinet data into corresponding positions of a preset menu template, and add click functions to the views corresponding to each node data transfer cabinet on the filled menu template to generate an interactive menu;
[0009] Detect whether there is a click operation;
[0010] When a click operation is detected, obtain the node instrument data corresponding to the node data transfer cabinet of the view corresponding to the click operation;
[0011] The obtained node instrument data is processed by loop traversal and added to the template chart instance that matches the menu template, and a chart corresponding to the node instrument data is rendered. The template chart instance displays the transmission progress of the acquisition data of the node instrument in the form of a picture ratio.
[0012] In some implementation manners, obtaining the node data transfer cabinet data includes:
[0013] Subscribing to a topic related to the node data transfer cabinet from the server;
[0014] Obtaining the node data transfer cabinet data determined by the server according to the subscribed topic.
[0015] In some implementation manners, obtaining the node instrument data corresponding to the node data transfer cabinet corresponding to the click operation includes:
[0016] Subscribing to a topic related to the node instrument corresponding to the node data transfer cabinet from the server;
[0017] Obtaining the node instrument data determined by the server according to the subscribed topic.
[0018] In some implementation manners, the method further includes:
[0019] Using v-model to two-way bind the node instrument data and the template chart instance.
[0020] In some implementation manners, that the template chart instance displays the transmission progress of the acquisition data of the node instrument in the form of a picture ratio includes:
[0021] Formulating the total length of the data transmission progress box corresponding to each node instrument;
[0022] According to the ratio of the obtained acquisition data corresponding to each node instrument to the total amount of acquisition data to be transmitted, determining the length of the progress bar in the data transmission progress box corresponding to the node instrument.
[0023] In some implementation manners, that the template chart instance displays the transmission progress of the acquisition data of the node instrument in the form of a picture ratio further includes:
[0024] According to the relative size of the obtained acquisition data of the node instrument to the total amount of acquisition data to be transmitted by the node instrument, determining the color in the data transmission progress box corresponding to the node instrument.
[0025] In some implementation manners, according to the relative size of the obtained acquisition data of the node instrument to the total amount of acquisition data to be transmitted by the node instrument, determining the color in the data transmission progress box corresponding to the node instrument includes:
[0026] If the acquired acquisition data of the node instrument is less than the total amount of acquisition data to be transmitted by the node instrument, the progress bar in the data transmission progress box corresponding to the node instrument is set to the first type of color, and the part in the data transmission progress box corresponding to the node instrument that is not filled by the progress bar is set to the second type of color;
[0027] If the acquired acquisition data of the node instrument is equal to the total amount of acquisition data to be transmitted by the node instrument, the data transmission progress box corresponding to the node instrument is set to the third type of color.
[0028] In a second aspect, an embodiment of the present invention provides a wired transmission progress monitoring system for a node instrument, including:
[0029] A first acquisition module, configured to acquire node data transfer cabinet data;
[0030] A first generation module, configured to perform a loop traversal process on the node data transfer cabinet data, fill the node data transfer cabinet data into corresponding positions of a preset menu template, and add click functions to views corresponding to each node data transfer cabinet on the filled menu template to generate an interactive menu;
[0031] A detection module, configured to detect whether there is a click operation;
[0032] A second acquisition module, configured to acquire node instrument data corresponding to the node data transfer cabinet of the view corresponding to the click operation when a click operation is detected;
[0033] A second generation module, configured to perform a loop traversal process on the acquired node instrument data, add it to a template chart instance matching the menu template, and render and generate a chart corresponding to the node instrument data, where the template chart instance displays the transmission progress of the acquisition data of the node instrument in the form of a picture ratio.
[0034] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by at least one processor, the method described in the first aspect is implemented.
[0035] In a fourth aspect, an embodiment of the present invention provides an electronic device, including a memory and at least one processor. A computer program is stored on the memory. When the computer program is executed by the at least one processor, the method described in the first aspect is implemented.
[0036] One or more embodiments of the present invention at least bring the following beneficial effects:
[0037] The present invention generates an interactive menu from the node data transfer cabinet data obtained from the backend. By the user selecting the node data transfer cabinet to be observed and performing a click operation, it triggers the acquisition of the node instrument data of each node instrument in the node data transfer cabinet from the backend. The node instrument data includes data such as the ID number of the node instrument and the acquisition data of the node instrument. Then, the node instrument data is filled into the template chart instance and rendered to generate a chart corresponding to the node instrument data, realizing the visual display of the node instrument data in the form of a chart, and visually displaying the transmission progress of the acquisition data of the node instrument in the form of a picture ratio, enabling the user to intuitively monitor the node data recovery situation, greatly improving the accuracy of node data monitoring and the work efficiency of workers. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and should not be regarded as limiting the scope.
[0039] Figure 1 It is a flowchart of a method for realizing node data visualization provided by an embodiment of the present invention;
[0040] Figure 2 It is a block diagram of the system structure for realizing node data visualization provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0041] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all the embodiments. The components of the embodiments of the present invention described and illustrated herein can be arranged and designed in various different configurations. Therefore, the detailed description of the embodiments of the present invention provided in the following drawings is not intended to limit the scope of the claimed invention, but merely represents the selected embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts fall within the scope of protection of the present invention.
[0042] Embodiment 1
[0043] In the prior art, node data is complex and variable, making it difficult to observe. In the industrial big data cloud platform, there are a large number of data display pages in the form of reports, and a large amount of operation on data tables is required. However, the data that can be displayed in the components of the prior art is too single. Therefore, for the complex and variable node data, its display effect is not ideal and cannot visually display the data changes.
[0044] Currently, the node data is displayed in tabular form. During the construction process, workers judge the construction situation by observing the text in the table. However, the changes in the text in the table are not easy to observe, and it is easy to misread, thus delaying the project progress.
[0045] Aiming at the problem in the prior art that the node data is complex and changeable, and it is not easy to observe the data changes in tabular form, as Figure 1 shown, the present application provides a method for realizing node data visualization. The method is applied to an electronic device, and the electronic device can be a mobile terminal, a computer, a cloud platform, etc. The functions realized by the device provided in the embodiments of the present application can be realized by a processor of the electronic device calling program code. Among them, the program code can be stored in a computer storage medium. The method for realizing node data visualization includes:
[0046] Step S1: Obtain node data transfer cabinet data. The node data transfer cabinet data includes the view and name corresponding to the node data transfer cabinet. For example, the name of the node data transfer cabinet is Node Data Transfer Cabinet No. 11, Port 10.
[0047] Step S2: Perform a loop traversal process on the node data transfer cabinet data, fill the node data transfer cabinet data into the corresponding positions of a preset menu template, and add click functions to the views corresponding to each node data transfer cabinet on the filled menu template to generate an interactive menu.
[0048] Since the node data transfer cabinet data usually contains data corresponding to multiple node data transfer cabinets, it is necessary to perform a loop traversal on the node data transfer cabinets, extract the corresponding data of the node data transfer cabinets one by one and fill them into the template menu. Then, by adding click functions to the option positions corresponding to each node data transfer cabinet on the filled template menu, and then rendering the template menu after adding the click functions, an interactive menu is obtained. By adding click functions to the option positions corresponding to each node data transfer cabinet on the interactive menu, when the user clicks on the view corresponding to a certain node data transfer cabinet on the interactive menu bar, the user can switch to the node instrument data corresponding to the node data transfer cabinet.
[0049] Step S3: Detect whether there is a click operation to judge whether it is necessary to switch to the visualization interface of the corresponding node instrument data.
[0050] Step S4: When a click operation is detected, obtain the node instrument data corresponding to the node data transfer cabinet of the view corresponding to the click operation. The node instrument data includes the port number of the node instrument, the ID (full name Identity document, identity identification number), the acquisition data of the node instrument, etc.
[0051] When it is detected that the user clicks on the view corresponding to a certain node data transfer cabinet on the interactive menu, the node instrument data corresponding to the node data transfer cabinet is obtained for subsequent chart display of the node instrument data corresponding to the node data transfer cabinet.
[0052] Step S5: Perform a loop traversal process on the obtained node instrument data, add it to the template chart instance that matches the menu template, and render to generate a chart corresponding to the node instrument data, where the template chart instance displays the transmission progress of the acquisition data of the node instrument in the form of a picture ratio.
[0053] In this application, an interactive menu is generated from the node data transfer cabinet data obtained from the backend. By the user selecting the node data transfer cabinet to be observed and performing a click operation, it is triggered to obtain the node instrument data of each node instrument in the node data transfer cabinet from the backend. The node instrument data includes data such as the ID number of the node instrument and the acquisition data of the node instrument. Then, the node instrument data is filled into the template chart instance and then rendered to generate a chart corresponding to the node instrument data, realizing the visual display of the node instrument data in the form of a chart, and the transmission progress of the acquisition data of the node instrument is visually displayed in the form of a picture ratio, allowing the user to intuitively monitor the node data recovery situation, greatly improving the accuracy of node data monitoring and the work efficiency of workers.
[0054] In some embodiments, step S1 includes:
[0055] Step S11: Subscribe to a topic related to the node data transfer cabinet from the server;
[0056] Step S12: Obtain the node data transfer cabinet data determined by the server according to the subscribed topic.
[0057] By using the MQTT (Message Queuing Telemetry Transport) technology, subscribe to a topic related to the node data transfer cabinet from the server, so that the node data transfer cabinet data can be obtained in real time.
[0058] In some embodiments, step S4, "Obtain the node instrument data corresponding to the node data transfer cabinet corresponding to the click operation", includes:
[0059] Step S41: Subscribe to a topic related to the node instrument corresponding to the node data transfer cabinet from the server;
[0060] Step S42: Obtain the node instrument data determined by the server according to the subscribed topic.
[0061] By using MQTT (Message Queuing Telemetry Transport) technology, subscribe to topics related to the node instrument from the server, so that the data of the node instrument can be obtained in real time.
[0062] In some embodiments, the method further includes:
[0063] Step S6: Use v-mode to two-way bind the data of the node instrument and the template chart instance.
[0064] In this way, the visualization chart corresponding to the data of the node instrument will be updated in real time as the data of the node instrument is updated, ensuring that the display and update of the data are synchronized, so as to provide a better data monitoring experience for users.
[0065] In some embodiments, in step S5, "the template chart instance displays the transmission progress of the acquisition data of the node instrument in the form of a picture ratio", including:
[0066] Step S51: Determine the total length of the data transmission progress box corresponding to each node instrument.
[0067] Step S52: According to the ratio of the acquired acquisition data corresponding to each node instrument to the total amount of acquisition data to be transmitted, determine the length of the progress bar within the data transmission progress box corresponding to the node instrument.
[0068] The data transmission progress box is similar to a bar-shaped power graph. According to the relative length of the progress bar within the data transmission progress box, the data transmission progress of the node instrument can be intuitively seen. For example, the total length of the data transmission progress box corresponding to each node instrument is the same. Thus, the relative transmission progress between each node instrument can be directly displayed according to the length of the progress bar corresponding to each node instrument.
[0069] In some embodiments, in step S5, "the template chart instance displays the transmission progress of the acquisition data of the node instrument in the form of a picture ratio", further includes:
[0070] Step S53: According to the relative size of the acquired acquisition data of the node instrument to the total amount of acquisition data to be transmitted by the node instrument, determine the color within the data transmission progress box corresponding to the node instrument.
[0071] In some embodiments, step S53 includes:
[0072] If the acquired acquisition data of the node instrument is less than the total amount of acquisition data to be transmitted by the node instrument, set the progress bar within the data transmission progress box corresponding to the node instrument to the first type of color, indicating in transmission, and set the part of the data transmission progress box corresponding to the node instrument that is not filled by the progress bar to the second type of color, indicating to be completed;
[0073] If the acquired acquisition data of the node instrument is equal to the total amount of acquisition data to be transmitted by the node instrument, then set the corresponding data transmission progress bar of the node instrument to the third type of color, indicating that the transmission is completed.
[0074] For example, the total amount of acquisition data to be transmitted by Node A instrument is 15 pieces of data, and the currently acquired acquisition data of Node A instrument is 15 pieces, then set the color of the corresponding data transmission progress bar of Node A instrument to green. The total amount of acquisition data to be transmitted by Node B instrument is 120 pieces of data, and the currently acquired acquisition data of Node B instrument is 41 pieces, then set the progress bar in the corresponding data transmission progress bar of Node B instrument to blue, and the part of the corresponding data transmission progress bar of Node B instrument that is not filled by the progress bar is gray. This is only an example for easy understanding of this solution, and the colors are not fixed and can be changed according to actual needs.
[0075] Users can quickly determine the data transmission progress of the node instrument according to the color of the corresponding data transmission progress bar of the node instrument, enabling users to more effectively and conveniently monitor the data recovery of the node instrument, greatly improving the accuracy and work efficiency of monitoring.
[0076] In this application, an interactive menu is generated by subscribing to and obtaining the node data transfer cabinet data from the server, and click functions are added to the views corresponding to each node data transfer cabinet on the interactive menu. Thus, it is possible to determine whether to switch to the visual display interface of the node instrument data by detecting whether there is a click operation. When a click operation is detected, the node instrument data corresponding to the node data transfer cabinet is obtained by subscribing to the server, and the node instrument data is filled into the template chart instance and then rendered to generate a chart corresponding to the node instrument data, realizing the visual display of the node instrument data in the form of a chart, and the transmission progress of the acquisition data of the node instrument is visually displayed in the form of a picture ratio, enabling users to intuitively monitor the node data recovery situation, greatly improving the accuracy of node data monitoring and the work efficiency of workers. Further, according to the relative size of the acquired acquisition data of the node instrument and the total amount of acquisition data to be transmitted by the node instrument, the color in the corresponding data transmission progress bar of the node instrument is determined, so that the data transmission progress of the node instrument can be quickly determined according to the color of the corresponding data transmission progress bar of the node instrument, enabling users to more effectively and conveniently monitor the data recovery of the node instrument, greatly improving the accuracy and work efficiency of monitoring.
[0077] Embodiment 2
[0078] Based on the foregoing embodiments, an embodiment of the present application provides a wired transmission progress monitoring system for a node instrument. Each module included in the system, as well as each unit included in each module, can be implemented by a processor in a computer device. Of course, it can also be implemented by specific logic circuits. During implementation, the processor can be a central processing unit (CPU), a microprocessor unit (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA), etc.
[0079] As Figure 2 shown, a wired transmission progress monitoring system for a node instrument includes: a first acquisition module 1, a first generation module 2, a detection module 3, a second acquisition module 4, and a second generation module 5.
[0080] The first acquisition module 1 is used to acquire node data transmission cabinet data. The node data transmission cabinet data includes the view and name corresponding to the node data transmission cabinet. For example, the name of the node data transmission cabinet is Node Data Transmission Cabinet No. 11, Port 10.
[0081] The first generation module 2 is used to perform a loop traversal process on the node data transmission cabinet data, fill the node data transmission cabinet data into the corresponding positions of a preset menu template, and add click functions to the views corresponding to each node data transmission cabinet on the filled menu template to generate an interactive menu.
[0082] Since the node data transmission cabinet data usually contains data corresponding to multiple node data transmission cabinets, it is necessary to perform a loop traversal on the node data transmission cabinets, extract the corresponding data of each node data transmission cabinet one by one and fill it into the template menu. Then, by adding click functions to the option positions corresponding to each node data transmission cabinet on the filled template menu, and then rendering the template menu after adding the click functions, an interactive menu is obtained. By adding click functions to the option positions corresponding to each node data transmission cabinet on the interactive menu, when the user clicks on the view corresponding to a certain node data transmission cabinet on the interactive menu bar, the user can switch to the node instrument data corresponding to that node data transmission cabinet.
[0083] The detection module 3 is used to detect whether there is a click operation to determine whether to switch to the visualization interface of the corresponding node instrument data.
[0084] The second acquisition module 4 is used to acquire the node instrument data corresponding to the node data transmission cabinet of the view corresponding to the click operation when a click operation is detected. The node instrument data includes the port number, ID number, and acquisition data of the node instrument, etc.
[0085] When it is detected that the user clicks on the view corresponding to a certain node data transfer cabinet on the interactive menu, the node instrument data corresponding to the node data transfer cabinet is obtained for subsequent chart display of the node instrument data corresponding to the node data transfer cabinet.
[0086] The second generation module 5 is used to perform a loop traversal process on the obtained node instrument data, add it to the template chart instance matching the menu template, and render to generate a chart corresponding to the node instrument data, where the template chart instance displays the transmission progress of the acquisition data of the node instrument in the form of a picture ratio.
[0087] In this application, an interactive menu is generated from the node data transfer cabinet data obtained from the backend. By the user selecting the node data transfer cabinet to be observed and performing a click operation, it is triggered to obtain the node instrument data of each node instrument in the node data transfer cabinet from the backend. The node instrument data includes data such as the ID number of the node instrument and the acquisition data of the node instrument. Then, the node instrument data is filled into the template chart instance and then rendered to generate a chart corresponding to the node instrument data, realizing the visual display of the node instrument data in the form of a chart, and the transmission progress of the acquisition data of the node instrument is visually displayed in the form of a picture ratio, enabling the user to intuitively monitor the node data recovery situation, greatly improving the accuracy of node data monitoring and the work efficiency of workers.
[0088] In some embodiments, the first acquisition module 1 includes a first sending module and a first receiving module.
[0089] The first sending module is used to subscribe to a topic related to the node data transfer cabinet from the server. The first receiving module is used to obtain the node data transfer cabinet data determined by the server according to the subscribed topic.
[0090] By using the MQTT (Message Queuing Telemetry Transport) technology, subscribing to a topic related to the node data transfer cabinet from the server, so that the node data transfer cabinet data can be obtained in real time.
[0091] In some embodiments, the second acquisition module 4 includes a second sending module and a second receiving module.
[0092] The second sending module is used to subscribe to a topic related to the node instrument corresponding to the node data transfer cabinet from the server. The second receiving module is used to obtain the node instrument data determined by the server according to the subscribed topic.
[0093] By using the MQTT (Message Queuing Telemetry Transport) technology, subscribing to a topic related to the node instrument from the server, so that the node instrument data can be obtained in real time.
[0094] In some embodiments, the system further includes a two-way binding module.
[0095] The two-way binding module is used to two-way bind the node instrument data and the template chart instance by using v-mode.
[0096] In this way, the visualization chart corresponding to the node instrument data will be updated in real time as the node instrument data is updated, ensuring the synchronization of data display and update, so as to provide a better data monitoring experience for users.
[0097] In some embodiments, the second generation module 5 includes a first setting module and a first setting module.
[0098] The first setting module is used to formulate the total length of the data transmission progress bar corresponding to each node instrument. The second setting module is used to determine the length of the progress bar in the data transmission progress bar corresponding to the node instrument according to the ratio of the acquired acquisition data to the total amount of acquisition data to be transmitted corresponding to each node instrument.
[0099] The data transmission progress bar is similar to a bar-shaped power meter. According to the relative length of the progress bar in the data transmission progress bar, the data transmission progress of the node instrument can be intuitively seen. For example, the total length of the data transmission progress bar corresponding to each node instrument is the same. Thus, the relative transmission progress between each node instrument can be directly displayed according to the length of the progress bar corresponding to each node instrument.
[0100] In some embodiments, the second generation module 5 further includes a third setting module.
[0101] The third setting module is used to determine the color in the data transmission progress bar corresponding to the node instrument according to the relative size of the acquired acquisition data of the node instrument and the total amount of acquisition data to be transmitted by the node instrument. Specifically, if the acquired acquisition data of the node instrument is less than the total amount of acquisition data to be transmitted by the node instrument, the progress bar in the data transmission progress bar corresponding to the node instrument is set to the first type of color, and the part in the data transmission progress bar corresponding to the node instrument that is not filled by the progress bar is set to the second type of color; if the acquired acquisition data of the node instrument is equal to the total amount of acquisition data to be transmitted by the node instrument, the data transmission progress bar corresponding to the node instrument is set to the third type of color.
[0102] For example, the total amount of acquisition data to be transmitted by Node A is 15 pieces of data, and currently 15 pieces of acquisition data of Node A have been obtained. Then, the color of the data transmission progress bar corresponding to Node A is set to green. The total amount of acquisition data to be transmitted by Node B is 120 pieces of data, and currently 41 pieces of acquisition data of Node B have been obtained. Then, the progress bar within the data transmission progress bar corresponding to Node B is set to blue, and the unfilled part within the data transmission progress bar corresponding to Node B is in gray. This is only an example for easy understanding of this solution, and the colors are not fixed and can be changed according to actual requirements.
[0103] Users can quickly determine the data transmission progress of the node instrument based on the color of the data transmission progress bar corresponding to the node instrument, enabling users to more effectively and conveniently monitor the data recovery of the node instrument, greatly improving the accuracy and work efficiency of monitoring.
[0104] In this application, an interactive menu is generated by subscribing to and obtaining the data of the node data transfer cabinet from the server, and click functions are added to the views corresponding to each node data transfer cabinet on the interactive menu. Thus, it is possible to determine whether to switch to the visual display interface of the node instrument data by detecting whether there is a click operation. When a click operation is detected, the node instrument data corresponding to the node data transfer cabinet is obtained by subscribing to the server, and the node instrument data is filled into the template chart instance and then rendered to generate a chart corresponding to the node instrument data, realizing the visual display of the node instrument data in the form of a chart, and the transmission progress of the acquisition data of the node instrument is visually displayed in the form of a picture ratio, enabling users to intuitively monitor the data recovery of the node, greatly improving the accuracy of node data monitoring and the work efficiency of workers. Further, according to the relative size of the acquired acquisition data of the node instrument and the total amount of acquisition data to be transmitted by the node instrument, the color within the data transmission progress bar corresponding to the node instrument is determined, so that the data transmission progress of the node instrument can be quickly determined based on the color of the data transmission progress bar corresponding to the node instrument, enabling users to more effectively and conveniently monitor the data recovery of the node instrument, greatly improving the accuracy and work efficiency of monitoring.
[0105] Each module in the above-mentioned node instrument wired transmission progress monitoring system can be implemented in whole or in part by software, hardware, and their combination. The above-mentioned modules can be embedded in the processor of the device in hardware form or be independent of it, or can be stored in the memory of the processing system in software form for the processor to call and execute the operations corresponding to the above-mentioned modules. It should be noted that the division of modules in the embodiments of this application is illustrative, only a logical function division, and there can be other division methods in actual implementation.
[0106] Embodiment III
[0107] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by at least one processor, the node instrument wired transmission progress monitoring method of the foregoing embodiment is implemented.
[0108] Among them, the computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, abbreviated as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, abbreviated as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, abbreviated as EPROM), programmable read-only memory (Programmable Read-Only Memory, abbreviated as PROM), read-only memory (Read-Only Memory, abbreviated as ROM), magnetic memory, flash memory, magnetic disk or optical disc.
[0109] Embodiment 4
[0110] This embodiment provides an electronic device, including a memory and at least one processor. When a computer program stored on the memory is executed by the at least one processor, the method of the foregoing embodiment is implemented.
[0111] Among them, the processor can be implemented by an application specific integrated circuit (Application Specific Integrated Circuit, abbreviated as ASIC), a digital signal processor (Digital Signal Processor, abbreviated as DSP), a digital signal processing device (Digital Signal Processing Device, abbreviated as DSPD), a programmable logic device (Programmable Logic Device, abbreviated as PLD), a field programmable gate array (Field Programmable Gate Array, abbreviated as FPGA), a controller, a microcontroller unit (Microcontroller Unit, MCU), a microprocessor or other electronic components, and is used to execute the node instrument wired transmission progress monitoring method in the foregoing embodiment.
[0112] Embodiment 5
[0113] This embodiment provides a computer program product, which executes the node instrument wired transmission progress monitoring method of the foregoing embodiment when running on a processor.
[0114] In practical applications, the computer program product can be implemented to run on an electronic device.
[0115] In several embodiments provided by the embodiments of the present invention, it should be understood that the disclosed systems and methods can also be implemented in other ways. The system and method embodiments described above are merely illustrative.
[0116] It should be noted that in this article, the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects and do not necessarily need to describe a specific order or sequence. The term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or device including the said element.
[0117] Although the disclosed embodiments of the present invention are as above, the described content is only an embodiment adopted for the convenience of understanding the present invention and is not intended to limit the present invention. Any person skilled in the art within the technical field to which the present invention pertains can make any modifications and changes in the form of implementation and details without departing from the spirit and scope disclosed by the present invention. However, the scope of patent protection of the present invention shall still be subject to the scope defined by the appended claims.
Claims
1. A method for monitoring the progress of wired transmission of a node instrument, characterized in that, Including: Obtain the data of the node data transfer cabinet; Perform a loop traversal process on the node data transfer cabinet data, fill the node data transfer cabinet data into the corresponding positions of a preset menu template, and add click functions to the views corresponding to each node data transfer cabinet on the filled menu template to generate an interactive menu; Detect whether there is a click operation; When a click operation is detected, obtain the node instrument data corresponding to the node data transfer cabinet of the view corresponding to the click operation; Perform a loop traversal process on the obtained node instrument data, add it to a template chart instance matching the menu template, and render to generate a chart corresponding to the node instrument data, where the template chart instance displays the transmission progress of the acquisition data of the node instrument in the form of a picture ratio.
2. The method for monitoring the progress of wired transmission of a node instrument according to claim 1, characterized in that, The obtaining of the node data transfer cabinet data includes: Subscribe to the topic related to the node data transfer cabinet from the server; Obtain the node data transfer cabinet data determined by the server according to the subscribed topic.
3. The method for monitoring the progress of wired transmission of a node instrument according to claim 1, characterized in that, Obtaining the node instrument data corresponding to the node data transfer cabinet corresponding to the click operation includes: Subscribe to the topic related to the node instrument corresponding to the node data transfer cabinet from the server; Obtain the node instrument data determined by the server according to the subscribed topic.
4. The method for monitoring the progress of wired transmission of a node instrument according to claim 1, characterized in that, It also includes: Use v-model to two-way bind the node instrument data and the template chart instance.
5. The method for monitoring the progress of wired transmission of a node instrument according to claim 1, characterized in that, The template chart instance displays the transmission progress of the acquisition data of the node instrument in the form of a picture ratio, including: Define the total length of the data transmission progress box corresponding to each node instrument; Determine the length of the progress bar in the data transmission progress box corresponding to the node instrument according to the ratio of the acquired acquisition data corresponding to each node instrument to the total amount of acquisition data to be transmitted.
6. The method for monitoring the progress of wired transmission of a node instrument according to claim 5, characterized in that, The template chart instance displays the transmission progress of the acquisition data of the node instrument in the form of a picture ratio, and also includes: Determine the color in the data transmission progress box corresponding to the node instrument according to the relative size of the acquired acquisition data of the node instrument to the total amount of acquisition data to be transmitted by the node instrument.
7. The method for monitoring the progress of wired transmission of a node instrument according to claim 6, characterized in that, Determining the color in the data transmission progress box corresponding to the node instrument according to the relative size of the acquired acquisition data of the node instrument to the total amount of acquisition data to be transmitted by the node instrument includes: If the acquired acquisition data of the node instrument is less than the total amount of acquisition data to be transmitted by the node instrument, set the progress bar in the data transmission progress box corresponding to the node instrument to the first type of color, and set the part of the data transmission progress box corresponding to the node instrument not filled by the progress bar to the second type of color; If the acquired acquisition data of the node instrument is equal to the total amount of acquisition data to be transmitted by the node instrument, set the data transmission progress box corresponding to the node instrument to the third type of color.
8. A system for monitoring the progress of wired transmission of a node instrument, characterized in that, Including: A first acquisition module for obtaining the data of the node data transfer cabinet; A first generation module for performing a loop traversal process on the node data transfer cabinet data, filling the node data transfer cabinet data into the corresponding positions of a preset menu template, and adding click functions to the views corresponding to each node data transfer cabinet on the filled menu template to generate an interactive menu; A detection module for detecting whether there is a click operation; A second acquisition module for obtaining the node instrument data corresponding to the node data transfer cabinet of the view corresponding to the click operation when a click operation is detected; A second generation module, configured to perform loop traversal processing on the obtained node instrument data, add it to a template chart instance matching the menu template, and render and generate a chart corresponding to the node instrument data, wherein the template chart instance displays the transmission progress of the acquisition data of the node instrument in the form of a picture ratio.
9. An electronic device, characterized in that,It includes a memory and at least one processor, and a computer program is stored on the memory. When the computer program is executed by the at least one processor, the method described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium. When the computer program is executed by at least one processor, the method described in any one of claims 1 to 7 is implemented.