WO2019214221A1 - Communication method between laser and external device, and laser system - Google Patents

Communication method between laser and external device, and laser system Download PDF

Info

Publication number
WO2019214221A1
WO2019214221A1 PCT/CN2018/119145 CN2018119145W WO2019214221A1 WO 2019214221 A1 WO2019214221 A1 WO 2019214221A1 CN 2018119145 W CN2018119145 W CN 2018119145W WO 2019214221 A1 WO2019214221 A1 WO 2019214221A1
Authority
WO
WIPO (PCT)
Prior art keywords
laser
external device
time
time interval
processing result
Prior art date
Application number
PCT/CN2018/119145
Other languages
French (fr)
Chinese (zh)
Inventor
李亮
蒋峰
Original Assignee
深圳市创鑫激光股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市创鑫激光股份有限公司 filed Critical 深圳市创鑫激光股份有限公司
Publication of WO2019214221A1 publication Critical patent/WO2019214221A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0015Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the adaptation strategy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis

Definitions

  • the embodiments of the present application belong to the field of laser communication technologies, and in particular, to a communication method and a laser system for a laser and an external device.
  • Lasers can be applied to industrial, agricultural, precision measurement and detection, communication and information processing, medical, military and other aspects. In different application fields, the response speed and accuracy requirements of the laser itself are generally required. The synchronization speed of the laser and other equipment platforms is also higher.
  • the general process of communication between existing lasers and other device platforms is that other device platforms interact with the laser as the master device, which is related to the hardware configuration of the master device, the task complexity, and the processing capability of the laser itself. The interaction process often produces a long wait. Time, resulting in low communication efficiency, the data synchronization rate between the master device and the laser is low.
  • the embodiment of the present application provides a communication method between a laser and an external device, so as to solve the problem that the existing laser and the external device have low communication efficiency and the data synchronization rate is low.
  • the present application adopts the following technical solutions.
  • an embodiment of the present application provides a communication method between a laser and an external device, including:
  • the external device After the first device receives the return receipt data of the laser for the first time, the external device continuously receives subsequent receipt data returned by the laser at a second time interval;
  • the first time interval and the second time interval are both smaller than a communication period between the laser and an external device, and the second time interval may vary within a certain range.
  • the communication method further includes:
  • the laser when it is determined that the laser is faulty, the laser itself stops running according to an internally preset fault processing program, or a control signal is sent to the laser by an external device to control the laser to stop running.
  • the communication method further includes:
  • the receipt data is processed in real time, and the real-time processing result is output.
  • the output real-time processing result includes:
  • the output processing result further includes:
  • the processing result includes information that the laser operates abnormally, a fault alarm is output by the external device, and the laser is stopped.
  • the controller of the laser continuously sends a data acquisition request to the optical path mechanism or each sensor at a certain time interval, and receives the data returned by the optical path mechanism or each sensor from time to time.
  • the embodiment of the present application further provides a laser system, including a laser and an external device connected to the laser;
  • the laser is configured to continuously receive a data request signal sent by the external device at a first time interval
  • the external device is configured to continuously receive subsequent receipt data returned by the laser at a second time interval after receiving the return receipt data of the laser for the first time;
  • the first time interval and the second time interval are both smaller than a communication period between the laser and an external device, and the second time interval may vary within a certain range.
  • the laser or the external device is further configured to acquire a value of the second time interval in real time during a working period of the laser, and compare the value with a preset range, when the value is When the preset range is exceeded, the laser failure is determined, and the determination result is output.
  • the laser when it is determined that the laser is faulty, the laser itself stops running according to an internally preset fault processing program, or a control signal is sent to the laser by an external device to control the laser to stop running.
  • the external device is further configured to perform real-time processing on the receipt data after receiving the receipt data, and output a real-time processing result.
  • the external device includes an interaction interface
  • the outputting the real-time processing result by the external device includes:
  • the outputting the real-time processing result by the external device further includes:
  • a fault alarm is output when the processing result includes information that the laser operates abnormally, and the laser is controlled to stop working.
  • the controller of the laser continuously sends a data acquisition request to the optical path mechanism or each sensor at a certain time interval, and receives the data returned by the optical path mechanism or each sensor from time to time.
  • a method for communicating a laser with an external device by continuously receiving the data request signal sent by the external device by the laser at a first time interval, and causing the laser to be according to the data
  • the request signal returns the receipt data for the first time
  • the subsequent return receipt data continuously returned to the external device at the second time interval can greatly improve the communication efficiency of the laser during the working period, and the unit time can be compared with the prior art. More effective information is transmitted in real time, and the working state information of the laser can be acquired in a timely manner during the working cycle of the laser to realize real-time monitoring of the laser.
  • FIG. 1 is a flowchart of a method for communicating a laser with an external device according to an embodiment of the present application
  • FIG. 2 is a schematic diagram of a first time interval and a second time interval according to an embodiment of the present application
  • FIG. 3 is a schematic diagram of overlapping communication cycles according to an embodiment of the present application.
  • FIG. 4 is a schematic block diagram of a laser system provided by an embodiment of the present application.
  • a process, method, system, product, or device that comprises a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units not listed, or alternatively Other steps or units inherent to these processes, methods, products, or equipment.
  • references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the present application.
  • the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
  • the embodiment of the present application provides a communication method between a laser and an external device, where the laser may be a fiber laser, the external device may be a host computer, and the upper computer may be connected to the optical fiber.
  • the laser is directly connected to the laser, and the fiber laser is connected to the fiber laser through the machine board.
  • the method includes:
  • the laser is caused to continuously receive the data request signal sent by the external device at a first time interval.
  • the laser After the laser receives the data request signal for the first time, returning the return receipt data, the laser sequentially returns subsequent receipt data to the external device at a second time interval.
  • the receipt data may be operational status data of the laser.
  • the first time interval and the second time interval are both smaller than a communication period between the laser and an external device, and the second time interval may be changed within a certain range, and the certain range may be for different types.
  • One or more ranges of laser presets are described below.
  • the external device transmits a data request signal, and the process of acquiring and returning the corresponding receipt data to the external device after the laser receives the data request signal forms a receipt cycle of the receipt data, that is, a communication cycle between the laser and the external device.
  • the communication cycle is a fixed value, and since it is necessary to ensure that no false positives occur, the duration of the communication cycle must be the maximum time that the laser can react. Specifically, as shown in FIG.
  • the communication cycle Ta and the communication cycle Tb and the corresponding first time interval t1 and second time interval t2 are shown.
  • the first time interval is determined by a communication line between the external device and the external device and the laser, and the external device continuously transmits a data request signal to the laser through the communication line at a first time interval, correspondingly, the laser
  • the data request signal is continuously received at the first time interval, and since the size of the receipt data returned by the laser according to the data request signal is different, the time for the laser itself to internally acquire and post back to the external device is different, so the external device receives the receipt data of the laser.
  • the second time interval is a change value, but is maintained within a certain range.
  • the time for obtaining the receipt data is within 20 ms, and the time for returning the receipt data to the external device is within 80 ms. Then, the second time interval of the external device receiving the receipt data of the laser is within 100 ms.
  • the second time interval can be divided into categories according to the class. At this time, the second time interval will have two ranges of 0 to 2ms and 2ms to 150ms, thereby making the laser and/or external device change according to different conditions.
  • the range situation makes a corresponding response or operation.
  • the acquisition time of the laser when acquiring the receipt data exceeds 2 ms.
  • one or more waiting signals may be sent to the external device first, so that the external device maintains the state of waiting for reception, preventing the external device from being
  • the receipt data was not received for a long time and the laser was misjudged.
  • the receiving process of the data request signal of S101 and the returning process of the returning data in S102 are two independent processes, which makes the acquisition periods of the plurality of receipt data overlap in time, such as As shown in FIG. 3, the receipt cycle of three receipt data is shown, which are respectively T1, T2, and T3. As shown in (a) of FIG.
  • T1 and T2 overlap in the occurrence time, and T2 and T3 are in The occurrence time overlaps, and even in some embodiments, as shown in (b) of FIG. 3, T1, T2, and T3 overlap in occurrence time, and a receipt data is executed by the laser and the external device in the related art. After the acquisition cycle, the process of acquiring the next receipt data is performed.
  • the laser in the communication method provided by the present application passively receives the data request signal, but the return receipt data becomes the active behavior of the laser, and the external device actively sends the data request signal. However, the receiving receipt data becomes a passive behavior of the external device, the laser passively receives the data request signal using one channel, and the laser actively returns the receipt data using another channel.
  • the two channels are sent and received in parallel, which is equivalent to two-line processing.
  • the laser can send multiple receipt data to the external device to overlap in the processing time.
  • the waiting time for the receipt of the receipt data is reduced, the overall communication duration is greatly reduced, and the more the receipt data is acquired, the more effectively the communication efficiency is improved, thereby improving the data synchronization rate between the laser and the external device.
  • the communication method further includes acquiring a value of the second time interval in real time during a working period of the laser, and comparing the value with a preset range, when When the value exceeds the preset range, the laser is determined to be faulty, and the determination result is output.
  • the value of the second time interval may be acquired in real time by using the laser or an external device.
  • the laser fault is determined, the laser itself stops running according to the internal preset fault processing program, or is externally
  • the laser sends a control signal to control the laser to stop running, which reduces the user's economic loss to a certain extent, and can also ensure better safety and avoid accidental injury.
  • the communication method further includes: after the external device receives the receipt data, performing real-time processing on the receipt data, and outputting a real-time processing result. Since the external device is passively receiving the receipt data, the external device can process the receipt data whenever it receives the receipt data. As long as the first receipt data is received, the subsequent subsequent receipt data is sent back by the laser. Come over, and process the received receipt data one by one, which makes the external device change from waiting for the receipt data to being dominated by its processing capability during the communication process between the external device and the laser.
  • the processing capability of the external device can satisfy the requirement of timely processing the continuously received receipt information, the data synchronization rate of the external device and the laser can be greatly improved.
  • the output real-time processing result includes displaying a processing result on an interaction interface (for example, a graphical user interface) of the external device or updating the processing result displayed last time in the interactive interface of the external device.
  • the output processing result further includes: when the processing result includes the information that the laser works abnormally, outputting a fault alarm by the external device, and stopping the laser; using the present application
  • the communication method can learn the fault information of the laser as early as possible, thereby reducing the probability of laser damage, reducing the loss, and greatly reducing the probability of accidents; in some embodiments, similar communication can be used inside the laser.
  • the method that is, the communication between the controller of the laser and the optical path mechanism or the sensors may also adopt the above-mentioned two-line processing communication mode, and the controller continuously sends data acquisition requests to other components at certain time intervals, and on the other hand, irregularly Receiving data returned by other components, thereby enabling the laser to detect faults at the first time and react quickly, minimizing the damage caused by the fault.
  • the laser receives the data request signal sent by the external device continuously at the first time interval, and makes the laser first request the signal according to the data.
  • the subsequent receipt data that is continuously returned to the external device at the second time interval can greatly improve the communication efficiency of the laser in the working period, and can be transmitted in real time in a unit time compared with the prior art. More effective information, and the laser's working state information can be acquired in a timely manner during the working cycle of the laser to realize real-time monitoring of the laser.
  • the embodiment of the present application further provides a laser system including a laser 10, an external device 20 connected to the laser 10, and a communication between the laser 10 and the external device 20 in this embodiment.
  • a laser system including a laser 10, an external device 20 connected to the laser 10, and a communication between the laser 10 and the external device 20 in this embodiment.
  • the laser 10 is configured to continuously receive the data request signal sent by the external device 20 at a first time interval; the external device 20 is configured to synchronize after receiving the return receipt data of the laser 10 for the first time. Subsequent receipt data returned by the laser 10 is continuously received at a second time interval.
  • the first time interval and the second time interval are both smaller than a communication period of the laser 10 and the external device 20, and the second time interval may vary within a certain range.
  • the external device 20 transmits a data request signal
  • the acquisition cycle of the receipt data formed by the process of acquiring and returning the corresponding receipt data to the external device 20 after the laser 10 receives the data request signal is specifically referred to.
  • Figure 2 is an illustration.
  • the first time interval is determined by the communication line between the external device 20 and the external device 20 and the laser 10, and the external device 20 continuously transmits a data request signal to the laser 10 through the communication line at the first time interval.
  • the laser 10 continuously receives the data request signal at the first time interval, and since the receipt data returned by the laser 10 according to the data request signal is different in size, the times of acquisition and postback are different, so the external device 20 receives the laser 10
  • the second time interval of the receipt data is a change value, but is maintained within a certain range.
  • the receiving process of the data request signal of the laser 10 and the receiving process of the returning data of the external device 20 are two independent processes, which causes the acquisition periods of the plurality of receipt data to be partially overlapped in time.
  • This two-line processing mode is executed after the laser 10 and the external device 20 execute the acquisition cycle of a receipt data.
  • the laser 10 in the laser 10 system provided by the present application passively receives the data request signal, but the return receipt data becomes the active behavior of the laser 10, and the external device 20 actively transmits the data request signal, but Receiving the receipt data becomes a passive behavior of the external device 20, and by separating the data request process of the external device 20 from the return data return process of the laser 10, the laser 10 can be caused to transmit a plurality of receipt data to the external device 20 at the processing time. Repeatedly, which reduces the waiting time for receipt data return, and the overall communication duration The data is greatly reduced, and the more the receipt data is acquired, the more effectively the communication efficiency is improved, thereby improving the data synchronization rate between the laser 10 and the external device 20.
  • the laser 10 or the external device 20 is further configured to acquire the value of the second time interval in real time during the working period of the laser 10, and compare the value with a preset range, when When the value exceeds the preset range, it is determined that the laser 10 is faulty, and the determination result is output.
  • the laser 10 itself stops the operation according to the internal preset fault processing program, or the external device 20 sends a control signal to the laser 10 to control the laser 10 to stop running, thereby reducing the user's economic loss to a certain extent. It can also give people a better guarantee of safety and avoid accidental injuries.
  • the external device 20 is further configured to perform real-time processing on the receipt data after receiving the receipt data, and output a real-time processing result. Since the external device 20 passively receives the receipt data, the external device 20 can process the receipt data whenever it receives the receipt data. As long as the first receipt data is received, the subsequent return receipt data is continuously lasered by the laser. 10 sends back and processes the received receipt data one by one, which causes the external device 20 to change from waiting for the receipt data to being in its own processing cycle during the communication process between the external device 20 and the laser 10. The processing capability is dominant. With the communication method of the present application, when the processing capability of the external device 20 can meet the requirement of timely processing the continuously received receipt information, the data synchronization rate of the external device 20 and the laser 10 can be greatly improved. .
  • the external device 20 includes an interaction interface
  • the outputting the real-time processing result by the external device 20 includes displaying the processing result on the interaction interface or updating the processing result displayed last time in the interaction interface update.
  • the outputting the real-time processing result by the external device 20 further includes outputting a fault alarm when the processing result includes information that the laser 10 is abnormal in operation, and controlling the laser 10 to stop operating.
  • the failure information of the laser 10 can be learned as early as possible, thereby reducing the probability of damage of the laser 10, reducing the loss, and greatly reducing the probability of accidents; in some embodiments, inside the laser 10
  • a similar communication method can also be adopted, that is, the communication between the controller of the laser 10 and other components can also adopt the communication method of the above two-wire processing, and the controller continuously sends data acquisition requests to other components at certain time intervals, and On the one hand, the data returned by other components is received from time to time, thereby enabling the laser 10 to detect the fault at the first time and react quickly, minimizing the loss caused by the fault.
  • the data request signal sent by the external device 20 is continuously received by the laser 10 at a first time interval, and the laser 10 returns the receipt data for the first time according to the data request signal. Simultaneously returning subsequent receipt data to the external device 20 at the second time interval can greatly improve the communication efficiency of the laser 10 during the working period, and can transmit more in real time per unit time than the prior art. Effective information, and the operating state information of the laser 10 can be acquired in a more timely manner during the duty cycle of the laser 10 to achieve real-time monitoring of the laser 10.

