Instruction execution method and system based on dot matrix laser therapy machine

By analyzing and processing user instructions in the display layer of the dot matrix laser treatment machine, generating and sending control instructions to the control layer, the problem of insufficient controllability and interactive experience in traditional systems is solved, and more efficient device control and user experience is achieved.

CN119645495APending Publication Date: 2025-03-18BEIJING HANHUA GLOBAL TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411704913.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-26
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

Due to the limited control ability of the display layer, the control system of traditional dot matrix laser therapy machines has low controllability and poor human-computer interaction experience.

Method used

By obtaining user instructions at the display layer, analyzing instruction identifiers and parameters, generating control instructions and sending them to the control layer, and calling corresponding execution modules to control the galvanometer and laser, improving the controllability and interactive experience of the system.

Benefits of technology

It realizes higher-level control and human-computer interaction of point matrix laser therapy machines, improving the controllability and user experience of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119645495A_ABST
    Figure CN119645495A_ABST
Patent Text Reader

Abstract

The invention provides an instruction execution method and system based on a dot matrix laser therapy machine, and the method comprises the steps: obtaining a user instruction inputted by a user in a display layer, and carrying out the analysis of the user instruction, so as to obtain an instruction identifier and an instruction parameter; obtaining an execution module according to the instruction identifier, generating a control instruction according to the instruction identifier and the instruction parameter, and sending the control instruction to a control layer, so that the execution module executes the control instruction and returns an execution result; and generating a reply instruction based on the execution result, and returning the reply instruction to the display layer. According to the method, the control instruction can be generated according to the user instruction input by the user in the display layer, and the control instruction is sent to the control layer, so that the execution module corresponding to the user instruction in the control layer is called to control the galvanometer and the laser in the dot matrix laser therapy machine, and the controllability and the man-machine interaction experience of the dot matrix laser therapy machine are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of instruction processing, and in particular to an instruction execution method and system based on a fractional laser therapy machine. Background Art

[0002] Fractional laser therapy machine is an optomechanical and electrical integrated medical device that divides the laser beam into light spots and applies the light spots to the surface and deep layers of the skin in the form of a dot matrix. The control system of a traditional fractional laser therapy machine consists of a control layer and a display layer with a touch function. The control layer and the display layer communicate through a serial port. The display layer sends the touch point coordinates to the control layer. The control layer sends display instructions to the display layer to control the display layer to display preset text and pictures. The above control system receives the touch point coordinates through the human-computer interaction module built into the control layer, and calls the galvanometer control module to control the working status of the galvanometer and the laser machine, thereby realizing the dot matrix laser scanning function.

[0003] In the traditional system, the main control unit of the treatment machine is in the control layer, and the display layer only displays preset text and pictures to the user after receiving the display command sent by the control layer. Therefore, the human-computer interaction performance of the above control system is limited by the controllable ability of the display layer, resulting in low controllability of the fractional laser treatment machine and poor human-computer interaction experience. Summary of the invention

[0004] The present application provides a command execution method and system based on a fractional laser therapy machine, which can generate control instructions according to user instructions input by the user in the display layer, and send the control instructions to the control layer, and then call the execution module corresponding to the user instructions in the control layer to improve the controllability of the fractional laser therapy machine and the human-computer interaction experience.

[0005] In a first aspect, the present application provides a method for executing instructions based on a fractional laser therapy machine, comprising: obtaining a user instruction input by a user in a display layer, wherein the user instruction comprises a first type of instruction, a second type of instruction and a third type of instruction, wherein the first type of instruction is used to read or write parameters to a register, the second type of instruction is used to call a task execution submodule, and the third type of instruction is used to indicate the start or end of a task flow;

[0006] Parsing the user instruction to obtain an instruction identifier and instruction parameters;

[0007] Acquire an execution module according to the instruction identifier, wherein the execution module is associated with the instruction identifier;

[0008] Generate a control instruction according to the instruction identifier and the instruction parameter, and send the control instruction to the control layer so that the execution module executes the control instruction and returns an execution result;

[0009] A reply instruction is generated based on the execution result, and the reply instruction is returned to the display layer.

[0010] Optionally, when the user instruction is a second-category instruction, generating a control instruction according to the instruction identifier and the instruction parameter, and sending the control instruction to the control layer so that the execution module executes the control instruction and returns an execution result, includes:

[0011] Querying execution parameters of a task execution submodule from a module parameter table, wherein the task execution submodule is an execution module corresponding to the user instruction, and the task execution submodule is determined according to the instruction identifier;

[0012] Comparing the execution parameter with the instruction parameter, marking the parameter status of the instruction parameter, wherein the parameter status includes: a complete status and an incomplete status;

[0013] Acquire execution parameters according to the parameter state, and generate a task call control instruction according to the instruction identifier and the execution parameters;

[0014] The task call control instruction is sent to the task execution submodule, and the execution result returned by the task execution submodule is obtained.

[0015] Optionally, acquiring the execution parameter according to the parameter state includes: acquiring the execution parameter from the instruction parameter when the parameter state of the instruction parameter is a complete state;

[0016] When the parameter status of the instruction parameter is in an incomplete state, the execution parameter is queried and stored in a register parameter table, and the execution parameter missing from the instruction parameter is read from the register.

[0017] Optionally, the task calling control instruction includes a scanning positioning instruction, and the instruction parameters of the scanning positioning instruction include the scanner jump coordinates;

[0018] The execution module includes a scanning positioning task scheduling submodule, and the scanning positioning instruction is used to instruct the scanning positioning task scheduling submodule to send a galvanometer scanning control signal, and the galvanometer scanning control signal is used to control the galvanometer coordinates of the galvanometer scanning system to jump to the scanner jump coordinates.

[0019] Optionally, the task calling control instruction includes a scan contour instruction, and the instruction parameters of the scan contour instruction include a geometric figure type, an X-axis size of the geometric figure, and a Y-axis size of the geometric figure;

[0020] The execution module includes a scanning contour task scheduling submodule, and the scanning contour instruction is used to instruct the scanning contour task scheduling submodule to send a contour scanning control signal, and the contour scanning control signal is used to control the galvanometer scanning system to scan the contour of the geometric figure.

[0021] Optionally, the task calling control instruction includes a dot matrix scanning instruction, and the instruction parameters of the dot matrix scanning instruction include a total instruction parameter set and a scan fill parameter set, wherein the total instruction parameter set includes the number of valid layers, the number of layer executions, and the layer execution interval, and the scan fill parameter set includes the scan fill parameters of at least one layer;

[0022] The execution module includes a dot scanning task scheduling submodule, and the dot scanning instruction is used to instruct the dot scanning task scheduling submodule to send a simulation calculation signal or a dot matrix filling signal, the simulation calculation signal is used to calculate the number of dot matrix filling points and the scanning length, and the dot matrix filling signal is used to control the galvanometer scanning system and the laser to generate a scanning dot matrix.

[0023] Optionally, the instruction execution method based on the fractional laser therapy machine further includes: determining the scanning filling parameters according to the fractional filling form or the continuous scanning form, the fractional filling form includes basic geometric figures and concentric circle figures, and the continuous scanning form includes a nested annular array and a spiral involute array;

[0024] The scanning and filling parameters of the basic geometric figure include: data segment identification, basic geometric figure type, basic geometric figure X-axis size, basic geometric figure Y-axis size, filling point spacing, laser power, filling point laser working time, current layer repetition number and current layer repetition interval;

[0025] The scanning and filling parameters of the concentric circle graphics include: data segment identification, ring diameter, laser power, point laser working time, current layer repetition times and current layer repetition interval;

[0026] The scanning and filling parameters of the nested annular array include: data segment identification, array pattern type, array pattern X-axis size, array pattern Y-axis size, annular center distance, annular radius, laser power, current layer repetition times and current pattern repetition interval;

[0027] The scanning and filling parameters of the spiral involute array include: data segment identification, array pattern type, array pattern X-axis size, array pattern Y-axis size, maximum outer diameter of spiral line, number of spiral lines, spiral line center distance, laser power, current layer repetition times and current layer repetition interval. Optionally, the task call control instruction includes a continuous laser pulse instruction, and the instruction parameters of the continuous laser pulse instruction include laser output power, timed start time and duration;

[0028] The execution module includes a continuous laser pulse task scheduling submodule, and the continuous laser pulse instruction is used to instruct the continuous laser pulse task scheduling submodule to send a continuous laser control signal, and the continuous laser control signal is used to control the laser to emit continuous laser pulses.

[0029] Optionally, the task calling control instruction includes a pulse group control instruction, the instruction parameters of the pulse group control instruction include laser power, pulse group parameters, super pulse time and super pulse laser frequency, and the pulse group parameters include the number of sub-pulses, sub-pulse interval, sub-pulse high level time and pulse group interval;

