A data transmission method for a laser processing system

CN122653531APending Publication Date: 2026-08-28WUHAN FARLEY PLASMA CUTTING SYS CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610613868.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-05-07
Publication Date
2026-08-28

AI Technical Summary

Technical Problem

然而,由于数据生成、数据传输与加工执行之间的处理节奏不一致,在连续、大规模数据传输场景下,容易出现缓存拥塞、数据覆盖或数据丢失等问题,进而影响振镜运动的连续性和加工稳定性

Benefits of technology

[0014] A fourth aspect of this disclosure also provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, cause the processor to perform the data transmission method of the laser processing system described above.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122653531A_ABST
    Figure CN122653531A_ABST
Patent Text Reader

Abstract

The present disclosure provides a data transmission method of a laser processing system, comprising: generating processing data of the laser processing system according to parameters of the laser processing system and a preset processing task; receiving writable state processing data in an alternating manner through multiple receiving buffers, wherein at any time, only one receiving buffer in the writable state multiple receiving buffers is in a writable state, and the other receiving buffers are in a readable state; writing the processing data in the receiving buffer in the readable state into sequentially arranged storage units, the writable state sequentially arranged storage units are provided with a write pointer and a read pointer, and the writable state write pointer and the writable state read pointer automatically return to the starting end when reaching the end of the storage unit sequence; reading the processing data from the writable state sequentially arranged storage units and processing the same to drive the laser processing system to process. The present disclosure realizes the coordinated matching between the processing data receiving process and the processing execution process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of laser processing technology, and more specifically to a data transmission method for a laser processing system. Background Technology

[0002] In laser processing systems, especially in high-speed processing applications using galvanometer scanning, the processing trajectory is usually composed of a large amount of continuous control data. During the processing, the processing data needs to be continuously transmitted to the control unit and executed in real time, which places high demands on the continuity and stability of data transmission.

[0003] Processing data is typically generated by a higher-level control system and transmitted to a lower-level control unit via fieldbus or industrial Ethernet. The lower-level control unit then performs data buffering, processing, and execution control. However, due to the inconsistent processing rhythms between data generation, data transmission, and processing execution, problems such as buffer congestion, data overwriting, or data loss can easily occur in continuous, large-scale data transmission scenarios, thereby affecting the continuity of galvanometer motion and processing stability. Summary of the Invention

[0004] In view of the above problems, this disclosure provides a data transmission method for a laser processing system based on the coordinated transmission of data using double buffering and ring buffering.

[0005] This disclosure provides a data transmission method for a laser processing system, comprising: generating processing data of the laser processing system according to the parameters of the laser processing system and a preset processing task; receiving the processing data in an alternating manner through multiple receiving buffers, wherein at any given time, only one receiving buffer is in a writable state, and the other receiving buffers are in a readable state; writing the processing data in the receiving buffer in the readable state into sequentially arranged storage units, wherein the sequentially arranged storage units are provided with write pointers and read pointers, and the write pointers and read pointers automatically return to the beginning when they reach the end of the storage unit sequence; reading the processing data from the sequentially arranged storage units and processing it to drive the laser processing system to perform processing.

[0006] According to embodiments of this disclosure, receiving processed data in an alternating manner through multiple receive buffers includes: switching the state of a receive buffer currently in a writable state to a readable state in response to the buffer being full; and using a buffer pointer to specify the next receive buffer to switch to a writable state in a preset order, wherein the buffer pointer is used to indicate the receive buffer currently in a writable state.

[0007] According to an embodiment of this disclosure, writing processed data in a readable receive buffer into sequentially arranged storage units includes: monitoring the available space of the sequentially arranged storage units; pausing or reducing the writing of new processed data into the readable receive buffer in response to the available space being lower than a first preset threshold; and resuming the writing of new processed data into the readable receive buffer in response to the available space recovering to above the first preset threshold.

