Compressor Data Storage Method, Device, Equipment, and Medium

By installing a compressor control system on a PC device, using Electron tools and serial port data cables to store compressor data offline, and uploading it to the cloud with the mqtt protocol, the problem of high communication costs between PC and compressor equipment is solved, and data acquisition and management is achieved in a network-free environment.

CN115217748BActive Publication Date: 2025-07-08SICHUAN HONGMEI INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210839826.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-18
Publication Date
2025-07-08
Estimated Expiration
2042-07-18

AI Technical Summary

Technical Problem

In the interaction between PC and compressor equipment, the prior art requires one-to-one transmission lines to conduct two-way communication, resulting in high operating costs and difficulty in obtaining equipment data in a network-free environment.

Method used

By installing a compressor control system on a PC device, the desktop application built with the Electron tool reads the compressor data through the serial port data cable, and stores it in the local memory offline, and uploads it to the cloud in the online state with the mqtt protocol.

Benefits of technology

It reduces network request latency, provides feasibility for data acquisition in a network-free environment, meets the long-term use and management and debugging needs of enterprises, and avoids the impact of large amounts of running data on the control system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115217748B_ABST
    Figure CN115217748B_ABST
Patent Text Reader

Abstract

The present invention relates to a compressor data storage method, device, equipment, and medium. A compressor control system is installed on a PC device, and the compressor control system is a desktop application built using electron tools. The PC device where the compressor control system is located is connected to the development board of the compressor through a serial data cable. The method includes: reading compressor data from the development board of the compressor through the serial data cable; when the compressor control system is in an offline state, storing the read compressor data in the local memory of the PC device. The present invention can stably store compressor data for a long time in an offline state, making the compressor control system an Electron desktop application that can be maintained, debugged, and controlled in a network-free environment, meeting the debugging requirements of enterprises for long-term use and management to discover faults.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular, to a method and device, equipment, and medium for storing compressor data. Background Art

[0002] In control systems at home and abroad that use a PC as the host computer and a single-chip microcomputer as the slave computer, the PC usually performs human-computer interaction through a software interface and interacts with the single-chip microcomputer in a serial communication manner. The PC and the compressor equipment can achieve two-way communication with just a one-to-one transmission line, which reduces the operation cost. The compressor equipment needs to be managed and controlled, which requires storing data information. Summary of the Invention

[0003] To solve the above technical problems or at least partially solve the above technical problems, the present invention provides a method and device, equipment, and medium for storing compressor data.

[0004] In a first aspect, an embodiment of the present invention provides a method for storing compressor data. A compressor control system is installed on a PC device. The compressor control system is a desktop application program built using electron tools. The PC device where the compressor control system is located is connected to the development board of the compressor through a serial data cable;

[0005] The method includes:

[0006] Reading compressor data from the development board of the compressor through the serial data cable;

[0007] When the compressor control system is in an offline state, storing the read compressor data in the local memory of the PC device.

[0008] In a second aspect, an embodiment of the present invention provides a device for storing compressor data. A compressor control system is installed on a PC device. The compressor control system is a desktop application program built using electron tools. The PC device where the compressor control system is located is connected to the development board of the compressor through a serial data cable;

[0009] The device includes:

[0010] A reading module for reading compressor data from the development board of the compressor through the serial data cable;

[0011] A storage module for storing the read compressor data in the local memory of the PC device when the compressor control system is in an offline state.

[0012] In a third aspect, an embodiment of the present invention provides a computing device, which includes: at least one memory and at least one processor; the at least one memory is used for storing machine-readable programs; the at least one processor is used for calling the machine-readable programs to execute the method provided in the first aspect.

[0013] In a fourth aspect, an embodiment of the present invention provides a computer-readable medium, on which computer instructions are stored, and when the computer instructions are executed by a processor, the processor is caused to execute the method provided in the first aspect.