[0030] The execution module includes a pulse group laser pulse task scheduling submodule, and the pulse group control instruction is used to instruct the pulse group laser pulse task scheduling submodule to send a pulse group control signal, and the pulse group control signal is used to control the laser to emit a pulse group.

[0031] In a second aspect, the present application provides an instruction execution system based on a fractional laser therapy machine, which is used to execute the instruction execution method based on a fractional laser therapy machine in the first aspect and various implementations, and the instruction execution system based on the fractional laser therapy machine includes:

[0032] The instruction acquisition module is configured to: acquire user instructions input by the user in the display layer, wherein the user instructions include first-category instructions, second-category instructions and third-category instructions, wherein the first-category instructions are used to read or write parameters to registers, the second-category instructions are used to call the task execution submodule, and the third-category instructions are used to indicate the start or end of a task flow;

[0033] The instruction parsing module is configured to: parse the user instruction to obtain an instruction identifier and instruction parameters;

[0034] an instruction execution module, configured to: obtain an execution module according to the instruction identifier, generate a control instruction according to the instruction identifier and the instruction parameter, and send the control instruction to the control layer so that the execution module executes the control instruction and returns an execution result, and the execution module is associated with the instruction identifier;

[0035] The result returning module is configured to: generate a reply instruction based on the execution result, and return the reply instruction to the display layer.

[0036] It can be seen from the above technical solution that the present application is a method and system for executing instructions based on a fractional laser therapy machine, the method comprising: obtaining a user instruction input by a user in a display layer, parsing the user instruction to obtain an instruction identifier and instruction parameters; obtaining an execution module according to the instruction identifier, and generating a control instruction according to the instruction identifier and instruction parameters, and sending the control instruction to the control layer so that the execution module executes the control instruction and returns the execution result; then generating a reply instruction based on the execution result, and returning the reply instruction to the display layer. The above method can generate a control instruction according to the user instruction input by the user in the display layer, and send the control instruction to the control layer, and then call the execution module corresponding to the user instruction in the control layer to control the galvanometer and laser in the fractional laser therapy machine, thereby improving the controllability and human-computer interaction experience of the fractional laser therapy machine. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0038] Figure 1 The main module structure diagram of the fractional laser therapy machine in which the main control unit provided in this application is the display layer;

[0039] Figure 2 A schematic flow chart of the instruction execution method based on the fractional laser therapy machine provided in this application;

[0040] Figure 3 A schematic diagram of an insertion delay provided for this application;

[0041] Figure 4 A schematic diagram of a synchronization delay provided for this application;

[0042] Figure 5 A schematic diagram of a corner delay provided in this application;

[0043] Figure 6 A schematic diagram of a jump delay provided for this application;

[0044] Figure 7 A schematic diagram of an end delay provided for this application;

[0045] Figure 8 A schematic diagram of a rectangular scanning effect provided by this application;

[0046] Fig. 9 A schematic diagram of a conventional geometric figure provided for this application;

[0047] Fig.10A schematic diagram of a concentric circle scanning provided by the present application;

[0048] Fig.11 A schematic diagram of a circular continuous scanning (square array) provided in this application;

[0049] Fig.12 A schematic diagram of a spiral involute continuous scanning (square array) provided in this application;

[0050] Fig.13 A schematic diagram of a laser pulse waveform provided in this application;

[0051] Fig.14 Another schematic diagram of a laser pulse waveform provided for this application;

[0052] Fig.15 This is a schematic diagram of the structure of the instruction execution system based on the fractional laser therapy machine provided in this application. DETAILED DESCRIPTION

[0053] The following embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following embodiments do not represent all implementations consistent with the present application. They are only examples of systems and methods consistent with some aspects of the present application as detailed in the claims.

[0054] Fractional laser therapy is a medical device that can irradiate, cut and ablate skin tissue by dividing the laser beam into spots and applying the spots to the surface and deep layers of the skin in the form of a matrix. Fractional laser therapy uses a laser to emit high-energy lasers, so that the lasers with a fixed wavelength can break up the pigments in the diseased tissue in a short time, thereby improving skin problems without damaging the normal tissues around the lesions.

[0055] In some embodiments, the control system of the fractional laser therapy machine is composed of a control layer and a display layer with a touch function. The control layer and the display layer communicate through a serial port, the display layer sends the touch point coordinates to the control layer, and the control layer sends a display instruction to the display layer to control the display layer to display preset text and pictures. The control layer receives the touch point coordinates through the built-in human-computer interaction module, and calls the galvanometer control module to control the working state of the galvanometer and the laser machine, thereby realizing the fractional laser scanning function.

[0056] Because in the above control system, the display layer displays preset text and pictures to the user only after receiving the display instructions sent by the control layer, and the main control unit of the control system is in the control layer, the human-computer interaction performance of the above control system is limited by the controllable ability of the display layer, resulting in low controllability of the fractional laser therapy machine and poor human-computer interaction experience.

[0057] In some embodiments, a display system with a non-real-time multitasking operating system is used as the display layer of the fractional laser therapy machine, such as a tablet computer with an Android system installed, and the human-computer interaction module is moved to the display layer, so that the display layer can have a main control function.

[0058] like Figure 1 As shown, the display layer obtains user instructions according to the menu interface, and sends specific scanning tasks and process scheduling instructions to the control layer with the galvanometer control module, so that the control layer controls the galvanometer and the laser, thereby realizing the dot matrix laser scanning function.

[0059] In order to improve the controllability of the display layer over the control layer in the fractional laser therapy machine of the display layer, some embodiments of the present application provide a command execution method based on the fractional laser therapy machine, such as Figure 2 As shown, the instruction execution method based on the fractional laser therapy machine provided in the present application includes the following steps.

[0060] Step S100: obtaining a user instruction input by the user on the display layer.

[0061] In some embodiments, the display layer is installed with fractional laser therapy machine control software, and the display layer can receive the parameters input by the user through the fractional laser therapy machine control software, and encapsulate the parameters input by the user to generate user instructions. User instructions include first-class instructions, second-class instructions, and third-class instructions. Among them, the first-class instructions are used to read or write parameters to registers, the second-class instructions are used to call task execution submodules, and the third-class instructions are used to indicate the start or end of a task flow.

[0062] Exemplarily, the first type of instruction is a register read and write instruction, which is used to read the parameters in the register or write the parameters input by the user into the register. The second type of instruction is a task scheduling instruction, which is used to control the task scheduling submodule so that the task scheduling submodule sends a control signal to the laser and / or the galvanometer scanner. The third type of instruction is a process instruction, which is used to instruct the task execution submodule to start or end the execution of the task call control instruction.

[0063] Step S200: parse the user instruction to obtain an instruction identifier and instruction parameters.

[0064] In some embodiments, the display layer is used to parse the user instruction to obtain the instruction identifier and instruction parameters in the user instruction. The instruction identifier is used to indicate that the user needs to call a certain execution module to implement a certain function of the fractional laser therapy machine, and the instruction parameter is used to indicate the parameter passed by the user to a certain execution module. The instruction parameter can be one or more, for example, the instruction parameter can be the data that needs to be read.

[0065] Step S300: Obtain an execution module according to an instruction identifier.

[0066] In some embodiments, the instruction identifier is associated with the execution module, that is, one instruction identifier corresponds to one execution module. Exemplarily, the execution module corresponding to the instruction identifier can be obtained by querying the instruction identifier information table. The execution module is set in the control layer, and the control layer sends a control signal to the laser or galvanometer scanner by calling the execution module.

[0067] Step S400: Generate a control instruction according to the instruction identifier and instruction parameters, and send the control instruction to the control layer, so that the execution module executes the control instruction and returns the execution result.

[0068] In some embodiments, the control instruction is used to instruct the control layer to control the laser or galvanometer scanner to perform a corresponding operation, and the instruction identifier and instruction parameters are necessary components of the control instruction. In addition, the control instruction may also include one or more of a frame header, a data length, and a frame tail. Among them, the frame tail may be composed of a verification algorithm, for example, a CRC verification algorithm.

[0069] In the case where the user instruction is a first-class instruction, the control instruction is a register read-write instruction, which is used to call the register submodule to perform the register read-write task. Among them, the control instruction includes the address of the pre-read or written register, and the pre-written data. The control layer can read and write a single register based on the register read-write instruction, or read and write multiple groups of registers at the same time. Table 1 is a data format table of a register read-write instruction provided in this application.

[0070] Table 1 Data format table of register read and write instructions

[0071]

[0072]

[0073] As shown in Table 1, the data format of register read and write instructions may include a frame header, data length, instruction identifier, data segment, and frame tail. The instruction identifier and data segment are necessary parameters. The function description corresponds to the instruction identifier, and the instruction identifier is used to identify the instruction type. Register read and write instructions include register write operation instructions and register read operation instructions.

