Machining method, device, machining system, equipment and computer readable storage medium

By configuring a communication mechanism between the host computer and the graphics processing software, graphics processing data can be transmitted in real time, solving the problem of low efficiency caused by importing and exporting graphics files, and realizing efficient data transmission and improved processing efficiency in material processing.

CN121636211APending Publication Date: 2026-03-10HANS CNC SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-10
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

In existing technologies, the frequent import and export of graphic files during material processing leads to low efficiency and makes it impossible to achieve efficient data transmission between the host computer and the graphic processing software.

Method used

By pre-configuring a communication mechanism between the host computer and the graphics processing software, the graphics processing software processes the original graphics file and generates graphics processing data, which is then sent to the host computer through a data receiving thread, thus achieving real-time data transmission and avoiding the import and export process of graphics files.

Benefits of technology

This improves the transmission efficiency of graphic processing data, thereby enhancing the overall efficiency of material processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121636211A_ABST
    Figure CN121636211A_ABST
Patent Text Reader

Abstract

The invention relates to a machining method and device, a machining system, equipment and a computer readable storage medium, and relates to the technical field of machining. The method comprises the following steps: in response to a processing instruction for a target substrate, obtaining an original graphic file of the target substrate and graphic processing parameters for the original graphic file through graphic processing software; performing graphic processing on the original graphic file based on the graphic processing parameters through graphic processing software to obtain graphic processing data of the target substrate; starting a data receiving thread of the upper computer, and sending the graphic processing data to the upper computer through the graphic processing software based on a preset communication mechanism between the upper computer and the graphic processing software and the data receiving thread; and processing the target substrate through the upper computer according to the graphic processing data. By adopting the method, the processing efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of processing technology, and in particular to a processing method, apparatus, processing system, equipment, and computer-readable storage medium. Background Technology

[0002] Processing refers to various operations on materials, such as drilling, cutting, dicing, welding, and heat treatment. With the rapid development of processing technology, the scope of processing has gradually expanded, and against this background, increasingly higher requirements have been put forward for processing efficiency.

[0003] Currently, material processing often requires interaction between a host computer and graphics processing software. The graphics processing software exports the created graphics as a file, which the host computer then imports to process the material. However, this method is overly cumbersome, and the frequent importing and exporting of graphics files significantly reduces processing efficiency. Summary of the Invention

[0004] Therefore, it is necessary to provide a processing method, apparatus, processing system, computer equipment, and computer-readable storage medium that can improve processing efficiency in response to the above-mentioned technical problems.

[0005] In a first aspect, this application provides a processing method, comprising: responding to a processing instruction for a target substrate, obtaining an original graphic file of the target substrate and graphic processing parameters for the original graphic file through graphics processing software; performing graphic processing on the original graphic file based on the graphic processing parameters through the graphics processing software to obtain graphic processing data of the target substrate; activating a data receiving thread of a host computer, and sending the graphic processing data to the host computer through the graphics processing software based on a preset communication mechanism between the host computer and the graphics processing software and the data receiving thread; and performing processing on the target substrate through the host computer according to the graphic processing data.

[0006] In one embodiment, the graphics processing parameters are obtained in any of the following ways: Method 1: Receive graphics processing parameters for the original graphics file input by the user through the interface of the graphics processing software; Method 2: Start the data sending thread of the host computer, and send the graphics processing parameters for the original graphics file to the graphics processing software through the host computer based on the preset communication mechanism between the host computer and the graphics processing software and the data sending thread.

[0007] In one embodiment, processing a target substrate based on graphics processing data includes: acquiring a data identifier for the graphics processing data; classifying the graphics processing data based on the data identifier to obtain the data type of the graphics processing data; determining a processing operation that matches the data type; and processing the target substrate according to the processing operation.

[0008] In one embodiment, the method further includes: obtaining the processing requirements of the target substrate from the processing instructions; matching processing parameters based on the processing requirements to obtain processing parameters that match the processing requirements; and processing the target substrate according to the processing operation, including: processing the target substrate according to the processing operation and the processing parameters.

[0009] In one embodiment, the original graphic file is processed based on graphic processing parameters to obtain graphic processing data of the target substrate. This includes: processing the original graphic file according to the graphic processing parameters to obtain initial processing data of the target substrate; acquiring data format information compatible with the host computer; and converting the format of the initial processing data based on the data format information to obtain graphic processing data of the target substrate.

[0010] In one embodiment, the method further includes: analyzing the data transmission quality of the data transmission channel between the graphics processing software and the host computer during the transmission of graphics processing data; and adjusting the preset communication mechanism to obtain the target communication mechanism when the data transmission quality does not meet the expected transmission quality.

[0011] Secondly, this application also provides a processing apparatus, comprising: a data acquisition module, configured to, in response to a processing instruction for a target substrate, acquire an original graphic file of the target substrate and graphic processing parameters for the original graphic file via graphics processing software; a graphics processing module, configured to, via graphics processing software, perform graphic processing on the original graphic file based on the graphic processing parameters to obtain graphic processing data of the target substrate; a data transmission module, configured to, via graphics processing software, initiate a data receiving thread on a host computer, and, via graphics processing software, send the graphic processing data to the host computer based on a preset communication mechanism between the host computer and the graphics processing software and the data receiving thread; and a processing module, configured to, via the host computer, process the target substrate according to the graphic processing data.