[0014] The compressor data storage method, device, equipment, and medium provided by the embodiments of the present invention first read compressor data from the development board of the compressor through the serial data cable, and then store the read compressor data in the local memory of the PC device in an offline state. This can reduce the latency caused by traditional network requests for interacting with the compressor to access data, and provide feasibility for debuggers to obtain device data in a network-free environment. Electron is a framework for building cross-platform desktop applications. By reading data on the development board of the compressor through the serial port and stably storing the compressor data for a long time in an offline state, the compressor control system becomes an Electron desktop application that can be maintained, debugged, and controlled in a network-free environment, meeting the debugging requirements of enterprises for long-term use and management to discover faults. At the same time, it avoids the impact of a large amount of operation data of the compressor on the operation of the compressor control system. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present invention 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, without creative efforts, other drawings can also be obtained based on these drawings.

[0017] Figure 1 It is a schematic flow chart of the compressor data storage method in an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0018] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, 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. Apparently, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of protection of the present invention.

[0019] An embodiment of the present invention provides a method for storing compressor data. A compressor control system is installed on a PC device. The compressor control system is a desktop application built using Electron tools. The PC device where the compressor control system is located is connected to the development board of the compressor through a serial data cable.

[0020] Among them, Electron is a cross-platform development framework for desktop GUI applications based on Web front-end technologies. That is, Electron is a framework for building cross-platform desktop applications.

[0021] Among them, the compressor control system is a PC client software. The compressor control system is installed on the PC device, and the PC device is connected to the development board of the compressor through a serial data cable.

[0022] Among them, the serial port may include an RS-232 serial communication interface, an RS-484 interface, or a COM interface. That is, the serial data cable may include an RS-232 serial communication interface connection cable, an RS-484 interface connection cable, or a COM interface connection cable.

[0023] See Figure 1 , the method provided by the embodiment of the present invention includes the following steps S110 to S120.

[0024] S110: Read compressor data from the development board of the compressor through the serial data cable;

[0025] Among them, the compressor data may include the operating data of the compressor.

[0026] Among them, the PC device may be connected to the communication interface of the development board in the form of a USB interface, and data is sent to and received from the compressor through the baud rate value, path, and number of data bits at both ends of the interface.

[0027] S120: When the compressor control system is in an offline state, store the read compressor data in the local memory of the PC device.

[0028] When the compressor control system is in the offline state, the compressor data read through the serial data cable can be stored locally. Since a large amount of operation data is generated during the operation of the compressor and the data volume is relatively large, in order to avoid the impact of a large amount of data on the operation of the client software, the compressor data is stored in the local memory here.

[0029] Specifically, the compressor data can be imported in the form of CSV or xlsx files. Here, the data import is for users in the offline state and initializing device data. By importing data in the form of CSV or xlsx files, the imported device parameters, the running trajectories of interval states, etc. can be observed.

[0030] It can be understood that after the compressor is connected to the PC device through the data cable, the compressor control system is used for interactive operations.

[0031] Among them, the compressor data can include real-time operation data or historical operation data.

[0032] The method provided by the embodiment of the present invention first reads the compressor data from the development board of the compressor through the serial data cable, and then stores the read compressor data in the local memory of the PC device in the offline state. This can reduce the latency brought by traditional network requests to interact with the compressor to access data, and provides feasibility for debuggers to obtain device data in a network-free environment. Electron is a framework for building cross-platform desktop applications. It reads the data on the development board of the compressor through the serial port and stores the compressor data stably for a long time in the offline state, making the compressor control system an Electron desktop application that can be maintained, debugged, and controlled in a network-free environment, meeting the long-term use and management of enterprises to discover and troubleshoot debugging requirements. At the same time, it avoids the impact of a large amount of operation data of the compressor on the operation of the compressor control system.

[0033] In one embodiment, the method provided by the embodiment of the present invention may further include:

[0034] When the compressor control system is in the online state, remotely configure the device parameters of the cloud device through the mqtt protocol, save the device parameters to the cloud device, and upload the compressor data to the cloud device through the mqtt protocol.

[0035] It can be seen that this is a means to operate remote devices in the network online state, and upload the compressor data to the cloud device through the mqtt protocol. Of course, the PC device can also remotely configure the parameters of the cloud device through the mqtt protocol, and then the cloud device will perform data storage operations using the configured parameters.