[0074] When the control layer executes a register write operation instruction, the register write module is called; the frame header of the register write operation instruction is 0x5AA5; the instruction identifier is 0x01; the data segment consists of padding data, at least one register address, and the data to be written to the register address. The padding data is used to characterize the data before the control parameter. For example, the 6th Byte position and the 7th Byte position of the instruction are the register 1 address, and the 8th Byte position and the 9th Byte position are the data to be written to the register. The frame tail is generated using the CRC check algorithm. The data length is related to the number of write registers. For example, the register write operation instruction includes the addresses of registers 1 to register n, the number of registers is n, and the effective data length from the instruction identifier to the frame tail is 3+4*n.

[0075] Exemplarily, when the control layer executes a register read operation instruction, a register read operation is called; the register read operation instruction frame header is 0x5AA5; the instruction identifier is 0x02; the data segment consists of padding data, at least one register address and the data to be read at the register address; the frame tail is generated using a CRC checksum algorithm; the data length is related to the number of registers read.

[0076] It should be understood that the register submodule is used to store the control parameters of the fractional laser therapy machine, and the parameter types include but are not limited to: communication parameters, system parameters, scanning galvanometer parameters, laser parameters, size calibration parameters, scanning control parameters, and custom curve parameters, etc. The register submodule may include at least one register, and different types of parameters may be stored in different register submodules.

[0077] Among them, communication parameters include serial port communication rate, verification function, communication timeout and other parameters. System parameters include whether the peripherals (buzzer, indicator light) follow the laser output, scanner out-of-position alarm, over-pulse, laser attenuation compensation, system status indication, indicator light brightness adjustment and other parameters. Scanning galvanometer parameters include scanner type, scanner amplitude and zero position calibration coefficient, in-place judgment threshold and other parameters. Laser parameters include laser type setting, laser debugging frequency, over-pulse modulation frequency and width and other parameters. Size calibration parameters include amplitude calibration coefficient of laser and indicator light, geometric distortion calibration coefficient, mirror and other parameters. Scanning control parameters include dot matrix light on, light off delay, continuous scan jump delay, continuous scan start delay, continuous scan end delay and other parameters. Custom curve parameters include custom contour vertex data.

[0078] In some embodiments, the register read / write instruction includes a communication class parameter and a register address corresponding to the communication class parameter. The control layer obtains the register read / write instruction and, based on the register address corresponding to the communication class parameter, calls the register submodule to read or write the communication class parameter. Table 2 is a schematic table of register-communication class parameters provided in this application.

[0079] Table 2 Schematic table of register-communication parameters

[0080]

[0081]

[0082] As shown in Table 2, the communication parameters stored in the register submodule include communication rate, communication timeout, and serial port module initialization. The "Data Definition" in Table 2 is an explanation of the communication parameters, for example, UartConfig represents the communication rate, ComOverTime represents the communication timeout, and UartInitialize represents the serial port module initialization. "Address" is used to indicate the corresponding address of the parameters in the same row in the register submodule. Non-volatile is used to indicate the volatility of the parameter, "√" is used to indicate that the parameter is non-volatile, and "×" is used to indicate that the parameter is volatile. "Read and Write" is used to indicate the readable and writable nature of the parameter. "Preset value" is used to indicate the preset parameter value of the parameter.

[0083] According to Table 2, the corresponding address of the communication rate in the register submodule is 0x0010. The communication rate is non-volatile data, which supports relevant personnel to read and write through the motion control layer. Bit0~Bit2 is the serial port speed. The value of Bit0~Bit2 can be any of 000, 001, 010, ..., 111. When the value of Bit0~Bit2 is 000, it means that the serial port speed is 9600bps. Bit3 is the stop bit. The value of Bit3 can be 0 or 1. When the value of Bit3 is 0, it means that the stop bit is 1; when the value of Bit3 is 1, it means that the stop bit is 2. Bit4~Bit5 is the parity bit. The value of Bit4~Bit5 can be 0, 1, 2 or 3. When the value of Bit4~Bit5 is 0 or 3, it means no parity; when the value of Bit4~Bit5 is 1, it means odd parity is used; when the value of Bit4~Bit5 is 2, it means even parity is used.

[0084] The corresponding address of communication timeout in the register submodule is 0x0011, which is non-volatile data and supports relevant personnel to read and write through the motion control layer. The value of communication timeout setting is in the range of [1,10000], and the unit is 0.1ms. For example, the communication timeout value is 5, which means that the relevant data is not counted as communication timeout if it is communicated within 0.5ms, and it is counted as timeout if the relevant data is not received after 0.5ms. The corresponding address of serial port module initialization in the register submodule is 0x0012, which is volatile data and supports relevant personnel to write through the motion control layer. When the serial port module initialization value is written to 1, it means that the communication module is initialized.

[0085] In some embodiments, the register read and write instructions include scanning galvanometer parameters and register addresses corresponding to the scanning galvanometer parameters. The control layer obtains the register read and write instructions, and based on the register address corresponding to the scanning galvanometer parameters, calls the register submodule to read or write the scanning galvanometer parameters. Among them, the scanning galvanometer parameters are used to set parameters such as the type of scanning driver used by the fractional laser therapy machine. The scanning galvanometer parameters usually include the scanner (communication protocol) type, and the scanner (communication protocol) type includes analog control, XY2-100 control, SPI bus control, etc. Table 3 is a schematic table of register-scanning galvanometer parameters provided in this application.

[0086] Table 3 Schematic table of register-scanning galvanometer parameters

[0087]

[0088]

[0089]

[0090] As shown in Table 3, DriverType indicates the galvanometer driver type. The address corresponding to the galvanometer driver type in the register submodule is 0x0020; the galvanometer driver type is volatile data, which supports relevant personnel to read and write through the control layer. The galvanometer driver types include general analog drivers and digital drivers. The control voltage range of the general analog driver is between -5V and +5V. When the preset value is 0, it means that the general analog driver needs to be called; when the preset value is 1, it means that the digital driver needs to be called. The explanation of other parameters in Table 3 above will not be repeated here.

[0091] In some embodiments, the register read / write instruction includes the laser class parameter and the register address corresponding to the laser class parameter. The control layer obtains the register read / write instruction and, based on the register address corresponding to the laser class parameter, calls the register submodule to read or write the laser class parameter.

[0092] Laser parameters are used to set the laser type and control parameters used by the fractional laser therapy machine. Laser parameters usually include laser type and laser control parameters. For example, laser types include sealed glass carbon dioxide lasers, radio frequency carbon dioxide lasers, and fiber lasers. Laser control parameters include pulse debugging frequency, pre-ionization pulse modulation frequency, pre-ionization pulse width, etc. Table 4 is a schematic table of register-laser parameters provided in this application.

[0093] Table 4 Register-laser type parameter schematic

[0094]

[0095] As shown in Table 4, LaserType indicates the laser type. The address corresponding to the laser type in the register submodule is 0x0040; the laser type is volatile data and supports reading and writing by relevant personnel through the motion control layer. The laser types include sealed glass CO2 lasers and radio frequency CO2 lasers. When the preset value is 0, it means that the sealed glass CO2 laser needs to be called; when the preset value is 1, it means that the radio frequency CO2 laser needs to be called. The explanation of other parameters in Table 4 above will not be repeated here.

[0096] In some embodiments, the register read / write instruction includes a system parameter and a register address corresponding to the system parameter. The control layer obtains the register read / write instruction and, based on the register address corresponding to the system parameter, calls the register submodule to read or write the system parameter.

[0097] System parameters are used to set system control parameters of fractional laser therapy machines to assist the normal operation of the system. System parameters usually include indicating light intensity, system working status, protection IO / foot switch status, and necessary output peripheral switches. The system working status includes system busy status, system idle status, or system fault status; necessary output peripherals include buzzers and indicator lights. Table 5 is a schematic table of register-system parameters provided in this application.

[0098] Table 5 Schematic table of register-system parameters

[0099]

[0100]

[0101]

[0102]

[0103] As shown in Table 5 above, PeripSychroEnable indicates that the peripheral synchronous control is enabled. The corresponding address of the peripheral synchronous control enable in the register submodule is 0x0060; the peripheral synchronous control enable is volatile data, which supports relevant personnel to read and write through the motion control layer. In the preset value of the peripheral synchronous control enable, 0bit is the synchronous control of the buzzer and the laser pulse; bit1 is the synchronous control of the status indicator and the laser pulse; bit2 is the synchronous control of the indicator light and the laser pulse; bit3 is the synchronous control of the indicator light and the contour indication; 0 means prohibiting synchronous control, and 1 means enabling synchronous control. The explanation of other parameters in Table 5 above will not be repeated here.