Abstract

A communication method between a laser (10) and an external device (20), and a laser system. The communication method comprises: allowing the laser (10) to continuously receive, at a first time interval (t1), data request signals sent by the external device (20) (S101); and after the external device (20) receives receipt data returned by the laser (10) for the first time, allowing the external device (20) to synchronously continuously receive, at a second time interval (t2), subsequent receipt data returned by the laser (10) (S102), wherein the first time interval (t1) and the second time interval (t2) are both smaller than a communication period (Ta, Tb) between the laser (10) and the external device (20), and the second time interval (t2) may vary within a certain range. The laser system comprises the laser (10) and the external device (20), and used for performing the communication method above. More effective information can be transmitted in real time in a unit time, the working state information of the laser (10) can be acquired timely during the working period of the laser (10), and real-time monitoring of the laser (10) can be implemented.

Description

激光器与外部设备的通信方法、激光器系统Communication method between laser and external device, laser system 技术领域Technical field
本申请实施例属于激光器通信技术领域,尤其涉及激光器与外部设备的通信方法、激光器系统。The embodiments of the present application belong to the field of laser communication technologies, and in particular, to a communication method and a laser system for a laser and an external device.
背景技术Background technique
激光器可应用于工业、农业、精密测量和探测、通讯与信息处理、医疗、军事等各方面,在不同的应用领域中,一般对激光器自身的反应速度和精准度的要求都要求较高,同时对激光器与其他设备平台的同步速度的要求也较高。现有的激光器与其他设备平台的通信的一般过程是其他设备平台作为主设备与激光器交互,介于主设备的硬件配置、任务复杂度以及激光器自身的处理能力,交互过程往往会产生较长等待时间,导致通信效率不高,主设备与激光器的数据同步率低。Lasers can be applied to industrial, agricultural, precision measurement and detection, communication and information processing, medical, military and other aspects. In different application fields, the response speed and accuracy requirements of the laser itself are generally required. The synchronization speed of the laser and other equipment platforms is also higher. The general process of communication between existing lasers and other device platforms is that other device platforms interact with the laser as the master device, which is related to the hardware configuration of the master device, the task complexity, and the processing capability of the laser itself. The interaction process often produces a long wait. Time, resulting in low communication efficiency, the data synchronization rate between the master device and the laser is low.
申请内容Application content
为了解决上述问题,本申请实施例提供一种激光器与外部设备的通信方法,以解决现有激光器与外部设备通信效率不高,数据同步率低的问题。In order to solve the above problem, the embodiment of the present application provides a communication method between a laser and an external device, so as to solve the problem that the existing laser and the external device have low communication efficiency and the data synchronization rate is low.
具体地,本申请采用了如下的技术方案。Specifically, the present application adopts the following technical solutions.
第一方面,本申请实施例提供一种激光器与外部设备的通信方法,包括:In a first aspect, an embodiment of the present application provides a communication method between a laser and an external device, including:
使所述激光器以第一时间间隔连续接收所述外部设备发送的数据请求信号;And causing the laser to continuously receive the data request signal sent by the external device at a first time interval;
使所述外部设备在首次接收所述激光器返回回执数据后,同步地以第二时间间隔连续接收所述激光器返回的后续的回执数据;After the first device receives the return receipt data of the laser for the first time, the external device continuously receives subsequent receipt data returned by the laser at a second time interval;
其中,所述第一时间间隔和所述第二时间间隔均小于所述激光器与外部设备的通信周期,且所述第二时间间隔可在一定范围内变化。The first time interval and the second time interval are both smaller than a communication period between the laser and an external device, and the second time interval may vary within a certain range.
进一步地,所述通信方法还包括:Further, the communication method further includes:
在所述激光器的工作周期内实时获取所述第二时间间隔的数值,并将所述数值与预设范围进行比对,当所述数值超出所述预设范围时,判定所述激光器故障,并输出判定结果。And acquiring, in a working period of the laser, a value of the second time interval in real time, and comparing the value with a preset range, and determining that the laser is faulty when the value exceeds the preset range, And output the judgment result.
进一步地,当判定所述激光器故障时,由所述激光器自身根据内部预设的故障处理程序自行停止运行,或者由外部设备向所述激光器发送控制信号,控制所述激光器停止运行。Further, when it is determined that the laser is faulty, the laser itself stops running according to an internally preset fault processing program, or a control signal is sent to the laser by an external device to control the laser to stop running.
进一步地,所述通信方法还包括:Further, the communication method further includes:
使所述外部设备在接收到所述回执数据后,对所述回执数据进行实时处理,并输出实时处理结果。After the external device receives the receipt data, the receipt data is processed in real time, and the real-time processing result is output.
进一步地,所述输出实时处理结果包括:Further, the output real-time processing result includes:
在所述外部设备的交互界面显示处理结果或在所述外部设备的交互界面更新替换上一次显示的处理结果。Displaying the processing result on the interactive interface of the external device or updating the processing result of the last display in the interactive interface of the external device.
进一步地,所述输出处理结果还包括:Further, the output processing result further includes:
在所述处理结果包含所述激光器工作异常的信息时,通过所述外部设备输出故障警报,并使所述激光器停止工作。When the processing result includes information that the laser operates abnormally, a fault alarm is output by the external device, and the laser is stopped.
进一步地,所述激光器的控制器向光路机构或各传感器以一定的时间间隔不断发送数据获取请求,并不定时地接收光路机构或各传感器返回的数据。Further, the controller of the laser continuously sends a data acquisition request to the optical path mechanism or each sensor at a certain time interval, and receives the data returned by the optical path mechanism or each sensor from time to time.
第二方面,本申请实施例还提供一种激光器系统,包括激光器、与所述激光器连接的外部设备;In a second aspect, the embodiment of the present application further provides a laser system, including a laser and an external device connected to the laser;
所述激光器用于以第一时间间隔连续接收所述外部设备发送的数据请求信号;The laser is configured to continuously receive a data request signal sent by the external device at a first time interval;
所述外部设备用于在首次接收所述激光器返回回执数据后,同步地以第二时间间隔连续接收所述激光器返回的后续的回执数据;The external device is configured to continuously receive subsequent receipt data returned by the laser at a second time interval after receiving the return receipt data of the laser for the first time;
其中,所述第一时间间隔和所述第二时间间隔均小于所述激光器与外部设备的通信周期,且所述第二时间间隔可在一定范围内变化。The first time interval and the second time interval are both smaller than a communication period between the laser and an external device, and the second time interval may vary within a certain range.
进一步地,所述激光器或所述外部设备还用于在所述激光器的工作周期内 实时获取所述第二时间间隔的数值,并将所述数值与预设范围进行比对,当所述数值超出所述预设范围时,判定所述激光器故障,并输出判定结果。Further, the laser or the external device is further configured to acquire a value of the second time interval in real time during a working period of the laser, and compare the value with a preset range, when the value is When the preset range is exceeded, the laser failure is determined, and the determination result is output.
进一步地,当判定所述激光器故障时,由所述激光器自身根据内部预设的故障处理程序自行停止运行,或者由外部设备向所述激光器发送控制信号,控制所述激光器停止运行。Further, when it is determined that the laser is faulty, the laser itself stops running according to an internally preset fault processing program, or a control signal is sent to the laser by an external device to control the laser to stop running.
进一步地,所述外部设备还用于在接收到所述回执数据后,对所述回执数据进行实时处理,并输出实时处理结果。Further, the external device is further configured to perform real-time processing on the receipt data after receiving the receipt data, and output a real-time processing result.
进一步地,所述外部设备包括交互界面,所述外部设备输出实时处理结果包括:Further, the external device includes an interaction interface, and the outputting the real-time processing result by the external device includes:
在所述交互界面显示处理结果或在所述交互界面更新替换上一次显示的处理结果。Displaying the processing result on the interactive interface or updating the processing result displayed last time in the interactive interface.
进一步地,所述外部设备输出实时处理结果还包括:Further, the outputting the real-time processing result by the external device further includes:
在所述处理结果包含所述激光器工作异常的信息时输出故障警报,并控制所述激光器停止工作。A fault alarm is output when the processing result includes information that the laser operates abnormally, and the laser is controlled to stop working.
进一步地,所述激光器的控制器向光路机构或各传感器以一定的时间间隔不断发送数据获取请求,并不定时地接收光路机构或各传感器返回的数据。Further, the controller of the laser continuously sends a data acquisition request to the optical path mechanism or each sensor at a certain time interval, and receives the data returned by the optical path mechanism or each sensor from time to time.
根据本申请实施例提供的激光器与外部设备的通信方法、激光器系统,通过使所述激光器以第一时间间隔连续接收所述外部设备发送的数据请求信号,并使所述激光器在根据所述数据请求信号首次返回回执数据后,同步地以第二时间间隔连续向所述外部设备返回的后续的回执数据,可以大大提高激光器在工作周期内的通信效率,相对于现有技术,单位时间内可实时传输更多的有效信息,且可以在激光器的工作周期内更加及时地获取激光器的工作状态信息,以实现对激光器实时的监测。A method for communicating a laser with an external device according to an embodiment of the present application, the laser system, by continuously receiving the data request signal sent by the external device by the laser at a first time interval, and causing the laser to be according to the data After the request signal returns the receipt data for the first time, the subsequent return receipt data continuously returned to the external device at the second time interval can greatly improve the communication efficiency of the laser during the working period, and the unit time can be compared with the prior art. More effective information is transmitted in real time, and the working state information of the laser can be acquired in a timely manner during the working cycle of the laser to realize real-time monitoring of the laser.
附图说明DRAWINGS
为了更清楚地说明本申请或现有技术中的方案,下面将对实施例或现有技 术描述中所需要使用的附图作一个简单介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the present application or the prior art, a brief description of the drawings used in the embodiments or the prior art description will be made below. Obviously, the drawings in the following description are the present application. For some embodiments, other drawings may be obtained from those of ordinary skill in the art without departing from the drawings.
图1为本申请实施例提供的激光器与外部设备的通信方法的流程图;1 is a flowchart of a method for communicating a laser with an external device according to an embodiment of the present application;
图2为本申请实施例提供的第一时间间隔与第二时间间隔的示意图;2 is a schematic diagram of a first time interval and a second time interval according to an embodiment of the present application;
图3为本申请实施例提供的通信周期重叠的示意图;FIG. 3 is a schematic diagram of overlapping communication cycles according to an embodiment of the present application; FIG.
图4为本申请实施例提供的激光器系统的示意框图。4 is a schematic block diagram of a laser system provided by an embodiment of the present application.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中在本申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请。本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present application. All technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention applies, unless otherwise defined. The terminology used herein is for the purpose of describing particular embodiments, and is not intended to be limiting. The terms "first", "second" and the like in the specification and claims of the present application and the above drawings are used to distinguish different objects, and are not intended to describe a specific order. Furthermore, the terms "comprises" and "comprising" and "comprising" are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units not listed, or alternatively Other steps or units inherent to these processes, methods, products, or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。References to "an embodiment" herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the present application. The appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
如图1所示的流程框图,本申请实施例提供一种激光器与外部设备的通信方法,所述激光器可以是光纤激光器,所述外部设备可以是上位机,所述上位 机可与所述光纤激光器之间直接进行通信交互,也可通过机床板卡连接所述光纤激光器,通过所述机床板卡与所述光纤激光器进行通信交互,具体的,所述方法包括:The embodiment of the present application provides a communication method between a laser and an external device, where the laser may be a fiber laser, the external device may be a host computer, and the upper computer may be connected to the optical fiber. The laser is directly connected to the laser, and the fiber laser is connected to the fiber laser through the machine board. The method includes:
S101、使所述激光器以第一时间间隔连续接收所述外部设备发送的数据请求信号。S101. The laser is caused to continuously receive the data request signal sent by the external device at a first time interval.
S102、使所述激光器在接收到所述数据请求信号首次返回回执数据后,同步地以第二时间间隔连续向所述外部设备返回的后续的回执数据。所述回执数据可以是激光器的运行状态数据。S102. After the laser receives the data request signal for the first time, returning the return receipt data, the laser sequentially returns subsequent receipt data to the external device at a second time interval. The receipt data may be operational status data of the laser.
其中,所述第一时间间隔和所述第二时间间隔均小于所述激光器与外部设备的通信周期,且所述第二时间间隔可在一定范围内变化,该一定范围可以是针对不同类型的激光器预设的一个或多个范围,下文将展开说明。在上述步骤中,外部设备发射一个数据请求信号,激光器接收到该数据请求信号后获取并返回对应的回执数据至外部设备的过程形成一个回执数据的获取周期,即激光器与外部设备的一个通信周期,所述通信周期是一个固定值,由于需要保证不会出现误判的情况,所述通信周期的时长必须是激光器能够作出反应的最长时间。具体的如图2所示,图中示出了通信周期Ta和通信周期Tb及相应的第一时间间隔t1和第二时间间隔t2。在本实施例中,第一时间间隔由外部设备及外部设备与激光器之间的通信线路决定,所述外部设备以第一时间间隔不断地通过通信线路向激光器发送数据请求信号,相应的,激光器以第一时间间隔不断接收数据请求信号,而由于激光器根据数据请求信号返回的回执数据大小不一,激光器自身向内部获取和回发给外部设备的时间相应不同,因此外部设备接收激光器的回执数据的第二时间间隔是一个变化值,但维持在一个确定的范围之内,比如在一些激光器中,获取回执数据的时间在20ms以内,而将回执数据回发给外部设备的时间在80ms以内,那么外部设备接收激光器的回执数据的第二时间间隔的范围在100ms以内,当然也存在特殊的情况,比如一些激光器的读写速度较快,获取回执数据的时间多数可控制在2ms以内,但存在一些特殊的 回执数据的获取时间在150ms以内,可将第二时间间隔按类进行变化范围划分,此时第二时间间隔将存在0至2ms、2ms至150ms两个变化范围,由此可使得激光器和/或外部设备根据不同的变化范围情形作出对应的响应或操作,比如激光器在获取回执数据时的获取时间超出2ms,此时可先行发送一个或多个等待信号至外部设备,使外部设备维持等待接收的状态,防止外部设备因长时间未收到回执数据而误判激光器工作异常。在本实施例中,S101的数据请求信号的接收过程与S102中的回执数据的返回过程是相对独立的两个过程,这使得多个回执数据的获取周期在时间上是依次部分重叠的,如图3所示,图中示出了三个回执数据的回执周期,分别为T1、T2、T3,其中如图3中(a)所示,T1和T2在发生时间上重叠,T2和T3在发生时间上重叠,甚至在一些实施例中,如图3中(b)所示,T1、T2和T3在发生时间上均有重叠,相比于相关技术中激光器和外部设备执行完一个回执数据的获取周期后再执行下一个回执数据的获取周期的过程,本申请提供的通信方法中的激光器被动接收数据请求信号,但返回回执数据变为激光器的主动行为,而外部设备主动发送数据请求信号,但接收回执数据变为外部设备的被动行为,激光器被动接收数据请求信号使用一条信道,激光器主动返回回执数据使用另一条信道,两条信道并行收发,相当于双线处理,通过将外部设备的数据请求过程与激光器的回执数据返回过程独立开来,能够使得激光器向外部设备发送多个回执数据在处理时间上依次重叠,减少了回执数据回发的等待时间,整体通信时长大幅减少,获取的回执数据越多,越能有效提高了通信效率,从而提高了激光器与外部设备的数据同步率。The first time interval and the second time interval are both smaller than a communication period between the laser and an external device, and the second time interval may be changed within a certain range, and the certain range may be for different types. One or more ranges of laser presets are described below. In the above step, the external device transmits a data request signal, and the process of acquiring and returning the corresponding receipt data to the external device after the laser receives the data request signal forms a receipt cycle of the receipt data, that is, a communication cycle between the laser and the external device. The communication cycle is a fixed value, and since it is necessary to ensure that no false positives occur, the duration of the communication cycle must be the maximum time that the laser can react. Specifically, as shown in FIG. 2, the communication cycle Ta and the communication cycle Tb and the corresponding first time interval t1 and second time interval t2 are shown. In this embodiment, the first time interval is determined by a communication line between the external device and the external device and the laser, and the external device continuously transmits a data request signal to the laser through the communication line at a first time interval, correspondingly, the laser The data request signal is continuously received at the first time interval, and since the size of the receipt data returned by the laser according to the data request signal is different, the time for the laser itself to internally acquire and post back to the external device is different, so the external device receives the receipt data of the laser. The second time interval is a change value, but is maintained within a certain range. For example, in some lasers, the time for obtaining the receipt data is within 20 ms, and the time for returning the receipt data to the external device is within 80 ms. Then, the second time interval of the external device receiving the receipt data of the laser is within 100 ms. Of course, there are special cases. For example, some lasers have a faster reading and writing speed, and most of the time for obtaining the receipt data can be controlled within 2 ms, but there is Acquisition time of some special receipt data Within 150ms, the second time interval can be divided into categories according to the class. At this time, the second time interval will have two ranges of 0 to 2ms and 2ms to 150ms, thereby making the laser and/or external device change according to different conditions. The range situation makes a corresponding response or operation. For example, the acquisition time of the laser when acquiring the receipt data exceeds 2 ms. At this time, one or more waiting signals may be sent to the external device first, so that the external device maintains the state of waiting for reception, preventing the external device from being The receipt data was not received for a long time and the laser was misjudged. In this embodiment, the receiving process of the data request signal of S101 and the returning process of the returning data in S102 are two independent processes, which makes the acquisition periods of the plurality of receipt data overlap in time, such as As shown in FIG. 3, the receipt cycle of three receipt data is shown, which are respectively T1, T2, and T3. As shown in (a) of FIG. 3, T1 and T2 overlap in the occurrence time, and T2 and T3 are in The occurrence time overlaps, and even in some embodiments, as shown in (b) of FIG. 3, T1, T2, and T3 overlap in occurrence time, and a receipt data is executed by the laser and the external device in the related art. After the acquisition cycle, the process of acquiring the next receipt data is performed. The laser in the communication method provided by the present application passively receives the data request signal, but the return receipt data becomes the active behavior of the laser, and the external device actively sends the data request signal. However, the receiving receipt data becomes a passive behavior of the external device, the laser passively receives the data request signal using one channel, and the laser actively returns the receipt data using another channel. The two channels are sent and received in parallel, which is equivalent to two-line processing. By separating the data request process of the external device from the return process of the laser return data, the laser can send multiple receipt data to the external device to overlap in the processing time. The waiting time for the receipt of the receipt data is reduced, the overall communication duration is greatly reduced, and the more the receipt data is acquired, the more effectively the communication efficiency is improved, thereby improving the data synchronization rate between the laser and the external device.
进一步地,在本申请一些实施例中,所述通信方法还包括在所述激光器的工作周期内实时获取所述第二时间间隔的数值,并将所述数值与预设范围进行比对,当所述数值超出所述预设范围时,判定所述激光器故障,并输出判定结果。具体的,可以是通过所述激光器或者外部设备来实时获取所述第二时间间隔的数值,当判断激光器故障时,由激光器自身根据内部预设的故障处理程序自行停止运行,或者由外部设备向激光器发送控制信号,控制激光器停止运行, 在一定程度上减少用户的经济损失,也可以让人身安全得到更好的保证,避免出现误伤。Further, in some embodiments of the present application, the communication method further includes acquiring a value of the second time interval in real time during a working period of the laser, and comparing the value with a preset range, when When the value exceeds the preset range, the laser is determined to be faulty, and the determination result is output. Specifically, the value of the second time interval may be acquired in real time by using the laser or an external device. When the laser fault is determined, the laser itself stops running according to the internal preset fault processing program, or is externally The laser sends a control signal to control the laser to stop running, which reduces the user's economic loss to a certain extent, and can also ensure better safety and avoid accidental injury.
进一步地,在本申请另一些实施例中,所述通信方法还包括使所述外部设备在接收到所述回执数据后,对所述回执数据进行实时处理,并输出实时处理结果。由于外部设备为被动接收回执数据,因此,外部设备无论何时接收到回执数据都可以对其进行处理,只要接收到第一条回执数据,就会有源源不断的后续的回执数据被激光器回发过来,并对接收的回执数据一一进行处理,这使得在外部设备与激光器的通信过程中,外部设备在其自身的处理周期内从由等待回执数据为主导转变为以其处理能力为主导,采用本申请的通信方法,当外部设备的处理能力能够满足及时处理不断接收的回执信息的要求时,就能够很大程度上提高外部设备与激光器的数据同步率。Further, in other embodiments of the present application, the communication method further includes: after the external device receives the receipt data, performing real-time processing on the receipt data, and outputting a real-time processing result. Since the external device is passively receiving the receipt data, the external device can process the receipt data whenever it receives the receipt data. As long as the first receipt data is received, the subsequent subsequent receipt data is sent back by the laser. Come over, and process the received receipt data one by one, which makes the external device change from waiting for the receipt data to being dominated by its processing capability during the communication process between the external device and the laser. By adopting the communication method of the present application, when the processing capability of the external device can satisfy the requirement of timely processing the continuously received receipt information, the data synchronization rate of the external device and the laser can be greatly improved.
作为可选方案,所述输出实时处理结果包括在所述外部设备的交互界面(例如图形用户界面)显示处理结果或在所述外部设备的交互界面更新替换上一次显示的处理结果。作为进一步地可选方案,所述输出处理结果还包括在所述处理结果包含所述激光器工作异常的信息时,通过所述外部设备输出故障警报,并使所述激光器停止工作;采用本申请的通信方法,能够尽早地获悉激光器的故障信息,从而可以降低激光器的损坏几率,减少损失,也可很大程度上降低事故发生几率;在一些实施例中,在激光器内部也可采用相类似的通信方法,即激光器的控制器与光路机构或各传感器之间的通信也可以采用上述双线处理的通信方式,控制器向其他部件以一定的时间间隔不断发送数据获取请求,另一方面不定时地接收其他部件返回的数据,由此可使得激光器能够在第一时间发现故障并迅速做出反应,将故障带来的损失减到最小。As an alternative, the output real-time processing result includes displaying a processing result on an interaction interface (for example, a graphical user interface) of the external device or updating the processing result displayed last time in the interactive interface of the external device. As a further optional solution, the output processing result further includes: when the processing result includes the information that the laser works abnormally, outputting a fault alarm by the external device, and stopping the laser; using the present application The communication method can learn the fault information of the laser as early as possible, thereby reducing the probability of laser damage, reducing the loss, and greatly reducing the probability of accidents; in some embodiments, similar communication can be used inside the laser. The method, that is, the communication between the controller of the laser and the optical path mechanism or the sensors may also adopt the above-mentioned two-line processing communication mode, and the controller continuously sends data acquisition requests to other components at certain time intervals, and on the other hand, irregularly Receiving data returned by other components, thereby enabling the laser to detect faults at the first time and react quickly, minimizing the damage caused by the fault.
根据本申请实施例提供的激光器与外部设备的通信方法,通过使所述激光器以第一时间间隔连续接收所述外部设备发送的数据请求信号,并使所述激光器在根据所述数据请求信号首次返回回执数据后,同步地以第二时间间隔连续向所述外部设备返回的后续的回执数据,可以大大提高激光器在工作周期内的 通信效率,相对于现有技术,单位时间内可实时传输更多的有效信息,且可以在激光器的工作周期内更加及时地获取激光器的工作状态信息,以实现对激光器实时的监测。According to the communication method of the laser and the external device provided by the embodiment of the present application, the laser receives the data request signal sent by the external device continuously at the first time interval, and makes the laser first request the signal according to the data. After the return receipt data is returned, the subsequent receipt data that is continuously returned to the external device at the second time interval can greatly improve the communication efficiency of the laser in the working period, and can be transmitted in real time in a unit time compared with the prior art. More effective information, and the laser's working state information can be acquired in a timely manner during the working cycle of the laser to realize real-time monitoring of the laser.
参阅图4所示的框图,本申请实施例还提供一种激光器系统,包括激光器10、与所述激光器10连接的外部设备20;在本实施例中,激光器10与外部设备20之间的通讯使用RS232串口线作为媒介,比如USB转RS232的串口线,或者如FT232RL的接口转换芯片。Referring to the block diagram shown in FIG. 4, the embodiment of the present application further provides a laser system including a laser 10, an external device 20 connected to the laser 10, and a communication between the laser 10 and the external device 20 in this embodiment. Use RS232 serial cable as the medium, such as USB to RS232 serial cable, or interface conversion chip such as FT232RL.
在本实施例中,所述激光器10用于以第一时间间隔连续接收所述外部设备20发送的数据请求信号;所述外部设备20用于在首次接收所述激光器10返回回执数据后,同步地以第二时间间隔连续接收所述激光器10返回的后续的回执数据。In this embodiment, the laser 10 is configured to continuously receive the data request signal sent by the external device 20 at a first time interval; the external device 20 is configured to synchronize after receiving the return receipt data of the laser 10 for the first time. Subsequent receipt data returned by the laser 10 is continuously received at a second time interval.
其中,所述第一时间间隔和所述第二时间间隔均小于所述激光器10与外部设备20的通信周期,且所述第二时间间隔可在一定范围内变化。对于通信周期,具体指外部设备20发射一个数据请求信号,激光器10接收到该数据请求信号后获取并返回对应的回执数据至外部设备20的过程形成的一个回执数据的获取周期,具体的可参阅图2的示意。在本实施例中,第一时间间隔由外部设备20及外部设备20与激光器10之间的通信线路决定,所述外部设备20以第一时间间隔不断地通过通信线路向激光器10发送数据请求信号,相应的,激光器10以第一时间间隔不断接收数据请求信号,而由于激光器10根据数据请求信号返回的回执数据大小不一,获取和回发的时间相应不同,因此外部设备20接收激光器10的回执数据的第二时间间隔是一个变化值,但维持在一个确定的范围之内。The first time interval and the second time interval are both smaller than a communication period of the laser 10 and the external device 20, and the second time interval may vary within a certain range. For the communication cycle, specifically, the external device 20 transmits a data request signal, and the acquisition cycle of the receipt data formed by the process of acquiring and returning the corresponding receipt data to the external device 20 after the laser 10 receives the data request signal is specifically referred to. Figure 2 is an illustration. In the present embodiment, the first time interval is determined by the communication line between the external device 20 and the external device 20 and the laser 10, and the external device 20 continuously transmits a data request signal to the laser 10 through the communication line at the first time interval. Correspondingly, the laser 10 continuously receives the data request signal at the first time interval, and since the receipt data returned by the laser 10 according to the data request signal is different in size, the times of acquisition and postback are different, so the external device 20 receives the laser 10 The second time interval of the receipt data is a change value, but is maintained within a certain range.
在本实施例中,激光器10的数据请求信号的接收过程与外部设备20的回执数据的接收过程是相对独立的两个过程,这使得多个回执数据的获取周期在时间上是依次部分重叠的,具体可参阅上述方法实施例中结合如图3作出的相关描述,在此不再赘述,这种双线处理模式相比于激光器10和外部设备20执 行完一个回执数据的获取周期后再执行下一个回执数据的获取周期的过程,本申请提供的激光器10系统中的激光器10被动接收数据请求信号,但返回回执数据变为激光器10的主动行为,而外部设备20主动发送数据请求信号,但接收回执数据变为外部设备20的被动行为,通过将外部设备20的数据请求过程与激光器10的回执数据返回过程独立开来,能够使得激光器10向外部设备20发送多个回执数据在处理时间上依次重叠,减少了回执数据回发的等待时间,整体通信时长大幅减少,获取的回执数据越多,越能有效提高了通信效率,从而提高了激光器10与外部设备20的数据同步率。In this embodiment, the receiving process of the data request signal of the laser 10 and the receiving process of the returning data of the external device 20 are two independent processes, which causes the acquisition periods of the plurality of receipt data to be partially overlapped in time. For details, refer to the related description in the foregoing method embodiment, as shown in FIG. 3, and details are not described herein again. This two-line processing mode is executed after the laser 10 and the external device 20 execute the acquisition cycle of a receipt data. The process of the acquisition cycle of the next receipt data, the laser 10 in the laser 10 system provided by the present application passively receives the data request signal, but the return receipt data becomes the active behavior of the laser 10, and the external device 20 actively transmits the data request signal, but Receiving the receipt data becomes a passive behavior of the external device 20, and by separating the data request process of the external device 20 from the return data return process of the laser 10, the laser 10 can be caused to transmit a plurality of receipt data to the external device 20 at the processing time. Repeatedly, which reduces the waiting time for receipt data return, and the overall communication duration The data is greatly reduced, and the more the receipt data is acquired, the more effectively the communication efficiency is improved, thereby improving the data synchronization rate between the laser 10 and the external device 20.
进一步地,所述激光器10或所述外部设备20还用于在所述激光器10的工作周期内实时获取所述第二时间间隔的数值,并将所述数值与预设范围进行比对,当所述数值超出所述预设范围时,判定所述激光器10故障,并输出判定结果。当判断激光器10故障时,由激光器10自身根据内部预设的故障处理程序自行停止运行,或者由外部设备20向激光器10发送控制信号,控制激光器10停止运行,在一定程度上减少用户的经济损失,也可以让人身安全得到更好的保证,避免出现误伤。Further, the laser 10 or the external device 20 is further configured to acquire the value of the second time interval in real time during the working period of the laser 10, and compare the value with a preset range, when When the value exceeds the preset range, it is determined that the laser 10 is faulty, and the determination result is output. When it is judged that the laser 10 is faulty, the laser 10 itself stops the operation according to the internal preset fault processing program, or the external device 20 sends a control signal to the laser 10 to control the laser 10 to stop running, thereby reducing the user's economic loss to a certain extent. It can also give people a better guarantee of safety and avoid accidental injuries.
进一步地,所述外部设备20还用于在接收到所述回执数据后,对所述回执数据进行实时处理,并输出实时处理结果。由于外部设备20为被动接收回执数据,因此,外部设备20无论何时接收到回执数据都可以对其进行处理,只要接收到第一条回执数据,就会有源源不断的后续的回执数据被激光器10回发过来,并对接收的回执数据一一进行处理,这使得在外部设备20与激光器10的通信过程中,外部设备20在其自身的处理周期内从由等待回执数据为主导转变为以其处理能力为主导,采用本申请的通信方法,当外部设备20的处理能力能够满足及时处理不断接收的回执信息的要求时,就能够很大程度上提高外部设备20与激光器10的数据同步率。Further, the external device 20 is further configured to perform real-time processing on the receipt data after receiving the receipt data, and output a real-time processing result. Since the external device 20 passively receives the receipt data, the external device 20 can process the receipt data whenever it receives the receipt data. As long as the first receipt data is received, the subsequent return receipt data is continuously lasered by the laser. 10 sends back and processes the received receipt data one by one, which causes the external device 20 to change from waiting for the receipt data to being in its own processing cycle during the communication process between the external device 20 and the laser 10. The processing capability is dominant. With the communication method of the present application, when the processing capability of the external device 20 can meet the requirement of timely processing the continuously received receipt information, the data synchronization rate of the external device 20 and the laser 10 can be greatly improved. .
进一步地,作为可选方案,所述外部设备20包括交互界面,所述外部设备20输出实时处理结果包括在所述交互界面显示处理结果或在所述交互界面更新 替换上一次显示的处理结果。作为进一步地可选方案,所述外部设备20输出实时处理结果还包括在所述处理结果包含所述激光器10工作异常的信息时输出故障警报,并控制所述激光器10停止工作。采用本申请的通信方法,能够尽早地获悉激光器10的故障信息,从而可以降低激光器10的损坏几率,减少损失,也可很大程度上降低事故发生几率;在一些实施例中,在激光器10内部也可采用相类似的通信方法,即激光器10的控制器与其他部件之间的通信也可以采用上述双线处理的通信方式,控制器向其他部件以一定的时间间隔不断发送数据获取请求,另一方面不定时地接收其他部件返回的数据,由此可使得激光器10能够在第一时间发现故障并迅速作出反应,将故障带来的损失减到最小。Further, as an alternative, the external device 20 includes an interaction interface, and the outputting the real-time processing result by the external device 20 includes displaying the processing result on the interaction interface or updating the processing result displayed last time in the interaction interface update. As a further alternative, the outputting the real-time processing result by the external device 20 further includes outputting a fault alarm when the processing result includes information that the laser 10 is abnormal in operation, and controlling the laser 10 to stop operating. With the communication method of the present application, the failure information of the laser 10 can be learned as early as possible, thereby reducing the probability of damage of the laser 10, reducing the loss, and greatly reducing the probability of accidents; in some embodiments, inside the laser 10 A similar communication method can also be adopted, that is, the communication between the controller of the laser 10 and other components can also adopt the communication method of the above two-wire processing, and the controller continuously sends data acquisition requests to other components at certain time intervals, and On the one hand, the data returned by other components is received from time to time, thereby enabling the laser 10 to detect the fault at the first time and react quickly, minimizing the loss caused by the fault.
根据本申请实施例提供的激光器系统,通过所述激光器10以第一时间间隔连续接收所述外部设备20发送的数据请求信号,同时所述激光器10在根据所述数据请求信号首次返回回执数据后,同步地以第二时间间隔连续向所述外部设备20返回的后续的回执数据,可以大大提高激光器10在工作周期内的通信效率,相对于现有技术,单位时间内可实时传输更多的有效信息,且可以在激光器10的工作周期内更加及时地获取激光器10的工作状态信息,以实现对激光器10实时的监测。According to the laser system provided by the embodiment of the present application, the data request signal sent by the external device 20 is continuously received by the laser 10 at a first time interval, and the laser 10 returns the receipt data for the first time according to the data request signal. Simultaneously returning subsequent receipt data to the external device 20 at the second time interval can greatly improve the communication efficiency of the laser 10 during the working period, and can transmit more in real time per unit time than the prior art. Effective information, and the operating state information of the laser 10 can be acquired in a more timely manner during the duty cycle of the laser 10 to achieve real-time monitoring of the laser 10.
显然,以上所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例,附图中给出了本申请的较佳实施例,但并不限制本申请的专利范围。本申请可以以许多不同的形式来实现,相反地,提供这些实施例的目的是使对本申请的公开内容的理解更加透彻全面。尽管参照前述实施例对本申请进行了详细的说明,对于本领域的技术人员来而言,其依然可以对前述各具体实施方式所记载的技术方案进行修改,或者对其中部分技术特征进行等效替换。凡是利用本申请说明书及附图内容所做的等效结构,直接或间接运用在其他相关的技术领域,均同理在本申请专利保护范围之内。The embodiments described above are only a part of the embodiments of the present application, and not all of the embodiments. The preferred embodiments of the present application are given in the drawings, but the scope of the patent application is not limited. The present application may be embodied in a number of different forms, and the embodiments are provided for the purpose of making the understanding of the disclosure of the present application more comprehensive. Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art may still modify the technical solutions described in the foregoing specific embodiments, or equivalently replace some of the technical features. . The equivalent structure made by using the specification and the contents of the drawings, which are directly or indirectly used in other related technical fields, are all within the scope of the patent protection of the present application.