[0012] Thirdly, this application also provides a processing system, including graphics processing software, a host computer communicating with the graphics processing software based on a preset communication mechanism, and a controller communicating with both the graphics processing software and the host computer. The graphics processing software, upon receiving a processing instruction for a target substrate, acquires the original graphic file of the target substrate and graphics processing parameters for the original graphic file; performs graphics processing on the original graphic file based on the graphics processing parameters to obtain graphics processing data of the target substrate; and sends the graphics processing data to the host computer based on the preset communication mechanism between the host computer and the graphics processing software. The host computer processes the target substrate according to the graphics processing data sent by the graphics processing software. The controller implements the steps of the processing method.

[0013] Fourthly, this application also provides a computer device, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to perform the following steps: in response to processing instructions for a target substrate, obtaining an original graphic file of the target substrate and graphic processing parameters for the original graphic file through graphics processing software; performing graphic processing on the original graphic file based on the graphic processing parameters through the graphics processing software to obtain graphic processing data of the target substrate; activating a data receiving thread of a host computer, and sending the graphic processing data to the host computer through the graphics processing software based on a preset communication mechanism between the host computer and the graphics processing software and the data receiving thread; and processing the target substrate through the host computer according to the graphic processing data.

[0014] Fifthly, this application also provides a computer-readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it performs the following steps: in response to a processing instruction for a target substrate, obtaining an original graphic file of the target substrate and graphic processing parameters for the original graphic file through graphics processing software; performing graphic processing on the original graphic file based on the graphic processing parameters through the graphics processing software to obtain graphic processing data of the target substrate; activating a data receiving thread of a host computer, and sending the graphic processing data to the host computer through the graphics processing software based on a preset communication mechanism between the host computer and the graphics processing software and the data receiving thread; and processing the target substrate according to the graphic processing data through the host computer.

[0015] The aforementioned processing method, apparatus, system, equipment, and computer-readable storage medium have a pre-configured communication mechanism between the host computer and the graphics processing software. Therefore, when the processing system receives a processing instruction for the target substrate, it first obtains the original graphic file of the target substrate and the graphics processing parameters for that file through the graphics processing software. Based on these parameters, the graphics processing software performs graphics processing on the original graphic file to obtain the graphics processing data for the target substrate. The host computer's data receiving thread is then activated, and the graphics processing software sends the obtained graphics processing data to the host computer based on the pre-configured communication mechanism and the data receiving thread. The host computer can then process the target substrate according to the graphics processing data. Thus, by configuring a communication mechanism between the host computer and the graphics processing software to replace the current method of importing and exporting graphic files, real-time data transmission between the host computer and the graphics processing software can be achieved, thereby improving the transmission efficiency of graphics processing data and consequently increasing processing efficiency. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a diagram illustrating the application environment of the processing method in one embodiment;

[0018] Figure 2 This is a flowchart illustrating a processing method in one embodiment;

[0019] Figure 3 This is a schematic diagram illustrating the import of the original graphic file in one embodiment;

[0020] Figure 4 This is a schematic diagram illustrating two methods for obtaining graphics processing parameters in one embodiment;

[0021] Figure 5 This is a schematic diagram of the interface for configuring graphics processing parameters in one embodiment;

[0022] Figure 6 This is a flowchart illustrating the matching of processing operations in one embodiment;

[0023] Figure 7 This is a schematic diagram of the data format conversion process in one embodiment;

[0024] Figure 8 This is a flowchart illustrating the adjustment of the communication mechanism in one embodiment;

[0025] Figure 9 This is a structural block diagram of the processing apparatus in one embodiment;

[0026] Figure 10 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0027] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0028] The processing method provided in this application embodiment can be applied to, for example... Figure 1 The processing system shown includes a host computer 102, graphics processing software 104, and a controller 106. The controller 106 is connected to both the host computer 102 and the graphics processing software 104, and the host computer 102 and the graphics processing software 104 communicate via a preset communication mechanism. When the controller 106 receives a processing instruction for the target substrate, it first instructs the graphics processing software 104 to obtain the original graphic file of the target substrate and the graphics processing parameters for that original graphic file. Based on these graphics processing parameters, the controller processes the original graphic file to obtain the graphics processing data of the target substrate. The controller 106 can then start the data receiving thread of the host computer 102. Alternatively, the controller 106 can start the data receiving thread of the host computer 102 upon receiving the processing instruction; the start time of the data receiving thread of the host computer 102 is not limited. The graphics processing software 104 can then send the graphics processing data to the host computer 102 via the preset communication mechanism and the data receiving thread. The host computer 102 then processes the target substrate based on the received graphics processing data.