[0008] According to embodiments of this disclosure, receiving processing data in an alternating manner through multiple receiving buffers further includes: when the occupancy status of sequentially arranged storage units meets preset conditions, prohibiting the switching between write and read states of the multiple receiving buffers, and / or prohibiting the writing of new processing data to the receiving buffer currently in a write state; wherein the preset conditions include at least one of the available space of sequentially arranged storage units being lower than a second preset threshold and a laser processing system malfunction, and the first preset threshold being greater than the second preset threshold.

[0009] According to embodiments of this disclosure, the processed data in the receive buffer in a readable state is written into sequentially arranged storage units, and before that, the process further includes: performing an integrity check on the processed data in the receive buffer in a readable state.

[0010] According to embodiments of this disclosure, processing data is read from sequentially arranged storage units and processed to drive a laser processing system to perform processing. The method further includes generating a processing completion confirmation signal in response to the laser processing system completing a processing segment based on the processing data read from the storage units.

[0011] According to an embodiment of this disclosure, writing processed data in a readable receive buffer into sequentially arranged storage units includes: in response to receiving a processing completion confirmation signal, marking the storage unit corresponding to the processing completion confirmation signal as idle; and in response to the storage unit pointed to by the write pointer being idle, writing the processed data in the readable receive buffer into the storage unit.

[0012] The second aspect of this disclosure provides a data transmission system for a laser processing system, capable of implementing the aforementioned data transmission method for the laser processing system, comprising: a data generation module for generating processing data of the laser processing system based on parameters of the laser processing system and a preset processing task; a data transmission module for receiving processing data in an alternating manner through multiple receiving buffers, wherein at any given time, only one receiving buffer is in a writable state, while the other receiving buffers are in a readable state, and the processing data in the receiving buffer in the readable state is written into sequentially arranged storage units, the sequentially arranged storage units being provided with write pointers and read pointers, the write pointers and read pointers automatically returning to the beginning when they reach the end of the storage unit sequence; and a data processing module for reading processing data from the sequentially arranged storage units and processing it to drive the laser processing system to perform processing.

[0013] A third aspect of this disclosure provides an electronic device comprising: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors perform the data transmission method of the laser processing system described above.

[0014] A fourth aspect of this disclosure also provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, cause the processor to perform the data transmission method of the laser processing system described above.

[0015] According to the data transmission method of the laser processing system provided in this disclosure, a buffer architecture is established by setting up multiple receiving buffers for alternating reception and sequential storage units with circular pointers. Since the multiple receiving buffers ensure the continuity of the data reception process and prevent interruptions due to waiting for data transfer, and the sequential storage units with circular pointers act as large-capacity queues, decoupling the data reception process from the processing execution process, this method at least partially solves the technical problem of data reception blockage caused by the mismatch between data generation speed and processing execution speed in large-scale laser processing data transmission, achieving a smooth and stable data flow. Attached Figure Description

[0016] Figure 1 A flowchart illustrating a data transmission method of a laser processing system according to an embodiment of the present disclosure is shown schematically.

[0017] Figure 2 A data transmission block diagram according to an embodiment of the present disclosure is illustrated schematically;

[0018] Figure 3 A block diagram schematically illustrates an electronic device suitable for implementing a data transmission method for a laser processing system according to an embodiment of the present disclosure. Detailed Implementation

[0019] The embodiments of the present disclosure will now be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the disclosure. In the following detailed description, numerous specific details are set forth to provide a thorough understanding of the embodiments of the present disclosure for ease of explanation. However, it will be apparent that one or more embodiments may be practiced without these specific details. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concepts of the present disclosure.

[0020] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. The terms “comprising,” “including,” etc., as used herein indicate the presence of the stated features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0021] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein are to be interpreted in a manner consistent with the context of this specification, and not in an idealized or overly rigid way.

[0022] When using expressions such as "at least one of A, B and C", they should generally be interpreted in accordance with the meaning that is commonly understood by those skilled in the art (e.g., "a system having at least one of A, B and C" should include, but is not limited to, a system having A alone, a system having B alone, a system having C alone, a system having A and B, a system having A and C, a system having B and C, and / or a system having A, B and C, etc.).