Claims (14)

  1. 一种激光器与外部设备的通信方法,其特征在于,包括:A communication method between a laser and an external device, comprising:
    使所述激光器以第一时间间隔连续接收所述外部设备发送的数据请求信号;And causing the laser to continuously receive the data request signal sent by the external device at a first time interval;
    使所述外部设备在首次接收所述激光器返回回执数据后,同步地以第二时间间隔连续接收所述激光器返回的后续的回执数据;After the first device receives the return receipt data of the laser for the first time, the external device continuously receives subsequent receipt data returned by the laser at a second time interval;
    其中,所述第一时间间隔和所述第二时间间隔均小于所述激光器与外部设备的通信周期,且所述第二时间间隔可在一定范围内变化。The first time interval and the second time interval are both smaller than a communication period between the laser and an external device, and the second time interval may vary within a certain range.
  2. 根据权利要求1所述的激光器与外部设备的通信方法,其特征在于,还包括:The method for communicating a laser with an external device according to claim 1, further comprising:
    在所述激光器的工作周期内实时获取所述第二时间间隔的数值,并将所述数值与预设范围进行比对,当所述数值超出所述预设范围时,判定所述激光器故障,并输出判定结果。And acquiring, in a working period of the laser, a value of the second time interval in real time, and comparing the value with a preset range, and determining that the laser is faulty when the value exceeds the preset range, And output the judgment result.
  3. 根据权利要求2所述的激光器与外部设备的通信方法,其特征在于,还包括:The method for communicating a laser with an external device according to claim 2, further comprising:
    当判定所述激光器故障时,由所述激光器自身根据内部预设的故障处理程序自行停止运行,或者由外部设备向所述激光器发送控制信号,控制所述激光器停止运行。When it is determined that the laser is faulty, the laser itself stops operating according to an internally preset fault handling procedure, or a control signal is sent to the laser by an external device to control the laser to stop running.
  4. 根据权利要求1所述的激光器与外部设备的通信方法,其特征在于,还包括:The method for communicating a laser with an external device according to claim 1, further comprising:
    使所述外部设备在接收到所述回执数据后,对所述回执数据进行实时处理,并输出实时处理结果。After the external device receives the receipt data, the receipt data is processed in real time, and the real-time processing result is output.
  5. 根据权利要求4所述的激光器与外部设备的通信方法,其特征在于,所述输出实时处理结果包括:The method for communicating a laser with an external device according to claim 4, wherein the output real-time processing result comprises:
    在所述外部设备的交互界面显示处理结果或在所述外部设备的交互界面更 新替换上一次显示的处理结果。The processing result is displayed on the interactive interface of the external device or the processing result of the last display is replaced at the interactive interface of the external device.
  6. 根据权利要求4或5所述的激光器与外部设备的通信方法,其特征在于,所述输出处理结果还包括:The communication method of the laser and the external device according to claim 4 or 5, wherein the output processing result further comprises:
    在所述处理结果包含所述激光器工作异常的信息时,通过所述外部设备输出故障警报,并使所述激光器停止工作。When the processing result includes information that the laser operates abnormally, a fault alarm is output by the external device, and the laser is stopped.
  7. 根据权利要求1所述的激光器与外部设备的通信方法,其特征在于,A method of communicating a laser with an external device according to claim 1, wherein
    所述激光器的控制器向光路机构或各传感器以一定的时间间隔不断发送数据获取请求,并不定时地接收光路机构或各传感器返回的数据。The controller of the laser continuously transmits a data acquisition request to the optical path mechanism or each sensor at a certain time interval, and receives the data returned by the optical path mechanism or each sensor from time to time.
  8. 一种激光器系统,其特征在于,包括激光器、与所述激光器连接的外部设备;A laser system comprising a laser, an external device connected to the laser;
    所述激光器用于以第一时间间隔连续接收所述外部设备发送的数据请求信号;The laser is configured to continuously receive a data request signal sent by the external device at a first time interval;
    所述外部设备用于在首次接收所述激光器返回回执数据后,同步地以第二时间间隔连续接收所述激光器返回的后续的回执数据;The external device is configured to continuously receive subsequent receipt data returned by the laser at a second time interval after receiving the return receipt data of the laser for the first time;
    其中,所述第一时间间隔和所述第二时间间隔均小于所述激光器与外部设备的通信周期,且所述第二时间间隔可在一定范围内变化。The first time interval and the second time interval are both smaller than a communication period between the laser and an external device, and the second time interval may vary within a certain range.
  9. 根据权利要求8所述的激光器系统,其特征在于,所述激光器或所述外部设备还用于在所述激光器的工作周期内实时获取所述第二时间间隔的数值,并将所述数值与预设范围进行比对,当所述数值超出所述预设范围时,判定所述激光器故障,并输出判定结果。The laser system according to claim 8, wherein the laser or the external device is further configured to acquire a value of the second time interval in real time during a working period of the laser, and compare the value with The preset range is compared, and when the value exceeds the preset range, the laser failure is determined, and the determination result is output.
  10. 根据权利要求9所述的激光器系统,其特征在于,还包括:The laser system of claim 9 further comprising:
    当判定所述激光器故障时,由所述激光器自身根据内部预设的故障处理程序自行停止运行,或者由外部设备向所述激光器发送控制信号,控制所述激光器停止运行。When it is determined that the laser is faulty, the laser itself stops operating according to an internally preset fault handling procedure, or a control signal is sent to the laser by an external device to control the laser to stop running.
  11. 根据权利要求8所述的激光器系统,其特征在于,所述外部设备还用于在接收到所述回执数据后,对所述回执数据进行实时处理,并输出实时处理 结果。The laser system according to claim 8, wherein the external device is further configured to perform real-time processing on the receipt data after receiving the receipt data, and output a real-time processing result.
  12. 根据权利要求11所述的激光器系统,其特征在于,所述外部设备包括交互界面,所述外部设备输出实时处理结果包括:The laser system according to claim 11, wherein the external device comprises an interactive interface, and the outputting the real-time processing result by the external device comprises:
    在所述交互界面显示处理结果或在所述交互界面更新替换上一次显示的处理结果。Displaying the processing result on the interactive interface or updating the processing result displayed last time in the interactive interface.
  13. 根据权利要求11或12所述的激光器系统,其特征在于,所述外部设备输出实时处理结果还包括:The laser system according to claim 11 or 12, wherein the outputting the real-time processing result by the external device further comprises:
    在所述处理结果包含所述激光器工作异常的信息时输出故障警报,并控制所述激光器停止工作。A fault alarm is output when the processing result includes information that the laser operates abnormally, and the laser is controlled to stop working.
  14. 根据权利要求8所述的激光器系统,其特征在于,The laser system of claim 8 wherein:
    所述激光器的控制器向光路机构或各传感器以一定的时间间隔不断发送数据获取请求,并不定时地接收光路机构或各传感器返回的数据。The controller of the laser continuously transmits a data acquisition request to the optical path mechanism or each sensor at a certain time interval, and receives the data returned by the optical path mechanism or each sensor from time to time.