[0104] In some embodiments, the register read / write instruction includes the size calibration parameter and the register address corresponding to the size calibration parameter. The control layer obtains the register read / write instruction and, based on the register address corresponding to the size calibration parameter, calls the register submodule to read or write the size calibration parameter.

[0105] The size calibration parameters are used to set the amplitude and zero position calibration coefficient of the fractional laser therapy machine when controlling the scanning galvanometer to output the scanning pattern. The size calibration parameters usually include the X and Y axis amplitude calibration coefficients and the zero position compensation coefficient when the scanning galvanometer outputs the coordinates, which are used to compensate for the influence of the optical path and wavelength on the theoretical output coordinates. Table 6 is a schematic table of register-size calibration parameters provided by this application.

[0106] Table 6 Register-Size Calibration Parameters

[0107]

[0108]

[0109] As shown in Table 6, LaserAmpliFactorX represents the laser amplitude calibration factor of the X-axis (laser amplitude calibration factor-X-axis). The address corresponding to the laser amplitude calibration factor-X-axis in the register submodule is 0x0080; the laser amplitude calibration factor-X-axis is non-volatile data, which supports relevant personnel to read and write through the motion control layer. The value range of the laser amplitude calibration factor-X-axis is greater than or equal to 1000 and less than or equal to 20000, and the unit is 0.0001; the preset value is 10000, which is within the value range of the laser amplitude calibration factor-X-axis. The explanation of other parameters in Table 6 above will not be repeated here.

[0110] In some embodiments, the register read / write instruction includes a scan control parameter and a register address corresponding to the scan control parameter. The control layer obtains the register read / write instruction and, based on the register address corresponding to the scan control parameter, calls the register submodule to read or write the scan control parameter.

[0111] Scanning control parameters are used to set various delay values ​​of the fractional laser therapy machine when controlling the scanning galvanometer to output continuous and dot-matrix scanning to ensure the quality of the output points and graphics. Scanning control parameters include dot-matrix scanning parameters or continuous scanning parameters. Dot-matrix scanning parameters usually include light-on delay and light-off delay. Continuous scanning parameters usually include synchronization lag delay, jump, turning, and end delay. Table 7 is a schematic table of register-scanning control parameters provided in this application.

[0112] Table 7 Schematic table of register-scan control parameters

[0113]

[0114]

[0115] As shown in Table 7, LaserOffDelay represents the dot scan-light-off delay, which is used to characterize the delay inserted after the laser is turned off, which can prevent the occurrence of flying spots due to the laser not being turned off in time. The address corresponding to the dot scan-light-off delay in the register submodule is 0x00A0; the dot scan-light-off delay is non-volatile data, which supports relevant personnel to read and write through the motion control layer. The value range of the dot scan-light-off delay is between 0 and 1000, the unit is 10us, and the preset value is 0.

[0116] LaserOnDelay represents the dot matrix scanning-light-on delay, which is used to characterize the delay inserted before the laser is turned on after the scanning handpiece locates and scans the coordinates in the dot matrix. It can prevent the scanning handpiece from locating for too long, resulting in flying spots. The address corresponding to the dot matrix scanning-light-on delay in the register submodule is 0x00A1; the dot matrix scanning-light-on delay is non-volatile data, which supports relevant personnel to read and write through the motion control layer. The value range of the dot matrix scanning-light-on delay is between 0 and 1000, the unit is 10us, and the preset value is 0.

[0117] Figure 3 A schematic diagram of an insertion delay provided in this application, showing a comparison between no insertion delay and insertion delay in dot matrix filling mode. Figure 3 shown. Figure 3 Part a in FIG. 1 shows that when no delay is inserted, after the scanning arm is positioned at the nth point, the laser emits light at the nth point and the scanning arm is positioned at the n+1th point at the same time. Figure 3 Part b in the figure shows that after the delay is inserted, the scanning arm is positioned at the nth point, and the laser emits light at the nth point after a delay, thereby effectively reducing the situation where the scanning arm has not yet completed positioning due to too long positioning time, but the laser has already emitted light, thereby reducing the occurrence of flying spots.

[0118] After the laser emits light at point n, the scanning arm will delay for a period of time and then locate at point n+1, which effectively reduces the situation where the laser is still emitting light but the scanning arm has already started to locate point n+1 due to the laser not being turned off in time at point n, thereby reducing the occurrence of flying spots.

[0119] As shown in Table 7, LaserSychDelay represents the continuous laser scanning-synchronization hysteresis delay, which is the synchronization delay in the laser continuous scanning mode. Since the galvanometer lags behind the laser, the continuous laser scanning-synchronization hysteresis delay can be used to increase the synchronization delay between the scanning track and the laser light output, thereby improving the overall synchronization scanning effect.

[0120] The corresponding address of continuous laser scanning-synchronous hysteresis delay in the register submodule is 0x00A2; continuous laser scanning-synchronous hysteresis delay is non-volatile data, which supports relevant personnel to read and write through the motion control layer. The value range of continuous laser scanning-synchronous hysteresis delay is between 0 and 10, the unit is 200us, and the preset value is 2.

[0121] Figure 4 A schematic diagram of a synchronization delay provided in this application, showing the comparison between the laser continuous scanning mode without adding synchronization delay and adding synchronization delay. Figure 4 As shown in the figure, dots represent the theoretical light emission trajectory, dashed lines represent the theoretical jump trajectory, and solid lines represent the actual scanning trajectory. Figure 4 Part a in FIG shows that when the synchronization delay is not added, the actual scanning trajectory does not coincide with the theoretical light emission trajectory. Figure 4 Part b in FIG. 3 shows that after increasing the synchronization delay, the actual scanning trajectory coincides with the theoretical light emission trajectory, thereby improving the overall synchronous scanning effect.

[0122] As shown in Table 7 above, LaserTurnDelay represents continuous laser scanning-turn delay, which is used to characterize the turn delay in the laser continuous scanning mode. By increasing the delay at the corner of the continuous scanning line, the corner effect is improved. The corresponding address of the continuous laser scanning-turn delay in the register submodule is 0x00A3; the continuous laser scanning-turn delay is non-volatile data, which supports relevant personnel to read and write through the motion control layer. The value range of the continuous laser scanning-turn delay is between 0 and 10, the unit is 200us, and the preset value is 2.

[0123] Figure 5 A schematic diagram of a corner delay provided in this application, showing the comparison between the case where no corner delay is added and the case where corner delay is added in the laser continuous scanning mode. Figure 5 shown. Figure 5 In the figure, dots are used to represent theoretical light emission trajectory, and solid lines are used to represent actual scanning trajectory. Figure 5Part a in FIG. 1 shows that when the corner delay is not increased, the difference between the actual scanning trajectory and the theoretical light emission trajectory at the corner is large. Figure 5 Part b in FIG. 1 shows that after increasing the corner delay, the gap between the actual scanning trajectory and the theoretical light emission trajectory at the corner is reduced, thereby improving the corner effect.

[0124] As shown in Table 7 above, LaserJumpDelay represents the continuous laser scan-jump delay, which is used to characterize the delay of waiting for the galvanometer to jump to the position after the scanning trajectory jumps to the new starting position. The corresponding address of the continuous laser scan-jump delay in the register submodule is 0x00A4; the continuous laser scan-jump delay is non-volatile data, which supports relevant personnel to read and write through the motion control layer. The value range of the continuous laser scan-jump delay is between 0 and 10, the unit is 200us, and the preset value is 2.

[0125] Figure 6 A schematic diagram of a jump delay provided in this application, showing a comparison between the laser continuous scanning mode without adding jump delay and adding jump delay. Figure 6 shown. Figure 6 Dots are used to represent the theoretical light emission trajectory, dotted lines are used to represent the theoretical jump trajectory, and solid lines are used to represent the actual scanning trajectory. Figure 6 Part a in FIG. 1 shows that when the jump delay is not increased, the actual scanning trajectory does not coincide with the theoretical light emission trajectory. Figure 4 Part b in FIG. 1 shows that after the jump delay is increased, the actual scanning trajectory coincides with the theoretical light emission trajectory, thereby improving the jump effect.

[0126] As shown in Table 7, LaseFinishDelay represents the continuous laser scan-end delay, which is used to characterize the delay of waiting for the galvanometer to reach the end position before the scanning trajectory jumps to the new starting position. The corresponding address of the continuous laser scan-end delay in the register submodule is 0x00A5; the continuous laser scan-end delay is non-volatile data, which supports relevant personnel to read and write through the motion control layer. The value range of the continuous laser scan-end delay is between 0 and 10, the unit is 200us, and the preset value is 2.