[0029] In one embodiment, the host computer 102 may refer to the control software of mechanical equipment such as cutting machines and drilling machines, and the graphics processing software 104 may refer to the software that performs graphics processing on the original graphics file of the substrate. It can be used to create the graphics data required by the host computer when processing the substrate, such as AutoCAD (Autodesk Computer Aided Design) software, SolidWorks software, Adobe Illustrator software, etc.

[0030] In one exemplary embodiment, such as Figure 2 As shown, a processing method is provided, which is applied to Figure 1 Taking controller 106 as an example, the explanation includes the following steps:

[0031] In step S202, in response to the processing instructions for the target substrate, the original graphic file of the target substrate and the graphic processing parameters for the original graphic file are obtained by the graphics processing software.

[0032] The substrate is the basic material for manufacturing PCBs (Printed Circuit Boards). A PCB is a support structure that connects electronic components and circuits, used to realize the layout design of complex circuits and the transmission of electrical signals in electrical and electronic devices. The target substrate refers to the substrate that needs to be processed. Processing instructions can refer to instructions for processing the target substrate; in one example, processing instructions can be laser processing instructions, i.e., instructions to perform laser processing on the target substrate. The original graphic file can refer to the initial graphic file of the target substrate, which may include, but is not limited to, the circuit lines corresponding to the target substrate, the outlines of each component in the circuit lines, and the connection relationships between the components. Graphic processing parameters can refer to the relevant processing parameters of the graphics required by the host computer when processing the target substrate. Graphic processing parameters are used by graphics processing software to process the original graphic file, thereby generating the graphics processing data required by the host computer when processing the substrate.

[0033] In one example, the image processing parameters include, but are not limited to, the region parameters of the laser galvanometer, such as region length and region width; the path optimization parameters, such as shortest path length; the target processing parameters, such as target diameter, fixed target, target sorting, including clockwise or counterclockwise sorting, etc.; the image segmentation parameters, such as segmentation length and segmentation width, etc.; and the image filling parameters, such as horizontal filling, vertical filling, filling direction, filling line lengthening, filling markers, etc.

[0034] In one example, the original drawing file can be in any of the following formats: DXF (Drawing Exchange Format), Gerber, or PLT (PostScript Language Plotter). DXF is a drawing file format used in AutoCAD, known for its high precision in representing drawing sizes. Gerber is a collection of document formats used in the PCB industry to describe images and drill / milling data of PCBs (circuit layers, solder mask layers, character layers, etc.). PLT format files are vector graphics files that can be used for printing, text drawing, and file conversion.

[0035] In one example, such as Figure 3 As shown, graphics processing software can directly import the original graphic file of the target substrate.

[0036] For example, when the controller of the processing system receives an instruction to process a target substrate, it can instruct the graphics processing software to obtain the original graphics file of the target substrate, as well as the graphics processing parameters for the original graphics file, such as laser galvanometer region parameters, path optimization parameters, target processing parameters, graphics segmentation parameters, graphics filling parameters, etc., so that the graphics processing software can perform graphics processing on the original graphics file of the target substrate according to these graphics processing parameters, thereby obtaining graphics processing data.

[0037] Step S204: Using graphics processing software, the original graphic file is processed based on graphics processing parameters to obtain the graphics processing data of the target substrate.

[0038] Understandably, for various reasons, such as the original graphic file's format not being compatible with the host computer's file format, or even the graphic data in the original graphic file not meeting the host computer's current processing requirements for the target substrate, the original graphic file may not be accepted by the host computer. Therefore, graphic processing software is needed to process the graphic data to obtain graphic processing data that is compatible with the host computer and meets processing requirements, thereby improving the accuracy of graphic processing and ultimately increasing substrate processing efficiency. Graphic processing includes, but is not limited to, laser galvanometer region configuration, path optimization, target processing, graphic segmentation, and graphic filling of the original graphic file.

[0039] For example, after importing the original graphic file and obtaining the graphic processing parameters, the graphic processing software can perform laser galvanometer region configuration, path optimization, target processing, graphic segmentation, graphic filling, and other processing on the original graphic file according to the graphic processing parameters, thereby obtaining the graphic processing data of the target substrate.

[0040] Step S206: Start the data receiving thread of the host computer. Through the graphics processing software, based on the preset communication mechanism between the host computer and the graphics processing software and the data receiving thread, send the graphics processing data to the host computer.

[0041] Here, the data receiving thread can refer to the thread on the host computer used to receive data. The preset communication mechanism can refer to the pre-set mechanism for communication between the host computer and the graphics processing software.

[0042] In one example, the default communication mechanism could be a shared memory-based communication mechanism, which is an inter-process communication mechanism that allows different programs to access the same large memory area, enabling information transfer between multiple programs.

[0043] For example, after the graphics processing software completes the processing of the original graphics file and generates the corresponding graphics processing data, the controller can start the host computer's data receiving thread for the host computer to receive data. The graphics processing software can write the graphics processing data into the shared memory area based on a preset shared memory communication mechanism, and the host computer can access the shared memory area and obtain the graphics processing data of the target substrate through the data receiving thread.

[0044] Step S208: The target substrate is processed by the host computer according to the graphic processing data.