[0036] Among them, the cloud device refers to the remote control and management device of the compressor control system, and the MQTT protocol is an ISO standard messaging protocol. Relevant data can be transmitted through the MQTT protocol.

[0037] In one embodiment, the user interface of the compressor control system is constructed using the Vue tool. That is to say, the compressor control system is jointly constructed by the Electron tool and the Vue tool. The Vue tool is responsible for the construction of the user interface part.

[0038] Among them, Vue is an MVVM framework for building the user interface of the compressor control system. MVVM is the abbreviation of Model-View-ViewModel and consists of three parts: M-V-VM. MVVM abstracts the View state and behavior. The ViewModel separates the view UI and business logic. It can retrieve the data of the Model and at the same time help process the business logic involved in the content to be displayed in the View. MVVM uses two-way data binding. When the data in the view changes, it will be automatically reflected on the viewmodel. Conversely, when the data in the model changes, it will also be automatically displayed on the page. What connects the Model and the View is the ViewModel. The ViewModel is responsible for synchronizing the data of the Model to be displayed in the View and for synchronizing the modifications of the View back to the Model. It can be seen that the Vue tool has an interactive experience and production efficiency of two-way data binding.

[0039] Furthermore, the management functions of the compressor control system include at least one of device information management of the compressor, account information management of users, fault alarm management, log management, and upgrade version management.

[0040] Among them, device information management refers to the management of information such as the device identification and device configuration parameters of each compressor. Account information management of users refers to the management of information such as the accounts and passwords of each registered user of the compressor control system. Fault alarm management refers to the management of under what circumstances fault information and alarm information are issued. Log management refers to the management of the operation logs of the compressor control system. Upgrade version management refers to the upgrade management of the version of the compressor control system. The management function refers to the management functions of various data involved in the compressor control system.

[0041] The local storage refers to the database software built into the client, which is a warehouse for organizing, storing, and managing data according to the data structure. We can use a relational database management system (for example, RDBMS) to store and manage large amounts of data. Compared with other small databases (such as sqlite, nedb, mangodb, etc.), it is more familiar, simple, secure, powerful, and has enough storage capacity for data.

[0042] In one embodiment, the local memory of the PC device is a relational database management system, and the relational database management system uses the NSIS tool for installation and data cleaning.

[0043] Among them, the relational database management system is MySQL. MySQL refers to a data storage built into the local client, used to store serial port information, imported data, data obtained from the compressor side and local operations, etc.

[0044] Among them, the NSIS tool can be used to install, clean data and delete the relational database management system, and can also clear the installation package.

[0045] Furthermore, the relational structure of the relational database management system includes at least one of: an activation table for use, compressor upload data records, device parameters of the compressor, control data of the compressor, and fault codes.

[0046] Among them, the activation code for use refers to a list of activation codes required for using the compressor control system, used for charging users. Compressor upload data records refer to information such as the timestamp of compressor-uploaded data and the statistics of upload times. The device parameters of the compressor refer to information such as the identification and configuration parameters of each compressor. The control data of the compressor refers to data related to the control instructions of the compressor, and the fault code refers to the identification code corresponding to different faults of the compressor, used to distinguish different faults.

[0047] In one embodiment, the compressor control system includes a view layer, a business layer, a connection layer, and a data storage layer, where:

[0048] The view layer is used to display the user interface of the compressor control system;

[0049] The business layer is used to process each management function of the compressor control system;

[0050] The connection layer is used to handle the software and hardware connection of the compressor control system;

[0051] The data storage layer is used to handle the local storage and cloud storage of compressor data in the compressor control system.

[0052] That is to say, the view layer is responsible for the display of interface data and interaction with users. The compressor control system is a progressive framework for building user interfaces based on the electron cross-platform desktop application and vue. Among them, electron is a framework for building cross-platform desktop applications, and vue is a framework for building user interfaces. The business layer is responsible for the function management of the compressor control system, including device information management of the compressor, account information management of users, fault warning management, log management, and upgraded version management, etc. The connection layer is responsible for the software and hardware connection of the compressor control system. For example, connection with the mqtt protocol, serial port connection, wifi connection, mysql connection, packaging production of NSIS tools, axios docking with the promise-based network request library, etc. The data storage layer is responsible for data storage, including local storage and cloud storage.