[0127] Figure 7 A schematic diagram of an end delay provided in this application, showing a comparison between the laser continuous scanning mode without adding an end delay and adding an end delay. Figure 7 shown. Figure 7 Dots are used to represent the theoretical light emission trajectory, dotted lines are used to represent the theoretical jump trajectory, and solid lines are used to represent the actual scanning trajectory. Figure 7 Part a in FIG. 1 shows that when the end delay is not increased, the actual scanning trajectory does not coincide with the theoretical light emission trajectory. Figure 7Part b in FIG. 1 shows that after the end delay is increased, the actual scanning trajectory coincides with the theoretical light emission trajectory, thereby improving the delay effect.

[0128] The explanation of other parameters in Table 6 above will not be repeated here.

[0129] In some embodiments, the register read / write instruction includes a custom curve and a register address corresponding to the custom curve. The control layer calls the register submodule to read or write the custom curve based on the register address corresponding to the custom curve.

[0130] In some embodiments, the user instruction is a second type of instruction, and a task call control instruction is generated according to the instruction identifier and the instruction parameter to call the task execution submodule in the fractional laser therapy machine. In the process of calling the task execution submodule, it is necessary to pass the execution parameter to the task execution submodule so that the task execution submodule calls the laser and / or galvanometer system according to the execution parameter.

[0131] First, the execution module corresponding to the user instruction, that is, the task execution sub-module, is determined according to the instruction identifier in the user instruction. Then, the execution parameters of the task execution sub-module are queried based on the module parameter table, and the execution parameters are compared with the instruction parameters in the user instruction to mark the parameter status of the instruction parameters, which includes complete status and incomplete status.

[0132] Exemplarily, user instruction 1 needs to call task execution submodule A, and the execution parameters of task execution submodule A in the module parameter table are parameter A, parameter B and parameter C. The instruction parameters in user instruction 1 include: parameter A and parameter C, and at this time, the instruction parameters are marked as incomplete.

[0133] Exemplarily, user instruction 2 needs to call task execution submodule B, and the execution parameters of task execution submodule B in the module parameter table are parameter E and parameter F. The instruction parameters in user instruction 2 include: parameter E and parameter F, and at this time, the instruction parameters are marked as complete.

[0134] In some embodiments, the display layer obtains the execution parameter according to the parameter state, and generates the task call control instruction according to the instruction identifier and the execution parameter. Then, the display layer sends the task call control instruction to the task execution submodule, and obtains the execution result returned by the task execution submodule.

[0135] When the parameter status of the instruction parameter is complete, the execution parameter is obtained from the instruction parameter. When the parameter status of the instruction parameter is incomplete, the execution parameter is queried from the register parameter table to store the execution parameter, and the execution parameter missing from the instruction parameter is read from the register. The execution parameters and register addresses stored in the register are shown in Tables 1 to 7, which will not be described here.

[0136] In some embodiments, the user instruction is a second type of instruction, which is used to indicate the outer contour of the treatment area of ​​the fractional laser therapy machine. In this case, the control instruction is a contour indication instruction, which is used to control the galvanometer scanning system to perform continuous scanning using the indication light according to the required graphics and scanning speed and other parameters. The contour indication instruction includes a scanning positioning instruction and a scanning contour instruction.

[0137] The scanning and positioning instruction is used to instruct the scanning and positioning task scheduling submodule to send a galvanometer scanning control signal to control the galvanometer coordinates of the galvanometer scanning system to jump to the scanner jump coordinates. Table 8 is a data format table of a scanning and positioning instruction provided in this application.

[0138] Table 8 Data format of scanning positioning instruction

[0139]

[0140] As shown in Table 8, the data format of the scanning and positioning instruction includes a frame header, data length, instruction identifier, data segment, and frame tail. The frame header is 0x5AA5; the data length is 0x0005; the instruction identifier is 0x10; the data segment consists of padding data, X-axis coordinates, and Y-axis coordinates, where the X-axis coordinates represent the X-axis jump coordinates, and the Y-axis coordinates represent the Y-axis jump coordinates. The X-axis coordinates and the Y-axis coordinates together constitute the scanner jump coordinates, which are necessary execution parameters for the scanning and positioning instruction. The frame tail is generated using the CRC check algorithm.

[0141] In some embodiments, the scan contour instruction is used to instruct the scan contour task scheduling submodule to send a contour scanning control signal to control the galvanometer scanning system to scan the contour of the geometric figure. The necessary execution parameters of the scan contour instruction include: the geometric figure type, the X-axis size of the geometric figure, and the Y-axis size of the geometric figure.

[0142] In some embodiments, the scanning contour instruction includes a single-graphic contour scanning instruction, which controls the scanning galvanometer to scan a single graphic by calling the single-graphic contour scanning task scheduling submodule. The necessary execution parameters of the single-graphic contour scanning instruction include: instruction identifier, graphic type and graphic size. Among them, the graphic type refers to the basic graphic set for scanning, and the graphic types include ellipse, rectangle, triangle, hexagon, parallelogram, trapezoid, custom graphic or straight line, etc. The graphic size refers to the size of the set graphic type, and the graphic size includes the X-axis size and Y-axis size of the graphic.

[0143] In some embodiments, the graphic type may be a custom type, in which case the graphic size is determined based on the graphic boundary coordinates.

[0144] The execution parameters of the single graphic contour scanning instruction may also include a scanning mode, where the scanning mode refers to a mode for setting the scanning graphic trajectory. For example, the scanning mode includes circular jitter, and the control layer uses a circle inscribed in the graphic boundary to scan the graphic boundary. Figure 8 A schematic diagram of a rectangular scanning effect provided by this application, Figure 8 shows the effect of scanning a rectangle using circular dithering, Figure 8 The X-axis size shown refers to the length of the rectangle in the X-axis direction, and the Y-axis size refers to the length of the rectangle in the Y-axis direction. Table 9 is a data format table of a single graphic outline scanning instruction provided by the present application.

[0145] Table 9 Data format table of single graphic contour scanning instructions

[0146]

[0147] As shown in Table 9, the data format of the single graphic contour scanning instruction includes a frame header, data length, instruction identifier, data segment and frame tail. The frame header is 0x5AA5; the data length is 0x000B; the instruction identifier is 0x11; the data segment consists of padding data, graphic type, scanning mode, X-axis size and Y-axis size, where the graphic types include ellipse, rectangle, triangle, hexagon, parallelogram, trapezoid, custom graphic and straight line, and the number before the graphic type is used to indicate the number of the graphic type, for example, the number of the ellipse is 0 and the number of the rectangle is 1. The scanning mode includes normal scanning and circular jitter, and the number before the scanning mode is used to indicate the number of the scanning mode, for example, the number of the normal scanning is 0 and the number of the circular jitter is 1. The above X-axis size indicates the coordinate of the graphic in the X-axis direction, and the Y-axis size indicates the coordinate of the graphic in the Y-axis direction. The frame tail is generated using the CRC check algorithm.

[0148] In some embodiments, the scanning contour instruction includes a combined graphic contour scanning instruction. The combined graphic contour scanning instruction controls the scanning galvanometer to scan the combined graphic by calling the combined graphic contour scanning task scheduling submodule. The necessary execution parameters of the combined graphic contour scanning instruction include the instruction identifier, the combined graphic type and the combined graphic size. The combined graphic types include rectangular combinations, elliptical combinations, square and circular combinations, etc. The combined graphic size includes the outer diameter X-axis size, the outer diameter Y-axis size, the inner diameter X-axis size, and the inner diameter Y-axis size of the combined graphic. Table 10 is a data format table of a combined graphic contour scanning instruction provided in the present application.

[0149] Table 10 Data format table of graphic contour scanning instructions

[0150]

[0151] As shown in Table 10 above, the data format of the combined graphic contour scanning instruction includes a frame header, data length, instruction identifier, data segment and frame tail. The frame header is 0x5AA5; the data length is 0x000D; the instruction identifier is 0x12; the data segment consists of filling data, combined graphic type, outer diameter X-axis size, outer diameter Y-axis size, inner diameter X-axis size and inner diameter Y-axis size. Among them, the combined graphic type includes a rectangular combination, an elliptical combination or a square / circular combination. The number before the combined graphic type is used to indicate the number of the combined graphic type. For example, the number of the rectangular combination is 0. The above-mentioned outer diameter X-axis size represents the outer diameter coordinate of the combined graphic in the X-axis direction, and the outer diameter Y-axis size represents the outer diameter coordinate of the combined graphic in the Y-axis direction. The inner diameter X-axis dimension indicates the inner diameter coordinate of the combined graphic in the X-axis direction. The inner diameter X-axis dimension < the outer diameter X-axis dimension indicates that the inner diameter coordinate of the combined graphic in the X-axis direction is smaller than the outer diameter coordinate of the combined graphic in the X-axis direction. The inner diameter Y-axis dimension indicates the inner diameter coordinate of the combined graphic in the Y-axis direction. The inner diameter Y-axis dimension < the outer diameter Y-axis dimension indicates that the inner diameter coordinate of the combined graphic in the Y-axis direction is smaller than the outer diameter coordinate of the combined graphic in the Y-axis direction. The frame tail is generated using the CRC check algorithm.