[0023] Some existing technologies use a single cache or simple queue to temporarily store processed data, or increase cache capacity to alleviate data congestion. However, in high-speed processing scenarios, these methods still struggle to ensure continuous data reception while maintaining stable scheduling of the data execution process. Furthermore, although some systems have introduced dual-buffer or ring-buffer structures, these are mostly used independently and lack mechanisms for coordinating and controlling the processing progress, resulting in issues such as untimely buffer switching or insufficient storage space.

[0024] Therefore, existing laser processing systems urgently need a technical solution that can coordinate the data reception, buffering, and execution rhythm during continuous processing to improve the stability and reliability of the system under large-scale processing data transmission conditions.

[0025] Figure 1 A flowchart illustrating a data transmission method of a laser processing system according to an embodiment of the present disclosure is shown, such as... Figure 1As shown, embodiments of this disclosure provide a data transmission method for a laser processing system used for large-scale processing data transmission and scheduling control in a laser processing system. The method includes: generating processing data for the laser processing system based on parameters and preset processing tasks; receiving the processing data in an alternating manner through multiple receiving buffers, wherein at any given time, only one receiving buffer is in a writable state, while the other receiving buffers are in a readable state; writing the processing data in the readable receiving buffers into sequentially arranged storage units, each storage unit having a write pointer and a read pointer, the write pointer and read pointer automatically returning to the beginning when they reach the end of the storage unit sequence; and reading the processing data from the sequentially arranged storage units and processing it to drive the laser processing system to perform processing.

[0026] The write pointer indicates the location where the processed data is written, and the read pointer indicates the location where the processed data is read, so as to support the cyclic writing and reading of processed data.

[0027] In this embodiment, the sequentially arranged storage units are implemented using an array and two indices (read pointer and write pointer). When the pointer reaches the end of the array, a modulo operation is used to return it to the beginning, thus forming a circular buffer storage unit, supporting the circular writing and reading of processed data within the circular buffer storage unit. The sequentially arranged storage units can be physically sequentially stored, or logically sequentially structured by data structures such as linked lists.

[0028] Through the embodiments of this disclosure, existing laser processing systems address issues such as large data volume, continuous data input, and inconsistent data processing rhythms during processing. Particularly between multiple stages, including correction data generation, processing data transmission, and processing execution, insufficient data caching and unreasonable scheduling mechanisms can easily lead to data loss, system congestion, or processing instability. By introducing a double-buffer structure and a ring-buffer structure into the laser processing system, and scheduling and controlling the data reception rhythm based on the ring-buffer's occupancy status, coordinated matching between the processing data reception process and the processing execution process is achieved. This ensures stable data caching capabilities even under continuous, large-scale data transmission scenarios, improving the data transmission stability and processing reliability of the laser processing system, and avoiding processing anomalies caused by data congestion or processing delays.

[0029] Based on the above embodiments, the method further includes: acquiring the motion parameters and / or optical parameters of the laser processing system before laser processing begins, and generating corresponding correction data based on the acquired parameters. The correction data is used to compensate for spatial position, motion errors, or optical deviations in subsequent processing to ensure consistency between the processing data and the actual processing system. Based on this, processing data is generated according to the correction data and a preset processing task. This processing data describes the control information of the laser, galvanometer system, and / or motion mechanism during laser processing. The specific implementation of the correction can employ visual correction or other existing correction methods according to actual application requirements; this embodiment does not limit this approach.

[0030] Based on the above embodiments, the processing data is received in an alternating manner through multiple receive buffers, including: in response to the current writeable receive buffer being full, switching its state to readable; using a buffer pointer, specifying the next receive buffer to switch its state to writeable in a preset order, wherein the buffer pointer is used to indicate the receive buffer currently in writeable state.

[0031] Optionally, the multiple receive buffers are dual-buffered receive units, including a first receive buffer and a second receive buffer. The first receive buffer and the second receive buffer are used to receive processed data in an alternating manner, wherein at any given time only one receive buffer is in the data writing state, and the other receive buffer is in the readable state.