[0053] Among them, the compressor control system can be, but is not limited to, the Huayi compressor intelligent debugging system. The compressor control system can enable the compressor to support cross-network remote viewing and management in a network environment.

[0054] It can be understood that the data stored by the method provided by the embodiments of the present invention can implement ordinary SQL queries, stored procedures, and the mapped persistence layer framework. Through the built-in local memory, the use efficiency of the software can be greatly improved, the data stability and the amount of stored data can be ensured, the delay caused by traditional network requests and device interaction to access data can be reduced, which provides feasibility for debuggers to obtain device data in a network-free environment, and can ensure the storage capacity, stability, and long-term preservation of data.

[0055] Among them, the explanations of the professional terms involved are as follows:

[0056] electron is a framework for building cross-platform desktop applications; the Mqtt protocol is an ISO standard messaging protocol; vue is a framework for building user interfaces; Axios is a promise-based network request library; the NSIS tool is an installer production program under the Windows system; Mysql is a relational database management system; Node-serialport is a running serial port library; Node-wifi is a library for interacting with the surrounding wifi networks.

[0057] In a second aspect, the embodiments of the present invention provide a compressor data storage device. A compressor control system is installed on a PC device. The compressor control system is a desktop application built using electron tools. The PC device where the compressor control system is located is connected to the development board of the compressor through a serial data cable. The device includes:

[0058] A reading module, configured to read compressor data from the development board of the compressor through the serial data cable;

[0059] A storage module, configured to store the read compressor data in the local memory of the PC device when the compressor control system is in an offline state.

[0060] In one embodiment, the apparatus further includes:

[0061] An upload module, configured to remotely configure the device parameters of the cloud device through the MQTT protocol, save the device parameters to the cloud device, and upload the compressor data to the cloud device through the MQTT protocol when the compressor control system is in an online state.

[0062] In one embodiment, the user interface of the compressor control system is constructed using Vue tools.

[0063] In one embodiment, the management functions of the compressor control system include at least one of device information management of the compressor, account information management of users, fault alarm management, log management, and upgrade version management.

[0064] In one embodiment, the local memory of the PC device is a relational database management system, and the relational database management system is installed and data is cleared using the NSIS tool.

[0065] In one embodiment, the relational structure of the relational database management system includes at least one of an activation table, compressor upload data records, device parameters of the compressor, control data of the compressor, and fault codes.

[0066] In one embodiment, the compressor control system includes a view layer, a business layer, a connection layer, and a data storage layer, where:

[0067] The view layer is configured to display the user interface of the compressor control system;

[0068] The business layer is configured to process each management function of the compressor control system;

[0069] The connection layer is configured to handle the software and hardware connection of the compressor control system;

[0070] The data storage layer is configured to handle the local storage and cloud storage of the compressor data of the compressor control system.

[0071] It can be understood that the explanations, specific implementation manners, beneficial effects, examples, etc. of the relevant content in the apparatus provided in the embodiments of the present invention can be referred to the corresponding parts in the method provided in the first aspect, and will not be elaborated here.

[0072] In a third aspect, an embodiment of the present invention provides a computing device, which includes: at least one memory and at least one processor; the at least one memory is used to store a machine-readable program; the at least one processor is used to call the machine-readable program and execute the method provided in the first aspect.

[0073] It can be understood that for the explanations, specific implementation manners, beneficial effects, examples, etc. of the relevant content in the device provided in the embodiment of the present invention, reference can be made to the corresponding parts in the method provided in the first aspect, and details are not described herein again.

[0074] In a fourth aspect, an embodiment of the present invention provides a computer-readable medium, on which computer instructions are stored, and when the computer instructions are executed by a processor, the processor is caused to execute the method provided in the first aspect.

[0075] Specifically, a system or device equipped with a storage medium can be provided, on which software program codes for implementing the functions of any one of the above embodiments are stored, and the computer (or CPU or MPU) of the system or device is caused to read and execute the program codes stored in the storage medium.

[0076] In this case, the program code read from the storage medium itself can implement the functions of any one of the above embodiments, so the program code and the storage medium storing the program code constitute a part of the present invention.