PCT/CN2018/119145 2018-05-08 2018-12-04 Communication method between laser and external device, and laser system WO2019214221A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810429408.9A CN108683478B (en) 2018-05-08 2018-05-08 Communication method between laser and external equipment and laser system
CN201810429408.9 2018-05-08

Publications (1)

Publication Number Publication Date
WO2019214221A1 true WO2019214221A1 (en) 2019-11-14

Family

ID=63802905

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/119145 WO2019214221A1 (en) 2018-05-08 2018-12-04 Communication method between laser and external device, and laser system

Country Status (2)

Country Link
CN (1) CN108683478B (en)
WO (1) WO2019214221A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108683478B (en) * 2018-05-08 2020-09-15 深圳市创鑫激光股份有限公司 Communication method between laser and external equipment and laser system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5917633A (en) * 1996-11-07 1999-06-29 Cselt- Centro Studi E Laboratori Telecomunicazioni S.P.A. Method of and device for controlling the phase of a clock signal in a point-to-point optical transmission
CN103199980A (en) * 2013-04-07 2013-07-10 浙江中控技术股份有限公司 Synchronous control method, synchronous control device and synchronous control system
CN103208723A (en) * 2013-03-04 2013-07-17 深圳市大族激光科技股份有限公司 Laser device, laser device alarming method and laser device control method
CN104385787A (en) * 2014-11-28 2015-03-04 深圳市创鑫激光股份有限公司 Laser marking machine control method and laser marking machine
CN104570834A (en) * 2014-11-28 2015-04-29 深圳市创鑫激光股份有限公司 Laser, and error detection and recovery device and method thereof
CN104765335A (en) * 2015-01-29 2015-07-08 深圳市创鑫激光股份有限公司 Frequency pulse selector and selection method
CN108683478A (en) * 2018-05-08 2018-10-19 深圳市创鑫激光股份有限公司 The communication means of laser and external equipment, Optical Maser System

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5208468A (en) * 1989-02-03 1993-05-04 Sharp Kabushiki Kaisha Semiconductor laser device with a sulfur-containing film provided between the facet and the protective film
CN101697252B (en) * 2009-11-02 2011-09-28 中国铁路通信信号上海工程有限公司 System and method for monitoring vehicles in real time
EP2517451B1 (en) * 2009-12-24 2015-04-22 Imagerlabs Inc. Adjustable cmos sensor array
CN102790733B (en) * 2012-08-13 2016-06-29 上海量明科技发展有限公司 Method, client and the system that instant messaging interactive interface differentiation shows
CN106603708B (en) * 2016-12-30 2019-10-18 中国建设银行股份有限公司 A kind of method for processing business and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5917633A (en) * 1996-11-07 1999-06-29 Cselt- Centro Studi E Laboratori Telecomunicazioni S.P.A. Method of and device for controlling the phase of a clock signal in a point-to-point optical transmission
CN103208723A (en) * 2013-03-04 2013-07-17 深圳市大族激光科技股份有限公司 Laser device, laser device alarming method and laser device control method
CN103199980A (en) * 2013-04-07 2013-07-10 浙江中控技术股份有限公司 Synchronous control method, synchronous control device and synchronous control system
CN104385787A (en) * 2014-11-28 2015-03-04 深圳市创鑫激光股份有限公司 Laser marking machine control method and laser marking machine
CN104570834A (en) * 2014-11-28 2015-04-29 深圳市创鑫激光股份有限公司 Laser, and error detection and recovery device and method thereof
CN104765335A (en) * 2015-01-29 2015-07-08 深圳市创鑫激光股份有限公司 Frequency pulse selector and selection method
CN108683478A (en) * 2018-05-08 2018-10-19 深圳市创鑫激光股份有限公司 The communication means of laser and external equipment, Optical Maser System

