Data acquisition and transmission method
Through dynamic data acquisition methods, maintenance difficulties and problem positioning problems caused by parameter fixation of 3D printing equipment are solved, fast and accurate data acquisition and transmission are achieved, parameter maintenance is simplified, and data integrity and accuracy are ensured.
Patent Information
- Application Number
- CN202411221088.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2024-12-31
AI Technical Summary
The printing equipment parameters of existing 3D printing equipment are fixed, which makes each device need to manually set parameter configuration files, which is difficult to maintain, and it is difficult to achieve rapid problem positioning and data collection in abnormal situations.
Using dynamic data acquisition method, the dynamic printing equipment parameters are obtained through the collector and the fixed printing equipment parameters are compared, and the dynamic data of the printing equipment is collected and transmitted in real time, including signal name, signal category, unit and signal length , after classification processing, write to the transmission data queue.
It realizes fast and accurate data collection and transmission, simplifies parameter maintenance, avoids abnormal data loss, and facilitates users to understand production conditions and equipment conditions.
Smart Images

Figure CN119217720A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of additive manufacturing and relates to a data collection and transmission method, and in particular to a dynamic data collection and transmission method adopted by an industrial Internet 3D printing device. Background Art
[0002] In the field of industrial manufacturing, data collection technology is widely used in real-time monitoring and data analysis of production lines. By collecting various data in the production process, precise control and optimization of the production process can be achieved, thereby improving production efficiency and quality.
[0003] In the prior art, the printing parameters of 3D printing equipment are fixed, and the printing parameters include signal points such as oxygen content, layer number, start printing time, scraper position, etc. However, the printing parameters of each device are different, and a parameter configuration file needs to be set for each device, which makes maintenance difficult and it is difficult to locate the problem when an abnormality occurs. In order to achieve efficient and accurate data collection, it is necessary to develop a method for dynamically collecting printing device parameters, which is easy to maintain, efficiently collects large quantities of data, and quickly locates problems. Summary of the invention
[0004] In order to solve the above technical problems existing in the background technology, the present invention provides a data collection and transmission method with fast real-time data transmission, simple parameter maintenance, rapid location of abnormal data and effective avoidance of abnormal data loss.
[0005] In order to achieve the above object, the present invention adopts the following technical solution:
[0006] A data collection and transmission method is applied to a printing device, characterized in that the data collection and transmission method comprises the following steps:
[0007] 1) The collector obtains dynamic printing device parameters;
[0008] 2) The collector obtains fixed printing device parameters from the server;
[0009] 3) The collector compares the dynamic printing device parameters obtained in step 2) with the fixed printing device parameters obtained in step 1), and synchronizes the dynamic printing device parameters obtained in step 1) to the server;
[0010] 4) The collector collects and transmits the dynamic data of the printing device in real time based on the synchronized dynamic printing device parameters;
[0011] Wherein, the collector is deployed on the printing device.
[0012] In the above step 1), the collector obtains dynamic printing device parameters from the cache, and the dynamic printing device parameters include the Chinese name of the signal, the English name of the signal, the signal category, the unit and the signal length.
[0013] The above step 1) is specifically:
[0014] 1.1) The collector reads dynamic printing device parameters from the database;
[0015] 1.2) The collector saves the read dynamic printing device parameters in the cache;
[0016] 1.3) The collector obtains dynamic printing device parameters from the cache.
[0017] The above-mentioned fixed printing device parameters include printing device number, signal point Chinese name, signal point English name, signal point length, signal point category and signal point unit.
[0018] The above step 2) is specifically:
[0019] 2.1) The collector obtains parameters of multiple selected fixed printing devices from the server;
[0020] 2.2) The collector determines a fixed printing device parameter from a plurality of candidate fixed printing parameters based on the printing device number.
[0021] The above step 4) is specifically:
[0022] 4.1) The collector updates the data switch field in the database and receives dynamic data from the printing device;
[0023] 4.2) The collector writes the dynamic data of the printing device into the transmission data queue and transmits it.
[0024] The above steps 4.1) and 4.2) also include:
[0025] The collector cyclically reads the dynamic data of the printing device and determines the length of the dynamic data of the printing device. If the length of the dynamic data of the printing device is greater than a preset value, the collector stops acquiring the dynamic data of the printing device.
[0026] The above step 4.2) is specifically:
[0027] The collector processes and classifies the dynamic data of the printing device, writes the classified dynamic data of the printing device into a transmission data queue and transmits it.
[0028] The collector processes the dynamic data of the printing device in a manner including data filtering; the collector classifies the dynamic data of the printing device into device data, alarm data, status data and photo data.
[0029] The beneficial effects of the present invention are:
[0030] The present invention provides a method for collecting dynamic data of a printing device, the method comprising: 1) a collector obtains dynamic printing device parameters; 2) the collector obtains fixed printing device parameters from a server; 3) the collector compares the dynamic printing device parameters obtained in step 2) with the fixed printing device parameters obtained in step 1), and synchronizes the dynamic printing device parameters obtained in step 1) to the server; 4) the collector collects and transmits the dynamic data of the printing device in real time based on the synchronized dynamic printing device parameters. By synchronizing the dynamic printing device parameters to the server, the collector can collect data efficiently and accurately without worrying about data leakage or wrong transmission, and quickly locates problems according to specific signal points of the printing device parameters, making it convenient for users to understand production conditions and equipment conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a software operation combination diagram;
[0032] Figure 2 The present invention provides a flow chart of a method for collecting dynamic data of a printing device. DETAILED DESCRIPTION
[0033] In the prior art, the printing device parameters of the printing device are fixed, while the production process often involves multiple models of printing devices, and the printing device parameters of each printing device are different. In this case, it is necessary to manually set the configuration file of the printing device parameters for each device in advance, which is prone to omissions or errors, and difficult to maintain when the printing device parameters change. In order to solve the above problems, the present invention provides a method for dynamically collecting data. In this method, a collector can read dynamic printing device parameters from a database, obtain fixed printing device parameters from a server, synchronize the dynamic printing device parameters to the server after comparison processing, and then the collector obtains the dynamic data of the printing device from the printing device to complete the dynamic data collection of the printing device. Among them, the dynamic printing device parameters in the database are written by the MCS program in the printing device.
[0034] It should be noted that the collector is a collection module deployed on the printing device.
[0035] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0036] Specifically, see Figure 2 The present invention provides a data collection and transmission method, which is applied to a printing device and is implemented in the following steps:
[0037] Step 1: The collector obtains dynamic printing device parameters.
[0038] The collector may obtain the dynamic printing device parameters from the cache. It is understandable that the dynamic printing device parameters of different devices may be different, and the dynamic printing device parameters of the same device at different times may also be different.
[0039] Dynamic printing device parameters include signal name, signal English name, signal category, unit and signal length, etc.
[0040] Exemplarily, the dynamic printing device parameters stored in the cache may be read by the collector from a database, and the database may be a SQLite database. SQLite is a lightweight relational database with the characteristics of low resource usage, ease of use, cross-platform, high efficiency and reliability.
[0041] In some embodiments, the printing device may write dynamic printing device parameters into a database. For example, the printing device may write a dynamic printing device parameter table into a SQLite database through an MCS program, and the collector may subsequently obtain the dynamic printing device parameters of the printing device from the dynamic printing device parameter table in the SQLite database. In some embodiments, the collector may also store the dynamic printing device parameters obtained from the SQLite database in a cache to avoid frequent subsequent access to the database and reduce performance consumption.
[0042] If the collector fails to obtain the dynamic printing device parameters, the collector may re-read the dynamic printing device parameter table from the database.
[0043] Step 2: The collector obtains fixed printing device parameters from the server.
[0044] The collector can obtain fixed printing device parameters from the server. For example, the collector can read the printing device parameter table in the server MySQL database to obtain the fixed printing device parameters.
[0045] Fixed printing device parameters include printing device number, signal point Chinese name, signal point English name, signal point length, signal point category and signal point unit, etc.
[0046] It should be noted that when the collector is deployed on the printing device, the corresponding device type will be set in advance. Therefore, the technician can clearly know the printing device corresponding to the dynamic printing device parameters obtained by the collector. In other words, the dynamic printing device parameters obtained by the collector have the corresponding printing device number.
[0047] In some embodiments, the collector obtains multiple to-be-selected fixed printing device parameters from the server. Exemplarily, the collector may obtain fixed printing device parameters of all printing devices that deploy the same collector as multiple to-be-selected fixed printing device parameters. The collector may determine the corresponding fixed printing device parameters based on the printing device numbers in these to-be-selected fixed printing device parameters.
[0048] Step 3: The collector compares the dynamic printing device parameters with the fixed printing device parameters, and synchronizes the dynamic printing device parameters to the server.
[0049] The collector compares the acquired dynamic printing device parameters with the fixed printing device parameters one by one, eliminates disabled signals, filters out parameter signals that need to be added or deleted, and synchronizes them to the server. This ensures that the dynamic printing device parameters on the printing device are consistent with the fixed printing device parameters on the server, and ensures that the dynamic data of the printing device subsequently acquired by the collector is consistent with the data type of the dynamic data expected by the server.
[0050] Step 4: The collector collects and transmits the dynamic data of the printing device in real time based on the dynamic printing device parameters.
[0051] After the collector synchronizes the dynamic printing device parameters to the server, the collector can update the data switch field in the database. Updating the data switch field means making specific modifications to the data switch field in the database. After the modification, the MCS program on the printing device can send the dynamic data of the printing device to the collector, that is, the collector can collect the dynamic data of the printing device in real time.
[0052] Exemplarily, the collector can update the data switch field in the SQLite database, and the MCS program on the printing device can continuously monitor the data switch field in the database. Once the data switch field is detected to be updated, the MCS program can start to send the dynamic data of the printing device to the collector normally; if the MCS program does not detect the data switch field update, the dynamic data of the printing device will not be sent to the collector. In some embodiments, the MCS program can send the dynamic data of the printing device to the collector via IPC communication. IPC is an inter-process communication that can efficiently transmit data and has the advantages of flexibility, reliability, security, and reduced programming complexity.
[0053] The collector can read the dynamic data of the printing device in a regular cycle. For example, the collector can read the dynamic data of the printing device once every 1 second. The frequency of the collector reading the dynamic data of the printing device is not limited in this application.
[0054] In some embodiments, if the length of the dynamic data of the printing device read by the collector is greater than a preset value, the collector stops acquiring the dynamic data of the printing device from the MCS program. Exemplarily, the preset value is manually determined based on actual conditions, for example, the preset value may be 10,000, which is not limited in this application.
[0055] After the collector collects the dynamic data of the printing device, it can process and classify the dynamic data of the printing device so as to analyze and display the dynamic data of the printing device later. For example, the collector can filter out null values and duplicate values of the dynamic data of the printing device, and then classify the dynamic data of the printing device according to the signal category in the dynamic printing device parameters.
[0056] In the present application, the dynamic data of the printing device can be classified into device data, alarm data, status data and photo data based on the signal category. Among them, the device data is the numerical value of various signals related to the status of the printing device; the alarm data is the numerical value of various signals related to the risks of the printing process; the status data is the numerical value of various signals related to the printing process; the photo data is the real-time photo taken during the printing process. Dynamic data (also called MCS data) is the value of a specific signal, such as the oxygen content value, the scraper position value, and the layer number value. The dynamic printing device parameters store signal names, such as oxygen content, oxygen content category and other signal names (in Chinese or English). According to the signal name of the printing device parameters, abnormal data in the printing process can be quickly located.
[0057] The collector adds the signal name and the printing device number to the device data and writes them into the collector data queue; the collector converts the alarm data into an alarm prompt message and performs closed processing on the completed alarm data, and then writes the converted and processed alarm data into the transmission data queue; the collector adds the signal name and the printing device number to the status data and writes them into the transmission data queue; the collector reads the image file according to the image path, sends the image file directly to the server, adds the receiving address and image parameter signal of the image file to the image data, and writes them into the transmission data queue; the collector can write the device data, alarm data, status data, and photo data into the transmission data queue at a preset frequency. The preset frequency is determined by the technician based on the amount of data. For example, the preset frequency can be once per second.
[0058] The collector writes the classified dynamic data of the printing device into the transmission data queue and transmits it.
[0059] Specifically, the collector transmits the dynamic data of the printing device that has been written into the transmission data queue to the server, and periodically determines whether the dynamic data of the printing device that has been written into the transmission data queue has been transmitted. If the transmission is completed, the data transmission process ends; if the transmission is not completed, the data transmission continues until the data transmission is completed and the data transmission process ends.
Claims
1. A data collection and transmission method, applied to a printing device, characterized in that: The data collection and transmission method comprises the following steps: 1) The collector obtains dynamic printing device parameters; 2) The collector obtains fixed printing device parameters from the server; 3) The collector compares the dynamic printing device parameters obtained in step 2) with the fixed printing device parameters obtained in step 1), and synchronizes the dynamic printing device parameters obtained in step 1) to the server; 4) The collector collects and transmits the dynamic data of the printing device in real time based on the acquired dynamic printing device parameters; Wherein, the collector is deployed on the printing device.
2. The data collection and transmission method according to claim 1, characterized in that: In the step 1), the collector obtains dynamic printing device parameters from the cache, and the dynamic printing device parameters include the Chinese name of the signal, the English name of the signal, the signal category, the unit and the signal length.
3. The data collection and transmission method according to claim 2, characterized in that: The step 1) specifically includes: 1.1) The collector reads dynamic printing device parameters from the database; 1.2) The collector saves the read dynamic printing device parameters in the cache; 1.3) The collector obtains dynamic printing device parameters from the cache.
4. The data collection and transmission method according to claim 3, characterized in that: The fixed printing device parameters include the printing device number, the Chinese name of the signal point, the English name of the signal point, the length of the signal point, the category of the signal point and the unit of the signal point.
5. The data collection and transmission method according to claim 4, characterized in that: The step 2) is specifically: 2.1) The collector obtains parameters of multiple selected fixed printing devices from the server; 2.2) The collector determines a fixed printing device parameter from a plurality of candidate fixed printing parameters based on the printing device number.
6. The data collection and transmission method according to claim 5, characterized in that: The step 4) is specifically: 4.1) The collector updates the data switch field in the database and receives dynamic data from the printing device; 4.2) The collector writes the dynamic data of the printing device into the transmission data queue and transmits it.
7. The data collection and transmission method according to claim 6, characterized in that: The steps 4.1) and 4.2) also include: The collector cyclically reads the dynamic data of the printing device and determines the length of the dynamic data of the printing device. If the length of the dynamic data of the printing device is greater than a preset value, the collector stops acquiring the dynamic data of the printing device.
8. The data collection and transmission method according to claim 7, characterized in that: The step 4.2) is specifically: The collector processes and classifies the dynamic data of the printing device, writes the classified dynamic data of the printing device into a transmission data queue and transmits it.
9. The data collection and transmission method according to claim 8, characterized in that: The collector processes the dynamic data of the printing device in a manner including data filtering; The collector classifies the dynamic data of the printing device into device data, alarm data, status data and photo data.