[0032] Furthermore, the processed data in the receive buffers that are in a readable state among the multiple receive buffers is written into the storage unit sequence. After the writing is completed, the receive buffer is switched to a data writing state for receiving subsequent processed data. The preset order is not limited to simple polling; it can be a scheduling based on buffer priority, prioritizing the switch to the buffer with the longest idle time.

[0033] The embodiments of this disclosure avoid read-write conflicts during data reception. Processed data in the readable receive buffer is written into the circular buffer storage unit to achieve continuous caching of processed data.

[0034] Based on the above embodiments, writing the processed data in the receive buffer that is in a readable state into sequentially arranged storage units includes: monitoring the available space of the sequentially arranged storage units; pausing or reducing the writing of new processed data into the receive buffer that is in a writable state in response to the available space being lower than a first preset threshold; and resuming the writing of new processed data into the receive buffer that is in a writable state in response to the available space recovering to be higher than the first preset threshold.

[0035] In this embodiment, the occupancy status of the ring buffer storage unit is monitored, and the data reception rhythm of the double-buffered receiving unit is controlled according to the occupancy status. When the available storage space of the ring buffer storage unit is lower than a preset threshold, the data reception of the double-buffered receiving unit is paused or reduced; when the available storage space of the ring buffer storage unit recovers to above the preset threshold, the data reception of the double-buffered receiving unit is resumed, thereby avoiding data loss or system blockage due to insufficient buffer space.

[0036] Through the embodiments of this disclosure, the speed at which new data is written to the receive buffer is dynamically adjusted based on the available space status of the ring buffer. When the downstream processing is slow and the ring buffer is about to fill up, the data supply rate of the upstream data source is reduced, thereby achieving flow control. It can dynamically adjust the input data stream according to its own real-time processing capabilities.

[0037] Based on the above embodiments, receiving processing data in an alternating manner through multiple receiving buffers further includes: when the occupancy status of the sequentially arranged storage units meets preset conditions, prohibiting the switching between the write state and the read state of the multiple receiving buffers, and / or prohibiting the writing of new processing data to the receiving buffer currently in the write state; wherein, the preset conditions include at least one of the available space of the sequentially arranged storage units being lower than a second preset threshold and a laser processing system malfunction, and the first preset threshold being greater than the second preset threshold.

[0038] In this embodiment, if the available space of the sequentially arranged storage units is lower than a second preset threshold when the preset trigger condition is triggered, then when the available space is greater than the second preset threshold, the state switching of the multiple receive buffer and data writing are restored; if the preset trigger condition is triggered by a system failure, then data writing is restarted through manual review.

[0039] Through the embodiments of this disclosure, when the occupancy status of the ring buffer storage unit meets the preset scheduling conditions, buffer switching can be prohibited, and / or writing new processing data to the receiving buffer currently in the data writing state can be prohibited, so as to achieve further scheduling control of the data receiving rhythm. When the system is close to complete congestion or an anomaly occurs, adjusting the upstream speed alone is insufficient to ensure system stability, and it is necessary to immediately interrupt the data inflow. The data flow can be dynamically adjusted according to the real-time operating status of the system to improve the operational stability of the laser processing system in large-scale, continuous data transmission scenarios.

[0040] Based on the above embodiments, the processed data in the receive buffer that is in a readable state is written into the sequentially arranged storage units, and before that, the integrity of the processed data in the receive buffer that is in a readable state is verified.

[0041] Through embodiments of this disclosure, erroneous data is intercepted early in the data transmission link, preventing erroneous data from causing processing errors.

[0042] Based on the above embodiments, processing data is read from sequentially arranged storage units and processed to drive the laser processing system to perform processing. The method further includes generating a processing completion confirmation signal in response to the laser processing system completing a processing segment based on the processing data read from the storage units.

[0043] Through the embodiments of this disclosure, a processing completion confirmation signal is generated after processing is executed, binding the release of data resources with the actual completion of physical processing, thereby achieving synchronization between data production and consumption, and solving the data overwrite problem caused by asynchronous processing rhythms between upstream and downstream processes.

