Equipment management method and device, equipment and storage medium

By building desktop applications of the Electron framework and SQLite database in industrial equipment, it is possible to still manage and collect equipment during network interruption, solve the system paralysis caused by network dependence in the existing technology, and provide a stable device management and data storage solution.

CN120386310AInactive Publication Date: 2025-07-29DONGFANG HEZHI DATA TECH (GUANGDONG) CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202510874468.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-27
Publication Date
2025-07-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing industrial equipment management system is highly dependent on external networks. When the network is interrupted, the system may be paralyzed or data loss, and the device control and data collection cannot be continued.

Method used

Build a desktop application based on the Electron framework and a SQLite database that supports offline data caching in industrial equipment, collect and store offline running data in real time, and manage devices through desktop applications.

Benefits of technology

Equipment monitoring and data collection can still be carried out during network interruption, ensuring system stability and data synchronization, and providing a stable offline user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120386310A_ABST
    Figure CN120386310A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment management method and device, equipment and a storage medium, and relates to the technical field of equipment management.The method comprises the steps that a desktop end application and a preset embedded relational database are constructed in industrial equipment based on a preset desktop application program framework, and the preset embedded relational database supports offline data caching; when detecting that the network is interrupted, collecting equipment offline operation data corresponding to the industrial equipment in real time through the desktop end application; storing the offline operation data of the equipment to a preset embedded relational database; and managing the industrial equipment through the desktop end application on the basis of all the equipment offline operation data stored in the preset embedded relational database. By applying the technical scheme, the technical problem that in the prior art, management of industrial equipment generally depends on continuous network connection, and data acquisition and equipment management cannot be continued when the network is interrupted is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of device management, and particularly to a device management method, apparatus, device, and storage medium. Background Art

[0002] With the development of industrial intelligence, more and more industrial environments are changing from closed to open. Currently, industrial device management systems play a core role in the fields of intelligent manufacturing and industrial Internet. However, there are still some deficiencies in these systems. For example, most industrial device management systems highly rely on external networks to achieve device communication and data synchronization. Once the network is interrupted or attacked, it is easy to cause the system to crash or data to be lost, and thus the device control cannot continue. Summary of the Invention

[0003] The main purpose of this application is to provide a device management method, apparatus, device, and storage medium, aiming to solve the technical problem that the management of industrial devices in the prior art usually relies on a continuous network connection and data collection and device management usually cannot continue when the network is interrupted.

[0004] To achieve the above object, this application proposes a device management method, and the method includes: Construct a desktop application and a preset embedded relational database in the industrial device based on a preset desktop application framework, wherein the preset embedded relational database supports offline data caching; When detecting a network interruption, collect the device offline operation data corresponding to the industrial device in real time through the desktop application; Store the device offline operation data into the preset embedded relational database; Manage the industrial device through the desktop application based on all the device offline operation data stored in the preset embedded relational database.

[0005] In one embodiment, the step of managing the industrial device through the desktop application based on all the device offline operation data stored in the preset embedded relational database includes: Display all the device offline operation data stored in the preset embedded relational database to the control interface corresponding to the industrial device; When detecting a user operation instruction triggered by the user based on the control interface, determine the operation to be executed by the industrial device based on the user operation instruction, and the operation of the user communicates with the industrial device in real time through the data transmission protocol built in the preset desktop application framework; Control the industrial device to execute the operation to be executed through the desktop application to manage the industrial device.

[0006] In one embodiment, before the step of controlling the industrial device to execute the to-be-executed operation through the desktop application to manage the industrial device, the method further includes: Determine whether the to-be-executed operation belongs to a preset sensitive operation; If it belongs, authenticate the user through a preset authentication method; When the authentication is passed, perform dynamic authentication on the user based on a preset dynamic authentication method; If the verification is passed, execute the step of controlling the industrial device to execute the to-be-executed operation through the desktop application to manage the industrial device.

[0007] In one embodiment, after the step of managing the industrial device through the desktop application based on all the device offline operation data stored in the preset embedded relational database, the method further includes: When detecting that the network is restored, compare the device offline operation data with the device operation log, and perform data synchronization according to the comparison result; During the data synchronization process, handle data conflicts according to timestamps until the synchronization of the device offline operation data is completed.