[0045] Processing refers to the process of handling the target substrate through processing operations, including but not limited to cutting, marking, drilling, and welding. In one example, the processing operations include, but are not limited to, laser cutting, laser marking, laser drilling, and laser welding.

[0046] For example, after the host computer obtains the graphics processing data of the target substrate from the shared memory area, it can determine what kind of processing operation the graphics processing data belongs to based on the data type of the graphics processing data, and then use the processing operation to perform corresponding processing on the target substrate.

[0047] In this embodiment, when the processing system receives a processing instruction for the target substrate, it first obtains the original graphic file of the target substrate and the graphic processing parameters for the original graphic file through graphics processing software. Based on these parameters, the graphics processing software performs graphic processing on the original graphic file to obtain the graphic processing data of the target substrate. The host computer's data receiving thread is then activated, and the graphics processing software sends the obtained graphic processing data to the host computer based on a preset communication mechanism and the data receiving thread. The host computer can then process the target substrate according to the graphic processing data. Thus, by configuring a communication mechanism between the host computer and the graphics processing software to replace the current method of importing and exporting graphic files, real-time data transmission between the host computer and the graphics processing software can be achieved, thereby improving the transmission efficiency of graphic processing data and consequently improving processing efficiency.

[0048] In one exemplary embodiment, such as Figure 4 As shown, the graphics processing parameters can be obtained in any of the following ways:

[0049] Method 1: Receive the graphics processing parameters for the original graphic file input by the user through the interface of the graphics processing software.

[0050] The interface of graphics processing software refers to the operation interface used in graphics processing software, which can be used by users to configure graphics processing parameters.

[0051] For example, such as Figure 5 As shown, in order to improve the flexibility of graphics processing parameter configuration, in this embodiment, users can customize the graphics processing parameters through the graphics processing operation interface of the graphics processing software. The acquisition of all graphics processing parameters and the generation of graphics processing data can be completed on the graphics processing software side, which can further improve the efficiency of graphics processing, thereby improving the substrate processing efficiency.

[0052] Method 2: Start the data sending thread of the host computer. Through the host computer, based on the preset communication mechanism between the host computer and the graphics processing software and the data sending thread, the graphics processing parameters for the original graphics file are sent to the graphics processing software.

[0053] Among them, the data sending thread can refer to the thread used by the host computer to send data.

[0054] For example, in addition to the method of users customizing graphics processing parameters on the interface of graphics processing software, this embodiment also designs a method of the host computer sending graphics processing parameters to the graphics processing software. That is, when the controller of the processing system receives a processing instruction for the target substrate, it starts the data transmission thread of the host computer. The host computer writes the graphics processing parameters into the shared memory area through the data transmission thread, and the graphics processing software can then access the shared memory area to obtain the graphics processing parameters.

[0055] In one example, the host computer can parse the processing instructions for the target substrate, thereby obtaining the graphics processing parameters required by the target substrate during processing, and transmit the graphics processing parameters to the graphics processing software based on a preset communication mechanism.

[0056] In one example, the host computer can also extract the processing requirements for the target substrate from the processing instructions, thereby generating graphics processing parameters that match the processing requirements. Then, through a preset communication mechanism, the graphics processing parameters are transmitted to the graphics processing software to improve the accuracy and reliability of the graphics processing parameters, thereby improving the accuracy of subsequent substrate processing.

[0057] In this embodiment, two different methods are configured for obtaining graphics processing parameters. One method involves the user manually inputting the graphics processing parameters into the graphics processing software interface, allowing the software to process the original graphic file. The other method involves the host computer generating graphics processing parameters that match the processing requirements and sending them to the graphics processing software via a preset communication mechanism. Both methods can improve graphics processing efficiency, thereby increasing substrate processing efficiency. It should be noted that in practical applications, either method can be selected to obtain the graphics processing parameters based on the actual situation.

[0058] In one exemplary embodiment, such as Figure 6 As shown, the target substrate is processed according to the image processing data, including:

[0059] Step S602: Obtain the data identifier of the graphics processing data.

[0060] Among them, data identifier can refer to the unique identifier of graphic processing data, such as data number, data code, data name, etc.

[0061] For example, after the host computer obtains the graphics processing data from the shared memory area, it can further obtain any one or more of the data number, data code, and data name of the graphics processing data, so as to distinguish the data type of the graphics processing data based on the data identifier.

[0062] Step S604: Based on the data identifier, classify the graphics processing data to obtain the data type of the graphics processing data.

[0063] The data type can refer to the type of image processing data, including but not limited to target image data, target opening image data, cutting image data, drilling image data, etc. It can be understood that different types of image processing data correspond to different processing operations.

[0064] For example, after obtaining the data identifier of the graphics processing data, the host computer can further query the pre-established mapping table between data identifiers and data types to find the data type that matches the data identifier of the graphics processing data, i.e., the data type of the graphics processing data.

[0065] Step S606: Determine the processing operation that matches the data type, and process the target substrate according to the processing operation.