[0044] Based on the above embodiments, writing the processed data in the receive buffer that is in a readable state into sequentially arranged storage units includes: in response to receiving a processing completion confirmation signal, marking the storage unit corresponding to the processing completion confirmation signal as idle; and in response to the storage unit pointed to by the write pointer being in an idle state, writing the processed data in the receive buffer that is in a readable state into the storage unit.

[0045] Through the embodiments of this disclosure, the operation of writing data to a storage unit is configured to simultaneously satisfy two conditions: receiving a processing completion confirmation signal for a specific storage unit and the storage unit pointed to by the write pointer being in an idle state. This constitutes a handshake mechanism, ensuring the security of data writing.

[0046] Based on the above embodiments, the method further includes: driving the galvanometer system to complete the laser processing operation according to the processed processing data. Processing data is read sequentially from the storage unit sequence and converted into control instructions executable by the galvanometer system, thereby achieving continuous execution of the processing trajectory. The specific control method for the laser processing operation can be set according to the type of galvanometer system and the control strategy; this embodiment does not further limit this.

[0047] Figure 2 A data transmission block diagram according to an embodiment of the present disclosure is illustrated schematically, such as... Figure 2 As shown, in this embodiment, the processing data is generated in batches by the host computer according to a preset data format. Each batch contains a fixed length of data and is sent to the STM32H7 chip, which serves as the control unit, via the EtherCAT bus. The processing data is transmitted in the form of a continuous data stream, and each batch of processing data logically corresponds to a continuous processing trajectory or control command sequence. Data transmission and processing are implemented by the lower-level control unit, which can use an STM32H7 series microcontroller to perform functions such as double-buffered reception, ring buffer storage, and data scheduling control.

[0048] At the initial time t0, the host computer sends the first batch of processing data, data 1. After receiving data 1, the STM32H7 writes it into the first receive buffer (Buffer 0) in the double-buffered receive unit. During the data writing process to Buffer 0, the STM32H7 microcontroller performs integrity checks on the received data, such as verifying the data content through Cyclic Redundancy Check (CRC) to ensure that the data written to the buffer is valid and that no transmission errors have occurred.

[0049] While Buffer 0 is not yet full, subsequent data from the host computer (PC) continues to be written to Buffer 0. When the data buffered in Buffer 0 meets the full condition, the STM32H7 switches the state of Buffer 0 from "write state" to "read state" and simultaneously switches the double-buffered receiving unit to the second receiving buffer (Buffer 1) to enter the data writing state. At this time, the next batch of processed data, data 2, sent by the host computer, is written to Buffer 1, thus ensuring that the data receiving process is uninterrupted.

[0050] While Buffer 1 receives data2, the STM32H7 writes the data in the readable Buffer 0 into the circular buffer storage unit. The circular buffer storage unit consists of multiple sequentially arranged storage units, with a write pointer indicating the current write position, and stores the processed data from Buffer 0 sequentially in a circular manner. This method achieves parallel cooperation between the dual-buffered receiving unit and the circular buffer storage unit: on the one hand, it continuously receives data from the host computer, and on the other hand, it transfers the received data to the circular buffer for subsequent processing.

[0051] As the processing progresses, the processing data in the annular buffer storage unit is retrieved sequentially by the execution module to drive the galvanometer system to complete the corresponding processing operations. In this embodiment, the annular buffer storage unit organizes data in multiple slots, with each slot storing a batch of processing data or its segments. After the execution module completes reading the processing data in the current slot and executing the galvanometer, it marks the corresponding slot as released, making the slot writable again.

[0052] Meanwhile, the system confirms the completion status of the previous batch of processing data. Once the execution module has finished processing the previous batch of data and successfully released the corresponding slot, it sends an ACK2 confirmation message to the STM32H7, indicating that the previous batch of processing data has been completed and that a usable slot has been released in the ring buffer storage unit. Upon receiving ACK2, the STM32H7 allows the next batch of double-buffered and verified processing data to be written into the free slot of the ring buffer storage unit.