[0008] In one embodiment, the method further includes: The client server performs data interaction with the desktop of the industrial device based on a preset network interface to obtain production data corresponding to a production task in the industrial device, and the preset network interface is generated based on the Representational State Transfer (REST) architecture; When receiving a production scheduling request, determine the production progress of the production task according to the production data; Perform production scheduling on the production task based on the production progress.

[0009] In one embodiment, the method further includes: When detecting the access of an industrial device to be managed, generate a device identifier corresponding to the industrial device to be managed based on the device information corresponding to the industrial device to be managed; Find the protocol configuration information corresponding to the industrial device to be managed according to the device identifier; Determine the protocol parsing template corresponding to the industrial device to be managed according to the protocol configuration information; Establish a communication connection with the industrial device to be managed by loading the protocol parsing template.

[0010] In one embodiment, after the step of controlling the industrial device to execute the to-be-executed operation through the desktop application to manage the industrial device, the method further includes: When a component dragging instruction is detected, generate an interface configuration file based on the component dragging instruction; Determine the style attributes corresponding to all interface components in the control interface according to the interface configuration file; Update the interface of the control interface based on the style attributes.

[0011] In addition, to achieve the above object, the present application also provides a device management apparatus, the apparatus includes: An application construction module, configured to construct a desktop application and a preset embedded relational database in an industrial device based on a preset desktop application framework, wherein the preset embedded relational database supports offline data caching; A data collection module, configured to, when a network interruption is detected, collect in real time device offline operation data corresponding to the industrial device through the desktop application; A data storage module, configured to store the device offline operation data into the preset embedded relational database; A device management module, configured to manage the industrial device through the desktop application based on all the device offline operation data stored in the preset embedded relational database.

[0012] In addition, to achieve the above object, the present application also provides a device management device, the device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program is configured to implement the steps of the device management method as described above.

[0013] In addition, to achieve the above object, the present application also provides a storage medium, the storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the device management method as described above are implemented.

[0014] The present application provides a device management method. The present application discloses constructing a desktop application and a preset embedded relational database in an industrial device based on a preset desktop application framework, wherein the preset embedded relational database supports offline data caching; when a network interruption is detected, the device offline operation data corresponding to the industrial device is collected in real time through the desktop application; the device offline operation data is stored in the preset embedded relational database; the industrial device is managed through the desktop application based on all the device offline operation data stored in the preset embedded relational database; because the desktop in the industrial device in the present invention is constructed with a desktop application and a preset embedded relational database that supports offline data caching, it is possible to collect device offline operation data through the desktop application when the network is interrupted, and manage the industrial device through the desktop application based on all the device offline operation data stored in the preset embedded relational database, thereby solving the technical problem in the prior art that the management of industrial devices usually depends on a continuous network connection and data collection and device management usually cannot continue when the network is interrupted. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The drawings here are incorporated into the specification and form a part of this specification, showing the embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0017] Figure 1 It is a schematic flowchart provided for the first embodiment of the device management method of the present application; Figure 2 It is a schematic flowchart provided for the second embodiment of the device management method of the present application; Figure 3 It is a schematic flowchart provided for the third embodiment of the device management method of the present application; Figure 4 It is a schematic module structure diagram of the device management device in the embodiment of the present application; Figure 5 It is a schematic device structure diagram of the hardware operating environment involved in the device management method in the embodiment of the present application.

[0018] The realization of the purpose, the functional features and the advantages of the present application will be further described with reference to the embodiments and the drawings. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0019] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0020] To better understand the technical solutions of the present application, the following will be described in detail in conjunction with the accompanying drawings of the specification and specific implementation manners.

[0021] The main solution of the embodiment of the present application is: based on a preset desktop application framework, a desktop application and a preset embedded relational database are built in an industrial device, wherein the preset embedded relational database supports offline data caching; when a network interruption is detected, the device offline operation data corresponding to the industrial device is collected in real time through the desktop application; the device offline operation data is stored in the preset embedded relational database; and the industrial device is managed through the desktop application based on all the device offline operation data stored in the preset embedded relational database.

[0022] Since most industrial device management systems in the prior art highly rely on an external network to implement device communication and data synchronization, once the network is interrupted or attacked, it is easy to cause the system to crash or data to be lost, and thus the device control cannot continue.

[0023] The present application provides a solution. By building a desktop application and a preset embedded relational database that supports offline data caching in the desktop end of an industrial device, it is possible to collect device offline operation data through the desktop application when the network is interrupted, and manage the industrial device through the desktop application based on all the device offline operation data stored in the preset embedded relational database, thereby solving the technical problem that the management of industrial devices in the prior art usually relies on a continuous network connection and usually cannot continue data collection and device management when the network is interrupted.