[0152] In some embodiments, the task call control instruction includes a dot matrix scanning instruction, which is used to instruct the dot matrix scanning task scheduling submodule to send a simulation calculation signal or a dot matrix filling signal. The dot matrix scanning instruction includes a simulation calculation instruction and an actual execution instruction, wherein the simulation calculation instruction is used to calculate the number of dot matrix filling points and the scanning length, and the actual execution instruction is used to control the galvanometer scanning system and the laser to generate a scanning dot matrix.

[0153] The instruction parameters of the dot scanning instruction include a total instruction parameter set and a scan filling parameter set. The total instruction parameter set includes the number of valid layers, the number of layer executions and the layer execution interval time. The scan filling parameter set includes the scan filling parameters of at least one layer. Table 11 is a data format table of a dot scanning instruction provided by the present application. As shown in Table 11, the data format of the dot scanning instruction includes a frame header, data length, instruction identifier, data segment and frame tail. Among them, the data segments are combined in the form of layers, and each layer can be individually set with different working modes and working parameters. For example, the scanning speed, dot filling density, laser pulse control mode, laser working intensity, etc. are set in different layers. Different mode scanning combinations can be performed between multiple layers, such as dot scanning and continuous scanning combinations. The format of the data segment is "total instruction parameter setting + layer 1 parameters + layer 2 parameters... + layer n parameters".

[0154] Table 11 Data format of dot scanning instructions

[0155]

[0156] As shown in Table 11, the frame header of the dot scan instruction is 0x5AA5; the data length is determined by the layer parameters. When the instruction identifier is 0x20, the instruction type is simulation calculation; when the instruction identifier is 0x21, the instruction type is laser scanning filling. The data segment consists of filling data, total valid layers, total repetitions, total repetition interval and layer filling parameters, where the total valid layers refer to the valid layers of the dot scan instruction; the total repetitions refer to the number of instruction repetitions; the total repetition interval refers to the interval time between repetitions after all layers are executed. The frame tail is generated using the CRC check algorithm.

[0157] In some embodiments, the display layer determines the filling scanning parameters according to the dot matrix filling form or the continuous scanning form, wherein the dot matrix filling form includes basic geometric figures and concentric circle figures, and the continuous scanning form includes nested annular arrays and spiral involute arrays.

[0158] When the dot matrix filling form is a basic geometric shape, you can dot matrix fill basic geometric shapes such as rectangles, circles, triangles, etc. in the current layer. Fig. 9 As shown, Fig. 9 Part a shows the dot filling of a rectangle, part b shows the dot filling of a circle, part c shows the dot filling of a triangle, part d shows the dot filling of a hexagon, part e shows the dot filling of a parallelogram, part f shows the dot filling of a trapezoid, part g shows the dot filling of a square hollow, part h shows the dot filling of a circular hollow, part i shows the dot filling of a straight line, and part j shows the dot filling of a custom graphic.

[0159] The scanning and filling parameters of the basic geometric figures include: data segment identification, basic geometric figure type, basic geometric figure X-axis size, basic geometric figure Y-axis size, filling point spacing, laser power, filling point laser working time, current layer repetition times and current layer repetition interval. Table 12 is a schematic table of a conventional graphic dot matrix filling data segment provided by this application.

[0160] Table 12 Schematic diagram of conventional graphic dot matrix filling data segment

[0161]

[0162] As shown in Table 12 above, "bit" is used to characterize the filling data. The first column of the bit can be used as the first filling data, and the second column can be used as the second filling data. "Function" is used to characterize the control parameters, and "Remarks" is used to characterize the explanation of the function. For example, the fixed value of the current layer function identifier is 0, indicating that the segment data of the current layer is a conventional graphic dot matrix filling data segment. The graphic type is used to set the basic geometric type. For example, the graphic type can be a rectangle, a circle, etc. The scanning mode is used to set the scanning mode for the basic geometric figure, including sequential scanning, random scanning, center scanning, and scattered scanning. The outer frame X-axis size is used to characterize the X-axis size of the outer diameter of the graphic class; the outer frame Y-axis size is used to characterize the Y-axis size of the outer diameter of the graphic class; the inner frame X-axis size is used to characterize the X-axis size of the inner diameter of the graphic class; the inner frame Y-axis size is used to characterize the Y-axis size of the inner diameter of the graphic class. The dot matrix filling spacing is used to characterize the distance between the points in the filling dot matrix. The single-point switching light time is used to characterize the total opening time of the laser at the filling point. The laser power (normal pulse) is used to characterize the power ratio when the laser outputs a normal pulse during the dot matrix filling process. The super pulse length is used to characterize the time of the laser output super pulse at the filling point. The laser power (super pulse) is used to characterize the laser power ratio when the laser outputs super pulse. The layer repetition number is used to characterize the current layer repetition number. The layer repetition interval is used to characterize the current layer repetition interval time.

[0163] When the dot matrix fill form is a concentric circle graphic, each layer can draw a maximum of 5 concentric rings, and the number of points contained in each concentric ring is the same. Fig.10 A schematic diagram of concentric circle scanning provided in this application, Fig.10 Three concentric rings are drawn, and the number of points in each concentric ring is the same.

[0164] The scanning and filling parameters of the concentric circle graphics include: data segment identification, ring diameter, laser power, point laser working time, current layer repetition times and current layer repetition interval. Table 13 is a schematic table of concentric circle dot scanning array data segments provided by this application.

[0165] Table 13 Schematic diagram of concentric dot scanning array data segment

[0166]

[0167]

[0168] As shown in Table 13, the fixed value of the current layer function identifier is 1, indicating that the data segment of this layer is a concentric dot scanning array data segment. The scanning mode is used to characterize the dot scanning mode of the concentric circle, including sequential scanning, random scanning, etc. The number of points is used to characterize the number of valid points contained in each concentric circle, and the unit is 10 points. The ring diameter 1 is used to characterize the diameter of concentric circle 1. When 0 is written, it means that concentric circle 1 is not drawn. The ring diameter 2 is used to characterize the diameter of concentric circle 2. When 0 is written, it means that concentric circle 2 is not drawn. The ring diameter 3 is used to characterize the diameter of concentric circle 3. When 0 is written, it means that concentric circle 3 is not drawn. The ring diameter 4 is used to characterize the diameter of concentric circle 4. When 0 is written, it means that concentric circle 4 is not drawn. The ring diameter 5 is used to characterize the diameter of concentric circle 5. When 0 is written, it means that concentric circle 5 is not drawn. The single point opening time is used to characterize the total opening time of the laser at the filling point. The laser power (normal pulse) is used to characterize the power ratio when the laser outputs a normal pulse during the dot filling process. The super pulse length is used to characterize the time of the laser output super pulse at the filling point. After the super pulse output ends, it automatically changes to a regular pulse. The rules for regular pulse and super pulse output are as follows: Laser power (super pulse) is used to characterize the laser power ratio when the laser outputs super pulse. Layer repetition times are used to characterize the number of repetitions of this layer. Layer repetition interval is used to characterize the repetition interval time of this layer.

[0169] When the continuous scanning mode is a nested ring array, the boundary of the geometry of this layer is a nested ring pattern. Fig.11 As shown, two nested rings form a ring pattern, a square trajectory is used as a boundary, and 16 ring patterns are scanned.

[0170] The scanning and filling parameters of the nested annular array include: data segment identification, array pattern type, array pattern X-axis size, array pattern Y-axis size, ring center distance, ring radius, laser power, current layer repetition times and current pattern repetition interval. Table 14 is a schematic table of annular continuous scanning data segments provided by the present application.

[0171] Table 14 Schematic diagram of circular continuous scanning data segment

[0172]

[0173]

[0174] As shown in Table 14, the fixed value of the current layer function identifier is 4, indicating that the data segment of this layer is a circular continuous scan. The graphic type is used to characterize the graphic type of the geometric boundary. The outer frame X-axis size is used to characterize the X-axis size of the geometric boundary. The outer frame Y-axis size is used to characterize the Y-axis size of the geometric boundary. Ring diameter 1 is used to characterize the diameter of the first nested ring pattern. When 0 is written, it means that the first nested ring pattern is not scanned. Ring diameter 2 is used to characterize the diameter of the second nested ring pattern. When 0 is written, it means that the second nested ring pattern is not scanned. Ring diameter 3 is used to characterize the diameter of the third nested ring pattern. When 0 is written, it means that the third nested ring array pattern is not scanned. Ring diameter 4 is used to characterize the diameter of the fourth nested ring pattern. When 0 is written, it means that the fourth nested ring array pattern is not scanned. Ring diameter 5 is used to characterize the diameter of the fifth nested ring pattern. When 0 is written, it means that the fifth nested ring pattern is not scanned. Ring center distance is used to characterize the center distance of the nested ring dot array pattern. Laser power is used to characterize the laser output power ratio during continuous scanning. Layer repetition number is used to characterize the number of repetitions of this layer. The layer repetition interval is used to represent the repetition interval time of this layer.