[0053] Through the above method, an ACK2-based handshake relationship is established between slot release and new data writing in the ring buffer storage unit. This ensures that processing data is only allowed to enter the ring buffer storage unit after the execution module has completed the previous batch of data and released storage resources, thereby preventing data overwriting before processing is completed. Simultaneously, this handshake mechanism ensures that the ring buffer always contains subsequent data available for reading during the continuous processing of data by the galvanometer system, achieving continuity of galvanometer movement and stability of the processing process.

[0054] Based on the same inventive concept, this disclosure also provides a data transmission system for a laser processing system, which can be used to implement the aforementioned data transmission method for the laser processing system, including: a data generation module, used to generate processing data of the laser processing system according to the parameters of the laser processing system and the preset processing task; a data transmission module, used to receive processing data in an alternating manner through multiple receiving buffers, wherein at any given time, only one receiving buffer is in a writable state, and the other receiving buffers are in a readable state, and the processing data in the receiving buffer in the readable state is written into sequentially arranged storage units, the sequentially arranged storage units are provided with write pointers and read pointers, and the write pointers and read pointers automatically return to the beginning when they reach the end of the storage unit sequence; and a data processing module, used to read the processing data from the sequentially arranged storage units and process it to drive the laser processing system to perform processing.

[0055] Based on the above embodiments, a calibration module is also included, used to acquire the motion parameters of the laser processing system and generate corresponding calibration data; a processing execution module is used to drive the laser and complete the laser processing based on the processed processing data. The modules are connected and work collaboratively according to the data flow direction during the laser processing, thereby forming a complete data generation, transmission, processing, and execution system.

[0056] Figure 3 A block diagram schematically illustrates an electronic device suitable for implementing a data transmission method for a laser processing system according to an embodiment of the present disclosure.

[0057] like Figure 3As shown, an electronic device 300 according to an embodiment of this disclosure includes a processor 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage portion 308 into a random access memory (RAM) 303. The processor 301 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or an associated chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 301 may also include onboard memory for caching purposes. The processor 301 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of this disclosure.

[0058] RAM 303 stores various programs and data required for the operation of electronic device 300. Processor 301, ROM 302, and RAM 303 are interconnected via bus 304. Processor 301 performs various operations of the method flow according to embodiments of the present disclosure by executing programs in ROM 302 and / or RAM 303. It should be noted that the programs may also be stored in one or more memories other than ROM 302 and RAM 303. Processor 301 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in said one or more memories.

[0059] According to embodiments of this disclosure, the electronic device 300 may further include an input / output (I / O) interface 305, which is also connected to a bus 304. The electronic device 300 may also include one or more of the following components connected to the I / O interface 305: an input section 306 including a keyboard, mouse, etc.; an output section 307 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 308 including a hard disk, etc.; and a communication section 309 including a network interface card such as a LAN card, modem, etc. The communication section 309 performs communication processing via a network such as the Internet. A drive 310 is also connected to the I / O interface 305 as needed. A removable medium 311, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 310 as needed so that computer programs read from it can be installed into the storage section 308 as needed.

[0060] This disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or it may exist independently and not assembled into the device / apparatus / system. The computer-readable storage medium carries one or more programs that, when executed, implement the method according to the embodiments of this disclosure.

[0061] Embodiments of this disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowchart. When the computer program product is run on a computer system, the program code is used to cause the computer system to implement the methods provided in the embodiments of this disclosure.

[0062] According to embodiments of this disclosure, program code for executing the computer programs provided in embodiments of this disclosure can be written in any combination of one or more programming languages. Specifically, these computational programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, languages ​​such as Java, C++, Python, "C", or similar programming languages. The program code can execute entirely on a user's computing device, partially on a user's device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0063] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0064] Those skilled in the art will understand that the features described in the various embodiments and / or claims of this disclosure can be combined or combined in various ways, even if such combinations or combinations are not explicitly described in this disclosure. In particular, the features described in the various embodiments and / or claims of this disclosure can be combined or combined in various ways without departing from the spirit and teachings of this disclosure. All such combinations and / or combinations fall within the scope of this disclosure.