[0024] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication, and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device, a device management system, etc. that can implement the above functions. Hereinafter, taking a device management system as an example (hereinafter referred to as the system), this embodiment and the following embodiments will be described.

[0025] Based on this, the embodiment of the present application provides a device management method, referring to Figure 1 , Figure 1 which is a schematic flowchart of the first embodiment of the device management method of the present application.

[0026] In this embodiment, the device management method includes steps S10 to S40: Step S10: Build a desktop application and a preset embedded relational database in the industrial device based on a preset desktop application framework, where the preset embedded relational database supports offline data caching.

[0027] It should be noted that the above-mentioned preset desktop application framework can be a framework for building cross-platform desktop applications, which allows users to use HTML (Hyper Text Markup Language), CSS (Cascading Style Sheets), and JavaScript (front-end technology stack) to build desktop applications that are compatible with Windows, macOS, and Linux at the same time. In this embodiment, the preset desktop application framework can be the Electron framework. The Electron framework is an open-source framework for building cross-platform desktop applications using JavaScript, HTML, and CSS. It can simplify the process of Web and desktop development. At the same time, by combining Chromium and Node.js, the Electron framework enables users to write desktop applications with front-end technologies and access the underlying functions of the operating system. Compared with traditional device management systems such as the PLC monitoring system developed based on C# that only supports the Windows platform and cannot adapt to industrial terminals such as Linux or macOS, the desktop application of the device constructed using the Electron framework in this embodiment can be seamlessly deployed on Windows, macOS, and Linux platforms, thus improving the flexibility and cross-platform support ability of the system, and at the same time saving development and maintenance costs.

[0028] It can be understood that the above-mentioned industrial device can be any device used for industrial production; correspondingly, the above-mentioned desktop application can be software deployed on the local computer or industrial control panel of the industrial device for monitoring, controlling, or managing the industrial device.

[0029] It should be noted that the above-mentioned preset embedded relational database can be a database for storing all data generated during the operation of the industrial device, where the preset embedded relational database can support the caching of offline data. In this embodiment, the preset embedded relational database can be the SQLite database. The SQLite database is a lightweight open-source relational database that can be stored in the local device in the form of a single file, can run without an independent server process, and supports standard SQL syntax, which is suitable for embedded systems and lightweight applications.

[0030] In practical applications, the system can use the SQLite database as the local database and combine it with the Electron framework to package data storage and desktop applications into the desktop of industrial devices. Since the SQLite database supports data offline caching, even without a network connection, the desktop of industrial devices can still collect data and control devices, and can cache the collected data in the local SQLite database.

[0031] Step S20: When a network interruption is detected, the desktop application is used to collect the device offline operation data corresponding to the industrial device in real time.

[0032] It should be understood that the above device offline operation data can be data generated, stored, or processed by industrial devices in a state without a network connection. In this embodiment, the system can use Node.js in the main process to perform data interaction with a PLC (such as Siemens S7, Omron FINS) through a Socket protocol (such as TCP / UDP) and collect the device offline operation data generated by industrial devices in a state without a network connection in real time. Among them, Node.js is a JavaScript runtime environment based on the Chrome V8 engine, which allows users to write server-side application programs using JavaScript.

[0033] Step S30: Store the device offline operation data in the preset embedded relational database.

[0034] It can be understood that since the preset embedded relational database supports offline data caching, even when the industrial device has no network connection, the device offline operation data generated, stored, or processed by the industrial device can be stored in the preset embedded relational database.

[0035] Step S40: The desktop application is used to manage the industrial device based on all the device offline operation data stored in the preset embedded relational database.

[0036] In this embodiment, even when the industrial device is currently in a state without a network connection, the system can still manage the industrial device through the desktop application based on the device offline operation data stored in the preset embedded relational database. Specifically, Node.js in the system communicates bidirectionally with the PLC device through WebSocket to perform device control operations, such as controlling the start, stop, and parameter adjustment of the device, and obtaining the status information in real time. In addition, the system can also implement device control and data interaction through the built-in HTTP server and WebSocket in the Electron framework. The front end operates the device through the UI and provides real-time feedback on the device status.

