Test method and device of 3D printing equipment, storage medium and electronic equipment
By generating test set files and automating test data processing, the inefficiency caused by manual testing of 3D printers is solved, and efficient and accurate test result traceability is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGZHOU HEIGE ZHIZAO INFORMATION TECH CO LTD
- Filing Date
- 2023-03-13
- Publication Date
- 2026-05-12
AI Technical Summary
The testing process for 3D printers relies on manual labor, resulting in low efficiency and lack of traceability. Existing technologies lack effective measurement methods, leading to complex testing and a high risk of missed detections.
By generating test set files, the 3D printing equipment is instructed to perform printing actions and acquire test data to determine test results. The test process is automated using computer programs, thereby improving testing efficiency.
It has enabled automated testing of 3D printing equipment, improved testing efficiency, reduced manual intervention, and ensured the accuracy and traceability of test results.
Smart Images

Figure CN116461096B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of 3D printing, and more specifically, to a testing method, apparatus, storage medium, and electronic device for 3D printing equipment. Background Technology
[0002] The production process of 3D printer equipment is cumbersome. Production testing and verification account for 50% of the printer production time. Verification methods are cumbersome and complex, and it is easy to miss or fail to detect certain items. Testing and statistics all depend on individual operation, which is time-consuming and cannot be traced back to each process. If you want to find the equipment's production records, you need to search local data, which is incomplete.
[0003] Currently, there are no good means of measuring whether a 3D printer is stable, meets design requirements, and whether its embedded algorithms execute correctly as designed. The only way is to check the test results by actually printing a model. However, the statistical methods used in the process are unclear and ambiguous, and further evaluation requires human experience.
[0004] In other words, in current technology, the testing process for 3D printers relies on manual labor, resulting in low testing efficiency. Summary of the Invention
[0005] This invention provides a testing method, apparatus, storage medium, and electronic device for 3D printing equipment, to at least solve the technical problem of low testing efficiency of 3D printers.
[0006] According to one aspect of the present invention, a testing method for a 3D printing device is provided, comprising: generating a test set file based on the test items of the 3D printing device to be tested; wherein the test set file is used to instruct the 3D printing device to perform corresponding 3D printing actions; acquiring test data during the execution of the corresponding 3D printing actions by the 3D printing device; and determining the test result of the 3D printing device based on the test data.
[0007] According to another aspect of the present invention, a testing apparatus for a 3D printing device is provided, comprising: a generation module, configured to generate a test set file based on the test items of the 3D printing device to be tested; wherein the test set file is used to instruct the 3D printing device to perform corresponding 3D printing actions; an acquisition module, configured to acquire test data during the execution of the corresponding 3D printing actions by the 3D printing device; and a determination module, configured to determine the test result of the 3D printing device based on the test data.
[0008] As an optional example, the test set file includes a target slice file; the above-mentioned determining module includes: a first acquisition unit for acquiring a standard slice file; and an adjustment unit for adjusting the standard slice file according to the above-mentioned test item to obtain the above-mentioned target slice file.
[0009] As an optional example, the adjustment unit includes: a first determining subunit, configured to determine the standard slice file as the target slice file when slice data corresponding to the test item exists in the standard slice file; and an adjustment subunit, configured to adjust the standard slice file according to the test item to obtain the target slice file when slice data corresponding to the test item does not exist in the standard slice file.
[0010] As an optional example, the adjustment unit includes: an acquisition subunit for acquiring a plaintext view of the standard slice file, wherein the plaintext view includes an initial entity cross-sectional view; a second determination subunit for determining a target entity cross-sectional view of the plaintext view based on the test item; and a replacement subunit for replacing the initial entity cross-sectional view with the target entity cross-sectional view to obtain the target slice file.
[0011] As an optional example, the second determining subunit is further configured to: determine the position and number of each initial entity cross-section in the plaintext view according to the test item; determine the range of each initial entity cross-section according to the position, and calculate the white pixel region and connected number of each initial entity cross-section according to the range; remove interference pixels from each initial entity cross-section according to the white pixel region and the connected number; reduce the initial entity cross-section after removing interference pixels according to the number, and determine the initial entity cross-section after reduction as the target entity cross-section.
[0012] As an optional example, the determination module includes: a comparison unit for comparing the test data with theoretical parameters, wherein the theoretical parameters are the operating parameters of the 3D printing equipment under normal conditions; a first determination unit for determining that the 3D printing equipment is normal when the test data matches the theoretical parameters; and a second determination unit for determining that the 3D printing equipment is abnormal when the test data does not match the theoretical parameters.
[0013] As an optional example, the above apparatus further includes: a configuration module for configuring a test environment for printing the target slice file for the 3D printing device before determining the target slice file according to the test item of the 3D printing device to be tested.
[0014] As an optional example, the above configuration module includes: a second acquisition unit, used to acquire the printing device parameters of the 3D printing device; and a distribution unit, used to distribute a script file containing the printing device parameters to the 3D printing device so that the 3D printing device runs the script file.
[0015] As an optional example, the target slice file includes multiple sub-slice files, and the 3D printing device performs the corresponding 3D printing action as follows: upon receiving the current test data obtained by the 3D printing device from printing the current sub-slice file, based on the current test data, determine whether the 3D printing device should print the next sub-slice file or stop testing the 3D printing device.
[0016] As an optional example, the above apparatus further includes: a sending module, configured to send the test set file to middleware after determining the test set file according to the test items of the 3D printing equipment to be tested, so that the middleware sends the test set file to the 3D printing equipment.
[0017] As an optional example, the above-mentioned apparatus further includes: a testing module for determining a testing task before or after the 3D printing device performs a 3D printing operation according to the target slice file; and performing an Internet test on the 3D printing device using the testing task.
[0018] As an optional example, the above test task is at least one of the following tasks: issuing a print job, deleting a print job, upgrading a software / process package, or enabling / disabling a software / process package.
[0019] As an optional example, the above-mentioned test module includes: a test unit, configured to send a notification message to the 3D printing device via the Internet of Things (IoT) to enable the 3D printing device to perform the above-mentioned test task; receive the processing result of the 3D printing device performing the above-mentioned test task via the IoT; and perform a full verification on the processing result.
[0020] According to another aspect of the present invention, a storage medium is also provided, wherein a computer program is stored therein, wherein the computer program is executed by a processor to perform the testing method of the 3D printing device described above.
[0021] According to another aspect of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to execute the test method of the 3D printing device described above through the computer program.
[0022] In this embodiment of the invention, a method is employed to generate a test set file based on the test items of the 3D printing equipment to be tested; wherein the test set file is used to instruct the 3D printing equipment to perform corresponding 3D printing actions; to obtain test data during the execution of the corresponding 3D printing actions by the 3D printing equipment; and to determine the test results of the 3D printing equipment based on the test data. Because in this method, for the 3D printing equipment, a test set file can be generated based on the test items, and the 3D printing equipment can be instructed to print according to the test set file to obtain test data, and the test results of the 3D printing equipment can be determined based on the test data, thereby achieving the goal of improving the testing efficiency of the 3D printing equipment and solving the technical problem of low testing efficiency of 3D printers. Attached Figure Description
[0023] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0024] Figure 1 This is a flowchart of a testing method for an optional 3D printing device according to an embodiment of the present invention;
[0025] Figure 2 This is a system flowchart according to an embodiment of the present invention;
[0026] Figure 3 This is a schematic diagram of automatic calibration and data acquisition feedback according to an embodiment of the present invention;
[0027] Figure 4 This is a schematic diagram of the test slice design according to an embodiment of the present invention;
[0028] Figure 5 This is a schematic diagram of another slice design according to an embodiment of the present invention;
[0029] Figure 6 This is a flowchart of an automated test according to an embodiment of the present invention;
[0030] Figure 7 This is a test schematic diagram according to an embodiment of the present invention;
[0031] Figure 8 This is a flowchart of an IoT automatic printing task according to an embodiment of the present invention;
[0032] Figure 9 This is an overall framework diagram of cloud-based functions according to an embodiment of the present invention;
[0033] Figure 10 This is a schematic diagram of the structure of a test device for an optional 3D printing equipment according to an embodiment of the present invention;
[0034] Figure 11 This is a schematic diagram of an optional electronic device according to an embodiment of the present invention. Detailed Implementation
[0035] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0036] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0037] According to a first aspect of the present invention, a testing method for a 3D printing device is provided, optionally, as follows: Figure 1 As shown, the above method includes:
[0038] S102, Generate a test set file based on the test items of the 3D printing equipment to be tested; wherein, the test set file is used to instruct the 3D printing equipment to perform the corresponding 3D printing actions;
[0039] The test set file may include slice files and / or other control instructions. A slice file is a data file obtained by slicing the model to be printed. It may include printing configuration data, material and process configuration data, printer adaptation configuration data, cross-sectional data, etc. The 3D printing equipment can perform corresponding printing actions based on this slice file, such as exposure power and exposure images. The target slice file is a slice file generated according to the specific test item.
[0040] The tests cover various aspects, such as testing the effectiveness of print projection edge accuracy, the effectiveness of print residue optimization, print projection rule verification, and the effectiveness of scraping enhancement. Specifically, for the intelligent printing test objectives, a common hardware architecture is used: a camera compatible with the printer platform's mounting structure is mounted above the printing platform, forming a 90-degree perpendicular parallel with the optical engine. A common pre-test method is employed: capturing a 90° projection image directly above the optical engine, and then analyzing various image metrics for testing different intelligent printing tasks. This detection method effectively reduces the workload of manually visually judging the print projection image. For the test objective of testing print projection edge accuracy, a key metric is selected: image pixel cluster fitting similarity. A testing method involves layer-by-layer detection of the image's edge fitting similarity; results within the acceptable similarity range indicate a passed edge accuracy test. Similarly, for the test objective of testing print residue optimization, a key metric is selected: the number of closed connected group images in the image. A testing method involves layer-by-layer detection of the number of closed connected group images in the image; results within the acceptable group number range indicate a passed image residue optimization test. For the test objective: the effectiveness of shovel enhancement, the selected test metric is the width of the graphical connected group. The test method involves subtracting layers at intervals to obtain the width of the graphical connected group. Widths within the acceptable range are considered successful for image artifact optimization. For the test objective: verification of print projection rules, the selected test metric is the image sequence number. The test method involves inputting print layer rules and comparing the sequence number with the rule layer by layer. Projection rules with a matching score within the specified range are considered valid.
[0041] S104, acquire test data during the 3D printing process of the 3D printing equipment performing the corresponding 3D printing action;
[0042] S106. Based on the test data, determine the test results of the 3D printing equipment.
[0043] The testing methods described above for 3D printing equipment can be applied during the testing process. The 3D printing equipment performs test prints or real-world prints, and the test results are determined by acquiring the test data generated during the printing process. The 3D printing action described above is an image projection action.
[0044] The test data mentioned above can be used to analyze the 3D printing equipment during the preparation, printing, post-printing recovery, and adjustment processes, based on the target slice file. This test data allows us to check whether the printing process and results meet the requirements.
[0045] Test results can be used to characterize whether a 3D printing device is qualified or unqualified, or to characterize which part of the 3D printing device has a problem, or to characterize the accuracy of the 3D printing device.
[0046] In the above method, for 3D printing equipment, a test set file can be generated according to the item to be tested, and the 3D printing equipment can be instructed to print according to the test set file to obtain test data. Based on the test data, the test results of the 3D printing equipment can be determined, thereby achieving the goal of improving the testing efficiency of 3D printing equipment and solving the technical problem of low testing efficiency of 3D printers.
[0047] As an optional example, the test set file includes a target slice file. Determining the target slice file based on the test item of the 3D printing device to be tested includes: obtaining a standard slice file; and adjusting the standard slice file according to the test item to obtain the target slice file.
[0048] Optionally, once the test item is determined, a target slice file can be generated and sent to the 3D printer for printing. The target slice file can be generated based on a standard slice file. The standard slice file can be a slice file containing basic printing information, and can be obtained by adding, deleting, querying, and modifying standard slice files. The standard slice file can be pre-set. Different types of test items can use different standard slice files. The target slice file is obtained by adjusting the standard slice file. This step can improve the efficiency of generating the target slice file.
[0049] As an optional example, adjusting the standard slice file according to the project to be tested includes: if slice data corresponding to the project to be tested exists in the standard slice file, the standard slice file is determined as the target slice file; if slice data corresponding to the project to be tested does not exist in the standard slice file, the standard slice file is adjusted according to the project to be tested to obtain the target slice file.
[0050] Optionally, in this embodiment, since the items to be tested may be diverse, the standard slice file may not contain the slice data required by the items to be tested. When generating the target slice file using the standard test file, it is first checked whether the standard test file contains slice data corresponding to the items to be tested. If the slice data exists in the standard slice file, the standard slice file is used as the target slice file. If the standard slice file contains data other than the slice data, the extra data can be deleted or retained. If the standard slice file does not contain slice data, test data can be generated according to the items to be tested, and then the test data can be added to the standard slice file to obtain the target slice file.
[0051] As an optional example, adjusting the standard slice file according to the project to be tested includes: obtaining a plaintext view of the standard slice file, wherein the plaintext view includes an initial entity cross-section view; determining a target entity cross-section view of the plaintext view according to the project to be tested; and replacing the initial entity cross-section view with the target entity cross-section view to obtain the target slice file.
[0052] Optionally, this embodiment posits that the standard slice file does not contain slice data. In this case, the standard slice file can be adjusted according to the project to be tested to obtain the target slice file.
[0053] When adjusting a standard slice file, a plaintext view of the standard slice file can be obtained. A plaintext view is a view that can be visually observed. For example, an image, multiple pixels, etc., can be recognized by the human eye or machine vision. The plaintext view can contain the initial solid cross-sectional view of the slices in the slice file. The initial solid interface view can contain a slice of the item to be printed, which includes both item and non-item portions.
[0054] The target entity interface diagram is the graphic of the slice determined based on the item to be tested, that is, the graphic that the item to be tested will be printed in this slice.
[0055] As an optional example, determining the target entity cross-section of the plaintext view based on the test item includes: determining the position and number of each initial entity cross-section in the plaintext view based on the test item; determining the range of each initial entity cross-section according to its position, and calculating the plaintext pixel region and the number of connected components of each initial entity cross-section based on its range; removing interfering pixels from each initial entity cross-section based on the plaintext pixel region and the number of connected components; reducing the initial entity cross-section after removing interfering pixels according to the number of pixels, and determining the reduced initial entity cross-section as the target entity cross-section.
[0056] Optionally, in this embodiment, after determining the initial cross-sectional view of the plaintext view of the item to be tested, the initial cross-sectional view can be adjusted. The position of the initial cross-sectional view mentioned above is the position of the content of the object corresponding to the item to be printed in the image in the initial interface view. For example, the number of initial cross-sectional views mentioned above can be the number of initial cross-sectional views, that is, the number of layers to be printed.
[0057] As an optional example, determining the test results of a 3D printing device based on test data includes: comparing the test data with theoretical parameters, where the theoretical parameters are the operating parameters of the 3D printing device under normal conditions; if the test data matches the theoretical parameters, the 3D printing device is determined to be normal; if the test data does not match the theoretical parameters, the 3D printing device is determined to be abnormal.
[0058] Optionally, in this embodiment, after the 3D printing device performs the printing action according to the target slice file and obtains the test data, the test data can be compared with the theoretical test to determine whether the test data is normal.
[0059] The theoretical data mentioned above can be obtained by printing using a 3D printing device that has been tested manually and is functioning normally, following the same printing process. This data represents theoretical parameters.
[0060] When comparing test data with operating parameters, one method is to check if they match, such as whether they are identical or if the difference is within the allowable fluctuation range. Another method is to compare the magnitude of the difference; a large difference indicates abnormal test data, while a small difference indicates normal test data. The magnitude of the difference can be constrained by a predetermined value; exceeding the predetermined value is considered too large.
[0061] As an optional example, before determining the target slice file based on the test item of the 3D printing device to be tested, the above method also includes: configuring a test environment for the 3D printing device to print the target slice file.
[0062] As an optional example, configuring a test environment for printing target slice files for a 3D printing device includes: obtaining the printing device parameters of the 3D printing device; and sending a script file containing the printing device parameters to the 3D printing device so that the 3D printing device can run the script file.
[0063] Optionally, in this embodiment, the 3D printing device needs to be configured with a test environment for printing test set files before testing.
[0064] The test environment can be configured by setting the parameters and data required for the 3D printing equipment, which can be done via a script file. The script file is then sent to the 3D printing equipment, which runs the script file to operate the test environment. After running the script file, the 3D printing equipment is then tested within this test environment.
[0065] As an optional example, the following steps are also included:
[0066] Upon receiving the current test data obtained by the 3D printing device from printing the current test set file, the system determines, based on the current test data, whether to print the next test set file or to stop testing the 3D printing device.
[0067] Optionally, in this embodiment, the testing of the 3D printing equipment can be divided into multiple stages. Each test set file can be printed by the 3D printing equipment. After printing, the current test data during the printing process can be collected, and the normality of the current test data can be checked. If the current test data is normal, the printing and testing of the next test set file can continue. If the current test data is abnormal, the test can be stopped or paused.
[0068] As an alternative example, after determining the target slice file based on the test item of the 3D printing device to be tested, the above method further includes: sending the target slice file to middleware so that the middleware sends the target slice file to the 3D printing device.
[0069] In this embodiment, middleware can be used as a relay device for the 3D printing equipment. The middleware transmits target slices to the 3D printing equipment, allowing the 3D printing equipment to communicate with other devices.
[0070] As an optional example, before or after the 3D printing device performs the 3D printing action according to the target slice file, the above method also includes: determining a test task; and using the test task to perform an internet test on the 3D printing device.
[0071] As an optional example, the test task is at least one of the following: issuing a print job, deleting a print job, upgrading a software / process package, or enabling / disabling a software / process package.
[0072] In this embodiment, in addition to printing tests on the 3D printing equipment, internet tests can also be performed on the 3D printing equipment. Internet testing is used to test the network connectivity of the 3D printing equipment. Internet testing can be performed by at least one of the following: issuing print jobs, deleting print jobs, upgrading software / process packages, and enabling / disabling software / process packages.
[0073] As an optional example, performing Internet testing on a 3D printing device using a test task includes: sending a notification message to the 3D printing device via the Internet of Things (IoT) to enable the 3D printing device to perform a test task; receiving the processing results of the 3D printing device performing the test task via the IoT; and performing a full verification of the processing results.
[0074] In this embodiment, after the 3D printing equipment executes the test task, a full verification of the test task processing results can be performed. The results of the full verification are used to check whether the internet test passed.
[0075] Figure 2This is a system flowchart for this embodiment. In this embodiment, a 3D printer is used as an example of a 3D printing device. The cloud is responsible for data processing and can be used for automated production line inspection and traceability of the 3D printer, and can verify the barcode information of the 3D printer. The cloud can communicate with a computer terminal (PC). The computer terminal contains a testing program.
[0076] During testing, first import the 3D printer's unique code, and then start the PC terminal testing program to automatically execute the test.
[0077] The PC automatically sends test items to different devices and then to the device middleware. The device middleware enables compatibility of 3D printers across different software and hardware platforms. The middleware interacts with the 3D printer, executes tests according to protocol instructions, and returns results. The PC collects data and uploads it to the test cloud for data analysis and evaluation.
[0078] By inputting the 3D printer's device code, the cloud center can trace the production testing process and view production data, thereby achieving data traceability.
[0079] Figure 3 This is a schematic diagram of automatic calibration and data acquisition feedback in this embodiment.
[0080] The test is initiated from the PC program, which remotely connects to the device middleware via the device IP and uploads the test slice file to the test printer.
[0081] The device middleware executes the slice file according to the issued instructions. The PC program collects test data through sensors such as light sensors, ultraviolet light sensors, displacement sensors, and cameras and feeds it back to the cloud. The cloud processes the data and feeds it back to the printer for data calibration.
[0082] By combining the design of the slicing with the sensors, targeted testing of each functional module of the printer can be achieved, and the test results can be judged and synchronized to the cloud center for data processing and statistics.
[0083] Figure 4 This is a schematic diagram of the test slice design in this embodiment.
[0084] 3D printer automatic monitoring, calibration, stability and modular testing: Test the functionality of each module of the printer by designing test slice files.
[0085] Figure 5 This is a schematic diagram of another slice design in this embodiment.
[0086] Figure 6 This is a flowchart of the automatic testing process in this embodiment.
[0087] The business logic testing module (API) sends instructions to the printer, including issuing / deleting print jobs, software upgrades, process package upgrades, enabling / disabling process packages, and downloading logs.
[0088] After receiving these instructions, the printer will report the corresponding status information to the platform. The data verification module will verify this status information and output the verification results in real time.
[0089] The UI automation module controls the printer to select print jobs via virtual mouse, touchscreen, and other touch-screen modules. During printing, the printer reports printing status information in real time, and the data verification module verifies this information and outputs any verification errors in real time.
[0090] 3D Printer Automated Test Management:
[0091] The platform enables the configuration and management of test scripts and online review of test reports. To improve product testing methods and quality, it provides online control over the configuration of the testing environment, test scripts, test cases, and the platform for test execution. This allows ordinary testers or other production line testers to independently conduct tests and quickly automate the testing of 3D printers. Even if requirements change, the platform can be quickly updated and deployed through simple configuration changes, thereby improving testing efficiency.
[0092] Let's illustrate this with an example.
[0093] In this embodiment, on the PC, the user can select different functions of the system according to their needs. If the automated testing of the 3D printer is selected, the user can enter the 3D printer automated production testing and traceability system. Then, automatic calibration and monitoring of the 3D printer can be performed. If testing of the 3D printer is required, either 3D printer module function and performance testing or 3D printer network (Internet of Things, IoT) function testing can be performed. The unique code of the device can be entered by scanning a code, and the test can begin according to the preset printer type. The PC program connects to the device middleware via TCP. The middleware connects to the printer using serial port, TCP, and other methods, and begins issuing test items according to the preset process. After receiving the instructions, the 3D printer begins executing the test and returns the test results to the device middleware. Based on the result of the current test item, the system determines whether to proceed to the next test item or end the test. The middleware returns data to the PC program, which processes the data and feeds the test results back to the cloud. The cloud parses the collected data, saves it, and outputs the final conclusion to the PC program, informing it of the test results. All data is stored and a query interface is provided. All test results can be traced through the unique device code.
[0094] During the test, the PC program can connect to the device printer and set theoretical test data values, such as testing the printer's light intensity, setting parameters such as ambient light intensity, expected projection value, design time, and strategy duration.
[0095] (1) Import the designed slice file;
[0096] (2) Start printing and use sensors to record actual values. Perform algorithm filtering on the data returned by the sensors and record the time, the current number of slices to be printed, the current function and the function algorithm.
[0097] (3) Repeat the above steps until the sliced file is printed;
[0098] (4) The data is returned to the PC program. The PC program parses and packages the data and sends it back to the cloud server for processing. After the cloud server parses the data, it sends the data back to the printer and the PC for data correction of printing parameters and judgment parameters.
[0099] The main process for designing sliced files is as follows:
[0100] Open the slice, decrypt it to obtain a plaintext view, and view the existing information in the slice file.
[0101] Make judgments based on the test requirements. If it is necessary to change the printing configuration, reset the material name, material precision and other information according to the test points.
[0102] Update the 2D cross-sectional image. Calculate the projection sensor positions and number according to the test plan. Based on the photometer and illuminometer's light-sensing range and shape, calculate the white pixel area and connected pixels of the 2D graphic. Remove interference from gray transition pixels to reconstruct a new solid cross-sectional image. Select and discard support, contour, and base plate cross-sectional images according to test requirements. Update the layer retrieval file and the number of unit layers according to the number of tests. Use a multi-process loop to reduce image generation time. Save the file and exit editing.
[0103] By designing different slice files, it is possible to perform individual tests on a specific module or function of the printer. By configuring printer parameters, single-function configurations can be achieved, such as single spindle movement, single DLP printer light projection, and independent movement of the liquid dispensing module, thereby realizing automated testing of the module's function and performance.
[0104] Meanwhile, the sliced files can also be designed with a separate algorithm for the printer or a fusion of multiple algorithms for data verification to check whether the algorithm's processing results are consistent with the preset and how much the deviation range is.
[0105] For IoT testing of 3D printers, such as Figure 7As shown, the business logic module mainly implements business interactions with the printer, including issuing / deleting print jobs, upgrading software / process packages, and enabling / disabling process packages. The data validation module mainly performs full validation of the data returned by the printer, including field names, field types, and field values. The following example illustrates this:
[0106] (1) The business logic module sends task instructions to the printer;
[0107] (2) After receiving the instruction, the printer downloads the task and replies with the download result after the download is completed;
[0108] (3) The data verification module verifies the download result information;
[0109] (4) Finally, display the verification results on the test platform.
[0110] See attached document Figure 8 This is a flowchart of the printer IoT automatic printing task in this solution. The UI module mainly controls the printer through click operations, while the data validation module performs full validation of the data returned by the printer, including field names, field types, and field values. Details are as follows:
[0111] (1) Control the printer to select the task and start printing through the UI module;
[0112] (2) The printer reports the status information during printing, and the data verification module verifies the information;
[0113] (3) The printer reports sensor status information, and the data verification module verifies it;
[0114] (4) After printing is complete, the data verification module will display the results on the test platform.
[0115] Figure 9 This is the overall framework diagram of the cloud-based functions in this solution, realizing the process from product requirements to unattended execution, improving the flexibility of testing process access, unified resource configuration, and intelligence. The page mainly controls the input and output of test cases, printer configuration, and automatic execution functions, as detailed below:
[0116] Enter the printer model, serial number, and system type on the page, and save it to the database.
[0117] Based on the entered data, the required configuration parameters are written online. After editing, the backend interface is called to send the configuration script to the printer and execute it. After execution, the results are sent back to the front end to display the device's environment configuration status, aiming to achieve the environment required for the test cases of this model.
[0118] After the environment is configured, test cases are written based on the SN. UI and API tests are optional, and file import is also supported. After import, the data is stored in the database, and the front end displays the data in list format.
[0119] After test cases are created, they can be executed as scheduled tasks in the task management system or executed immediately. When executed, the cloud downloads the test script to the printer for execution, and the test results are transmitted back in real time and the status is displayed on the front end.
[0120] Once the printer invokes the open interface, it sends real-time feedback to the cloud. The cloud receives the data, processes it, and renders the results onto the page for display. This includes transmissions of optical engine test results, MQTT protocol test results, lower-level machine test results, and printer status (light intensity, ultraviolet light, camera, etc.), as detailed below:
[0121] After the printer executes the test program, the PC processes the data and returns it to the cloud.
[0122] Data is parsed in the cloud, displayed in report form, and stored in a database, allowing for the tracking of historical results.
[0123] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.
[0124] According to another aspect of the embodiments of this application, a testing apparatus for a 3D printing device is also provided, such as... Figure 10 As shown, it includes:
[0125] The generation module 1002 is used to generate a test set file based on the test items of the 3D printing equipment to be tested; wherein, the test set file is used to instruct the 3D printing equipment to perform corresponding 3D printing actions;
[0126] The acquisition module 1004 is used to acquire test data during the process of the 3D printing equipment performing the corresponding 3D printing action;
[0127] The determination module 1006 is used to determine the test results of the 3D printing equipment based on the test data.
[0128] The testing methods described above for 3D printing equipment can be applied during the testing process. The 3D printing equipment undergoes test printing or real-world printing, and the test data generated during the printing process is used to determine the test results.
[0129] The test item mentioned above can be the item to be printed by the 3D printing equipment. There can be one or more test items. Other examples of this embodiment are provided above and will not be repeated here.
[0130] Figure 11 This is a schematic diagram of an optional electronic device according to an embodiment of this application, such as... Figure 11 As shown, it includes a processor 1102, a communication interface 1104, a memory 1106, and a communication bus 1108. The processor 1102, communication interface 1104, and memory 1106 communicate with each other via the communication bus 1108.
[0131] Memory 1106 is used to store computer programs;
[0132] When processor 1102 executes a computer program stored in memory 1106, it performs the following steps:
[0133] Based on the test items of the 3D printing equipment to be tested, a test set file is generated; the test set file is used to instruct the 3D printing equipment to perform the corresponding 3D printing actions.
[0134] Acquire test data during the 3D printing process of the 3D printing equipment performing the corresponding 3D printing actions;
[0135] Based on the test data, determine the test results of the 3D printing equipment.
[0136] Optionally, in this embodiment, the communication bus can be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 11 The symbol is represented by a single thick line, but this does not indicate that there is only one bus or one type of bus. The communication interface is used for communication between the aforementioned electronic devices and other devices.
[0137] The memory may include RAM, or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.
[0138] As an example, the memory 1106 described above may include, but is not limited to, the generation module 1002, the acquisition module 1004, and the determination module 1006 of the testing device of the 3D printing equipment. Furthermore, it may include, but is not limited to, other module units of the testing device of the 3D printing equipment, which will not be elaborated upon in this example.
[0139] The processors mentioned above can be general-purpose processors, including but not limited to: CPU (Central Processing Unit), NP (Network Processor), etc.; they can also be DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0140] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments, and will not be repeated here.
[0141] Those skilled in the art will understand that Figure 11 The structure shown is for illustrative purposes only. The device used to implement the above-mentioned testing method for 3D printing equipment can be a terminal device, such as a smartphone (e.g., Android phone, iOS phone), tablet computer, PDA, mobile Internet Devices (MID), PAD, etc. Figure 11 This does not limit the structure of the aforementioned electronic devices. For example, the electronic device may also include components that are more... Figure 11 The more or fewer components shown (such as network interfaces, display devices, etc.), or having the same Figure 11 The different configurations shown.
[0142] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, ROM, RAM, disk or optical disk, etc.
[0143] According to another aspect of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored therein, wherein the computer program is executed by a processor to perform the steps in the test method of the 3D printing device described above.
[0144] Optionally, in this embodiment, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0145] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0146] If the integrated units in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
[0147] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0148] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection between units or modules, and may be electrical or other forms.
[0149] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0150] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0151] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A testing method for a 3D printing device, characterized in that, include: Based on the test items of the 3D printing equipment to be tested, a test set file corresponding to the test items is generated. The test set file is used to instruct the 3D printing equipment to perform corresponding 3D printing actions. By designing different slice files, individual tests can be performed on a single module or function of the 3D printing equipment. By configuring the parameters of the 3D printing equipment, the configuration of a single function can be achieved, realizing automated testing of the module's function and performance. The test items include at least one of the following: testing the effectiveness of printing light projection edge accuracy, testing the effectiveness of printing residue optimization, verifying printing projection rules, or testing the effectiveness of scraping part reinforcement. Acquire test data during the 3D printing process of the 3D printing device performing the corresponding 3D printing action, wherein the test data includes the number of closed connected group images of the image; Based on the test data, the test results of the 3D printing equipment are determined, including: when the test item is the effectiveness of testing printing residue optimization, the number of image closed connected groups of images formed by the projected image is detected layer by layer, and the image residue optimization test is passed if the number of groups of images is within the qualified range; Upon receiving the current test data obtained by the 3D printing device from printing the current test set file, the system determines, based on the current test data, whether the 3D printing device should print the next test set file or stop testing the 3D printing device. The test set file includes target slice files, which are determined based on the test items of the 3D printing equipment to be tested.
2. The method according to claim 1, characterized in that, The test set file includes target slice files; determining the test set file based on the test items of the 3D printing equipment to be tested includes: Obtain the standard slice file; The standard slice file is adjusted according to the item to be tested to obtain the target slice file.
3. The method according to claim 2, characterized in that, The step of adjusting the standard slice file according to the project to be tested includes: If the standard slice file contains slice data corresponding to the item to be tested, the standard slice file is determined as the target slice file; If no slice data corresponding to the item to be tested exists in the standard slice file, the standard slice file is adjusted according to the item to be tested to obtain the target slice file.
4. The method according to claim 2 or 3, characterized in that, The step of adjusting the standard slice file according to the project to be tested includes: Obtain a plaintext view of the standard slice file, wherein the plaintext view includes an initial solid cross-section view; Determine the target entity cross-sectional view of the plaintext view based on the item to be tested; The target slice file is obtained by replacing the initial entity cross-section with the target entity cross-section.
5. The method according to claim 4, characterized in that, The step of determining the target entity cross-sectional view of the plaintext view based on the item to be tested includes: Based on the item to be tested, determine the position of each initial entity cross-section in the plaintext view and the number of each initial entity cross-section; According to the location, determine the range of each initial entity cross-sectional image, and calculate the white pixel region and the number of connected elements of each initial entity cross-sectional image based on the range; Based on the white image pixel region and the number of connected elements, remove interfering pixels from each of the initial entity cross-sectional images; The initial entity cross-sectional image after removing interference pixels is reduced according to the stated number, and the initial entity cross-sectional image after reduction is determined as the target entity cross-sectional image.
6. The method according to claim 1, characterized in that, The step of determining the test results of the 3D printing equipment based on the test data includes: The test data is compared with the theoretical parameters, wherein the theoretical parameters are the operating parameters of the 3D printing equipment under normal conditions; If the test data matches the theoretical parameters, the 3D printing equipment is determined to be functioning normally. If the test data does not match the theoretical parameters, the 3D printing equipment is determined to be malfunctioning.
7. The method according to claim 1, characterized in that, Before determining the target slice file based on the test item of the 3D printing equipment to be tested, the method further includes: Configure a test environment for the 3D printing device to print the target slice file.
8. The method according to claim 7, characterized in that, The process of configuring a test environment for the 3D printing device to print the target slice file includes: Obtain the printing equipment parameters of the 3D printing equipment; A script file containing the parameters of the printing device is sent to the 3D printing device so that the 3D printing device can run the script file.
9. The method according to claim 1, characterized in that, After determining the test set file based on the test items of the 3D printing equipment to be tested, the method further includes: The test set file is sent to middleware, which then sends the test set file to the 3D printing device.
10. The method according to claim 1, characterized in that, Before or after the 3D printing operation is performed by the 3D printing equipment according to the test set file, the method further includes: Define the test tasks; The test task is used to perform an internet test on the 3D printing device.
11. The method according to claim 10, characterized in that, The test task is at least one of the following: issuing a print job, deleting a print job, upgrading a software / process package, or enabling / disabling a software / process package.
12. The method according to claim 11, characterized in that, The process of performing internet testing on the 3D printing device using the test task includes: The 3D printing equipment is notified via the Internet of Things (IoT) to perform the test task. The IoT device receives the processing results of the test task performed by the 3D printing equipment. Perform a full verification on the processing result.
13. A testing device for 3D printing equipment, characterized in that, include: The generation module is used to generate a test set file corresponding to the test items of the 3D printing equipment to be tested. The test set file is used to instruct the 3D printing equipment to perform corresponding 3D printing actions. By designing different slice files, individual tests can be performed on a single module or function of the 3D printing equipment. By configuring the parameters of the 3D printing equipment, the configuration of a single function can be achieved, thus realizing automated testing of the module's function and performance. The test items include at least one of the following: testing the effectiveness of printing edge accuracy, testing the effectiveness of printing residue optimization, verifying printing projection rules, or testing the effectiveness of scraping reinforcement. The acquisition module is used to acquire test data during the 3D printing process of the 3D printing device performing the corresponding 3D printing action, wherein the test data includes the number of closed connected group images of the image; The determination module is used to determine the test results of the 3D printing equipment based on the test data, including: when the test item is the effectiveness of testing printing residue optimization, detecting the number of image closed connected groups of images formed by the projected image layer by layer, and the image residue optimization test is passed if the number of groups of images is within the qualified range; Upon receiving the current test data obtained by the 3D printing device from printing the current test set file, the system determines, based on the current test data, whether the 3D printing device should print the next test set file or stop testing the 3D printing device. The test set file includes target slice files, which are determined based on the test items of the 3D printing equipment to be tested.
14. A computer-readable storage medium storing a computer program, characterized in that, The computer program is executed by the processor to perform the method described in any one of claims 1 to 12.
15. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 12 through the computer program.