[0065] The embodiments of this disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of this disclosure. Although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. The scope of this disclosure is defined by the appended claims and their equivalents. Various substitutions and modifications can be made by those skilled in the art without departing from the scope of this disclosure, and all such substitutions and modifications should fall within the scope of this disclosure.

Claims

1. A data transmission method for a laser processing system, characterized in that, include: Based on the parameters of the laser processing system and the preset processing tasks, the processing data of the laser processing system is generated; The processed data is received alternately through multiple receive buffers, wherein at any given time, only one of the multiple receive buffers is in a writable state, while the other receive buffers are in a readable state. The processed data in the receive buffer that is in a readable state is written into sequentially arranged storage units. The sequentially arranged storage units are equipped with write pointers and read pointers. The write pointers and read pointers automatically return to the beginning when they reach the end of the storage unit sequence. Processing data is read from the sequentially arranged storage units and processed to drive the laser processing system to perform processing.

2. The method according to claim 1, wherein, The method of receiving the processed data alternately through multiple receive buffers includes: When the receive buffer, which is currently in a writable state, is full, its state is switched to a readable state. Using a buffer pointer, the state of the next receive buffer is switched to a writable state in a preset order. The buffer pointer is used to indicate the receive buffer that is currently in a writable state.

3. The method according to claim 1, wherein, The step of writing the processed data in the readable receive buffer into sequentially arranged storage units includes: Monitor the available space of the sequentially arranged storage units; In response to the available space falling below a first preset threshold, the writing of new processing data to the writable receive buffer is paused or reduced. In response to the available space recovering to a level higher than a first preset threshold, new processing data is resumed to be written to the receive buffer that is in a writable state.

4. The method according to claim 3, wherein, The method of receiving the processed data alternately through multiple receive buffers further includes: When the occupancy status of the sequentially arranged storage units meets the preset conditions, the switching between the write state and the read state of the multiple receive buffer is prohibited, and / or the writing of new processed data to the receive buffer that is currently in the write state is prohibited. The preset conditions include at least one of the following: the available space of the sequentially arranged storage units is lower than a second preset threshold and a laser processing system malfunction, wherein the first preset threshold is greater than the second preset threshold.

5. The method according to claim 1, wherein, The step of writing the processed data in the readable receive buffer into sequentially arranged storage units also includes: Integrity verification is performed on the processed data in the receive buffer that is in a readable state.

6. The method according to claim 1, wherein, The process of reading processing data from the sequentially arranged storage units, processing it to drive the laser processing system to perform processing, further includes: In response to the laser processing system completing a processing segment based on the processing data read from the storage unit, a processing completion confirmation signal is generated.

7. The method according to claim 6, wherein, The step of writing the processed data in the readable receive buffer into sequentially arranged storage units includes: In response to receiving the processing completion confirmation signal, the storage unit corresponding to the processing completion confirmation signal is marked as idle. In response to the memory cell pointed to by the write pointer being in an idle state, the processed data in the receive buffer that is in a readable state is written into the memory cell.

8. A data transmission system for a laser processing system, characterized in that, Capable of implementing the method according to any one of claims 1 to 7, comprising: The data generation module is used to generate processing data for the laser processing system based on the parameters of the laser processing system and the preset processing tasks. The data transmission module is used to receive the processed data in an alternating manner through multiple receiving buffers. At any given time, only one of the multiple receiving buffers is in a writable state, while the other receiving buffers are in a readable state. The processed data in the receiving buffer in the readable state is written into sequentially arranged storage units. The sequentially arranged storage units are provided with write pointers and read pointers. The write pointers and read pointers automatically return to the beginning when they reach the end of the storage unit sequence. The data processing module is used to read processing data from the sequentially arranged storage units and process it to drive the laser processing system to perform processing.

9. An electronic device, comprising: One or more processors; Storage device for storing one or more programs. Wherein, when the one or more programs are executed by the one or more processors, the one or more processors perform the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, cause the processor to perform the method according to any one of claims 1 to 7.