[0037] It should be noted that in this embodiment, the system can use the Node.js background for multi-threaded data processing. Specifically, Node.js can start child processes through the child_process module to avoid blocking the main process and ensure smooth response of the application. At the same time, the Node.js background can split and distribute data processing tasks to multiple child processes for parallel execution, and the main process is responsible for managing the scheduling of child processes. Additionally, it can avoid system overload by limiting the number of child processes to ensure efficient use of resources. Moreover, the Node.js background can also collect and process PLC data in real time. Among them, the child processes are responsible for heavy calculations, and the main process is responsible for updating the interface. When an error occurs in a child process, the main process can be notified through the IPC mechanism and error handling can be executed to ensure system stability.

[0038] In specific implementation, the system in this embodiment can ensure that when the network connection of the device is disconnected, the desktop end of the device can still continue to monitor and collect data of the device, and automatically synchronize the data after the network is restored, ensuring the reliability and stability of the system. At the same time, the system can use the SQLite local database to store and cache data, thereby avoiding the loss of device management functions caused by network interruption, and then providing a more stable offline usage experience. Also, by combining the Electron framework and the NestJS framework, the system realizes two-way collaboration between the desktop end and the Web server end, enhancing the flexibility and cross-platform support ability of the system.

[0039] Further, the step S40 includes: Step S401: Display all the device offline operation data stored in the preset embedded relational database to the control interface corresponding to the industrial device.

[0040] It should be understood that the above control interface can be an interface for operating and monitoring the device. In this embodiment, the system can build the UI through HTML, CSS, and JavaScript to display the device status and control panel in real time to ensure convenient operation.

[0041] Step S402: When detecting a user operation instruction triggered by the user based on the control interface, determine the operation to be performed on the industrial device based on the user operation instruction. The operation of the user is in real-time communication with the industrial device through the data transmission protocol built into the preset desktop application framework.

[0042] It should be noted that the above operation to be performed can be an operation that the user instructs the industrial device to perform. For example, starting, stopping, parameter adjustment, etc. of the device are not limited in this embodiment. The above data transmission protocol can be a protocol for data transmission with the device. In this embodiment, the user operation can be in real-time communication with the background through the WebSocket protocol.

[0043] Step S403: Control the industrial device to perform the operation to be performed through the desktop application, so as to manage the industrial device.

[0044] In practical applications, users can control the device by operating the control panel of the device. In this embodiment, since all the offline operation data of the device in the state of no network connection is displayed on the control panel of the device, users can control the stop, pause and parameter adjustment of the device according to the offline operation data of the device, that is, users can generate user operation instructions based on the offline operation data of the device displayed on the control panel. At this time, the system can determine the operation to be performed on the device according to the user operation instructions, and control the industrial device to perform the operation to be performed through the desktop application.

[0045] Further, before the step S403, it further includes: determining whether the operation to be performed belongs to a preset sensitive operation; if so, authenticating the user through a preset authentication method; when the authentication is passed, performing dynamic authentication on the user through a preset dynamic authentication method; if the authentication is passed, executing the step of controlling the industrial device to perform the operation to be performed through the desktop application to manage the industrial device.

[0046] It should be noted that the above preset sensitive operation may be a key operation of the PLC control command in the device, for example, operations such as defining device logic, data processing and communication interaction, and this embodiment does not limit this.

[0047] It should be understood that the above preset authentication method may be a method of authenticating the user through the user name and password of the user. The above preset dynamic authentication method may be a method of authenticating the user through a dynamic verification code.

[0048] In practical applications, when the operation to be performed instructed by the user on the device involves sensitive operations, in order to ensure the security of the device, the system can perform two-factor authentication on the user's identity. For example, in this embodiment, the system can first perform the first layer of identity authentication on the user through the user name and password of the user. However, since the user name and password alone are vulnerable to brute force cracking or social engineering attacks, when the first layer of identity authentication is passed, a second layer of authentication can also be performed on the user to enhance security. Specifically, after the user enters the correct user name and password, the system can require the user to provide a dynamic verification code, which can be generated by text message, email or an authentication application (such as Google Authenticator). This verification code usually has timeliness and one-time use, so as to ensure that only the currently authorized user can complete the operation.

[0049] Further, after the step S40, the method further includes: when detecting that the network is restored, comparing the device offline operation data with the device operation log, and performing data synchronization according to the comparison result; during the data synchronization process, processing data conflicts according to timestamps until the synchronization of the device offline operation data is completed.