[0066] For example, after the host computer queries the data type of the graphics processing data, it can further query a pre-established mapping table between data types and processing operations to find the processing operation that matches the data type of the graphics processing data, and then process the target substrate according to the processing operation.

[0067] It should be noted that in practical applications, other rules can be set to distinguish the data types of graphics processing data and the corresponding processing operations, depending on the specific application. For example, when naming graphics processing data, its data type and corresponding processing operation can be included in the name. Specific rules are not limited here.

[0068] In this embodiment, the data type of the graphics processing data is distinguished based on the data identifier of the graphics processing data, thereby determining the processing operation corresponding to the graphics processing data. Then, the target substrate is processed according to the processing operation to ensure that the graphics processing data is applied to the correct processing operation, thereby improving the efficiency and accuracy of substrate processing.

[0069] In practical applications, the substrate can also be processed by configuring appropriate processing parameters. Therefore, in one embodiment, the process of determining processing parameters further includes: obtaining the processing requirements of the target substrate from the processing instructions; and matching processing parameters based on the processing requirements to obtain processing parameters that match the processing requirements.

[0070] Among them, processing requirements can refer to the business requirements of the target substrate during processing, including but not limited to the number of processing times, processing time, and processing efficiency.

[0071] For example, the host computer can extract the processing requirements of the target substrate from the processing instructions, and then match appropriate processing parameters according to the processing requirements, so that the processing parameters are more in line with the actual business needs, thereby improving the accuracy of the processing parameters and thus improving the substrate processing efficiency.

[0072] In one embodiment, processing the target substrate according to processing operations includes: processing the target substrate according to processing operations and processing parameters.

[0073] For example, after the host computer obtains the appropriate processing parameters, it can use the processing operation corresponding to the graphics processing data to process the target substrate according to the processing parameters.

[0074] In this embodiment, by configuring processing parameters that match the processing requirements, the target substrate is processed according to processing operations that match the data type of the graphics processing data and the processing parameters, thereby improving the accuracy and efficiency of substrate processing.

[0075] In one exemplary embodiment, such as Figure 7 As shown, based on the graphics processing parameters, the original graphics file is processed to obtain the graphics processing data of the target substrate, including:

[0076] Step S702: Based on the graphic processing parameters, perform graphic processing on the original graphic file to obtain the initial processing data of the target substrate.

[0077] Initial processing data can refer to the data before the original graphic file has undergone format processing.

[0078] For example, after obtaining the graphics processing parameters, the graphics processing software can perform graphics processing on the original graphics file of the target substrate to obtain the initial processing data when the original graphics file has not been formatted.

[0079] Step S704: Obtain data format information that is compatible with the host computer.

[0080] Here, data format information refers to data format information compatible with the host computer. Taking the machining of a galvanometer as an example, if the host computer uses the galvanometer coordinate system, then the data format of the graphics processing data sent by the graphics processing software to the host computer should conform to the format of the galvanometer coordinate system. That is, the data format information in this embodiment can be the laser galvanometer coordinate system. Of course, in practical applications, if the host computer uses other coordinate systems, the data format information can also be set to other coordinate system information, and even other data format information compatible with the host computer can be set. The specific data format information is not limited here.

[0081] For example, the graphics processing software can send a data format request to the host computer to request the host computer to return the data format information that it is compatible with. Of course, the graphics processing software can also store the data format information that the host computer is compatible with in advance.

[0082] In one example, while transmitting graphics processing parameters, the host computer can also synchronously write data format information into the shared memory area. In this way, the graphics processing software can obtain the data format information adapted by the host computer at the same time as obtaining the graphics processing parameters.

[0083] Step S706: Based on the data format information, the initial processing data is converted to obtain the graphic processing data of the target substrate.

[0084] Format conversion can refer to the process of converting the initial data format into the data format specified in the data format information.

[0085] For example, after the graphics processing software obtains the data format information adapted to the host computer, it can convert the initial processing data according to the data format information to obtain the graphics processing data of the target substrate.

[0086] In this embodiment, the initial processing data of the target substrate is converted to obtain graphic processing data that is compatible with the host computer, which improves the accuracy of the graphic processing data and avoids the phenomenon that the host computer cannot recognize the graphic processing data due to incompatible data formats, thereby further improving the efficiency of substrate processing.

[0087] In practical applications, the preset communication mechanism can also be adjusted in real time. Therefore, in one embodiment, such as Figure 8As shown, the adjustment process for the preset communication mechanism includes:

[0088] Step S802: For the data transmission channel between the graphics processing software and the host computer, analyze the data transmission quality of the data transmission channel during the transmission of graphics processing data.

[0089] In this context, the data transmission channel refers to the channel through which data is transmitted between the graphics processing software and the host computer. In a specific example, the data transmission channel could be between the graphics processing software and the shared memory area, or between the host computer and the shared memory area. Data transmission quality refers to the transmission capability of the data transmission channel during data transmission, including but not limited to data transmission rate, data transmission error rate, data transmission latency, and data transmission channel capacity.