[0175] When the continuous scanning form is a spiral involute array, the geometric boundary of this layer is a nested spiral pattern. Fig.12 As shown, 16 nested spiral patterns are scanned using a square trajectory as a boundary.

[0176] The scanning and filling parameters of the spiral involute array include: data segment identification, array pattern type, array pattern X-axis size, array pattern Y-axis size, maximum outer diameter of the spiral, number of spirals, spiral center distance, laser power, current layer repetition number and current layer repetition interval. Table 15 is a schematic table of a spiral involute continuous scanning data segment provided by the present application.

[0177] Table 15 Schematic diagram of spiral involute continuous scanning data segment

[0178]

[0179]

[0180] As shown in Table 15, the fixed value of the function identifier of this layer is 6, indicating that the data segment of this layer is a spiral involute continuous scan. The graphic type is used to characterize the graphic type of the geometric boundary. The outer frame X-axis size is used to characterize the X-axis size of the geometric boundary. The outer frame Y-axis size is used to characterize the Y-axis size of the geometric boundary. The direction is used to characterize the direction of the spiral line scanning, 0 is scanning from the outside to the inside, and 1 is scanning from the inside to the outside. The spiral line edge diameter is used to characterize the outermost circle diameter of the spiral line. The number of spirals is used to characterize the number of spirals. The ring center distance is used to characterize the center distance of the nested ring dot pattern. The laser power is used to characterize the laser output power ratio during the continuous scanning process. The number of layer repetitions is used to characterize the number of repetitions of this layer. The layer repetition interval is used to characterize the repetition interval time of this layer.

[0181] According to the above embodiment, the display layer sends the dot matrix scanning instruction to the dot matrix scanning task scheduling submodule, so that the dot matrix scanning task scheduling submodule calculates the dot matrix filling points and the scanning length, or controls the galvanometer scanning system and the laser to generate the scanning dot matrix.

[0182] In some embodiments, the task call control instruction includes a continuous laser pulse instruction, which is used to instruct the continuous laser pulse task scheduling submodule to send a continuous laser control signal, thereby controlling the laser to emit continuous laser pulses. The instruction parameters of the continuous laser pulse instruction include laser output power, timed start time and duration. Table 16 is a data format table of a continuous laser pulse instruction provided in this application.

[0183] Table 16 Data format of continuous laser pulse instructions

[0184]

[0185] As shown in Table 16, the data format of the continuous laser pulse instruction includes a frame header, data length, instruction identifier, data segment and frame tail. The frame header is 0x5AA5; the data length is 0X0007; the instruction identifier is 0x30. The data segment consists of padding data, timed start time and laser power. The timed output time includes the timed start time. The timed start time is used to characterize the continuous mode timed working time, that is, the laser automatically ends after the timer expires until the foot switch is closed again. When the timed start time is set to 0, it means that the timing function is turned off. The laser output power indicates the set laser output power when in continuous mode. The frame tail is generated using the CRC check algorithm.

[0186] Exemplarily, the laser is a sealed glass CO2 laser, such as Fig.13As shown, the laser pulse parameters include the laser output power and the timing start time. When the foot switch is closed, the foot switch state is the foot switch closed state, which meets the start condition for controlling the laser. The control layer automatically controls the output of the laser according to the laser output power within the set timing start time, and automatically controls the laser to turn off after the timing start time ends.

[0187] In some embodiments, the task call control instruction includes a pulse group control instruction, which is used to instruct the pulse group laser pulse task scheduling submodule to send a pulse group control signal, thereby controlling the laser to emit a pulse group. The instruction parameters of the pulse group control instruction include laser power, pulse group parameters, super pulse time and super pulse laser frequency, and the pulse group parameters include the number of sub-pulses, sub-pulse interval, sub-pulse high level time, and pulse group interval. Table 17 is a data format table of a pulse group control instruction provided in this application.

[0188] Table 17 Data format of pulse group control instructions

[0189]

[0190] As shown in Table 17, the data format of the pulse group control instruction includes a frame header, data length, instruction identifier, data segment and frame tail. The frame header is 0x5AA5; the data length is 0X0013; the instruction identifier is 0x31. The data segment consists of padding data, timing start time, laser power (pulse), pulse low level time, pulse high level time, number of group pulses, group interval time, super pulse length and laser power (super pulse). The laser pulse power indicates the output power of the laser when the pulse group mode is set to work normally. The pulse low level time indicates the low level time of a single pulse in the set pulse group. The pulse high level time indicates the high level time of a single pulse in the set pulse group. The number of group pulses indicates the number of single pulses in the set pulse group. The group interval time indicates the interval time between the set pulse groups. The super pulse length indicates the width of the set output super pulse. When it is set to 0, the super pulse function is turned off. The laser power (super pulse) indicates the set super pulse power. The frame tail is generated using the CRC check algorithm.

[0191] For example, the laser is a sealed glass CO2 laser, and the laser pulse waveform of the laser in the pulse group mode is as follows: Fig.14 As shown, the control layer automatically controls the output of the laser according to the laser pulse power, super pulse time, group pulse high level time, group pulse low level time, pulse group interval, pulse group, timing start time, and group pulse number within the set timing start time, and automatically controls the laser to turn off after the timing start time ends.

[0192] In some embodiments, the user instruction is a third type of instruction, and the third type of instruction is a process instruction, which is used to control the task state of the execution module. The process instruction includes a start execution instruction and an end execution instruction, which are used to instruct the execution module to start executing the received control instruction, or to end the execution of the received control instruction. Table 19 is a data format table of a process instruction provided in this application.

[0193] Table 19 Data format of process instructions

[0194]

[0195] Exemplarily, after receiving the dot scan instruction, the dot scan task scheduling submodule waits for the execution of the dot fill task. In response to the dot scan task scheduling submodule receiving the start execution instruction, the dot fill task starts to be executed.

[0196] Exemplarily, when the continuous laser pulse task scheduling submodule receives an end execution instruction during the process of sending the continuous laser control signal, the continuous laser pulse task scheduling submodule sends an end signal to the laser to stop the laser from emitting laser light.

[0197] Step S500: Generate a reply instruction based on the execution result, and return the reply instruction to the display layer.

[0198] In some embodiments, the execution module executes the control instruction and returns the execution result. A reply instruction is generated according to the execution result, and the reply instruction is returned to the display layer. Exemplarily, the user instruction is used to instruct the calculation of the dot matrix filling point number and the scanning length, and the control layer calls the dot matrix scanning task scheduling submodule and returns the reply instruction. Table 19 is a data format table of a reply instruction provided in this application.

[0199] Table 19 Data format of reply command

[0200]

[0201] As shown in Table 19, the data format of the reply command includes a frame header, data length, command identifier, data segment, and frame tail. The frame header is 0x5AA5; the data length is 0x000B, and the command identifier is 0x83. The data segment consists of data segment padding data, frame tail padding data, and function description segment data. The output data sets multiple layers, and the function description segment data includes the total number of dot matrix scan points in layer 1, the continuous scan length of layer 1, the total number of dot matrix scan points in layer 2, and the continuous scan length of layer 2. The frame tail is 0x3CC3.

[0202] It should be understood that when the task call control instruction calls different execution modules, the execution modules return different results, so the parameters of the data segment in the generated reply instruction are different. This application will not repeat the reply instructions generated by other execution modules.

[0203] By sending reply instructions to the display layer, the operator can obtain the execution data of the fractional laser therapy machine in a timely manner, thereby realizing the normal operation of the fractional laser therapy machine and monitoring the output parameters during the operation, thereby improving the safety and controllability of the fractional laser therapy machine.

[0204] It can be seen from the above technical solution that the present application is a method and system for executing instructions based on a fractional laser therapy machine, the method comprising: obtaining a user instruction input by a user in a display layer, parsing the user instruction to obtain an instruction identifier and instruction parameters; obtaining an execution module according to the instruction identifier, and generating a control instruction according to the instruction identifier and instruction parameters, and sending the control instruction to the control layer so that the execution module executes the control instruction and returns the execution result; then generating a reply instruction based on the execution result, and returning the reply instruction to the display layer. The above method can generate a control instruction according to the user instruction input by the user in the display layer, and send the control instruction to the control layer, and then call the execution module corresponding to the user instruction in the control layer to control the galvanometer and laser in the fractional laser therapy machine, thereby improving the controllability and human-computer interaction experience of the fractional laser therapy machine.