[0050] It should be noted that when the network of the industrial device is restored, the system can automatically perform differential data synchronization to ensure data consistency. In this embodiment, the system can compare the device offline operation data with the device operation log and perform data synchronization. During the data synchronization process, the system can preferentially solve data conflicts through timestamps to ensure data consistency during synchronization.

[0051] Further, after the step S403, the method further includes: when detecting a component dragging instruction, generating an interface configuration file based on the component dragging instruction; determining the style attributes corresponding to all interface components in the control interface according to the interface configuration file; and updating the control interface based on the style attributes.

[0052] It can be understood that the above component dragging instruction can be an instruction triggered when the user drags a component in the control interface of the device.

[0053] It should be understood that the above interface configuration file can be a file used to define and configure the control interface of the device. The above style attributes can be attributes such as the size, color, and position of the component.

[0054] In practical applications, the user can generate a JSON-format interface configuration file by dragging components on the control interface of the device and store it in the database. The configuration file can define the attributes such as the size, color, and position of the components adjusted by the user, enabling the system to update the control interface of the device according to the attributes such as the size, color, and position of the components configured by the user, helping the user optimize the interface and meet visual and functional requirements. In addition, the user can bind the interface components to PLC data points to achieve real-time data interaction and control functions. In this embodiment, interface customization is performed based on the interface configuration file, enabling the user to complete interface customization without modifying the code. At the same time, the interface supports multi-language switching, and the interface text and alarm information can be managed through independent language packs, thus meeting multi-functional requirements.

[0055] This embodiment provides a device management method, which discloses building a desktop application and a preset embedded relational database in an industrial device based on a preset desktop application framework. Among them, the preset embedded relational database supports offline data caching; when a network interruption is detected, the desktop application is used to collect the device offline operation data corresponding to the industrial device in real time; the device offline operation data is stored in the preset embedded relational database; the desktop application is used to manage the industrial device based on all the device offline operation data stored in the preset embedded relational database; since the desktop in the industrial device in this embodiment is built with a desktop application and a preset embedded relational database that supports offline data caching, it is possible to collect device offline operation data through the desktop application during a network interruption, and manage the industrial device through the desktop application based on all the device offline operation data stored in the preset embedded relational database, thus solving the technical problem in the prior art that the management of industrial devices usually depends on a continuous network connection and usually cannot continue data collection and device management during a network interruption.

[0056] Based on the first embodiment of this application, in the second embodiment of this application, for the same or similar content as in the above-mentioned first embodiment, reference can be made to the above introduction and will not be repeated hereinafter. On this basis, please refer to Figure 2 , Figure 2 which is a schematic flowchart provided for the second embodiment of the device management method of this application.

[0057] In this embodiment, the method further includes steps S100 to S102: Step S100: The client server performs data interaction with the desktop of the industrial device based on a preset network interface to obtain the production data corresponding to the production task in the industrial device, and the preset network interface is generated based on the Representational State Transfer (REST) architecture.

[0058] It can be understood that the above-mentioned preset network interface can be an interface for realizing data transmission between the client server and the industrial device. In this embodiment, the preset network interface can be a network interface generated based on the Representational State Transfer (REST) architecture. In practical applications, a network interface based on the REST style can use methods of the HTTP protocol (Hypertext Transfer Protocol) (such as GET, POST, PUT, DELETE) to operate on resources, and has characteristics such as cross-platform compatibility, easy testing and debugging, and support for caching.

[0059] It should be understood that the above production tasks can be the set of work instructions currently being executed by industrial equipment; correspondingly, the above production data can be the data generated when executing or processing the production tasks.

[0060] Step S101: When receiving a production scheduling request, determine the production progress of the production task according to the production data.

[0061] It can be understood that the above production scheduling request can be a request for scheduling the production tasks currently being carried out by industrial equipment.

[0062] Step S102: Perform production scheduling on the production task based on the production progress.

[0063] In practical applications, the system can design a microservice architecture through the NestJS framework and adopt the CQRS (Command Query Responsibility Segregation) mode to separate read and write operations to ensure stability under high concurrency. At the same time, the Web side exchanges data with the desktop side through the RESTful API (i.e., the above preset network interface), which supports real-time viewing of the device status, sending production work orders, monitoring the device execution situation, and feeding back data to the ERP system. In addition, managers can view the production progress through the Web side and generate production scheduling requests according to the production progress to schedule production tasks, ensuring the timeliness and transparency of production scheduling.

