Laser output control method, device, equipment and medium
By communicating with the processor through a single-chip timer, the laser output mode can be monitored and switched in real time, which solves the problem of lack of reliable real-time monitoring and automatic control in the existing technology, reduces safety risks and improves control efficiency.
Patent Information
- Application Number
- CN202511015119.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-23
- Publication Date
- 2025-11-21
AI Technical Summary
Existing technologies lack reliable real-time laser output monitoring and automatic control mechanisms, resulting in the inability to automatically adjust the state of the laser output channel, which increases safety risks.
A single-chip timer is used to communicate with the processor to monitor the trigger signal transmitted by the processor in real time. If a trigger signal is received, a control voltage value is transmitted to the laser radiator; otherwise, the communication connection is disconnected and a PWM control signal is transmitted, thereby realizing real-time monitoring and mode switching of laser output.
It enables real-time laser output monitoring and abnormal switching, reducing safety risks and improving the control efficiency of laser output.
Smart Images

Figure CN120994013A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of semiconductor technology, and in particular to a laser output control method, apparatus, device and medium. Background Technology
[0002] Semiconductor laser therapy devices utilize the stimulated emission amplification effect of semiconductor materials to generate lasers. Photons are released through the recombination of electrons and holes, and reflected and amplified in a resonant cavity to form a high-intensity laser beam. It has advantages such as good monochromaticity, strong directionality, and high energy density, and is widely used in the medical field.
[0003] However, laser therapy inherently carries safety risks. Currently, there is a lack of effective real-time monitoring strategies for laser output, making it impossible to automatically control the on / off state of the laser output channel, resulting in a lack of reliability.
[0004] Given the above, how to solve the current lack of a reliable real-time laser output monitoring and automatic control mechanism, which leads to the inability to automatically adjust the output channel status and thus increases safety risks, is an urgent problem for technicians in this field. Summary of the Invention
[0005] The purpose of this application is to provide a laser output control method, device, equipment and medium to solve the problem that the current lack of a reliable real-time laser output monitoring and automatic control mechanism leads to the inability to automatically adjust the output channel status, thereby increasing safety risks.
[0006] To address the aforementioned technical problems, this application provides a laser output control method applied to a single-chip timer in a laser output monitoring system; the laser output monitoring system further includes a processor; the processor is communicatively connected to the single-chip timer, and the single-chip timer is communicatively connected to the laser radiator; the method includes:
[0007] Monitor the trigger signal transmitted by the processor and determine whether a trigger signal has been received;
[0008] If so, the control voltage value transmitted by the processor is obtained and transmitted to the laser radiator to control the laser radiator to output laser according to the preset output power;
[0009] If not, disconnect the communication connection with the processor;
[0010] The corresponding PWM control signal is determined based on the preset output power.
[0011] Transmit PWM control signals to the laser radiator to control the laser radiator to output laser according to the preset output power.
[0012] On the one hand, before monitoring the trigger signal transmitted by the processor, it also includes:
[0013] Determine the power output range of the laser radiator, and determine the correspondence between each output power within the power output range and the pulse period of the single-chip timer;
[0014] Store the corresponding relationships in the database;
[0015] Correspondingly, the corresponding PWM control signal is determined based on the preset output power, including:
[0016] Based on the correspondence in the database, the target pulse period corresponding to the preset output power is determined;
[0017] The PWM control signal is determined based on the target pulse period.
[0018] On the other hand, the specific process by which the processor determines the control voltage value includes:
[0019] Obtain the preset output power of the laser radiator;
[0020] Determine the power output subrange to which the preset output power belongs; wherein, the power output subrange is a proper subset of the power output range of the laser radiator;
[0021] Obtain the power-voltage linear relationship corresponding to the power output sub-range; wherein, the power-voltage linear relationship is a linear relationship pre-constructed based on each power value and the corresponding voltage value within the power output sub-range;
[0022] The control voltage value is determined based on the preset output power and the power-voltage linear relationship.
[0023] On the other hand, the process of constructing a linear power-voltage relationship includes:
[0024] Determine the power output range of the laser radiator and identify multiple power segmentation points; each power segmentation point is different and all are within the power output range.
[0025] The power output range is divided into multiple power output sub-ranges based on each power segmentation point;
[0026] Determine the voltage value corresponding to each power value in each power output sub-range;
[0027] Based on each power value and its corresponding voltage value, determine the power-voltage linear relationship between the power value and voltage value corresponding to each power output sub-range.
[0028] On the other hand, after transmitting the control voltage value to the single-chip timer, the processor also includes:
[0029] Obtain the actual voltage value corresponding to the laser output from the laser radiator;
[0030] Determine whether the difference between the control voltage value and the actual voltage value is less than the threshold.
[0031] If so, the control voltage value will continue to be transmitted to the single-chip timer;
[0032] If not, then stop transmitting the control voltage value to the single-chip timer;
[0033] The system outputs an alarm message indicating an abnormal laser output and then proceeds to the step of determining the corresponding PWM control signal based on the preset output power.
[0034] On the other hand, after the processor stops transmitting control voltage values to the single-chip timer, it also includes:
[0035] Store the current laser input channel's anomaly flag in the storage medium so that the system can indicate an anomaly in the current laser input channel after a restart.
[0036] On the other hand, after transmitting the PWM control signal to the laser radiator, the following is also included:
[0037] Obtain the actual voltage value corresponding to the laser output from the laser radiator, and obtain the voltage value corresponding to the PWM control signal;
[0038] Determine whether the difference between the voltage value corresponding to the PWM control signal and the actual voltage value is less than a threshold.
[0039] If so, continue transmitting the PWM control signal to the laser radiator;
[0040] If not, stop transmitting PWM control signals to the laser radiator and output an alarm message indicating an abnormal laser output.
[0041] To address the aforementioned technical problems, this application also provides a laser output control device for use in a single-chip timer within a laser output monitoring system; the laser output monitoring system further includes a processor; the processor is communicatively connected to the single-chip timer, and the single-chip timer is communicatively connected to the laser radiator; the device includes:
[0042] The monitoring and judgment module is used to monitor the trigger signal transmitted by the processor and determine whether the trigger signal has been received; if so, the first transmission module is triggered; if not, the interrupt module is triggered.
[0043] The first transmission module is used to acquire the control voltage value transmitted by the processor and transmit the control voltage value to the laser radiator to control the laser radiator to output laser according to the preset output power;
[0044] The interrupt module is used to disconnect the communication connection with the processor;
[0045] The determination module is used to determine the corresponding PWM control signal based on the preset output power.
[0046] The second transmission module is used to transmit PWM control signals to the laser radiator to control the laser radiator to output laser according to the preset output power.
[0047] To address the aforementioned technical problems, this application also provides a laser output control device, comprising:
[0048] Memory, used to store computer programs;
[0049] A processor is used to execute computer programs to implement the steps of the laser output control method described above.
[0050] To address the aforementioned technical problems, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the aforementioned laser output control method.
[0051] The laser output control method provided in this application is based on a single-chip timer in a laser output monitoring system. Specifically, the single-chip timer monitors the trigger signal transmitted by the processor in real time. If a trigger signal is received, the timer transmits the control voltage value provided by the processor to the laser radiator to control the laser radiator to output laser light. If no trigger signal is received, the timer disconnects from the processor and automatically transmits a PWM control signal to the laser radiator to control the laser radiator to output laser light. This achieves real-time laser output monitoring and abnormal switching of laser output modes, preventing uncontrolled laser output when the processor control mode fails, reducing safety risks, and improving the control efficiency of laser output.
[0052] In addition, this application also provides a laser output control device, equipment and medium, with the same effect as above. Attached Figure Description
[0053] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0054] Figure 1 A schematic diagram of a laser output monitoring system provided in an embodiment of this application;
[0055] Figure 2 A flowchart illustrating a laser output control method provided in this application embodiment;
[0056] Figure 3 A schematic diagram of a laser output control device provided in an embodiment of this application;
[0057] Figure 4This is a structural diagram of a laser output control device provided in an embodiment of this application.
[0058] Among them, 5 is the laser output monitoring system, 6 is the processor, 7 is the single-chip timer, and 8 is the laser radiator. Detailed Implementation
[0059] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.
[0060] The core of this application is to provide a laser output control method, device, equipment, and medium to solve the problem that the current lack of a reliable real-time laser output monitoring and automatic control mechanism leads to the inability to automatically adjust the output channel status, thereby increasing safety risks.
[0061] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0062] Currently, semiconductor laser therapy devices mainly consist of four core components: a laser radiator module, a beam transmission system, a control system, and a cooling system. Each component has different technical implementation methods. Laser therapy inherently carries certain safety risks, especially the potential for continuous abnormal output to cause accidental injury to the operator and patient. The current lack of a reliable real-time laser output monitoring and automatic control mechanism results in the output channel status not being able to adjust automatically, thus increasing safety risks. To address these issues, this application provides a laser output control method.
[0063] Figure 1 This is a schematic diagram of a laser output monitoring system provided in an embodiment of this application. Figure 1 As shown, the laser output monitoring system 5 includes a single-chip timer 7 and a processor 6. It should be noted that the method provided in this application is applied to the single-chip timer in the laser output monitoring system; the processor 6 is communicatively connected to the single-chip timer 7, and the single-chip timer 7 is communicatively connected to the laser radiator 8. In this embodiment, the specific model and circuit structure of the single-chip timer and processor are not limited, but depend on the specific implementation. The laser output control method is described in detail below:
[0064] Figure 2 This is a flowchart illustrating a laser output control method provided in an embodiment of this application. Figure 2 As shown, the method includes:
[0065] S10: Monitor the trigger signal transmitted by the processor and determine whether a trigger signal has been received. If yes, proceed to step S11; otherwise, proceed to step S12.
[0066] Specifically, the single-chip timer has two operating modes: when the processor-based control mode is working normally, the single-chip timer maintains normal output to ensure the normal conduction of the control channel between the processor and the laser radiator, and the processor controls the operation of the laser radiator; when the processor-based control mode is malfunctioning, the communication connection with the processor is disconnected, that is, the control channel between the processor and the laser radiator is cut off, and the control mode based on the single-chip timer is switched to, where the single-chip timer directly controls the operation of the laser radiator.
[0067] Therefore, in this embodiment, the single-chip timer monitors the trigger signal transmitted by the processor in real time and determines whether a trigger signal has been received. It should be noted that, under normal circumstances, the processor should continuously input trigger signals to the single-chip timer in pulses, thereby indicating that the processor is currently functioning normally and that the control channel between the processor and the laser radiator is functioning normally.
[0068] S11: Obtain the control voltage value transmitted by the processor and transmit the control voltage value to the laser radiator to control the laser radiator to output laser according to the preset output power.
[0069] If the single-chip timer confirms that it has received the trigger signal, it considers that the processor-based control mode is running normally. At this time, the single-chip timer only needs to play the role of conduction, obtain the control voltage value predetermined and transmitted by the processor, and transmit the control voltage value to the laser radiator.
[0070] It is important to note that the power of the laser radiator is controlled by adjusting the input voltage. Therefore, in this embodiment, there is a correspondence between the control voltage and the preset output power: when the input voltage of the laser radiator is at the control voltage value, the laser is output according to the preset output power. This embodiment does not limit the specific process by which the processor determines the control voltage value; it depends on the specific implementation.
[0071] S12: Disconnect from the processor.
[0072] S13: Determine the corresponding PWM control signal based on the preset output power.
[0073] S14: Transmits PWM control signals to the laser radiator to control the laser radiator to output laser according to the preset output power.
[0074] If the microcontroller confirms that it has not received a trigger signal, it considers the processor-based control mode to be malfunctioning. In this case, it is necessary to switch the control mode to the microcontroller-based control mode. Specifically, the microcontroller disconnects from the processor and determines the corresponding pulse width modulation (PWM) control signal based on the preset output power.
[0075] It should be noted that the single-chip timer can generate a fixed-width pulse, i.e., a PWM control signal, through short-pulse triggering. The timing interval can be calculated using external resistors and capacitors, and short-pulse triggering within the timing interval allows the single-chip timer to operate continuously. For example, based on the selected external resistor and capacitor values, the timing interval of the single-chip timer can be set to 1ms. By changing the trigger interval of the single-chip timer, the pulse period output by the single-chip timer can be changed, i.e., by changing the duty cycle of the effective level, the generated PWM control signal can control the power of the laser output. It should be noted that the specific process of the single-chip timer generating the PWM control signal is not limited in this embodiment and depends on the specific implementation. Finally, the single-chip timer transmits the PWM control signal to the laser radiator to control the laser radiator to output laser light according to the preset output power, thereby realizing the switching of the laser output mode.
[0076] In this embodiment, a single-chip timer monitors the trigger signal transmitted by the processor in real time. If a trigger signal is received, the control voltage value provided by the processor is transmitted to the laser radiator to control the laser radiator to output laser light. If no trigger signal is received, the communication connection with the processor is disconnected, and a PWM control signal is automatically transmitted to the laser radiator to control the laser radiator to output laser light. This achieves real-time laser output monitoring and abnormal switching of laser output modes, preventing uncontrolled laser output when the processor control mode fails, reducing safety risks, and improving the control efficiency of laser output.
[0077] Based on the above embodiments, in some embodiments, before monitoring the trigger signal transmitted by the processor, the method further includes:
[0078] S101: Determine the power output range of the laser radiator, and determine the correspondence between each output power within the power output range and the pulse period of the single-chip timer.
[0079] S102: Store the corresponding relationships in the database.
[0080] To improve the control efficiency of the single-chip timer-based control mode and determine the PWM control signal corresponding to the preset output power with a shorter delay, the power output range of the laser radiator is predetermined in the specific implementation. The correspondence between the output power within this range and the pulse period of the single-chip timer is then established. For example, if the laser power output range is 0-500mW, the pulse period corresponding to different powers is obtained through testing, thereby determining the correspondence between output power and pulse period. A database is then established to store these correspondences.
[0081] Correspondingly, each time output control is performed, the corresponding relationship in the database is read, the target pulse period corresponding to the preset output power is determined according to the corresponding relationship, the time interval of short pulse triggering is calculated based on the target pulse period, and the PWM control signal is determined to achieve control of laser output power, which effectively improves control efficiency.
[0082] Based on the above embodiments, the specific process by which the processor determines the control voltage value includes:
[0083] S111: Obtain the preset output power of the laser radiator.
[0084] S112: Determine the power output subrange to which the preset output power belongs; wherein, the power output subrange is a proper subset of the power output range of the laser radiator.
[0085] S113: Obtain the power-voltage linear relationship corresponding to the power output sub-range; wherein, the power-voltage linear relationship is a linear relationship pre-constructed based on each power value and corresponding voltage value within the power output sub-range.
[0086] S114: Determine the control voltage value based on the preset output power and power-voltage linear relationship.
[0087] Since the output of the laser radiator is not linear in the range of 0-500mW, segmented calibration calculations are required to accurately determine the control voltage value in order to ensure the accuracy of the laser power output.
[0088] Specifically, in order to determine the control voltage value, the processor first obtains the preset output power of the laser radiator. In this embodiment, there is no limitation on the magnitude of the preset output power, for example, it is 0-500mW, depending on the specific implementation.
[0089] Subsequently, the power output sub-range to which the preset output power belongs is determined, and the power-voltage linear relationship corresponding to the power output sub-range is obtained. It is important to note that the power output sub-range is a proper subset of the laser radiator's power output range, and the power-voltage linear relationship is a pre-constructed linear relationship based on each power value and its corresponding voltage value within the power output sub-range. Finally, the control voltage value is determined based on the preset output power and the power-voltage linear relationship. The process of constructing the power-voltage linear relationship is explained below:
[0090] The process of constructing a linear power-voltage relationship includes:
[0091] S121: Determine the power output range of the laser radiator and identify multiple power segmentation points; wherein each power segmentation point is different and each power segmentation point is within the power output range.
[0092] S122: Divide the power output range into multiple power output sub-ranges based on each power segmentation point.
[0093] S123: Determine the voltage value corresponding to each power value in each power output sub-range.
[0094] S124: Based on each power value and the corresponding voltage value, determine the power-voltage linear relationship between the power value and the voltage value corresponding to each power output sub-range.
[0095] Specifically, the power output range of the laser radiator is first determined, and multiple power segmentation points are identified. It is important to note that each power segmentation point is different, and all power segmentation points are within the power output range. For example, when the laser power output range is 0-500mW, three power segmentation points can be specifically selected: 100mW, 300mW, and 500mW. These three power segmentation points divide the laser power output range into three sub-ranges: 0mW-100mW, 100mW-300mW, and 300mW-500Mw. Simultaneously, the voltage values corresponding to each power segmentation point are stored as segmentation points for laser output power calibration.
[0096] Furthermore, based on the power values and corresponding voltage values within each power output sub-range, the power-voltage linear relationship between the power value and voltage value for each power output sub-range is calculated segment by segment. It can be understood that the more power output sub-ranges there are, the more power-voltage linear relationships are obtained, and the more accurate the correspondence between power and voltage becomes.
[0097] To achieve monitoring and feedback of laser output, based on the above embodiments, in some embodiments, after the processor transmits the control voltage value to the single-chip timer, it further includes:
[0098] S131: Obtain the actual voltage value corresponding to the laser output from the laser radiator.
[0099] S132: Determine whether the difference between the control voltage value and the actual voltage value is less than the threshold; if yes, proceed to step S133; if no, proceed to step S134.
[0100] S133: Continue transmitting the control voltage value to the single-chip timer.
[0101] S134: Stop transmitting control voltage values to the single-chip timer.
[0102] S135: Output alarm information indicating abnormal laser output, and proceed to the step of determining the corresponding PWM control signal based on the preset output power.
[0103] Specifically, the processor obtains the actual voltage value corresponding to the laser output from the laser radiator and compares it with the control voltage value to determine whether the difference between the control voltage value and the actual voltage value is less than a threshold. It should be noted that this embodiment does not impose a limit on the size of the threshold; it depends on the specific implementation.
[0104] If the difference between the control voltage value and the actual voltage value is less than the threshold, the current laser output power is considered normal, and the control voltage value continues to be transmitted to the single-chip timer to continue laser output. If the difference between the control voltage value and the actual voltage value is not less than the threshold, the current laser output power is considered abnormal, and the transmission of the control voltage value to the single-chip timer needs to be stopped to cut off the laser output. An alarm message indicating the abnormal laser output is also output to alert maintenance personnel to check the situation promptly. Finally, the process proceeds to determine the corresponding PWM control signal based on the preset output power, thereby switching to the control mode based on the single-chip timer and continuing laser output. This achieves laser output monitoring and feedback, as well as control mode switching under abnormal laser output conditions.
[0105] Based on the above embodiments, in some embodiments, after the processor stops transmitting the control voltage value to the single-chip timer, it further includes:
[0106] S136: Store the current laser input channel's abnormal flag in the storage medium so that the system can indicate an abnormality in the current laser input channel based on the abnormal flag after restarting.
[0107] In practical implementation, upon confirming an abnormal laser output power in processor-based control mode, the processor, after stopping the transmission of control voltage values to the single-chip timer, can store the abnormal flag of the current laser input channel in a storage medium if further laser output is not required. This allows the system to indicate an abnormality in the current laser input channel upon restart, necessitating maintenance or switching to the single-chip timer-based control mode for continued use. In this way, the laser radiator employs two different laser output control methods, enabling rapid switching in the event of a failure in one control method, thus ensuring the normal operation of the equipment.
[0108] Based on the above embodiments, in some embodiments, after transmitting the PWM control signal to the laser radiator, the method further includes:
[0109] S141: Obtain the actual voltage value corresponding to the laser output from the laser radiator, and obtain the voltage value corresponding to the PWM control signal.
[0110] S142: Determine whether the difference between the voltage value corresponding to the PWM control signal and the actual voltage value is less than the threshold; if yes, proceed to step S143; if no, proceed to step S144.
[0111] S143: Continue transmitting PWM control signals to the laser radiator.
[0112] S144: Stop transmitting PWM control signals to the laser radiator and output alarm information indicating abnormal laser output.
[0113] Similar to the embodiments described above, laser output can also be monitored for anomalies in the control mode based on a single-chip timer. Specifically, after transmitting the PWM control signal to the laser radiator, the single-chip timer can also acquire the actual voltage value corresponding to the laser output from the laser radiator, and acquire the voltage value corresponding to the PWM control signal. It further determines whether the difference between the voltage value corresponding to the PWM control signal and the actual voltage value is less than a threshold. In this embodiment, the threshold value is not limited and depends on the specific implementation.
[0114] If the difference between the voltage value corresponding to the PWM control signal and the actual voltage value is confirmed to be less than the threshold, the PWM control signal is continued to be transmitted to the laser radiator to continue laser output. If the difference between the voltage value corresponding to the PWM control signal and the actual voltage value is confirmed to be not less than the threshold, the current laser output power is considered abnormal, and the transmission of the PWM control signal to the laser radiator needs to be stopped to cut off the laser output. An alarm message indicating the abnormal laser output is also output to notify maintenance personnel to check the current laser output abnormality in a timely manner.
[0115] In the above embodiments, the laser output control method has been described in detail. This application also provides embodiments of the laser output control device.
[0116] Figure 3 This application provides a schematic diagram of a laser output control device according to an embodiment. The device is applied to a single-chip timer in a laser output monitoring system; the laser output monitoring system also includes a processor; the processor is communicatively connected to the single-chip timer, and the single-chip timer is communicatively connected to the laser radiator; as shown... Figure 3 As shown, the device includes:
[0117] The monitoring and judgment module 10 is used to monitor the trigger signal transmitted by the processor and determine whether the trigger signal has been received; if so, the first transmission module 11 is triggered; if not, the interrupt module 12 is triggered.
[0118] The first transmission module 11 is used to acquire the control voltage value transmitted by the processor and transmit the control voltage value to the laser radiator to control the laser radiator to output laser according to the preset output power.
[0119] Interrupt module 12 is used to disconnect the communication connection with the processor;
[0120] The determination module 13 is used to determine the corresponding PWM control signal based on the preset output power;
[0121] The second transmission module 14 is used to transmit PWM control signals to the laser radiator to control the laser radiator to output laser according to the preset output power.
[0122] In some embodiments, it also includes:
[0123] The correspondence determination module is used to determine the power output range of the laser radiator and the correspondence between each output power within the power output range and the pulse period of the single-chip timer.
[0124] The correspondence storage module is used to store each correspondence into the database;
[0125] Correspondingly, module 13 is defined, including:
[0126] The target pulse period determination module is used to determine the target pulse period corresponding to the preset output power based on the correspondence in the database.
[0127] The PWM control signal determination module is used to determine the PWM control signal based on the target pulse period.
[0128] In some embodiments, the specific process by which the processor determines the control voltage value includes: acquiring a preset output power of the laser radiator; determining the power output subrange to which the preset output power belongs; wherein the power output subrange is a proper subset of the power output range of the laser radiator; acquiring the power-voltage linear relationship corresponding to the power output subrange; wherein the power-voltage linear relationship is a linear relationship pre-constructed based on each power value and its corresponding voltage value within the power output subrange; and determining the control voltage value based on the preset output power and the power-voltage linear relationship.
[0129] In some embodiments, the process of constructing a power-voltage linear relationship includes: determining the power output range of the laser radiator and determining multiple power segmentation points; wherein each power segmentation point is different and each power segmentation point is within the power output range; dividing the power output range into multiple power output sub-ranges according to each power segmentation point; determining the voltage value corresponding to each power value in each power output sub-range; and determining the power-voltage linear relationship between the power value and the voltage value corresponding to each power output sub-range based on each power value and the corresponding voltage value.
[0130] In some embodiments, after transmitting the control voltage value to the single-chip timer, the processor further includes: acquiring the actual voltage value corresponding to the laser output from the laser radiator; determining whether the difference between the control voltage value and the actual voltage value is less than a threshold; if yes, continuing to transmit the control voltage value to the single-chip timer; if no, stopping the transmission of the control voltage value to the single-chip timer; outputting an alarm message indicating an abnormal laser output, and proceeding to the step of determining the corresponding PWM control signal based on a preset output power.
[0131] In some embodiments, after the processor stops transmitting the control voltage value to the single-chip timer, it further includes: storing the abnormal flag of the current laser input channel in a storage medium so that the abnormal flag can be used to indicate an abnormality in the current laser input channel after the system restarts.
[0132] In some embodiments, it also includes:
[0133] The voltage value acquisition module is used to acquire the actual voltage value corresponding to the laser output from the laser radiator and the voltage value corresponding to the PWM control signal.
[0134] The difference judgment module is used to determine whether the difference between the voltage value corresponding to the PWM control signal and the actual voltage value is less than a threshold. If so, the PWM control signal is continued to be transmitted to the laser radiator. If not, the transmission of the PWM control signal to the laser radiator is stopped, and an alarm message indicating abnormal laser output is output.
[0135] Since the embodiments of the apparatus and the embodiments of the method correspond to each other, please refer to the description of the embodiments of the method for the embodiments of the apparatus, which will not be repeated here.
[0136] Figure 4 This is a structural diagram of a laser output control device provided in an embodiment of this application. Figure 4 As shown, the laser output control device includes:
[0137] Memory 20 is used to store computer programs;
[0138] The processor 21 is used to execute a computer program to implement the steps of the laser output control method mentioned in the above embodiments.
[0139] The laser output control device provided in this embodiment may include, but is not limited to, smartphones, tablets, laptops, or desktop computers.
[0140] The processor 21 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 21 may be implemented using at least one of the following hardware forms: Digital Signal Processor (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 21 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 21 may also include an Artificial Intelligence (AI) processor, which handles computational operations related to machine learning.
[0141] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In this embodiment, the memory 20 is used to store at least the following computer program 201, which, after being loaded and executed by the processor 21, is capable of implementing the relevant steps of the laser output control method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, and the storage method may be temporary or permanent storage. The operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include, but is not limited to, the data involved in the laser output control method.
[0142] In some embodiments, the laser output control device may further include a display screen 22, an input / output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
[0143] Those skilled in the art will understand that Figure 4 The structure shown does not constitute a limitation on the laser output control device and may include more or fewer components than shown.
[0144] Finally, this application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps described in the above method embodiments.
[0145] It is understood that if the methods in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0146] The foregoing provides a detailed description of a laser output control method, apparatus, device, and medium. The various embodiments in the specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section. It should be noted that those skilled in the art can make several improvements and modifications to this application without departing from the principles of this application, and these improvements and modifications also fall within the protection scope of this application.
[0147] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
Claims
1. A laser output control method, characterized in that, A single-chip timer is applied in a laser output monitoring system; the laser output monitoring system further includes a processor; the processor is communicatively connected to the single-chip timer, and the single-chip timer is communicatively connected to a laser radiator; the method includes: Monitor the trigger signal transmitted by the processor and determine whether the trigger signal has been received; If so, the control voltage value transmitted by the processor is obtained, and the control voltage value is transmitted to the laser radiator to control the laser radiator to output laser according to the preset output power; If not, disconnect the communication connection with the processor; The corresponding PWM control signal is determined based on the preset output power; The PWM control signal is transmitted to the laser radiator to control the laser radiator to output laser according to the preset output power.
2. The laser output control method according to claim 1, characterized in that, Before monitoring the trigger signal transmitted by the processor, the following is also included: Determine the power output range of the laser radiator, and determine the correspondence between each output power within the power output range and the pulse period of the single-chip timer; Store the aforementioned correspondences in the database; Correspondingly, the corresponding PWM control signal is determined based on the preset output power, including: Based on the correspondence in the database, the target pulse period corresponding to the preset output power is determined; The PWM control signal is determined based on the target pulse period.
3. The laser output control method according to claim 1, characterized in that, The specific process by which the processor determines the control voltage value includes: Obtain the preset output power of the laser radiator; Determine the power output subrange to which the preset output power belongs; wherein, the power output subrange is a proper subset of the power output range of the laser radiator; Obtain the power-voltage linear relationship corresponding to the power output sub-range; wherein, the power-voltage linear relationship is a linear relationship pre-constructed based on each power value and corresponding voltage value within the power output sub-range; The control voltage value is determined based on the preset output power and the power-voltage linear relationship.
4. The laser output control method according to claim 3, characterized in that, The process of constructing the power-voltage linear relationship includes: The power output range of the laser radiator is determined, and multiple power segmentation points are identified; wherein each power segmentation point is different, and each power segmentation point is within the power output range; The power output range is divided into multiple power output sub-ranges based on each of the power segmentation points; Determine the voltage value corresponding to each power value in each of the aforementioned power output sub-ranges; Based on each power value and its corresponding voltage value, determine the power-voltage linear relationship between the power value and voltage value corresponding to each power output sub-range.
5. The laser output control method according to any one of claims 1 to 4, characterized in that, After transmitting the control voltage value to the single-chip timer, the processor further includes: Obtain the actual voltage value corresponding to the laser output from the laser radiator; Determine whether the difference between the control voltage value and the actual voltage value is less than a threshold. If so, the control voltage value continues to be transmitted to the single-chip timer; If not, then stop transmitting the control voltage value to the single-chip timer; The system outputs an alarm message indicating an abnormal laser output and then proceeds to the step of determining the corresponding PWM control signal based on the preset output power.
6. The laser output control method according to claim 5, characterized in that, After the processor stops transmitting the control voltage value to the single-chip timer, it further includes: The abnormal flag of the current laser input channel is stored in the storage medium so that the abnormal flag can be used to indicate that the current laser input channel is abnormal after the system restarts.
7. The laser output control method according to claim 5, characterized in that, After transmitting the PWM control signal to the laser radiator, the method further includes: Obtain the actual voltage value corresponding to the laser output from the laser radiator, and obtain the voltage value corresponding to the PWM control signal; Determine whether the difference between the voltage value corresponding to the PWM control signal and the actual voltage value is less than a threshold. If so, the PWM control signal continues to be transmitted to the laser radiator; If not, then stop transmitting the PWM control signal to the laser radiator and output an alarm message indicating an abnormal laser output.
8. A laser output control device, characterized in that, A single-chip timer used in a laser output monitoring system; the laser output monitoring system further includes a processor; the processor is communicatively connected to the single-chip timer, and the single-chip timer is communicatively connected to a laser radiator; the device includes: The monitoring and judgment module is used to monitor the trigger signal transmitted by the processor and determine whether the trigger signal is received; if yes, the first transmission module is triggered; if no, the interrupt module is triggered. The first transmission module is used to acquire the control voltage value transmitted by the processor and transmit the control voltage value to the laser radiator to control the laser radiator to output laser according to a preset output power; The interrupt module is used to disconnect the communication connection with the processor; The determination module is used to determine the corresponding PWM control signal based on the preset output power; The second transmission module is used to transmit the PWM control signal to the laser radiator to control the laser radiator to output laser according to the preset output power.
9. A laser output control device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the steps of the laser output control method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the laser output control method as described in any one of claims 1 to 7.