Remote laser engraving control system and method based on image format automatic conversion
Through the remote laser engraving control system based on automatic image format conversion, the problem of manual intervention in image format conversion in remote transmission of laser engraving equipment is solved, and the automation and efficient remote control of laser engraving are realized, which improves the system compatibility and industrial applicability.
Patent Information
- Application Number
- CN202510714961.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-30
- Publication Date
- 2025-08-29
AI Technical Summary
When existing laser engraving equipment is remotely transmitted, the conversion of image formats to laser engraving instructions requires manual intervention, which is inefficient and lacks automation and deep image resolution capabilities.
The remote laser engraving control system based on automatic conversion of image format is adopted, and the equipment is automatically discovered and connected by DNS-SD protocol. It is converted to PWG Raster format through IPP Everywhere and CUPS services. It combines the internal conversion module for grayscale matrix construction and laser power mapping, and generates GCode control instructions, supporting remote real-time monitoring and dynamic adjustment.
It realizes the standardization, remoteization and automation of image engraving, improves the remote control capability and automation level of laser engraving equipment, simplifies data processing flow, and enhances the compatibility and industrial adaptability of the system.
Smart Images

Figure CN120567902A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of laser engraving, and in particular to a remote laser engraving control system and method based on automatic image format conversion. Background Art
[0002] Remote laser engraving is a technology that connects laser engraving equipment to remote terminals through network technology. Users can upload image files remotely, and the system automatically completes format parsing, path generation, and controls the laser hardware to perform engraving tasks. It breaks through geographical restrictions, supports real-time monitoring of equipment status, realizes unmanned, cross-regional operation, and significantly improves the efficiency and flexibility of personalized customization and industrial production. Currently, laser engraving equipment mostly relies on dedicated software or local transmission methods to import image tasks and generate control paths. Such systems generally have the problem of non-automatic format conversion, and the processing from image to engraving control path requires manual intervention, resulting in low efficiency.
[0003] Although some solutions have attempted to introduce remote printing mechanisms, their core is still mainly document printing and they lack the deep image analysis and path instruction generation capabilities for laser engraving. Therefore, it is necessary to develop a comprehensive system that supports remote task submission, automatic format parsing, path conversion, and direct control of laser hardware.
[0004] In view of the above problems, a remote laser engraving control system and method based on automatic image format conversion are proposed to solve the above problems. Summary of the Invention
[0005] The technical problem to be solved by the present invention is to overcome the defects of the existing technology and propose a remote laser engraving control system and method based on automatic conversion of image formats, thereby solving the problem that the image format is inconvenient to be converted into laser engraving instructions during remote transmission of laser engraving.
[0006] To solve the above problems, the technical solution adopted by the present invention is: a remote laser engraving control system based on automatic image format conversion, including the following modules: Terminal device module: used to send engraving tasks; Device discovery and connection module: uses DNS-SD protocol to realize automatic discovery and network connection of laser engraving devices; Image transmission and format conversion module: Receives image data and converts it into control instructions based on IPP Everywhere and CUPS printing services; Laser engraving control module: parses control instructions and drives the laser engraver to perform tasks; The control system uses the PWG Raster standard printing image format for encoding and transmission to ensure compatibility with the CUPS printing ecosystem.
[0007] A remote laser engraving control method based on automatic image format conversion includes the following steps: Step S1: Device discovery and connection: The laser engraving device broadcasts its service identifier in the local area network as a print service via mDNS or Bonjour. The terminal device automatically discovers the laser engraving device using the DNS-SD protocol and establishes a connection. Step S2: sending image data: the user selects an image on the terminal device and submits a print task through the CUPS print service. The image data is transmitted via the IPP protocol, automatically converted into PWG Raster format and sent to the laser engraving device; Step S3: Format conversion processing: After receiving the image data, the laser engraving device calls the internal conversion module to parse the PWGRaster image data into laser control instructions; Step S4: Laser engraving execution: The laser engraving control module drives the laser engraver to complete pattern engraving according to the generated laser control instruction.
[0008] Furthermore, step S2 includes the following steps: Step S21: The user selects an image file to be engraved on the terminal device, selects a discovered laser engraving device through the print interface, and the terminal device calls the multi-platform CUPS as the print service, adds the image file to the print queue, and selects the IPP Everywhere driver as the output method; Step S22: Convert the image format to PWG Raster. CUPS calls the filter program chain to output the standard image format that complies with IPP Everywhere. The rastertopwg tool is used to convert the image to a PWG file, thereby automatically converting the original image submitted by the user into a PWG Raster format file. Step S23: Encapsulate the image data into a print task request using the IPP protocol and transmit it to the laser engraving device. The terminal device pushes the PWG Raster file to the print service interface of the laser engraving device through an HTTP POST request. Step S24: The laser engraving device runs a lightweight IPP server to receive tasks from the terminal device.
[0009] Furthermore, the internal conversion module in step S3 includes image data decoding and grayscale array construction. By directly parsing the image format generated by PWG Raster, after receiving the image data, the internal conversion module first extracts the following meta information from the file header, including image size, color space and image resolution, where the image resolution includes as well as , the system reads the image grid lines line by line and constructs a two-dimensional grayscale matrix , serving as the basis for subsequent laser energy calculation and path distribution.
[0010] Furthermore, the internal conversion module in step S3 performs grayscale conversion and normalization on the image. For images in RGB color space, the system converts them into grayscale values using a weighted average method: , the converted grayscale value is further normalized: .
[0011] Furthermore, the internal conversion module in step S3 includes a laser power mapping model. Based on the normalized grayscale value, the system reversely maps the image brightness to the laser power output to ensure the energy distribution logic that the darker the image, the stronger the laser, ensuring the restoration of the visual pattern, wherein: , is the laser power output corresponding to pixel (i, j) in the image, is an adjustable gamma parameter used to control the nonlinear response. The maximum laser power allowed by the device.
[0012] Furthermore, the two-dimensional position of each pixel The actual coordinate points of the engraving head are mapped to the physical platform , which is calculated as follows: .
[0013] Furthermore, in step S4, the laser control instruction combines the actual coordinates of the engraving head with the power mapping result, and cooperates with the system to sequentially generate standard GCode control instructions: G1 X12.70 Y25.40 S128 F1500, where: G1: represents interpolated linear motion; X / Y: target coordinates of the control head; S: laser power value; F: feed speed, unit is mm / min.
[0014] Furthermore, the image data transmission in step S2 also includes blockchain evidence storage. The terminal device generates a SHA-256 hash value for the original image file, packages it with the user ID, device ID, and timestamp into a blockchain transaction, and broadcasts it to the consensus node through the network to ensure that the task cannot be tampered with. At the same time, an end-to-end encrypted channel is established through the TLS1.3 protocol. The laser engraving device verifies the validity of the certificate through the smart contract and decrypts the data. The receiving end recalculates the hash value of the decrypted image data and compares it with the hash value stored in the blockchain evidence. When the hash value is inconsistent, automatic retransmission is triggered.
[0015] Furthermore, in step S4, a remote real-time monitoring and dynamic adjustment mechanism is adopted during the execution of laser engraving. The laser engraving equipment collects status data in real time through IoT sensors, and uses the MQTT protocol to compress and transmit the data to the remote monitoring center, supporting remote parameter adjustment, path correction, and edge computing for pre-diagnosis of faults.
[0016] Compared with the prior art, the present invention has the following beneficial effects: The present invention proposes a remote laser engraving control system and method based on automatic image format conversion, providing a method for automatically converting image formats into laser engraving paths, achieving standardization, remoteness, and automation of image engraving. The system adopts the DNS-SD protocol and implements automatic device discovery and connection via mDNS / Bonjour, eliminating the need for manual operation. It also utilizes IPP Everywhere and CUPS services to transmit images in PWG Raster format. Users can submit tasks through a print interface, and the format conversion is completed through an internal conversion module. When processing images, the PWG Raster format is directly parsed to construct a grayscale matrix, skipping vector conversion. Intelligent laser power adjustment is achieved through weighted averaging, normalization, and a power mapping model with a gamma parameter. Ultimately, the remote control capability and automation level of the laser engraving equipment are improved, the data processing process is simplified, and the system's compatibility and industrial adaptability are enhanced. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The disclosure of the present invention is illustrated with reference to the accompanying drawings. It should be understood that the drawings are for illustrative purposes only and are not intended to limit the scope of protection of the present invention. In the accompanying drawings, the same reference numerals are used to refer to the same components. Among them: Figure 1 A schematic diagram of a remote control method according to an embodiment of the present invention is shown; Figure 2 A schematic diagram of the overall architecture of a system proposed according to an embodiment of the present invention is shown; Figure 3 Schematically shows a schematic diagram of a laser power mapping curve proposed according to one embodiment of the present invention; Figure 4 The figure schematically shows a remote task flow diagram proposed according to an embodiment of the present invention. DETAILED DESCRIPTION
[0018] It is easy to understand that according to the technical solution of the present invention, without changing the essential spirit of the present invention, a person skilled in the art can propose a variety of interchangeable structural modes and implementation modes. Therefore, the following specific embodiments and drawings are only exemplary descriptions of the technical solution of the present invention and should not be regarded as the entire invention or as a limitation or restriction of the technical solution of the present invention.
[0019] According to one embodiment of the present invention, Figures 1-4 , a remote laser engraving control system based on automatic image format conversion, including the following modules: Terminal device module: used to send engraving tasks, including PC, mobile phone, tablet, etc. Device discovery and connection module: uses DNS-SD protocol to realize automatic discovery and network connection of laser engraving devices; Image transmission and format conversion module: Receives image data and converts it into control instructions based on IPP Everywhere and CUPS printing services; Laser engraving control module: parses control instructions and drives the laser engraver to perform tasks; The control system uses the PWG Raster standard printing image format for encoding and transmission to ensure compatibility with the CUPS printing ecosystem.
[0020] The terminal device module supports remote task sending for multiple types of devices. The device discovery and connection module uses the DNS-SD protocol to achieve automatic discovery and connection. The image transmission and format conversion module is based on IPP Everywhere and CUPS services to automatically convert formats. It uses the PWG Raster format and is compatible with the CUPS printing ecosystem, improving system versatility and ease of operation.
[0021] A remote laser engraving control method based on automatic image format conversion includes the following steps: Step S1: Device discovery and connection: The laser engraving device broadcasts its service identifier in the local area network as a print service via mDNS or Bonjour. The terminal device automatically discovers the laser engraving device using the DNS-SD protocol and establishes a connection. Step S2: sending image data: the user selects an image on the terminal device and submits a print task through the CUPS print service. The image data is transmitted via the IPP protocol, automatically converted into PWG Raster format and sent to the laser engraving device; Step S3: Format conversion processing: After receiving the image data, the laser engraving device calls the internal conversion module to parse the PWGRaster image data into laser control instructions; Step S4: Laser engraving execution: The laser engraving control module drives the laser engraver to complete pattern engraving according to the generated laser control instruction.
[0022] Step S2 includes the following steps: Step S21: The user selects an image file to be engraved on the terminal device, selects a discovered laser engraving device through the print interface, and the terminal device calls the multi-platform CUPS as the print service, adds the image file to the print queue, and selects the IPP Everywhere driver as the output method; Step S22: Convert the image format to PWG Raster. CUPS calls the filter program chain to output the standard image format that complies with IPP Everywhere. The rastertopwg tool is used to convert the image to a PWG file, thereby automatically converting the original image submitted by the user into a PWG Raster format file. Step S23: Encapsulate the image data into a print task request using the IPP protocol and transmit it to the laser engraving device. The terminal device pushes the PWG Raster file to the print service interface of the laser engraving device through an HTTP POST request. Step S24: The laser engraving device runs a lightweight IPP server to receive tasks from the terminal device.
[0023] The internal conversion module in step S3 includes image data decoding and grayscale array construction. By directly parsing the image format generated by PWG Raster, the format has the characteristics of stable structure and streaming transmission, which is convenient for high-speed reception and online processing of remote systems. After receiving the image data, the internal conversion module first extracts the following metadata from the file header, including image size, color space and image resolution, where the image resolution includes as well as , the system reads the image grid lines line by line and constructs a two-dimensional grayscale matrix , as the basis for subsequent laser energy calculation and path distribution, this step avoids the dependence on proprietary format conversion plug-ins through standardized data entry, and enhances the compatibility of the system with multi-platform image output interfaces.
[0024] The internal conversion module in step S3 performs grayscale conversion and normalization on the image. For images using the RGB color space, the system uses a weighted average method to convert them into grayscale values: , the converted grayscale value is further normalized: The data structure after grayscale conversion is highly consistent, so that the subsequent laser power control model does not need to consider the color channel differences. It has strong adaptability and is convenient for efficient parallel processing in embedded platforms or real-time task environments.
[0025] The internal conversion module in step S3 includes a laser power mapping model. Based on the normalized grayscale value, the system reversely maps the image brightness to the laser power output to ensure the energy distribution logic that the darker the image, the stronger the laser, ensuring the restoration of the visual pattern. , is the laser power output corresponding to pixel (i, j) in the image, is an adjustable gamma parameter used to control the nonlinear response. The maximum laser power allowed by the equipment is introduced The parameters provide flexible adjustment capabilities for image contrast sensitivity, effectively balancing the depth of laser engraving under different image styles or material responses, and improving the output fineness and material adaptability.
[0026] The 2D position of each pixel The actual coordinate points of the engraving head are mapped to the physical platform , which is calculated as follows: This coordinate transformation ensures that the geometric proportions of the image are accurately restored in the physical space. At the same time, the system supports multiple path generation modes to adapt to different image densities, engraving styles or hardware performance. Compared with the traditional "image vectorization and then path generation" process, this method skips the intermediate multiple conversions, reduces data accuracy loss, and shortens task preparation time.
[0027] In step S4, the laser control command combines the actual coordinates of the engraving head with the power mapping results, and the system sequentially generates standard GCode control commands: G1 X12.70 Y25.40 S128 F1500, where: G1: represents interpolated linear motion; X / Y: the target coordinates of the control head; S: laser power value; F: feed speed, in mm / min. For continuous blank areas in the image, the system can automatically insert G0 fast jump commands to avoid unnecessary energy output and invalid path movement, thereby improving overall engraving efficiency. The command flow is batch scheduled and preloaded through the cache module to ensure path coherence and power synchronization during high-speed engraving.
[0028] The image data transmission in step S2 also includes blockchain evidence storage. The terminal device generates a SHA-256 hash value for the original image file, packages it with the user ID, device ID, and timestamp into a blockchain transaction, and broadcasts it to the consensus node through the network to ensure that the task cannot be tampered with. At the same time, an end-to-end encrypted channel is established through the TLS1.3 protocol. The laser engraving device verifies the validity of the certificate through the smart contract and decrypts the data. The receiving end recalculates the hash value of the decrypted image data and compares it with the hash value stored in the blockchain evidence. When the hash value is inconsistent, automatic retransmission is triggered. Step S2 generates a SHA-256 hash value through blockchain evidence storage and packages it on the chain to ensure that the task cannot be tampered with. With the help of TLS1.3 protocol encrypted transmission, smart contract verification and decryption, the receiving end hash comparison, and automatic retransmission if inconsistent. This technology ensures the security, integrity and accuracy of data transmission.
[0029] In step S4, a remote real-time monitoring and dynamic adjustment mechanism is adopted during the execution of laser engraving. The laser engraving equipment collects status data in real time through IoT sensors, and uses the MQTT protocol to compress and transmit the data to the remote monitoring center. It supports remote parameter adjustment, path correction, and edge computing to predict faults. It combines WebRTC to achieve remote visualization and control of the engraving process, improving the accuracy and reliability of remote control.
[0030] The technical scope of the present invention is not limited to the contents of the above description. Those skilled in the art can make various deformations and modifications to the above embodiments without departing from the technical idea of the present invention, and these deformations and modifications should all fall within the protection scope of the present invention.
Claims
1. Remote laser engraving control system based on automatic image format conversion, characterized by: Includes the following modules: Terminal device module: used to send engraving tasks; Device discovery and connection module: uses DNS-SD protocol to realize automatic discovery and network connection of laser engraving devices; Image transmission and format conversion module: Receives image data and converts it into control instructions based on IPP Everywhere and CUPS printing services; Laser engraving control module: parses control instructions and drives the laser engraver to perform tasks; The control system uses the PWG Raster standard printing image format for encoding and transmission to ensure compatibility with the CUPS printing ecosystem.
2. A remote laser engraving control method based on automatic image format conversion is implemented by the remote laser engraving control system based on automatic image format conversion according to claim 1, characterized in that: include: Step S1: Device discovery and connection: The laser engraving device broadcasts its service identifier in the local area network as a print service through one or more of mDNS and Bonjour. The terminal device automatically discovers the laser engraving device and establishes a connection using the DNS-SD protocol. Step S2: sending image data: the user selects an image on the terminal device and submits a print task through the CUPS print service. The image data is transmitted via the IPP protocol, automatically converted into PWG Raster format and sent to the laser engraving device; Step S3: Format conversion processing: After receiving the image data, the laser engraving device calls the internal conversion module to parse the PWGRaster image data into laser control instructions; Step S4: Laser engraving execution: The laser engraving control module drives the laser engraver to complete pattern engraving according to the generated laser control instruction.
3. The remote laser engraving control method based on automatic image format conversion according to claim 2, characterized in that: The step S2 comprises the following steps: Step S21: The user selects an image file to be engraved on the terminal device, selects a discovered laser engraving device through the print interface, and the terminal device calls the multi-platform CUPS as the print service, adds the image file to the print queue, and selects the IPP Everywhere driver as the output method; Step S22: Convert the image format to PWG Raster. CUPS calls the filter program chain to output the image format that complies with the standard of IPP Everywhere. The rastertopwg tool is used to convert the image into a PWG file, thereby automatically converting the original image submitted by the user into a PWG Raster format file. Step S23: Encapsulate the image data into a print task request using the IPP protocol and transmit it to the laser engraving device. The terminal device pushes the PWG Raster file to the print service interface of the laser engraving device through an HTTP POST request. Step S24: The laser engraving device runs a lightweight IPP server to receive tasks from the terminal device.
4. The remote laser engraving control method based on automatic image format conversion according to claim 2, characterized in that: The internal conversion module in step S3 includes image data decoding and grayscale array construction. By directly parsing the image format generated by PWG Raster, after receiving the image data, the internal conversion module first extracts the following meta information from the file header, including image size, color space and image resolution, where the image resolution includes as well as , the system reads the image grid lines line by line and constructs a two-dimensional grayscale matrix , serving as the basis for subsequent laser energy calculation and path distribution.
5. The remote laser engraving control method based on automatic image format conversion according to claim 4, characterized in that: The internal conversion module in step S3 performs grayscale conversion and normalization on the image. For images in RGB color space, the system converts them into grayscale values using a weighted average method: , the converted grayscale value is further normalized: .
6. The remote laser engraving control method based on automatic image format conversion according to claim 5, characterized in that: The internal conversion module in step S3 includes a laser power mapping model. Based on the normalized grayscale value, the system reversely maps the image brightness to the laser power output to ensure the energy distribution logic that the darker the image, the stronger the laser, ensuring the restoration of the visual pattern. , is the laser power output corresponding to pixel (i, j) in the image, is an adjustable gamma parameter used to control the nonlinear response. The maximum laser power allowed by the device.
7. The remote laser engraving control method based on automatic image format conversion according to claim 6, characterized in that: The two-dimensional position of each pixel The actual coordinate points of the engraving head are mapped to the physical platform , which is calculated as follows: .
8. The remote laser engraving control method based on automatic image format conversion according to claim 2, characterized in that: In step S4, the laser control instruction combines the actual coordinates of the engraving head with the power mapping result, and the system sequentially generates the standard GCode control instruction: G1 X12.70 Y25.40 S128 F1500, where: G1: represents interpolated linear motion; X / Y: target coordinates of the control head; S: laser power value; F: feed speed, unit is mm / min.
9. The remote laser engraving control method based on automatic image format conversion according to claim 2, characterized in that: The image data transmission in step S2 also includes blockchain evidence storage. The terminal device generates a SHA-256 hash value for the original image file, packages it with the user ID, device ID, and timestamp into a blockchain transaction, and broadcasts it to the consensus node through the network to ensure that the task cannot be tampered with. At the same time, an end-to-end encrypted channel is established through the TLS1.3 protocol. The laser engraving device verifies the validity of the certificate through the smart contract and decrypts the data. The receiving end recalculates the hash value of the decrypted image data and compares it with the hash value stored in the blockchain evidence. When the hash values are inconsistent, automatic retransmission is triggered.
10. The remote laser engraving control method based on automatic image format conversion according to claim 2, characterized in that: In step S4, a remote real-time monitoring and dynamic adjustment mechanism is adopted when the laser engraving is executed. The laser engraving device collects status data in real time through the IoT sensor, and compresses and transmits the data to the remote monitoring center using the MQTT protocol, supporting remote parameter adjustment, path correction, and edge computing for pre-diagnosis of faults.