[0064] In this embodiment, it is disclosed that data interaction is performed between the client server and the desktop side of industrial equipment based on a preset network interface to obtain production data corresponding to production tasks in the industrial equipment. The preset network interface is generated based on the Representational State Transfer architecture; when receiving a production scheduling request, determine the production progress of the production task according to the production data; perform production scheduling on the production task based on the production progress; since this embodiment can determine the production progress according to the production data corresponding to the production tasks in the industrial equipment and schedule production tasks based on the production progress, the timeliness and transparency of production scheduling can be ensured.

[0065] Based on the first embodiment and / or the second embodiment of the present application, in the third embodiment of the present application, for the same or similar content as the above embodiments, reference can be made to the above introduction and will not be repeated hereinafter. On this basis, please refer to Figure 3 , Figure 3 which is the flowchart provided for the third embodiment of the device management method of the present application.

[0066] In this embodiment, the method further includes steps S200 to S203: Step S200: When it is detected that the industrial device to be managed is connected, generate a device identifier corresponding to the industrial device to be managed based on the device information corresponding to the industrial device to be managed.

[0067] It should be understood that the above-mentioned industrial device to be managed can be any industrial device that needs to be connected to the system for unified management. Among them, the device information corresponding to the industrial device to be managed can be the unique identifier corresponding to the device. In this embodiment, the unique identifier corresponding to the device can be generated by combining the IP address and MAC address of the device, so as to ensure that each device has a unique identifier in the system.

[0068] Step S201: Search for the protocol configuration information corresponding to the industrial device to be managed according to the device identifier.

[0069] It should be noted that the above-mentioned protocol configuration information can be the industrial protocol information supported by the industrial device to be managed.

[0070] Step S202: Determine the protocol parsing template corresponding to the industrial device to be managed according to the protocol configuration information.

[0071] It should be noted that the above-mentioned protocol parsing template can be a structured definition template that converts the original device communication data (such as binary stream, hexadecimal message) into readable information according to the protocol rules, which usually includes field splitting, data type mapping and verification rules.

[0072] Step S203: Establish a communication connection with the industrial device to be managed by loading the protocol parsing template.

[0073] In practical applications, each device usually supports multiple industrial protocols. Therefore, the system can configure multiple connection information for each device. These connection information can include protocol types (such as Modbus, OPC UA, Ethernet / IP, etc.), communication ports, data acquisition points, read / write commands, etc. When the device is connected, the system can search for the protocol configuration of the device according to the unique identifier of the device, then dynamically load the corresponding protocol parsing template, and establish a connection with it. In addition, each device can also be configured with acquisition points (such as sensor data, status registers, alarm points, etc.). By configuring these points, the accurate acquisition and monitoring of device data can be ensured.

[0074] In this embodiment, in addition to protocol configuration, the commissioning interface (i.e., the operation interface) of the device can also be customized through configuration. Users can design and configure the commissioning interface of the device according to the characteristics of the device and operation requirements. When the industrial computer is running, after the device is connected to the system and successfully matched by the unique value generated based on the IP address and MAC address, the system can not only load the protocol configuration of the device, but also load the commissioning interface associated with the device. Among them, the commissioning interface of the device can include: parameter setting, device status display, alarm information, etc. Users can manually debug and operate the device according to actual needs.

[0075] In this embodiment, when it is detected that a to-be-managed industrial device is connected, a device identifier corresponding to the to-be-managed industrial device is generated based on the device information corresponding to the to-be-managed industrial device; protocol configuration information corresponding to the to-be-managed industrial device is found according to the device identifier; a protocol parsing template corresponding to the to-be-managed industrial device is determined according to the protocol configuration information; a communication connection with the to-be-managed industrial device is established by loading the protocol parsing template, so that the to-be-managed industrial device can be uniformly managed subsequently, improving the standardization of industrial device management.

[0076] It should be noted that the above examples are only for understanding the present application and do not constitute a limitation on the device management method of the present application. Based on this technical concept, more forms of simple transformation are within the protection scope of the present application.