Also Published As

Publication number Publication date
CN108683478A (en) 2018-10-19
CN108683478B (en) 2020-09-15

Similar Documents

Publication Publication Date Title
CN104570721B (en) Redundant manipulator master slave mode determines method
KR20080058454A (en) A distributed monitoring method
WO2019214221A1 (en) Communication method between laser and external device, and laser system
CN109613846B (en) Dual-redundancy overload voting starting method
KR20160124872A (en) Touch display apparatus, driving circuit thereof and driving method therefor, and electronic apparatus
CN103777617A (en) Upper-and-lower computer communication monitoring method
CN106774206B (en) A kind of anti-excessively roasting system and method for liquid crystal display panel baking board
JP6396519B2 (en) System for detecting intrusion into communication environment, and intrusion detection method
US20220201374A1 (en) Data processing system, data processing method, program, sensor apparatus, and receiving apparatus
CN107133167A (en) The abnormal method and device of real-time monitoring process under a kind of linux system
CN207947121U (en) A kind of adaptive code spraying device of metering
TW201715397A (en) Detecting system and method for baseboard management controller
CN109557453A (en) A kind of more main control chip identifying processing method and system
CN103812744A (en) Bidirectional double-loop alarm communication control system based on RS-422 bus structure
CN104407960A (en) Method and device for monitoring data
CN111650909A (en) Intelligent control system and method for sewage treatment process, readable storage medium and device
CN110632861B (en) Multi-sensor cooperative management method
JP2511187B2 (en) Disaster prevention monitoring device
KR940007707A (en) Data sharing device and control method using common memory
CN106371980A (en) Alarm system and method
JPS63117530A (en) Transmission equipment
CN113601957A (en) Screen printing machine system based on PLC control
CN107608331A (en) The diagnostic method and device of nonrandom interruption
JPH04115395A (en) Disaster prevension monitoring device
CN117452820A (en) Vehicle remote control method, device, equipment and medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18917963

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18917963

Country of ref document: EP

Kind code of ref document: A1