[0090] For example, after the graphics processing software writes the graphics processing data to the shared memory area for the host computer to read, it can perform data transmission quality analysis on the data transmission channel between the graphics processing software and the shared memory area. That is, it can analyze the data transmission rate, data transmission error rate, data transmission latency, data transmission channel capacity and other quality indicators of the data transmission channel during the transmission of graphics processing data, so as to adjust the preset communication mechanism in the future.

[0091] Step S804: If the data transmission quality does not meet the expected transmission quality, adjust the preset communication mechanism to obtain the target communication mechanism.

[0092] The expected transmission quality can refer to pre-set expected transmission quality values, including but not limited to expected data transmission rate, expected data transmission error rate, expected data transmission latency, and expected data transmission channel capacity. The target communication mechanism refers to the communication mechanism after optimizing and adjusting the pre-set communication mechanism.

[0093] For example, if the data transmission quality does not meet the expected quality, such as when the data transmission rate is lower than the expected data transmission rate or the data transmission error rate is higher than the expected data transmission error rate, then the data transmission quality is considered to be unsatisfactory. In this case, the graphics processing software can dynamically adjust the preset communication mechanism. Specifically, it can adjust the communication rate, bandwidth, and capacity (i.e., the amount of graphics processing data that can be sent each time) between the graphics processing software and the shared memory area, thereby obtaining an optimized target communication mechanism.

[0094] In one example, the host computer can also dynamically adjust the preset communication mechanism for the data transmission channel between the host computer and the shared memory area. This includes adjusting the communication rate, bandwidth, and capacity (i.e., the data capacity of the graphics processing parameters that can be sent each time) between the host computer and the shared memory area. The specific adjustment process is the same as that of the graphics processing software and will not be elaborated upon here.

[0095] In this embodiment, by analyzing the transmission quality of the data transmission channel, the preset communication mechanism is dynamically adjusted to obtain a better communication mechanism and improve communication efficiency, that is, to improve the transmission efficiency of graphics processing parameters and graphics processing data, thereby improving processing efficiency.

[0096] In one specific embodiment, the processing method includes the following steps: The controller of the processing system, responding to a laser processing command for the target substrate, first imports the original graphic file of the target substrate through graphics processing software, and obtains the graphics processing parameters of the original graphic file, including laser galvanometer region parameters, path optimization parameters, target processing parameters, graphic segmentation parameters, and graphic filling parameters. Based on these graphics processing parameters, the graphics processing software performs graphics processing on the original graphic file, including laser galvanometer region configuration, path optimization, target processing, graphic segmentation, and graphic filling, thereby obtaining initial processing data for the target substrate. Then, according to the laser galvanometer coordinate system applied by the host computer, the initial processing data undergoes data format conversion to obtain graphics processing data. The graphics processing data is written to a shared memory area. The controller can then start the host computer's data receiving thread. It should be noted that the start time of the host computer's data receiving thread is not limited; it can start after receiving the processing command or after the graphics processing software writes the graphics processing data to the shared memory area. The host computer obtains graphics processing data from the shared memory area through a data receiving thread, identifies the data type, and determines which laser processing operation (laser cutting, laser marking, laser drilling, or laser welding) the data belongs to. Finally, it performs the corresponding laser processing on the target substrate according to the processing operation and the processing parameters matching the processing requirements of the target substrate. The graphics processing parameters are obtained in two ways: Method 1: User-defined input via the parameter configuration interface of the graphics processing software. Method 2: The host computer initiates a data sending thread, which sends the graphics processing parameters to the graphics processing software based on a preset communication mechanism and the data sending thread.

[0097] In this embodiment, by pre-configuring a communication mechanism between the host computer and the graphics processing software to replace the current method of importing and exporting graphics files, real-time data transmission between the host computer and the graphics processing software can be realized, thereby improving the transmission efficiency of graphics processing parameters and graphics processing data, and thus improving the efficiency of laser processing.

[0098] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps.

[0099] Based on the same inventive concept, this application also provides a processing apparatus for implementing the processing method described above. The solution provided by this apparatus is similar to the implementation scheme described in the above method; therefore, the specific limitations in one or more processing apparatus embodiments provided below can be found in the limitations of the processing method above, and will not be repeated here.

[0100] In one exemplary embodiment, such as Figure 9 As shown, a processing apparatus is provided, applied to a host computer, including: a data acquisition module 902, used to obtain the original graphic file of the target substrate and graphic processing parameters for the original graphic file through graphics processing software in response to processing instructions for the target substrate; a graphics processing module 904, used to perform graphics processing on the original graphic file based on the graphics processing parameters through graphics processing software to obtain graphic processing data of the target substrate; a data transmission module 906, used to start the data receiving thread of the host computer, and send the graphic processing data to the host computer through the graphics processing software based on the preset communication mechanism between the host computer and the graphics processing software and the data receiving thread; and a processing module 908, used to process the target substrate according to the graphic processing data through the host computer.

[0101] In one embodiment, the device is further configured to: Method 1: receive graphics processing parameters for the original graphics file input by the user through the interface of the graphics processing software; Method 2: start the data sending thread of the host computer, and send the graphics processing parameters for the original graphics file to the graphics processing software through the host computer based on the preset communication mechanism between the host computer and the graphics processing software and the data sending thread.