[0077] Embodiments of the storage medium for providing program codes include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), magnetic tapes, non-volatile memory cards, and ROMs. Optionally, the program code can be downloaded from a server computer via a communication network.

[0078] In addition, it should be clear that not only can the actual operations be completed in part or in whole by executing the program code read by the computer, but also by instructions based on the program code to cause an operating system operating on the computer, etc., so as to implement the functions of any one of the above embodiments.

[0079] In addition, it can be understood that the program code read from the storage medium is written into a memory provided in an expansion board inserted into the computer or into a memory provided in an expansion module connected to the computer, and then based on the instructions of the program code, the CPU, etc. installed on the expansion board or expansion module are caused to execute part and all of the actual operations, so as to implement the functions of any one of the above embodiments.

[0080] It should be understood that for the explanations, specific implementation manners, beneficial effects, examples, etc. of the content in the computer-readable medium provided in the embodiments of the present invention, reference may be made to the corresponding parts in the method provided in the first aspect, and details are not described herein again.

[0081] Each embodiment in this specification is described in a progressive manner. For the same or similar parts among the embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the device embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0082] Those skilled in the art should be able to realize that in the above one or more examples, the functions described in the present invention can be implemented by hardware, software, add-ons, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium.

[0083] The specific implementation manners described above further elaborate on the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above is only the specific implementation manner of the present invention and is not used to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made on the basis of the technical solution of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for storing compressor data, characterized in that, A compressor control system is installed on the PC device, and the compressor control system is a desktop application built using the electron tool. The PC device where the compressor control system is located is connected to the compressor development board via a serial port data cable; The method comprises: The operation data of the compressor is read from the development board of the compressor through the serial port data line; the PC device is connected to the communication interface of the development board of the compressor by means of a USB interface, and data is sent and received to the compressor through the baud rate value, path, and data bit number at both ends of the interface, so as to realize the interactive operation between the compressor and the PC device; When the compressor control system is in an offline state, storing the read compressor data in a local memory of the PC device; The compressor control system on the PC device performs management functions, including at least one of equipment information management of the compressor, account information management of the user, fault alarm management, log management and upgrade version management.

2. The method according to claim 1, characterized in that Also includes: When the compressor control system is online, the device parameters of the cloud device are remotely configured through the MQTT protocol, the device parameters are saved to the cloud device, and the compressor data is uploaded to the cloud device through the MQTT protocol.

3. The method according to claim 1, characterized in that, The user interface of the compressor control system is constructed using the vue tool.

4. The method according to claim 1, wherein The local memory of the PC device is a relational database management system, and the relational database management system uses the NSIS tool to install and clean up data.

5. The method according to claim 4, wherein The relational structure of the relational database management system includes: at least one of the following: usage activation table, compressor upload data record, compressor equipment parameter, compressor control data and fault code.

6. The method according to claim 1, wherein The compressor control system includes a view layer, a business layer, a connection layer and a data storage layer, wherein: The view layer is used to display the user interface of the compressor control system; The business layer is used to process various management functions of the compressor control system; The connection layer is used to process the software and hardware connection of the compressor control system; The data storage layer is used to handle local storage and cloud storage of compressor data of the compressor control system.

7. A compressor data storage device, characterized in that, The device is used to perform the method according to any one of claims 1 to 6; A compressor control system is installed on the PC device, and the compressor control system is a desktop application built using the electron tool. The PC device where the compressor control system is located is connected to the compressor development board via a serial port data cable; The device comprises: A reading module, used for reading compressor data from the compressor development board through the serial port data line; The storage module is used to store the read compressor data in the local memory of the PC device when the compressor control system is in an offline state.

8. A computing device, characterized in that, The device includes: at least one memory and at least one processor; The at least one memory is used to store a machine-readable program; The at least one processor is configured to call the machine-readable program to execute the method according to any one of claims 1 to 6.

9. A computer-readable medium, characterized in that, Computer instructions are stored on the computer-readable medium, and when the computer instructions are executed by a processor, the processor is caused to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Parameter backup method and backup device of air conditioning unit and electronic equipment

    CN114510378A