[0205] Based on the instruction execution method based on the fractional laser therapy machine provided in the above embodiment, some embodiments of the present application also provide an instruction execution system based on the fractional laser therapy machine, see Fig.15 The instruction execution system based on the fractional laser therapy machine is used to execute the instruction execution method based on the fractional laser therapy machine described in the first embodiment, and the instruction execution system based on the fractional laser therapy machine includes:

[0206] The instruction acquisition module 1501 is configured to acquire user instructions input by the user in the display layer. The user instructions include first-category instructions, second-category instructions and third-category instructions. The first-category instructions are used to instruct the reading or writing of parameters to the register, the second-category instructions are used to instruct the calling of the task execution submodule, and the third-category instructions are used to indicate the start or end of the task process.

[0207] The instruction parsing module 1502 is configured to parse the user instruction to obtain the instruction identifier and instruction parameters.

[0208] The instruction execution module 1503 is configured to obtain an execution module according to an instruction identifier, generate a control instruction according to the instruction identifier and instruction parameters, and send the control instruction to the control layer so that the execution module executes the control instruction and returns the execution result. The execution module is associated with the instruction identifier.

[0209] The result returning module 1504 is configured to generate a reply instruction based on the execution result and return the reply instruction to the display layer.

[0210] The effects of the above system in the process of executing the method can be found in the description of the above method, which will not be repeated here.

[0211] Those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present invention, which follows the general raw materials of the present invention and includes common knowledge or customary technical means in the art not disclosed by the present invention; the specification and examples are to be regarded as exemplary only, and the true scope and spirit of the present invention are indicated by the claims.

[0212] It will be appreciated that the present invention is not limited to the precise construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof; the scope of the present invention being limited only by the appended claims.

Claims

1. A method for executing instructions based on a fractional laser therapy machine, characterized in that: include: Obtaining user instructions input by the user in the display layer, the user instructions include first-category instructions, second-category instructions and third-category instructions, the first-category instructions are used to read or write parameters to registers, the second-category instructions are used to call the task execution submodule, and the third-category instructions are used to indicate the start or end of a task flow; Parsing the user instruction to obtain an instruction identifier and instruction parameters; Acquire an execution module according to the instruction identifier, wherein the execution module is associated with the instruction identifier; Generate a control instruction according to the instruction identifier and the instruction parameter, and send the control instruction to the control layer so that the execution module executes the control instruction and returns an execution result; A reply instruction is generated based on the execution result, and the reply instruction is returned to the display layer.

2. The instruction execution method based on the fractional laser therapy machine according to claim 1, characterized in that: In the case where the user instruction is a second-category instruction, generating a control instruction according to the instruction identifier and the instruction parameter, and sending the control instruction to the control layer so that the execution module executes the control instruction and returns an execution result, including: Querying execution parameters of a task execution submodule from a module parameter table, wherein the task execution submodule is an execution module corresponding to the user instruction, and the task execution submodule is determined according to the instruction identifier; Comparing the execution parameter with the instruction parameter, marking the parameter status of the instruction parameter, wherein the parameter status includes: a complete status and an incomplete status; Acquire execution parameters according to the parameter state, and generate a task call control instruction according to the instruction identifier and the execution parameters; The task call control instruction is sent to the task execution submodule, and the execution result returned by the task execution submodule is obtained.

3. The instruction execution method based on the fractional laser therapy machine according to claim 2, characterized in that: The acquiring the execution parameter according to the parameter state includes: When the parameter state of the instruction parameter is a complete state, obtaining execution parameters from the instruction parameter; When the parameter status of the instruction parameter is in an incomplete state, the execution parameter is queried and stored in a register parameter table, and the execution parameter missing from the instruction parameter is read from the register.

4. The instruction execution method based on the fractional laser therapy machine according to claim 3, characterized in that: The task calling control instruction includes a scanning positioning instruction, and the instruction parameters of the scanning positioning instruction include the scanner jump coordinates; The execution module includes a scanning positioning task scheduling submodule, and the scanning positioning instruction is used to instruct the scanning positioning task scheduling submodule to send a galvanometer scanning control signal, and the galvanometer scanning control signal is used to control the galvanometer coordinates of the galvanometer scanning system to jump to the scanner jump coordinates.

5. The instruction execution method based on the fractional laser therapy machine according to claim 3, characterized in that: The task call control instruction includes a scan contour instruction, and the instruction parameters of the scan contour instruction include a geometric figure type, an X-axis size of the geometric figure, and a Y-axis size of the geometric figure; The execution module includes a scanning contour task scheduling submodule, and the scanning contour instruction is used to instruct the scanning contour task scheduling submodule to send a contour scanning control signal, and the contour scanning control signal is used to control the galvanometer scanning system to scan the contour of the geometric figure.

6. The instruction execution method based on the fractional laser therapy machine according to claim 3, characterized in that: The task call control instruction includes a dot matrix scanning instruction, and the instruction parameters of the dot matrix scanning instruction include a total instruction parameter set and a scan fill parameter set, wherein the total instruction parameter set includes the number of valid layers, the number of layer executions, and the layer execution interval, and the scan fill parameter set includes the scan fill parameters of at least one layer; The execution module includes a dot scanning task scheduling submodule, and the dot scanning instruction is used to instruct the dot scanning task scheduling submodule to send a simulation calculation signal or a dot matrix filling signal, the simulation calculation signal is used to calculate the number of dot matrix filling points and the scanning length, and the dot matrix filling signal is used to control the galvanometer scanning system and the laser to generate a scanning dot matrix.

7. The instruction execution method based on the fractional laser therapy machine according to claim 6, characterized in that: Determining the scanning and filling parameters according to a dot matrix filling form or a continuous scanning form, wherein the dot matrix filling form includes a basic geometric figure and a concentric circle figure, and the continuous scanning form includes a nested annular array and a spiral involute array; The scanning and filling parameters of the basic geometric figure include: data segment identification, basic geometric figure type, basic geometric figure X-axis size, basic geometric figure Y-axis size, filling point spacing, laser power, filling point laser working time, current layer repetition number and current layer repetition interval; The scanning and filling parameters of the concentric circle graphics include: data segment identification, ring diameter, laser power, point laser working time, current layer repetition times and current layer repetition interval; The scanning and filling parameters of the nested annular array include: data segment identification, array pattern type, array pattern X-axis size, array pattern Y-axis size, annular center distance, annular radius, laser power, current layer repetition times and current pattern repetition interval; The scanning and filling parameters of the spiral involute array include: data segment identification, array pattern type, array pattern X-axis size, array pattern Y-axis size, maximum outer diameter of the spiral line, number of spiral lines, spiral line center distance, laser power, current layer repetition number and current layer repetition interval.

8. The instruction execution method based on the fractional laser therapy machine according to claim 3, characterized in that: The task calling control instruction includes a continuous laser pulse instruction, and the instruction parameters of the continuous laser pulse instruction include laser output power, timing start time and duration; The execution module includes a continuous laser pulse task scheduling submodule, and the continuous laser pulse instruction is used to instruct the continuous laser pulse task scheduling submodule to send a continuous laser control signal, and the continuous laser control signal is used to control the laser to emit continuous laser pulses.

9. The instruction execution method based on the fractional laser therapy machine according to claim 3, characterized in that: The task call control instruction includes a pulse group control instruction, the instruction parameters of the pulse group control instruction include laser power, pulse group parameters, super pulse time and super pulse laser frequency, and the pulse group parameters include the number of sub-pulses, sub-pulse interval, sub-pulse high level time and pulse group interval; The execution module includes a pulse group laser pulse task scheduling submodule, and the pulse group control instruction is used to instruct the pulse group laser pulse task scheduling submodule to send a pulse group control signal, and the pulse group control signal is used to control the laser to emit a pulse group.

10. An instruction execution system based on a fractional laser therapy machine, characterized in that: The instruction execution method applied to any one of claims 1 to 9, wherein the instruction execution system comprises: The instruction acquisition module is configured to: acquire user instructions input by the user in the display layer, wherein the user instructions include first-category instructions, second-category instructions and third-category instructions, wherein the first-category instructions are used to read or write parameters to registers, the second-category instructions are used to call the task execution submodule, and the third-category instructions are used to indicate the start or end of a task flow; The instruction parsing module is configured to: parse the user instruction to obtain an instruction identifier and instruction parameters; an instruction execution module, configured to: obtain an execution module according to the instruction identifier, generate a control instruction according to the instruction identifier and the instruction parameter, and send the control instruction to the control layer so that the execution module executes the control instruction and returns an execution result, and the execution module is associated with the instruction identifier; The result returning module is configured to: generate a reply instruction based on the execution result, and return the reply instruction to the display layer.