[0102] In one embodiment, the processing module 908 is further configured to: acquire a data identifier of the graphics processing data; classify the graphics processing data based on the data identifier to obtain the data type of the graphics processing data; determine a processing operation that matches the data type; and process the target substrate according to the processing operation.

[0103] In one embodiment, the processing apparatus further includes a processing parameter acquisition module, which is used to obtain the processing requirements of the target substrate from the processing instructions; based on the processing requirements, perform processing parameter matching to obtain processing parameters that match the processing requirements; the processing module 908 is also used to: process the target substrate according to the processing operation and processing parameters.

[0104] In one embodiment, the graphics processing module 904 is further configured to: perform graphics processing on the original graphics file of the target substrate according to graphics processing parameters to obtain initial processing data of the target substrate; acquire data format information adapted to the host computer; and perform format conversion on the initial processing data based on the data format information to obtain graphics processing data of the target substrate.

[0105] In one embodiment, the processing apparatus further includes a communication mechanism adjustment module, which is used to: analyze the data transmission quality of the data transmission channel between the graphics processing software and the host computer during the transmission of graphics processing data; and adjust the preset communication mechanism to obtain the target communication mechanism when the data transmission quality does not meet the expected transmission quality.

[0106] Each module in the aforementioned processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0107] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 10As shown, this computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores processing data. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When the computer program is executed by the processor, it implements a processing method.

[0108] Those skilled in the art will understand that Figure 10 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0109] In one exemplary embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to perform the following steps: in response to a processing instruction for a target substrate, obtaining an original graphic file of the target substrate and graphic processing parameters for the original graphic file through graphics processing software; performing graphic processing on the original graphic file based on the graphic processing parameters through the graphics processing software to obtain graphic processing data of the target substrate; activating a data receiving thread of a host computer, and sending the graphic processing data to the host computer through the graphics processing software based on a preset communication mechanism between the host computer and the graphics processing software and the data receiving thread; and processing the target substrate through the host computer according to the graphic processing data.

[0110] In one embodiment, when the processor executes the computer program, it also performs any one of the following steps: Method 1: Receives graphics processing parameters for the original graphics file input by the user through the interface of the graphics processing software; Method 2: Starts the data sending thread of the host computer, and sends the graphics processing parameters for the original graphics file to the graphics processing software through the host computer, based on the preset communication mechanism between the host computer and the graphics processing software and the data sending thread.

[0111] In one embodiment, when the processor executes the computer program, it further performs the following steps: obtaining the processing requirements of the target substrate from the processing instructions; matching the processing parameters based on the processing requirements to obtain processing parameters that match the processing requirements; and processing the target substrate according to the processing operation, including: processing the target substrate according to the processing operation and the processing parameters.

[0112] In an exemplary embodiment, when the processor executes the computer program, it further performs the following steps: acquiring a data identifier for the graphics processing data; classifying the graphics processing data based on the data identifier to obtain the data type of the graphics processing data; determining a processing operation that matches the data type; and processing the target substrate according to the processing operation.

[0113] In an exemplary embodiment, when the processor executes the computer program, it further performs the following steps: obtaining the processing requirements of the target substrate from the processing instructions; matching the processing parameters based on the processing requirements to obtain processing parameters that match the processing requirements; and processing the target substrate according to the processing operation, including: processing the target substrate according to the processing operation and the processing parameters.

[0114] In one embodiment, when the processor executes the computer program, it further performs the following steps: performing graphics processing on the original graphics file according to graphics processing parameters to obtain initial processing data of the target substrate; acquiring data format information compatible with the host computer; and performing format conversion on the initial processing data based on the data format information to obtain graphics processing data of the target substrate.

[0115] In one embodiment, when the processor executes the computer program, it further performs the following steps: for the data transmission channel between the graphics processing software and the host computer, analyze the data transmission quality of the data transmission channel during the transmission of graphics processing data; if the data transmission quality does not meet the expected transmission quality, adjust the preset communication mechanism to obtain the target communication mechanism.

[0116] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When executed by a processor, the computer program performs the following steps: in response to processing instructions for a target substrate, obtaining an original graphic file of the target substrate and graphic processing parameters for the original graphic file through graphics processing software; performing graphic processing on the original graphic file based on the graphic processing parameters through the graphics processing software to obtain graphic processing data of the target substrate; activating a data receiving thread of a host computer, and sending the graphic processing data to the host computer through the graphics processing software based on a preset communication mechanism between the host computer and the graphics processing software and the data receiving thread; and processing the target substrate through the host computer according to the graphic processing data.

[0117] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: acquiring a data identifier for the graphics processing data; classifying the graphics processing data based on the data identifier to obtain the data type of the graphics processing data; determining a processing operation that matches the data type; and processing the target substrate according to the processing operation.