[0077] The present application also provides a device management device. Please refer to Figure 4 , and the device management device includes: An application construction module 10, configured to construct a desktop application and a preset embedded relational database in the industrial device based on a preset desktop application framework, where the preset embedded relational database supports offline data caching; A data acquisition module 20, configured to, when a network interruption is detected, collect device offline operation data corresponding to the industrial device in real time through the desktop application; A data storage module 30, configured to store the device offline operation data into the preset embedded relational database; A device management module 40, configured to manage the industrial device through the desktop application based on all the device offline operation data stored in the preset embedded relational database.

[0078] The device management apparatus provided by the present application adopts the device management method in the above-mentioned embodiment, and can solve the technical problem in the prior art that the management of industrial devices usually relies on a continuous network connection and usually cannot continue data collection and device management when the network is interrupted. Compared with the prior art, the beneficial effects of the device management apparatus provided by the present application are the same as those of the device management method provided by the above-mentioned embodiment, and other technical features in the device management apparatus are the same as the features disclosed in the method of the above-mentioned embodiment, and will not be elaborated herein.

[0079] The present application provides a device management device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the device management method in the first embodiment above.

[0080] Reference is made below to Figure 5 , which shows a schematic structural diagram of a device management device suitable for implementing the embodiments of the present application. The device management device in the embodiments of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The device management device shown is only an example and should not impose any limitation on the functions and usage scope of the embodiments of the present application.

[0081] As Figure 5As shown, the device management device may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which may perform various appropriate actions and processes according to a program stored in the read-only memory 1002 or a program loaded from the storage device 1003 into the random access memory 1004. In the random access memory 1004, various programs and data required for the operation of the device management device are also stored. The processing device 1001, the read-only memory 1002, and the random access memory 1004 are connected to each other through a bus 1005. The input / output interface 1006 is also connected to the bus. Generally, the following systems may be connected to the input / output interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the device management device to communicate with other devices wirelessly or wiredly to exchange data. Although the figure shows a device management device having various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or had alternatively.

[0082] Particularly, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program codes for performing the methods shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network through the communication device, or installed from the storage device 1003, or installed from the read-only memory 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the methods of the embodiments disclosed in the present application are performed.

[0083] The device management device provided by the present application adopts the device management method in the above-mentioned embodiments and can solve the technical problems of device management. Compared with the prior art, the beneficial effects of the device management device provided by the present application are the same as those of the device management method provided by the above-mentioned embodiments, and other technical features in the device management device are the same as the features disclosed in the method of the previous embodiment, and will not be elaborated here.

[0084] It should be understood that each part disclosed in the present application may be implemented by hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics may be combined in a suitable manner in any one or more embodiments or examples.

[0085] As described above, this is only the specific implementation of the present application. However, the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of changes or substitutions, which should all be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claimed rights.

[0086] The present application provides a computer-readable storage medium having computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the device management method in the above-mentioned embodiments.

[0087] The computer-readable storage medium provided by the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination of the above. More specific examples of the computer-readable storage medium may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) or flash memory, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system or device. The program code contained on the computer-readable storage medium can be transmitted by any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0088] The above computer-readable storage medium may be included in the device management device; or it may exist separately and not be assembled into the device management device.

[0089] The above computer-readable storage medium carries one or more programs, which, when executed by a device management device, cause the device management device to: build a desktop application and a preset embedded relational database in an industrial device based on a preset desktop application framework, wherein the preset embedded relational database supports offline data caching; when detecting a network interruption, collect in real time the device offline operation data corresponding to the industrial device through the desktop application; store the device offline operation data in the preset embedded relational database; and manage the industrial device through the desktop application based on all the device offline operation data stored in the preset embedded relational database.

[0090] Computer program code for performing the operations of the present application may be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, and C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partially on the user's computer, execute as a stand-alone software package, execute partially on the user's computer and partially on a remote computer, or execute entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (for example, by connecting through an Internet service provider using the Internet).

[0091] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that, in some alternative implementations, the functions marked in the blocks may occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combinations of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system for performing the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.

[0092] The modules involved in the embodiments of the present application can be implemented in software or in hardware. Among them, the name of the module does not constitute a limitation to the unit itself in some cases.

[0093] The readable storage medium provided by the present application is a computer-readable storage medium. The computer-readable storage medium stores computer-readable program instructions (i.e., computer programs) for executing the above device management method, and can solve the technical problem that the management of industrial devices in the prior art usually relies on a continuous network connection and usually cannot continue data collection and device management when the network is interrupted. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as those of the device management method provided by the above embodiments, and will not be elaborated here.