[0118] In one embodiment, when the computer program is executed by the processor, it also performs any one of the following steps: Method 1: Receives graphics processing parameters for the original graphics file input by the user through the interface of the graphics processing software; Method 2: Starts the data sending thread of the host computer, and sends the graphics processing parameters for the original graphics file to the graphics processing software through the host computer, based on the preset communication mechanism between the host computer and the graphics processing software and the data sending thread.

[0119] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: acquiring a data identifier for the graphics processing data; classifying the graphics processing data based on the data identifier to obtain the data type of the graphics processing data; determining a processing operation that matches the data type; and processing the target substrate according to the processing operation.

[0120] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: obtaining the processing requirements of the target substrate from the processing instructions; matching the processing parameters based on the processing requirements to obtain processing parameters that match the processing requirements; and processing the target substrate according to the processing operation, including: processing the target substrate according to the processing operation and the processing parameters.

[0121] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: performing graphics processing on the original graphics file according to graphics processing parameters to obtain initial processing data of the target substrate; acquiring data format information compatible with the host computer; and performing format conversion on the initial processing data based on the data format information to obtain graphics processing data of the target substrate.

[0122] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: for the data transmission channel between the graphics processing software and the host computer, analyze the data transmission quality of the data transmission channel during the transmission of graphics processing data; if the data transmission quality does not meet the expected transmission quality, adjust the preset communication mechanism to obtain the target communication mechanism.

[0123] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0124] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, database, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0125] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0126] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method of processing, characterized by, The method comprises: in response to a processing instruction for a target substrate, obtaining, by graphic processing software, an original graphic file of the target substrate and graphic processing parameters for the original graphic file; processing, by the graphic processing software, the original graphic file based on the graphic processing parameters to obtain graphic processing data of the target substrate; starting a data receiving thread of a host computer, and sending, by the graphic processing software, the graphic processing data to the host computer based on a preset communication mechanism between the host computer and the graphic processing software and the data receiving thread; processing, by the host computer, the target substrate according to the graphic processing data.

2. The method of claim 1, wherein, The graphic processing parameters can be obtained in any of the following ways: way one: receiving, by the graphic processing software, graphic processing parameters for the original graphic file input by a user through an interface of the graphic processing software; way two: starting a data sending thread of a host computer, and sending, by the host computer, graphic processing parameters for the original graphic file to the graphic processing software based on a preset communication mechanism between the host computer and the graphic processing software and the data sending thread.

3. The method of claim 1, wherein, The processing of the target substrate according to the graphic processing data comprises: obtaining a data identifier of the graphic processing data; classifying the graphic processing data based on the data identifier to obtain a data type of the graphic processing data; determining a processing operation matched with the data type, and processing the target substrate according to the processing operation.

4. The method of claim 3, wherein, The method further comprises: obtaining a processing requirement of the target substrate from the processing instruction; matching processing parameters based on the processing requirement to obtain processing parameters matched with the processing requirement; The processing of the target substrate according to the processing operation comprises: processing the target substrate according to the processing operation and the processing parameters.

5. The method of claim 1, wherein, The processing of the original graphic file based on the graphic processing parameters to obtain the graphic processing data of the target substrate comprises: processing the original graphic file based on the graphic processing parameters to obtain initial processing data of the target substrate; obtaining data format information matched with the host computer; format-converting the initial processing data based on the data format information to obtain the graphic processing data of the target substrate.

6. The method of claim 1, wherein, The method further comprises: analyzing data transmission quality of a data transmission channel between the graphic processing software and the host computer in the process of transmitting the graphic processing data; adjusting the preset communication mechanism to obtain a target communication mechanism if the data transmission quality does not meet an expected transmission quality.

7. A processing apparatus characterized by comprising: The device comprises: a data acquisition module configured to obtain, by graphic processing software, an original graphic file of a target substrate and graphic processing parameters for the original graphic file in response to a processing instruction for the target substrate; The graphic processing module is configured to perform graphic processing on the original graphic file based on the graphic processing parameters by using the graphic processing software, and obtain graphic processing data of the target substrate. The data transmission module is configured to start a data receiving thread of the host computer, and send the graphic processing data to the host computer by using the graphic processing software based on a preset communication mechanism between the host computer and the graphic processing software and the data receiving thread. The processing module is configured to perform processing on the target substrate according to the graphic processing data by using the host computer.

8. A processing system characterized by, The system comprises graphic processing software, a host computer in communication connection with the graphic processing software based on a preset communication mechanism, and a controller in communication connection with the graphic processing software and the host computer respectively. The graphic processing software is configured to, in response to receiving a processing instruction for a target substrate, acquire an original graphic file of the target substrate and graphic processing parameters for the original graphic file, perform graphic processing on the original graphic file based on the graphic processing parameters, obtain graphic processing data of the target substrate, and send the graphic processing data to the host computer based on a preset communication mechanism between the host computer and the graphic processing software. The host computer is configured to perform processing on the target substrate according to the graphic processing data sent by the graphic processing software. The controller is configured to implement the steps of the method according to any one of claims 1 to 6. 9.A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer device is configured to perform the method according to any one of claims 1-8 when the computer program is executed by the processor. The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 6.

10. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method according to any one of claims 1 to 6.