[0094] The above are only some embodiments of the present application, and do not limit the patent scope of the present application. Any equivalent structural transformation made by using the content of the specification and drawings of the present application under the technical concept of the present application, or direct / indirect application in other related technical fields, is included in the patent protection scope of the present application.

Claims

1. A device management method, characterized in that, The method described above includes: Constructing a desktop application and a preset embedded relational database in an industrial device based on a preset desktop application framework, wherein the preset embedded relational database supports offline data caching; When a network interruption is detected, the desktop application is used to collect the device offline operation data corresponding to the industrial device in real time; Storing the device offline operation data into the preset embedded relational database; Managing the industrial device by the desktop application based on all the device offline operation data stored in the preset embedded relational database.

2. The method according to claim 1, characterized in that The step of managing the industrial device by the desktop application based on all the device offline operation data stored in the preset embedded relational database includes: Displaying all the device offline operation data stored in the preset embedded relational database to the control interface corresponding to the industrial device; When a user operation instruction triggered based on the control interface is detected, determining the operation to be performed on the industrial device based on the user operation instruction, and the user's operation communicates with the industrial device in real time through the data transmission protocol built in the preset desktop application framework; Controlling the industrial device to execute the operation to be performed by the desktop application to manage the industrial device.

3. The method according to claim 2, characterized in that Before the step of controlling the industrial device to execute the operation to be performed by the desktop application to manage the industrial device, it further includes: Judging whether the operation to be performed belongs to a preset sensitive operation; If it belongs, authenticating the user through a preset authentication method; When the authentication is passed, performing identity dynamic authentication on the user based on a preset dynamic authentication method; If the authentication is passed, executing the step of controlling the industrial device to execute the operation to be performed by the desktop application to manage the industrial device.

4. The method according to claim 1, wherein After the step of managing the industrial device by the desktop application based on all the device offline operation data stored in the preset embedded relational database, it further includes: When a network recovery is detected, comparing the device offline operation data with the device operation log, and performing data synchronization according to the comparison result; During the data synchronization process, processing data conflicts according to timestamps until the device offline operation data synchronization is completed.

5. The method according to any one of claims 1 to 4, characterized in that, The method further includes: The client server performs data interaction with the desktop of the industrial device based on a preset network interface to obtain the production data corresponding to the production task in the industrial device, and the preset network interface is generated based on the Representational State Transfer (REST) architecture; When a production scheduling request is received, determining the production progress of the production task according to the production data; Performing production scheduling on the production task based on the production progress.

6. The method according to any one of claims 1 to 4, characterized in that, The method further includes: When it is detected that a to-be-managed industrial device is accessed, generating a device identifier corresponding to the to-be-managed industrial device based on the device information corresponding to the to-be-managed industrial device; Searching for the protocol configuration information corresponding to the to-be-managed industrial device according to the device identifier; Determine a protocol parsing template corresponding to the industrial device to be managed according to the protocol configuration information; Establish a communication connection with the industrial device to be managed by loading the protocol parsing template.

7. The method according to claim 2, wherein After the step of controlling the industrial device to perform the to-be-executed operation through the desktop application to manage the industrial device, the method further includes: When a component dragging instruction is detected, generate an interface configuration file based on the component dragging instruction; Determine the style attributes corresponding to all interface components in the control interface according to the interface configuration file; Update the interface of the control interface based on the style attributes.

8. An apparatus for device management, characterized in that, The device includes: An application construction module, configured to construct a desktop application and a preset embedded relational database in the industrial device based on a preset desktop application framework, wherein the preset embedded relational database supports offline data caching; A data acquisition module, configured to, when a network interruption is detected, collect device offline operation data corresponding to the industrial device in real time through the desktop application; A data storage module, configured to store the device offline operation data in the preset embedded relational database; A device management module, configured to manage the industrial device through the desktop application based on all device offline operation data stored in the preset embedded relational database.

9. A device management device, characterized in that, The device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the device management method according to any one of claims 1 to 7.

10. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the device management method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Group stage wind power generator set state monitoring and fault diagnosis platform

    CN104503399A

  • Distributed industrial performance monitoring and analytics platform

    CN106933205A

  • Data analytic services for distributed industrial performance monitoring

    CN106933207A

  • Compressor data storage method and device, equipment and medium

    CN115217748A

  • MES-based workshop equipment data acquisition method and system

    CN116382220A